Skip to content

Commit c2afc6d

Browse files
committed
refactor: 优化代码
Update README.md chore(eslint): 固定eslint preset版本 docs: 更新文档 docs: 更新文档 chore(demo): 更新表单演示页样式
1 parent 322b580 commit c2afc6d

File tree

12 files changed

+22
-21
lines changed

12 files changed

+22
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* [使用场景 - 可视化活动编辑器](https://form.lljj.me/vue-editor.html),点击这里查看 [如何启动活动编辑器](#如何启动活动编辑器)
88
* [不支持部分和更新计划](https://vue-json-schema-form.lljj.me/zh/guide/todo.html)
99

10-
![](https://7.luochongfei.top/vue-json-schema-form.gif?1)
10+
![](https://lljj-xxxx.oss-cn-hongkong.aliyuncs.com/vue-json-schema-form.gif)
1111

1212
## 如何启动活动编辑器
1313

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"vuedraggable": "2.23.2"
1717
},
1818
"devDependencies": {
19-
"@lljj/eslint-config": "^0.0.1",
19+
"@lljj/eslint-config": "0.0.1",
2020
"@vue/cli-plugin-babel": "^4.0.0",
2121
"@vue/cli-plugin-eslint": "^4.0.0",
2222
"@vue/cli-service": "^4.0.0",

packages/demo/src/index/views/Demo/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@
254254
padding: 10px 0;
255255
}
256256
.linkItem {
257-
&+.linkItem {
258-
margin-left: 8px;
259-
}
257+
margin-right: 8px;
258+
margin-top: 8px;
259+
margin-left: auto !important;
260260
}
261261
.middleBox {
262262
:global {

packages/docs/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
'ui:options': {
7676
placeholder: '请输入你的签名',
7777
type: 'textarea',
78-
row: 1
78+
rows: 1
7979
}
8080
}
8181
}
@@ -134,7 +134,7 @@ export default {
134134
'ui:options': {
135135
placeholder: '请输入你的签名',
136136
type: 'textarea',
137-
row: 1
137+
rows: 1
138138
}
139139
}
140140
}

packages/docs/docs/en/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default {
7474
'ui:options': {
7575
placeholder: 'Please enter your bio.',
7676
type: 'textarea',
77-
row: 1
77+
rows: 1
7878
}
7979
}
8080
}
@@ -131,7 +131,7 @@ export default {
131131
'ui:options': {
132132
placeholder: 'Please enter your bio.',
133133
type: 'textarea',
134-
row: 1
134+
rows: 1
135135
}
136136
}
137137
}

packages/docs/docs/en/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
'ui:options': {
7979
placeholder: 'Please enter your bio.',
8080
type: 'textarea',
81-
row: 1
81+
rows: 1
8282
}
8383
}
8484
}

packages/docs/docs/zh/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
'ui:options': {
7676
placeholder: '请输入你的签名',
7777
type: 'textarea',
78-
row: 1
78+
rows: 1
7979
}
8080
}
8181
}
@@ -134,7 +134,7 @@ export default {
134134
'ui:options': {
135135
placeholder: '请输入你的签名',
136136
type: 'textarea',
137-
row: 1
137+
rows: 1
138138
}
139139
}
140140
}

packages/docs/docs/zh/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default {
8181
'ui:options': {
8282
placeholder: '请输入你的签名',
8383
type: 'textarea',
84-
row: 1
84+
rows: 1
8585
}
8686
}
8787
}

packages/docs/docs/zh/guide/design.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ function render(h) {
9999
`error-schema``ui-schema` 配置数据结构都是和 `schema` 保持一致,如果和formData保持一致,
100100
会导致一些场景无法配置到,比如 `anyOf`,所以选择如此。
101101

102-
> 后续会考虑 `ui-schema``error-schema` 可以支持配置 `schema` 文件中来减少这份配置工作量。
103-
104102
## 设计思想
105103

106104
* 设计思想借鉴[react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form)

packages/docs/docs/zh/guide/todo.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
- [x] 数组渲染样式微调优化(控制条下间距等)
2525
- [x] 支持属性依赖 [属性依赖](https://json-schema.org/understanding-json-schema/reference/object.html#property-dependencies)
2626
- [x] 支持 ui:hidden 使用 mustache 表达式
27-
- [ ] review 是否存在无key的数组子节点
2827
- [ ] 支持 所有ui和err配置使用 mustache 表达式
2928
- [ ] 支持Schema依赖 [Schema依赖](https://json-schema.org/understanding-json-schema/reference/object.html#schema-dependencies)
3029
- [ ] 添加代码测试

0 commit comments

Comments
 (0)