taro-plugin-qd 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # taro-plugin-qd
2
+
3
+ Taro 插件 —— 编译到千岛小程序平台。
4
+
5
+ 千岛小程序与微信小程序结构一致,文件后缀映射如下:
6
+
7
+ | 微信小程序 | 千岛小程序 |
8
+ |-----------|-----------|
9
+ | `.wxml` | `.qdml` |
10
+ | `.wxss` | `.qdss` |
11
+ | `.wxs` | `.qds` |
12
+ | `.json` | `.json` |
13
+ | `.js` | `.js` |
14
+
15
+ 模板指令使用 `qd:` 前缀(`qd:if`、`qd:for`、`qd:key` 等)。
16
+
17
+ ## 安装
18
+
19
+ ```bash
20
+ npm install taro-plugin-qd
21
+ # 或
22
+ pnpm add taro-plugin-qd
23
+ ```
24
+
25
+ ## 配置
26
+
27
+ 在 Taro 项目的 `config/index.js` 中注册插件:
28
+
29
+ ```js
30
+ const config = {
31
+ plugins: [
32
+ 'taro-plugin-qd'
33
+ ]
34
+ }
35
+ ```
36
+
37
+ ## 编译
38
+
39
+ ```bash
40
+ taro build --type qd
41
+ # 或开发模式
42
+ taro build --type qd --watch
43
+ ```
44
+
45
+ ## 编译产物示例
46
+
47
+ ```
48
+ dist/
49
+ ├── app.js
50
+ ├── app.json
51
+ ├── app.qdss
52
+ ├── base.qdml
53
+ ├── utils.qds
54
+ └── pages/
55
+ └── index/
56
+ ├── index.js
57
+ ├── index.json
58
+ ├── index.qdml
59
+ └── index.qdss
60
+ ```
61
+
62
+ ## 兼容性
63
+
64
+ - Taro >= 4.0.0
65
+ - 支持 Vue 3 / React 框架