Comments (11)
是的,这个可以在 vue 提供的那个插件中让它支持 wxml 语言的,vue-loader 中可以指定 <template lang="pug"></template>
就可以实现 pug 的自动补全,其实让它实现 wxml 也是一样的,只是可能需要去了解下它的 vscode 插件 https://github.com/vuejs/vetur 。
这个我是计划做的,但我当下计划是做其它一些事,你有兴趣也可以去研究下。
from minapp.
@netputer [email protected] 已经支持了在 vue 自动补全,你可以下载试用。
使用方法需要在 vue 模板的 template 中指定 lang="wxml",如
<template lang="wxml">
...
</template>
from minapp.
@netputer @AlexStacker minapp 的 vscode 已经支持 pug 自动补全了,并且 minapp 框架也支持 pug 语言
from minapp.
支持pug和pug的补全吗?特意来问的[手动微笑脸]
from minapp.
@AlexStacker 我目前没那个计划,只能期待 pr
from minapp.
怎么提供,很想试试😄
from minapp.
@AlexStacker 我新开了一个 issue,见 #34 。如果你真有意愿开发,我们可以详细交流,可以加我微信 qiu8310
from minapp.
我又要拉取大佬的代码学习了
from minapp.
<template lang="wxml"></template>
亲测可用,感谢作者~
看起来 wx
wxp
自动补全支持也有了,很棒 https://qiu8310.github.io/minapp/docs/doc-how-to-use-wxp-in-other-project.html
from minapp.
@netputer 我猜你应该使用了 wepy 或者 mpvue 框架,你可以再在 template 上加个参数,更精确的使用对应框架的自动补全,详情查看 https://github.com/qiu8310/minapp/tree/master/packages/minapp-vscode#vue
from minapp.
这个很贴心,我用的是 min,靠 <template lang="wxml"></template>
已经可以补全了
from minapp.
Related Issues (20)
- 原生开发过程中如何使用wxp? HOT 3
- wx/wxp缺少拓展接口支持 HOT 2
- Interface 'BaseComponent<D, A>' cannot simultaneously extend types 'Component' and 'Options' HOT 1
- 接口“BaseComponent<D, A>”不能同时扩展类型“Component”和“Options”。“Component”和“Options”类型的命名属性“properties”不完全相同
- Promise<any>不存在finally属性 HOT 3
- <feature request> Page增加watch功能
- example 跑不起来 HOT 2
- 通过配置或者约定配置获取自定义组件描述配置 HOT 5
- Featuring minapp in Docusaurus HOT 1
- 初始化项目时,Style Lauguage选择less,会报错 HOT 2
- UglifyJsPlugin 造成WXS报错 HOT 1
- BaseApp获取不到新增page的URL HOT 1
- 可以增加不输入"<"都触发标签名的补全吗?
- 请教一些关于 webpack 问题~ HOT 2
- 引入vant-weapp 或其他外部组件
- 请教一下:导航栏 中文显示乱码的问题 HOT 2
- 已有项目如何安装
- 如何在mina里接入alt数据监控
- 为什么.vsvode/settings.json中的忽略了packages HOT 2
- 本地图片资源的问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minapp.