File tree Expand file tree Collapse file tree 5 files changed +22
-4
lines changed
schema-generator/views/editor Expand file tree Collapse file tree 5 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 2222 "packages:list" : " lerna ls -l" ,
2323 "packages:changed" : " lerna changed" ,
2424 "packages:build" : " lerna run --stream --sort build" ,
25- "publish " : " yarn run lib:build && lerna publish" ,
25+ "publish1 " : " yarn run lib:build && lerna publish" ,
2626 "autoPublish" : " lerna publish --conventional-commits --yes" ,
2727 "autoVersion" : " lerna version --conventional-commits --yes"
2828 },
Original file line number Diff line number Diff line change 280280 },
281281 handleCancel () {},
282282 handlePreview () {
283- const formatStr = jsonCode => encodeURIComponent ( JSON .stringify (JSON .parse (jsonCode) ));
283+ const formatStr = jsonCode => JSON .stringify (JSON .parse (jsonCode));
284284
285285 const genRoute = this .$router .resolve ({
286286 query: {
Original file line number Diff line number Diff line change 207207 },
208208 handlePreview () {
209209 const props = this .getExportCode ();
210- componentWithDialog ({
210+ const instance = componentWithDialog ({
211211 VueComponent: VueJsonFrom,
212212 dialogProps: {
213213 title: ' 预览展示' ,
216216 componentProps: {
217217 value: {},
218218 ... props
219+ },
220+ componentListeners: {
221+ toDemo : () => {
222+ this .handleToDemo ();
223+ },
224+ ' on-cancel ' : () => {
225+ instance .close ();
226+ },
227+ ' on-submit ' : (data ) => {
228+ // eslint-disable-next-line no-alert
229+ alert (JSON .stringify (data, null , 2 ));
230+ }
219231 }
220232 });
221233 },
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ export default {
3939 schemaOptions : {
4040 type : 'object' ,
4141 properties : {
42+ uniqueItems : {
43+ type : 'boolean' ,
44+ 'ui:widget' : 'hidden' ,
45+ default : true
46+ } ,
4247 items : {
4348 type : 'object' ,
4449 properties : {
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ function genBaseVal(type = 'string') {
4545 } ,
4646 uniqueItems : {
4747 type : 'boolean' ,
48- title : '不允许重复项' ,
48+ title : '不重复' ,
49+ description : '多选框强制默认为 true,且配置无效' ,
4950 'ui:widget' : 'el-switch' ,
5051 default : false
5152 }
You can’t perform that action at this time.
0 commit comments