Skip to content

Commit 0cf8295

Browse files
committed
docs: omitted
1 parent 7a8dabe commit 0cf8295

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/README.zh-CN.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h1>
66

77
<p align="center">
8-
Vue 2.6/2.7/3 & Nuxt 2/3 一体通用 JSON 编辑 & 预览 & 格式化 & 校验工具
8+
Vue 2.6/2.7/3 & Nuxt 2/3 一体通用 JSON 编辑 & 预览 & 格式化 & 校验工具
99
<br>
1010
<a href="../README.md">English</a> | 简体中文
1111
<br>
@@ -734,13 +734,13 @@ export default {
734734

735735
### Vite
736736

737-
开箱即用
737+
开箱即用
738738

739739
<br>
740740

741741
### Vue CLI 5 (webpack 5)
742742

743-
开箱即用
743+
开箱即用
744744

745745
<br>
746746

@@ -823,7 +823,7 @@ module.exports = {
823823

824824
### Vue CLI 2 & 1 (webpack 3)
825825

826-
Vue CLI 2 & 1 从 [vuejs-templates/webpack](https://github.com/vuejs-templates/webpack) 拉取模板
826+
Vue CLI 2 & 1 从 [vuejs-templates/webpack](https://github.com/vuejs-templates/webpack) 拉取模板
827827

828828
```shell
829829
npm i @babel/core@latest @babel/preset-env@latest babel-loader@latest -D
@@ -866,10 +866,12 @@ module.exports = {
866866
| mode /<br>v-model:mode (Vue 3) /<br>:mode.sync (Vue 2) | 编辑模式 | [Mode](#Mode) | `'tree'` |
867867
| ... | [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor/#properties) 的属性 | | |
868868

869+
> 通过 CDN 使用时,标签、属性名称都必须使用短横线命名
870+
869871
### svelte-jsoneditor 与 json-editor-vue 中绑定值的差异
870872

871-
- svelte-jsoneditor:一个包含 “stringified JSON” 或 “parsed JSON” 的对象,当作为 “stringified JSON” 传入时,会经过 `JSON.parse` 解析
872-
- json-editor-vue:JSON 本身,所见即所得
873+
- svelte-jsoneditor:一个包含 “stringified JSON” 或 “parsed JSON” 的对象,当作为 “stringified JSON” 传入时,会经过 `JSON.parse` 解析
874+
- json-editor-vue:JSON 本身,所见即所得
873875

874876
如果你更倾向于 svelte-jsoneditor 的行为:
875877

@@ -882,7 +884,7 @@ module.exports = {
882884
/>
883885
```
884886

885-
> 详情见 https://github.com/josdejong/svelte-jsoneditor/pull/166
887+
> 详情见 https://github.com/josdejong/svelte-jsoneditor/pull/166
886888
887889
### 布尔类型属性
888890

@@ -892,8 +894,6 @@ module.exports = {
892894

893895
- ✔️ `<JsonEditorVue :readOnly="true" />`
894896

895-
> 通过 CDN 使用时,标签、属性名称都必须使用短横线命名。
896-
897897
<br>
898898

899899
## Expose

src/Component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ export default defineComponent({
103103
)
104104
const initialAttrs = conclude(
105105
[
106+
initialBoolAttrs,
106107
attrs,
107108
globalAttrs,
108109
{
109110
// Both user input & setting value programmatically will trigger onChange
110111
onChange,
111112
onChangeMode,
112113
mode: initialMode,
113-
...initialBoolAttrs,
114114
...(initialValue !== undefined && {
115115
content: {
116116
json: initialValue,

0 commit comments

Comments
 (0)