Giter Club home page Giter Club logo

Comments (11)

qiu8310 avatar qiu8310 commented on May 24, 2024 1

是的,这个可以在 vue 提供的那个插件中让它支持 wxml 语言的,vue-loader 中可以指定 <template lang="pug"></template> 就可以实现 pug 的自动补全,其实让它实现 wxml 也是一样的,只是可能需要去了解下它的 vscode 插件 https://github.com/vuejs/vetur

这个我是计划做的,但我当下计划是做其它一些事,你有兴趣也可以去研究下。

from minapp.

qiu8310 avatar qiu8310 commented on May 24, 2024 1

@netputer [email protected] 已经支持了在 vue 自动补全,你可以下载试用。

使用方法需要在 vue 模板的 template 中指定 lang="wxml",如

<template lang="wxml">
...
</template>

from minapp.

qiu8310 avatar qiu8310 commented on May 24, 2024 1

@netputer @AlexStacker minapp 的 vscode 已经支持 pug 自动补全了,并且 minapp 框架也支持 pug 语言

from minapp.

AlexStacker avatar AlexStacker commented on May 24, 2024

支持pug和pug的补全吗?特意来问的[手动微笑脸]

from minapp.

qiu8310 avatar qiu8310 commented on May 24, 2024

@AlexStacker 我目前没那个计划,只能期待 pr

from minapp.

AlexStacker avatar AlexStacker commented on May 24, 2024

怎么提供,很想试试😄

from minapp.

qiu8310 avatar qiu8310 commented on May 24, 2024

@AlexStacker 我新开了一个 issue,见 #34 。如果你真有意愿开发,我们可以详细交流,可以加我微信 qiu8310

from minapp.

AlexStacker avatar AlexStacker commented on May 24, 2024

我又要拉取大佬的代码学习了

from minapp.

netputer avatar netputer commented on May 24, 2024

<template lang="wxml"></template> 亲测可用,感谢作者~

看起来 wx wxp 自动补全支持也有了,很棒 https://qiu8310.github.io/minapp/docs/doc-how-to-use-wxp-in-other-project.html

from minapp.

qiu8310 avatar qiu8310 commented on May 24, 2024

@netputer 我猜你应该使用了 wepy 或者 mpvue 框架,你可以再在 template 上加个参数,更精确的使用对应框架的自动补全,详情查看 https://github.com/qiu8310/minapp/tree/master/packages/minapp-vscode#vue

from minapp.

netputer avatar netputer commented on May 24, 2024

这个很贴心,我用的是 min,靠 <template lang="wxml"></template> 已经可以补全了

from minapp.

Related Issues (20)

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.