taro-plugin-qd
v1.0.2
Published
Taro 插件 - 编译到千岛小程序
Maintainers
Readme
taro-plugin-qd
Taro 插件 —— 编译到千岛小程序平台。
千岛小程序与微信小程序结构一致,文件后缀映射如下:
| 微信小程序 | 千岛小程序 |
|-----------|-----------|
| .wxml | .qdml |
| .wxss | .qdss |
| .wxs | .qds |
| .json | .json |
| .js | .js |
模板指令使用 qd: 前缀(qd:if、qd:for、qd:key 等)。
安装
npm install taro-plugin-qd
# 或
pnpm add taro-plugin-qd配置
在 Taro 项目的 config/index.js 中注册插件:
const config = {
plugins: [
'taro-plugin-qd'
]
}编译
taro build --type qd
# 或开发模式
taro build --type qd --watch编译产物示例
dist/
├── app.js
├── app.json
├── app.qdss
├── base.qdml
├── utils.qds
└── pages/
└── index/
├── index.js
├── index.json
├── index.qdml
└── index.qdss兼容性
- Taro >= 4.0.0
- 支持 Vue 3 / React 框架
