diff --git a/docs/.vuepress/utils/vueJson.json b/docs/.vuepress/utils/vueJson.json
index b3249dab8976885e7e7a7178b2f5616226f5c348..b403eb9f1eda20fa7e9816efcb6d7f877689cac8 100644
--- a/docs/.vuepress/utils/vueJson.json
+++ b/docs/.vuepress/utils/vueJson.json
@@ -160,7 +160,7 @@
"E_App": {
"example": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/App.uvue",
- "code": "```vue\n\r\n\r\n\n```",
+ "code": "```vue\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#"
}
},
@@ -451,7 +451,7 @@
},
"props_array-literal-options": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/component-instance/props/array-literal-options.uvue",
- "code": "```vue\n\r\n \r\n array literal\r\n \r\n str: \r\n {{ str }}\r\n \r\n \r\n num: \r\n {{ num }}\r\n \r\n \r\n bool: \r\n {{ bool }}\r\n \r\n \r\n obj: \r\n {{ JSON.stringify(obj) }}\r\n \r\n \r\n arr: \r\n {{ JSON.stringify(arr) }}\r\n \r\n \r\n\r\n\r\n\r\n\n```",
+ "code": "```vue\n\r\n \r\n array literal\r\n \r\n str: \r\n {{ str }}\r\n \r\n \r\n num: \r\n {{ num }}\r\n \r\n \r\n bool: \r\n {{ bool }}\r\n \r\n \r\n obj: \r\n {{ JSON.stringify(obj) }}\r\n \r\n \r\n arr: \r\n {{ JSON.stringify(arr) }}\r\n \r\n \r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/component-instance/props/array-literal-options"
},
"props_object-type-composition": {
@@ -521,7 +521,7 @@
},
"root_child-composition": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/component-instance/root/child-composition.uvue",
- "code": "```vue\n\r\n \r\n root str in parent component: \r\n {{ rootStr }}\r\n \r\n\r\n\r\n\r\n\n```",
+ "code": "```vue\n\r\n \r\n root str in parent component: \r\n {{ rootStr }}\r\n \r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/component-instance/root/child-composition"
},
"root_child-options": {
@@ -531,7 +531,7 @@
},
"root_root-composition": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/component-instance/root/root-composition.uvue",
- "code": "```vue\n\r\n\r\n \r\n \r\n root str in parent component: \r\n {{ rootStr }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
+ "code": "```vue\n\r\n \r\n \r\n root str in parent component: \r\n {{ rootStr }}\r\n \r\n \r\n \r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/component-instance/root/root-composition"
},
"root_root-options": {
@@ -606,12 +606,12 @@
},
"mixins_components_Comp1": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/component-instance/mixins/components/Comp1.uvue",
- "code": "```vue\n\r\n \r\n Comp1: inheritAttrs: false\r\n rootElementTitle should be null\r\n rootElementTitle: {{ rootElementTitle }}\n \r\n trigger emitter:\r\n \r\n \r\n \r\n \r\n \r\n \r\n \n \r\n \r\n\r\n\r\n\r\n\n```",
+ "code": "```vue\n\r\n \r\n Comp1: inheritAttrs: false\r\n rootElementTitle should be null\r\n rootElementTitle: {{ rootElementTitle }}\r\n \r\n trigger emitter:\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/component-instance/mixins/components/Comp1"
},
"mixins_components_Comp2": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/component-instance/mixins/components/Comp2.uvue",
- "code": "```vue\n\r\n \r\n Comp2: inheritAttrs: true\r\n rootElementTitle should not be null\r\n rootElementTitle: {{ rootElementTitle }}\r\n {{ namesakeMixinProp }}\r\n {{ namesakeMixinDataMsg }}\r\n {{ namesakeMixinComputed }}\r\n {{ mixinWatchMsg }}\r\n {{ namesakeMixinMethod() }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
+ "code": "```vue\n\r\n \r\n Comp2: inheritAttrs: true\r\n rootElementTitle should not be null\r\n rootElementTitle: {{ rootElementTitle }}\r\n {{ namesakeMixinProp }}\r\n {{ namesakeMixinDataMsg }}\r\n {{ namesakeMixinComputed }}\r\n {{ mixinWatchMsg }}\r\n {{ namesakeMixinMethod() }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/component-instance/mixins/components/Comp2"
},
"mixins_components_CompForComp": {
@@ -693,7 +693,7 @@
},
"v-bind_v-bind-options": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/directive/v-bind/v-bind-options.uvue",
- "code": "```vue\n\n \n \n \n \n\n \n \n bind object style fontSize:\n \n {{ dataInfo.fontSize }}\n \n \n \n bind arr style\n {{ dataInfo.backgroundColor }}\n {{ dataInfo.border }}\n \n\n \n \n\n \n \n \n \n \n\n\n\n\n\n\n```",
+ "code": "```vue\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n bind object style fontSize:\r\n \r\n {{ dataInfo.fontSize }}\r\n \r\n \r\n \r\n bind arr style\r\n {{ dataInfo.backgroundColor }}\r\n {{ dataInfo.border }}\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/directive/v-bind/v-bind-options"
},
"v-for_v-for-composition": {
@@ -911,16 +911,6 @@
}
},
"E_built-in": {
- "component_component_component-composition": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/component/component-composition.uvue",
- "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/component/component-composition"
- },
- "component_component_component-options": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/component/component-options.uvue",
- "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/component/component-options"
- },
"component_keep-alive_keep-alive-composition": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/keep-alive/keep-alive-composition.uvue",
"code": "```vue\n\r\n \r\n \r\n \r\n \r\n include=\"Counter,Message\"\r\n \r\n \r\n \r\n \r\n :include=\"/Counter|Message/\"\r\n \r\n \r\n \r\n \r\n :include=\"['Counter', 'Message']\"\r\n \r\n \r\n \r\n \r\n exclude=\"ShouldExclude\"\r\n \r\n \r\n \r\n \r\n :max=\"2\"\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
@@ -931,26 +921,6 @@
"code": "```vue\n\r\n \r\n \r\n \r\n \r\n include \"Counter,Message\"\r\n \r\n \r\n \r\n \r\n include \"/Counter|Message/\"\r\n \r\n \r\n \r\n \r\n include \"['Counter', 'Message']\"\r\n \r\n \r\n \r\n \r\n exclude \"ShouldExclude\"\r\n \r\n \r\n \r\n \r\n max 2\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/keep-alive/keep-alive-options"
},
- "component_slots_child-composition": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/slots/child-composition.uvue",
- "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/slots/child-composition"
- },
- "component_slots_child-options": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/slots/child-options.uvue",
- "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/slots/child-options"
- },
- "component_slots_slots-composition": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/slots/slots-composition.uvue",
- "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ msg }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/slots/slots-composition"
- },
- "component_slots_slots-options": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/slots/slots-options.uvue",
- "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ msg }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/slots/slots-options"
- },
"component_teleport_teleport-composition": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/teleport/teleport-composition.uvue",
"code": "```vue\n\r\n \r\n \r\n \r\n \r\n .container 区域\r\n \r\n content1 区域\r\n \r\n \r\n content2 区域\r\n \r\n \r\n \r\n 内容在.container中,使用teleport在#content1元素中展示\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
@@ -961,25 +931,55 @@
"code": "```vue\n\r\n \r\n \r\n \r\n \r\n .container 区域\r\n \r\n content1 区域\r\n \r\n \r\n content2 区域\r\n \r\n \r\n \r\n 内容在.container中,使用teleport在#content1元素中展示\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/teleport/teleport-options"
},
- "component_template_template-composition": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/template/template-composition.uvue",
- "code": "```vue\n\r\n \r\n \r\n {{ title }}\r\n \r\n {{ isShow ? '点击隐藏' : '点击显示' }}\r\n \r\n {{ index + 1 }}.{{ item.name }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/template/template-composition"
+ "special-elements_component_component-composition": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/component/component-composition.uvue",
+ "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/component/component-composition"
+ },
+ "special-elements_component_component-options": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/component/component-options.uvue",
+ "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/component/component-options"
+ },
+ "special-elements_slots_child-composition": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/slots/child-composition.uvue",
+ "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/slots/child-composition"
+ },
+ "special-elements_slots_child-options": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/slots/child-options.uvue",
+ "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/slots/child-options"
+ },
+ "special-elements_slots_slots-composition": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/slots/slots-composition.uvue",
+ "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ msg }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/slots/slots-composition"
+ },
+ "special-elements_slots_slots-options": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/slots/slots-options.uvue",
+ "code": "```vue\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ msg }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/slots/slots-options"
+ },
+ "special-elements_template_template-composition": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/template/template-composition.uvue",
+ "code": "```vue\n\r\n \r\n \r\n {{ title }}\r\n \r\n {{ dataInfo.isShow ? '点击隐藏' : '点击显示' }}\r\n \r\n {{ index + 1 }}.{{ item.name }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/template/template-composition"
},
- "component_template_template-map-style-composition": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/template/template-map-style-composition.uvue",
+ "special-elements_template_template-map-style-composition": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/template/template-map-style-composition.uvue",
"code": "```vue\n\r\n \r\n \r\n width:200px;\r\n padding:10px;\r\n border-radius:8px;\r\n border:1px solid #ccc;\r\n background-color: red;\r\n this text color: #fff;\r\n \r\n \r\n height:200px;\r\n margin:10px;\r\n padding:10px;\r\n border-radius:8px;\r\n border:1px solid #ccc;\r\n border-color:red;\r\n background-color: green;\r\n this text color: blue;\r\n \r\n \r\n padding:10px;\r\n background-color: blue;\r\n this text color: red;\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/template/template-map-style-composition"
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/template/template-map-style-composition"
},
- "component_template_template-map-style-options": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/template/template-map-style-options.uvue",
+ "special-elements_template_template-map-style-options": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/template/template-map-style-options.uvue",
"code": "```vue\n\r\n \r\n \r\n width:200px;\r\n padding:10px;\r\n border-radius:8px;\r\n border:1px solid #ccc;\r\n background-color: red;\r\n this text color: #fff;\r\n \r\n \r\n height:200px;\r\n margin:10px;\r\n padding:10px;\r\n border-radius:8px;\r\n border:1px solid #ccc;\r\n border-color:red;\r\n background-color: green;\r\n this text color: blue;\r\n \r\n \r\n padding:10px;\r\n background-color: blue;\r\n this text color: red;\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/template/template-map-style-options"
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/template/template-map-style-options"
},
- "component_template_template-options": {
- "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/component/template/template-options.uvue",
- "code": "```vue\n\r\n \r\n \r\n {{ title }}\r\n \r\n {{ isShow ? '点击隐藏' : '点击显示' }}\r\n \r\n {{ index + 1 }}.{{ item.name }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\n```",
- "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/component/template/template-options"
+ "special-elements_template_template-options": {
+ "gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/built-in/special-elements/template/template-options.uvue",
+ "code": "```vue\n\r\n \r\n \r\n {{ title }}\r\n \r\n {{ dataInfo.isShow ? '点击隐藏' : '点击显示' }}\r\n \r\n {{ index + 1 }}.{{ item.name }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\n```",
+ "webUrl": "https://hellouvue.dcloud.net.cn/#/pages/built-in/special-elements/template/template-options"
}
},
"E_reactivity": {
@@ -1115,7 +1115,7 @@
},
"utilities_to-value_to-value": {
"gitUrl": "https://gitcode.net/dcloud/hello-uvue/-/tree/alpha/pages/reactivity/utilities/to-value/to-value.uvue",
- "code": "```vue\n\r\n \r\n \r\n ref count:\r\n {{ refCount }}\r\n \r\n \r\n isRef ref count:\r\n {{ isRefRefCount }}\r\n \r\n \r\n count:\r\n {{ count }}\r\n \r\n \r\n isRef count:\r\n {{ isRefCount }}\r\n \r\n \r\n obj.num:\r\n {{ obj.num }}\r\n \r\n \r\n toValue(() => obj.num):\r\n {{ toValueObjNum }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
+ "code": "```vue\n\r\n \r\n \r\n ref count:\r\n {{ refCount }}\r\n \r\n \r\n isRef ref count:\r\n {{ isRefRefCount }}\r\n \r\n \r\n count:\r\n {{ count }}\r\n \r\n \r\n isRef count:\r\n {{ isRefCount }}\r\n \r\n \r\n obj.num:\r\n {{ obj.num }}\r\n \r\n \r\n toValue(() => obj.num):\r\n {{ toValueObjNum }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\n```",
"webUrl": "https://hellouvue.dcloud.net.cn/#/pages/reactivity/utilities/to-value/to-value"
},
"utilities_un-ref_un-ref": {
diff --git a/docs/vue/component.md b/docs/vue/component.md
index 3dcc0f0d30fbe9fd5180d3ef8553cf5fce079ffe..2290b7f96002b2de4d434350a9ecdd1457efa9b9 100644
--- a/docs/vue/component.md
+++ b/docs/vue/component.md
@@ -463,17 +463,17 @@ Uni`组件名(驼峰)`Element
## 作用域插槽的类型 @scoped-slot-type
-示例 [详情]()
+示例 [详情]()
作用域插槽需在组件中指定插槽数据类型
-::: preview
+::: preview
> 选项式 API
-
+
> 组合式 API
-
+
:::
diff --git a/docs/vue/data-bind.md b/docs/vue/data-bind.md
index 0959081e7c5a28c3f968c5ab36aef86c70d71f08..2ffd027acc23bf5d1720a3203539b4f502d8ba84 100644
--- a/docs/vue/data-bind.md
+++ b/docs/vue/data-bind.md
@@ -70,15 +70,15 @@
- `v-if`、`v-else-if` 或 `v-else`
- `v-for`
-示例 [详情]()
+示例 [详情]()
-::: preview
+::: preview
> 选项式 API
-
+
> 组合式 API
-
+
:::
### 在样式里绑定 @v-bind-css-data
diff --git a/docs/vue/options-api.md b/docs/vue/options-api.md
index dec4177b5899f735d5a434feebc536466ddd666f..8834a979add624d92e4cbd96b94c7282ebb8153c 100644
--- a/docs/vue/options-api.md
+++ b/docs/vue/options-api.md
@@ -86,10 +86,10 @@
用于声明组件的字符串模板。
-示例 [详情]()
+示例 [详情]()
-::: preview
-
+::: preview
+
:::
#### render