Comments (3)
我在新发布的 2.11.0
里,把这个 api 加进去了,使用方法见:
https://weapp-tw.icebreaker.top/docs/quick-start/frameworks/api
from weapp-tailwindcss.
嗯,可以直接暴露出相关的js api,目前的构想是,我暴露出一个 createContext 方法,接受插件的参数:
const ctx = createContext(options)
// 接收参数都是字符串 code
ctx.handleWxml(wxmlCode)
ctx.handleJs(jsCode)
ctx.handleWxss(wxssCode)
你看这种方式能满足你这个需求嘛?
from weapp-tailwindcss.
满足,想要的就是这个
from weapp-tailwindcss.
Related Issues (20)
- 谁在使用 weapp-tailwindcss ? HOT 12
- @layer中自定义的类偶尔会失效 HOT 9
- 使用 daisyui 在小程序里面 wxss 编译错误 HOT 2
- 和腾讯的TDesign组件库一起使用时报错 HOT 2
- 类名转换错误 HOT 1
- [ROADMAP] 2024年, weapp-tailwindcss 发展规划 HOT 3
- bg-gradient-to-r 这个属性,渐变色无效 HOT 6
- 使用大括号、除号时小程序打包错误 HOT 2
- 3.1.1版本在taro下不能正常进行JIT编译,会将text-[16px]编译成 text -16xp。而使用[email protected] 却一切正常 HOT 6
- npx weapp-tw patch 报错 HOT 2
- v3.1.1如何在uni-app小程序环境将tw preflight中的html转换为page?v2.x都是支持的,如图 HOT 1
- taro qq小程序可以使用吗? 按照文档后小程序直接无法启动了 HOT 1
- :hover 丢失 HOT 2
- [Bug]: 微信小程序纯原生使用,每次保存都会将dist重新打包进dist HOT 3
- [Bug]: webpack4 vue3 taro3.5.7,打包样式报错 HOT 1
- [feat]: 建议出个npx插件,一键配置,一条龙服务
- [Bug]: 原生开发gulp打包中,修改wxml的class无法更新全局的app.wxss HOT 2
- [Bug]: 静态class中使用带有/符号的类名时,无法与动态class同时使用 HOT 12
- [Bug]: 使用 jsAstTool 为 'ast-grep' 时,会把 \u 开头的 unicode 转义为真实字符,在遇到终止符和换行时导致错乱,babel 没有这样的问题
- [Bug]: 使用 HbuilderX 进行编译的时候,显示找不到 tailwindcss 导致起不来报错,这是由于 HbuilderX 改变了 process.cwd 的位置导致的 HOT 1
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 weapp-tailwindcss.