We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object组件,层级如果比较多时,margin-bottom会显得比较多余,看上去两个表单之前的距离会隔得很远
我使用的是element-plus,json如下:
[{"type":"input","field":"name","value":"测试学校","title":"学校名","props":{"type":"text","placeholder":"请输入学校名","showWordLimit":true,"maxlength":100},"validate":[{"message":"请输入学校名","required":true,"type":"string","trigger":"change"}]},{"type":"select","field":"type_id","value":14,"title":"学校类型","props":{"multiple":false,"placeholder":"请选择学校类型","filterable":true},"validate":[{"message":"请选择学校类型","required":true,"type":"number","trigger":"change"}],"options":[{"label":"综合类","value":1},{"label":"农林类","value":2},{"label":"体育类","value":3},{"label":"艺术类","value":4},{"label":"商学院","value":5},{"label":"理工类","value":6},{"label":"医药类","value":7},{"label":"语言类","value":8},{"label":"民族类","value":9},{"label":"航空类","value":10},{"label":"财经类","value":11},{"label":"师范类","value":12},{"label":"政法类","value":13},{"label":"军事类","value":14},{"label":"其他","value":15}]},{"type":"select","field":"category_id","value":1,"title":"学校分类","props":{"multiple":false,"placeholder":"请选择学校分类","filterable":true},"validate":[{"message":"请选择学校分类","required":true,"type":"number","trigger":"change"}],"options":[{"label":"铁路类院校","value":1},{"label":"师范类院校","value":2},{"label":"医卫类院校","value":3},{"label":"名校类院校","value":4},{"label":"财经类院校","value":5},{"label":"艺体类院校","value":6},{"label":"工程机械类","value":7},{"label":"信息技术类","value":8},{"label":"化工类","value":9},{"label":"涉农大类","value":10},{"label":"综合类","value":11},{"label":"民办类院校","value":12}]},{"type":"select","field":"plan_id","value":2,"title":"双高院校","props":{"multiple":false,"placeholder":"请选择双高院校","filterable":true,"clearable":true},"options":[{"label":"高水平学校建设单位(A档)","value":1},{"label":"高水平学校建设单位(B档)","value":2},{"label":"高水平学校建设单位(C档)","value":3},{"label":"高水平专业群建设单位(A档)","value":4},{"label":"高水平专业群建设单位(B档)","value":5},{"label":"高水平专业群建设单位(C档)","value":6}]},{"type":"select","field":"feature_id","value":"","title":"学校梯队","props":{"multiple":false,"placeholder":"请选择学校梯队","filterable":true,"clearable":true},"options":[{"value":1,"label":"第一梯队"},{"value":2,"label":"第二梯队"},{"value":3,"label":"第三梯队"},{"value":4,"label":"第四梯队"},{"value":5,"label":"第五梯队"},{"value":6,"label":"第六梯队"}]},{"type":"select","field":"levels","value":[],"title":"学校等级","props":{"multiple":true,"placeholder":"请选择学校等级","filterable":true,"clearable":true},"style":"width:300px","options":[{"value":6,"label":"其他"},{"value":5,"label":"现代学徒制试点学院"},{"value":4,"label":"省级重点"},{"value":3,"label":"省级示范"},{"value":2,"label":"国家级骨干"},{"value":1,"label":"国家级示范"}]},{"type":"object","field":"ex_info","value":[],"title":"学校交流信息","props":{"rule":[{"type":"object","field":"qr","value":[],"title":"","props":{"rule":[{"type":"radio","field":"type","value":"","title":"群类型","props":[],"validate":[{"message":"请选择群类型","required":true,"type":"string","trigger":"change"}],"control":[{"value":"qq","rule":[{"type":"input","field":"url","value":"","title":"二维码"}]},{"value":"wx","rule":[{"type":"input","field":"url","value":"","title":"二维码"}]}],"options":[{"value":"no","label":"无"},{"value":"qq","label":"qq群"},{"value":"wx","label":"微信群"}]}]}}]}},{"type":"object","field":"vo_info","value":[],"title":"学校志愿信息","props":{"rule":[{"type":"object","field":"qr","value":[],"title":"","props":{"rule":[{"type":"radio","field":"type","value":"","title":"群类型","props":[],"validate":[{"message":"请选择群类型","required":true,"type":"string","trigger":"change"}],"control":[{"value":"qq","rule":[{"type":"input","field":"url","value":"","title":"二维码"}]},{"value":"wx","rule":[{"type":"input","field":"url","value":"","title":"二维码"}]}],"options":[{"value":"no","label":"无"},{"value":"qq","label":"qq群"},{"value":"wx","label":"微信群"}]}]}}]}},{"type":"radio","field":"nature","value":"gong","title":"学校性质","props":[],"validate":[{"message":"请选择学校性质","required":true,"type":"string","trigger":"change"}],"options":[{"label":"公办","value":"gong"},{"label":"民办","value":"min"}]},{"type":"datePicker","field":"created_year","value":"2000","title":"建校时间(年)","props":{"type":"year","editable":false,"placeholder":"请选择建校时间(年)"},"validate":[{"message":"请选择建校时间(年)","required":true,"type":"date","trigger":"change"}]},{"type":"inputNumber","field":"floor_space","value":11,"title":"占地面积","props":{"placeholder":"请输入占地面积"},"validate":[{"message":"请输入占地面积","required":true,"type":"number","trigger":"change"}]},{"type":"input","field":"address","value":"111","title":"学校地址","props":{"type":"text","placeholder":"请输入学校地址","showWordLimit":true},"validate":[{"message":"请输入学校地址","required":true,"type":"string","trigger":"change"}]},{"type":"inputNumber","field":"click_num","value":108,"title":"点击数","props":{"placeholder":"请输入点击数","min":0}},{"type":"inputNumber","field":"sort","value":1,"title":"排序","info":"排序值越小排越前","props":{"placeholder":"请输入排序","min":0,"max":255},"validate":[{"message":"请输入排序","required":true,"type":"number","trigger":"change"}]}]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
object组件,层级如果比较多时,margin-bottom会显得比较多余,看上去两个表单之前的距离会隔得很远
我使用的是element-plus,json如下:
The text was updated successfully, but these errors were encountered: