File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const value = ref()
6767</script>
6868```
6969
70- #### Without Bundler / CDN
70+ #### CDN
7171
7272``` html
7373<div id =" app" >
@@ -132,7 +132,7 @@ const value = ref()
132132</script>
133133```
134134
135- #### Without Bundler / CDN
135+ #### CDN
136136
137137``` html
138138<div id =" app" >
@@ -212,7 +212,7 @@ export default {
212212</script>
213213```
214214
215- #### Without Bundler / CDN
215+ #### CDN
216216
217217> It's quite messy this way due to ` vanilla-jsoneditor ` does not export UMD.
218218
@@ -267,9 +267,7 @@ Boolean properties of `svelte-jsoneditor` like `readOnly` will imply `true`:
267267
268268- ✔️ ` <JsonEditorVue :readOnly="true" /> `
269269
270- - ❌ ` use(JsonEditorVue, { readOnly: '' }) `
271-
272- - ✔️ ` use(JsonEditorVue, { readOnly: true }) `
270+ > kebab-case is required for tag & prop name when using via CDN
273271
274272<br >
275273
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const value = ref()
6565</script>
6666```
6767
68- #### 不使用打包工具 / CDN
68+ #### CDN
6969
7070``` html
7171<div id =" app" >
@@ -130,7 +130,7 @@ const value = ref()
130130</script>
131131```
132132
133- #### 不使用打包工具 / CDN
133+ #### CDN
134134
135135``` html
136136<div id =" app" >
@@ -210,7 +210,7 @@ export default {
210210</script>
211211```
212212
213- #### 不使用打包工具 / CDN
213+ #### CDN
214214
215215> 由于 ` vanilla-jsoneditor ` 没有提供 UMD 导出,这样用会有点绕。
216216
@@ -265,9 +265,7 @@ export default {
265265
266266- ✔️ ` <JsonEditorVue :readOnly="true" /> `
267267
268- - ❌ ` use(JsonEditorVue, { readOnly: '' }) `
269-
270- - ✔️ ` use(JsonEditorVue, { readOnly: true }) `
268+ > 通过 CDN 使用时,标签、prop 名称都必须使用短横线命名
271269
272270<br >
273271
You can’t perform that action at this time.
0 commit comments