Skip to content

Commit 31d0812

Browse files
committed
docs: boolean attrs
1 parent 76f0fb6 commit 31d0812

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ export default {
265265

266266
Boolean properties of `svelte-jsoneditor` like `readOnly` won't imply `true` because they are [attrs](https://vuejs.org/guide/components/attrs.html):
267267

268-
- ✔️ `<json-editor-vue :readOnly="true" />`
268+
- ✔️ `<JsonEditorVue :readOnly="true" />`
269269

270-
-`<json-editor-vue readOnly />`
270+
-`<JsonEditorVue readOnly />`
271271

272272
<br>
273273

docs/README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ export default {
263263

264264
`svelte-jsoneditor` 的布尔类型参数如 `readOnly` 不会隐式转换为 `true`,因为它们是 [attrs](https://vuejs.org/guide/components/attrs.html):
265265

266-
- ✔️ `<json-editor-vue :readOnly="true" />`
266+
- ✔️ `<JsonEditorVue :readOnly="true" />`
267267

268-
-`<json-editor-vue readOnly />`
268+
-`<JsonEditorVue readOnly />`
269269

270270
<br>
271271

0 commit comments

Comments
 (0)