lqc520 / uniapp-plugin Goto Github PK
View Code? Open in Web Editor NEWuniapp插件开发
License: Other
uniapp插件开发
License: Other
就是官网的这个,uni-ui
原生的有了,但是还是更希望支持这个uni-ui呢,毕竟是官方的UI工具。每次写的时候都没有提示还有波浪号好难受。
作者你好,最近在插件使用过程中发现一个问题,就是uniapp项目下面,我发现rpx和upx单位在css文件中的话使用格式化的时候还是会被加上空格,但是如果在vue文件中的话就没有这个问题。
我这边在多种情况下(删除缓存,删除.idea,重新创建项目等)测试都发现有上面的问题。
这个是否可以可以劳烦修复一下?
使用hx创建的项目,可以用此插件直接运行,但是通过uniapp-cli方式创建的项目,无法通过插件启动,提示
进程已结束,退出代码0
有个Bug,安装插件后,style使用scss,敲击回车换行,光标自动排在了最前面,这个不正常。
找到cli和提示的目录后依然显示路径错误
报错内容如下:
Error: Vue3 项目暂不支持当前小程序
at Object.getMPRuntimePath (D:\Programme\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-cli-shared\lib\platform.js:118:15)
at Object.<anonymous> (D:\Programme\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\generate-component.js:24:80)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\Programme\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\index-new.js:17:27)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at createUniMPPlugin (D:\Programme\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\mp\index.js:26:30)
进程已结束,退出代码1
我的启动配置:
启动配置调整为“发布”也会报错,请问是这个插件目前不支持 vue3 吗?还是我的配置有问题?
当uniapp项目作为一个子模块时,目前没法识别和运行,希望能有一个指定根目录的设置,谢谢
希望可以将每次保存就弹起开发工具的动作稍微修改一下 ,可能目前插件的运行逻辑是没保存一次编译之后会有一个执行打开的动作,其实可以取消掉的,编译的文件 小程序开发工具会自动识别的
Uniapp-Tool 插件版本: 1.0.5
IntelliJ Idea 版本: 2023.1.3 - Build #IU-231.9161.38, built on June 20, 2023
在项目根目录下定义的路径别名:
// 引入path模块
const path = require("path");
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
configureWebpack: {
resolve: {
"@": resolve("src"),
"@libs": resolve("src/libs")
"@p_c": resolve("src/pages/components")
}
}
}
项目文件的目录结构如下
├── src
│ ├── libs
│ │ └── utils.js
│ └── pages
│ └── components
│ └── my-component.vue
└── vue.config.js
在实际使用过程中,发现使用路径别名引入的组件或者库没办法点击跳转到对应文件:
<script>
// @libs 的路径别名,无法识别,改成 "@/libs/utils" 才能识别
import {rpx2px} from "@libs/utils"
// @p_c 的路径别名无法识别,改成 "@/p_c/my-component.vue" 才能识别
import MyComponent from "@p_c/my-component.vue"
<script/>
但实际上,如果不安装此 Uniapp-Tool
插件,intellij idea 默认引入组件的时候,都是 "@lib/xxx", "@p_c/yyy" 的形式,而不是 "@/libs", "@/p_c" 的形式。这样就会导致,安装本插件后,很多旧页面的组件等都没办法点击跳转了。
麻烦看下这个问题该如何解决。
首先感谢作者让我可以抛弃HX!
运行到微信小程序无法进行热更新吗?
后续能否支持路由页面跳转?
Mac电脑下,onShow等等的生命周期函数不会提示;希望在这个插件辨别当前项目是uniapp项目的时候,,使用快捷键键入:.test + tab按键默认生成的是<view class="text"></view>
标签,而不是<div class="text"></div>
标签
我在 HBuilderX 中安装了 uni-popup
插件,插件确实识别出来我安装了这个插件,也能进行自动补全,但是在微信小程序中预览时却报错说找不到组件。
报错内容如下:
Component is not found in path "uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog" (using by "pages/user/optional")(env: Windows,mp,1.06.2303220; lib: 2.31.1)
Component is not found in path "uni_modules/uni-popup/components/uni-popup/uni-popup" (using by "pages/user/optional")(env: Windows,mp,1.06.2303220; lib: 2.31.1)
我的 vue 内容如下(删除了无关内容):
<template>
<uni-popup type="dialog">
<uni-popup-dialog type="warn" cancelText="关闭" confirmText="同意" title="通知" content="欢迎使用 uni-popup!"
@close="console.log('c')" @confirm="console.log('co')"/>
</uni-popup>
</template>
我检查了一下我的目录,报错中提到的文件目录确实是存在的,不知道这是哪里除了问题。
作者大大,多久可以实现ios 安卓真机运行呀
不好意思又来提issue了
我发现在 windows 上, v1.0.6 和 v1.0.5 有一些差别。
比如这段代码:
uni.chooseImage()
点击 chooseImage
进行跳转的时候,期望看到这个 uniapp 的 API 的文档。
在 v1.0.5 上,会跳转进 ${project}/node_modules/@dcloudio/types/uni-app/uni.d.ts
文件中,从而能看到这个API的相关文档:
此时,此API的参数 UniNamespace.ChooseImageOptions
能点击跳转查看相关文档。
但在 v1.0.6 上点击跳转进入的是插件自带的 instrumented-uniapp-1.0.6.jar
中的文件:
C:\Users\xxx\AppData\Roaming\JetBrains\IntelliJIdea2023.1\plugins\Uniapp\lib\instrumented-uniapp-1.0.6.jar!\library\uniapp\uni-app\uni-patches\promisify\uni.d.ts
同时,此API的参数 UniNamespace.ChooseImageOptions
也没办法点击跳转。
这个问题的出现,会不会跟v1.0.6解决的相对路径的识别有关系?
最新 HBuilderX 中有提示:
应用版本号,必须是整数,取值范围 1-2147483647
我有多个node版本的uniapp项目,我使用nvm管理Node版本,但是插件只默认使用同一个版本,并且无法修改
😊😊😊
希望增加UniCloud支持, 比如:
JQL查询面板
Schema编辑/预览
uniCloud代码补全
有个免费的可太棒了,要是兼容mac就更棒了,star已奉上
电脑本身32G i7 8750H
idea 放在固态硬盘里
启用插件之后打字的时候按一个字母得等一秒..才能出来.....巨难受.. 有没有办法呢..
是我哪里操作不对么
麻烦大佬了!
装了插件之后,无论时布局还是js代码都有明显的输入延迟 , 是我配置问题还是电脑性能跟不上了
现在使用插件调试插件的时候,每一次修改页面内容后微信的开发工具都会回到启动页面,还需要手动点回到当前正在编辑的页面。
不知道插件能否支持修改后还回到当前正在修改的页面。
我查看了微信的文档,微信的开发工具好像不支持跳转页面?
但是我觉得这个功能还是有办法实现的,通过临时修改 app.json
中的首页可以让微信回到当前页面。
不过插件应该是直接调用的 npm 插件,不知道能不能做到修改 app.json
。
之前版本是可以的,又干掉了?
什么时候更新一个版本
希望可以支持rpx单位,防止我每次格式化的时候idea会自动加一个空格
请问一下这是为什么呢,是因为新版本webstorm的问题吗?
目前的开发环境vue3+ts+vite+uniapp。每次新建一个新的页面,就会报 Vue cannot find module : uni,但是能用,只是爆红而已。重启一下webstorm即可
~/@ 无法识别为项目路径
我的是M1 PRO,不知道是不是MAC的原因?
Cannot start process, the working directory '/Applications/HBuilderX.app/plugins/uniapp-cli' does not exist
在idea中项目根目录下,有子文件夹为uniapp,怎么配置及编译uniapp文件夹中的uniapp工程
兄弟能公布源码嘛,大家一起创造修改啊,你这个发布也没用个源码就个图片
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.