nine-9 1.11.2 → 1.11.3
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 +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
一个轻量、高性能、类型安全的 Vanilla DOM 响应式 UI 框架。
|
|
4
4
|
|
|
5
5
|
融合了 Vue 模板指令和 React Hooks 的优点,取两者之长。
|
|
6
|
-
|
|
6
|
+
同时运行及其轻量,甚至打包后🉑以用于 **UserScript**。
|
|
7
7
|
|
|
8
8
|
## 特性
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- **轻量级** - 无依赖,打包后体积小巧
|
|
14
14
|
- **链式 API** - 流畅的 DOM 操作
|
|
15
15
|
- **Vue 风格指令** - 熟悉的 v-if、v-for 模式
|
|
16
|
-
- **JSX 风格表达式** -
|
|
16
|
+
- **JSX 风格表达式** - 响应式表达式🉑以放在模板任意位置
|
|
17
17
|
- **数据同步系统** - 使用完全基于表达式的语法实现数据实时响应
|
|
18
18
|
|
|
19
19
|
## 安装
|
|
@@ -48,8 +48,8 @@ export default createComponent({
|
|
|
48
48
|
transform: typed<string[]>(), //将输入的参数进行标准化,typed()函数不进行任何处理,只是类型投射
|
|
49
49
|
required: true, //参数是否必填
|
|
50
50
|
shadow: ["OptionA", "OptionB", "OptionC"], //默认值
|
|
51
|
-
downloadable: true,
|
|
52
|
-
uploadable: false
|
|
51
|
+
downloadable: true, //是否🉑下载,即上游组件向下游传递值
|
|
52
|
+
uploadable: false //是否🉑上传,即下游组件向上游传递值
|
|
53
53
|
},
|
|
54
54
|
value: {
|
|
55
55
|
transform: Number,
|
|
@@ -108,7 +108,7 @@ export default createComponent({
|
|
|
108
108
|
tree("div")
|
|
109
109
|
.class("flexdown")
|
|
110
110
|
.append(
|
|
111
|
-
$(sync(() =>
|
|
111
|
+
$(sync(() => //只要包装器返回的数据🉑以被渲染,就🉑以通过$函数进行引用
|
|
112
112
|
props.items.get().map((label, index) =>
|
|
113
113
|
tree("span")
|
|
114
114
|
.class("item")
|
|
@@ -143,9 +143,9 @@ export default createComponent({
|
|
|
143
143
|
|
|
144
144
|
欢迎提交Issue和Pull Request!
|
|
145
145
|
|
|
146
|
-
##
|
|
146
|
+
## 许🉑证
|
|
147
147
|
|
|
148
|
-
本项目采用 MIT
|
|
148
|
+
本项目采用 MIT 许🉑证 - 详见 [LICENSE](LICENSE) 文件
|
|
149
149
|
|
|
150
150
|
## 联系方式
|
|
151
151
|
|