GithubHelp home page GithubHelp logo

uniapp-plugin's People

Contributors

lqc520 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

uniapp-plugin's Issues

希望可以支持编译时压缩代码

目前的运行模式下,编译微信小程序不会自动压缩代码,只能在manifest.json中设置,如下:
image
是否可以在不改变配置文件的前提下,进行代码压缩?

尝试运行项目时报错

报错内容如下:

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

我的启动配置:

image

启动配置调整为“发布”也会报错,请问是这个插件目前不支持 vue3 吗?还是我的配置有问题?

关于路径识别问题

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" 的形式。这样就会导致,安装本插件后,很多旧页面的组件等都没办法点击跳转了。

麻烦看下这个问题该如何解决。

无法选择Node版本

我有多个node版本的uniapp项目,我使用nvm管理Node版本,但是插件只默认使用同一个版本,并且无法修改

webstorm2023.1.4运行失败

pc操作系统:windows
HBuilderX类型:最新正式版
项目类型:vue2/uniapp

报错原因:
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 104 column 2 path

Snipaste_2023-07-21_14-30-08

Snipaste_2023-07-21_14-37-31

不支持mac

有个免费的可太棒了,要是兼容mac就更棒了,star已奉上

scss换行bug

有个Bug,安装插件后,style使用scss,敲击回车换行,光标自动排在了最前面,这个不正常。

关于源码

兄弟能公布源码嘛,大家一起创造修改啊,你这个发布也没用个源码就个图片

能否支持uni-ui的智能提示

就是官网的这个,uni-ui
原生的有了,但是还是更希望支持这个uni-ui呢,毕竟是官方的UI工具。每次写的时候都没有提示还有波浪号好难受。
image

rpx,upx单位格式化在css文件中失效,在vue文件中有效?

作者你好,最近在插件使用过程中发现一个问题,就是uniapp项目下面,我发现rpx和upx单位在css文件中的话使用格式化的时候还是会被加上空格,但是如果在vue文件中的话就没有这个问题。
我这边在多种情况下(删除缓存,删除.idea,重新创建项目等)测试都发现有上面的问题。
这个是否可以可以劳烦修复一下?

输入卡顿

装了插件之后,无论时布局还是js代码都有明显的输入延迟 , 是我配置问题还是电脑性能跟不上了

idea 下码字特别卡 只好先关了

设备信息:

  • CPU:i7 6700
  • MEM:32
  • OS:Windows10

软件信息:

  • 版本: 2023.1.2U
  • JVM设置:-Xms6G,-Xmx6G,-Xmn2G
  • 安装的其他第三方前端插件:IntelliVue

项目信息:

  • 初始化工具:cli
  • Vue版本:3.3.4
  • Vite版本:4.3.9

组件使用HBuilderX单个导入(非整个uni-ui全部组件),没有组件时不卡,六七个组件时就开始卡了,如下。

image

每保存一次 就会被弹起小程序开发界面

希望可以将每次保存就弹起开发工具的动作稍微修改一下 ,可能目前插件的运行逻辑是没保存一次编译之后会有一个执行打开的动作,其实可以取消掉的,编译的文件 小程序开发工具会自动识别的

关于 uniapp API 文档跳转位置的问题

不好意思又来提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的相关文档:
20230713170923
此时,此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
20230713171426

同时,此API的参数 UniNamespace.ChooseImageOptions 也没办法点击跳转。

这个问题的出现,会不会跟v1.0.6解决的相对路径的识别有关系?

有关 HBuilderX 插件的问题

我在 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>

我检查了一下我的目录,报错中提到的文件目录确实是存在的,不知道这是哪里除了问题。

能否支持自定义启动页面

现在使用插件调试插件的时候,每一次修改页面内容后微信的开发工具都会回到启动页面,还需要手动点回到当前正在编辑的页面。
不知道插件能否支持修改后还回到当前正在修改的页面。
我查看了微信的文档,微信的开发工具好像不支持跳转页面?
但是我觉得这个功能还是有办法实现的,通过临时修改 app.json 中的首页可以让微信回到当前页面。
不过插件应该是直接调用的 npm 插件,不知道能不能做到修改 app.json

webstorm2023.1.4插件报错

pc操作系统:windows
HBuilderX类型:最新正式版
项目类型:vue2/uniapp

新建的项目,编辑器打开一直报错

Snipaste_2023-07-21_17-49-05

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.