diff --git a/src/components/scForm/index.vue b/src/components/scForm/index.vue
index 777d2030..20baef02 100644
--- a/src/components/scForm/index.vue
+++ b/src/components/scForm/index.vue
@@ -82,9 +82,17 @@
+
+
+
+
+
+
+
+
- 未匹配到相应组件 {{item.component}}
+ [{{item.component}}] Component not found
{{item.message}}
@@ -104,8 +112,9 @@
+
+
diff --git a/src/components/scForm/items/upload.vue b/src/components/scForm/items/upload.vue
deleted file mode 100644
index e405e999..00000000
--- a/src/components/scForm/items/upload.vue
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/scTableSelect/index.vue b/src/components/scTableSelect/index.vue
index 7c1690ca..be7cc9a5 100644
--- a/src/components/scTableSelect/index.vue
+++ b/src/components/scTableSelect/index.vue
@@ -62,12 +62,12 @@
},
watch: {
- modelValue(){
- this.defaultValue = this.modelValue
- this.autoCurrentLabel()
- },
- defaultValue(){
-
+ modelValue:{
+ handler(){
+ this.defaultValue = this.modelValue
+ this.autoCurrentLabel()
+ },
+ deep: true
}
},
mounted() {
diff --git a/src/style/theme/dark.scss b/src/style/theme/dark.scss
index 9cf6ef70..646b1ad0 100644
--- a/src/style/theme/dark.scss
+++ b/src/style/theme/dark.scss
@@ -52,6 +52,9 @@
--el-color-info: $--text-color;
border-color: $--border-color;
}
+ .el-input .el-input__count .el-input__count-inner {
+ background: none;
+ }
.el-radio {
--el-radio-font-color: #d0d0d0;
}
diff --git a/src/views/vab/form.vue b/src/views/vab/form.vue
index 0c0b270f..fe1a8f7f 100644
--- a/src/views/vab/form.vue
+++ b/src/views/vab/form.vue
@@ -186,11 +186,38 @@
]
}
},
+ {
+ label: "表格选择器",
+ name: "tableselect",
+ value: {},
+ component: "tableselect",
+ span: 24,
+ options: {
+ apiObj: '$API.demo.page',
+ column: [
+ {
+ label: "ID",
+ prop: "id",
+ width:150
+ },
+ {
+ label: "姓名",
+ prop: "user"
+ }
+ ],
+ props: {
+ label: 'user',
+ value: 'id',
+ keyword: "keyword"
+ }
+ }
+ },
{
label: "多选框",
name: "checkbox",
component: "checkbox",
span: 24,
+ message: "多选框配置加上 name 表示拥有嵌套关系。否则将值“平铺”在form对象",
options: {
items:[
{
@@ -313,7 +340,12 @@
value: 0,
component: "rate",
},
-
+ {
+ label: "富文本",
+ name: "text",
+ value: "",
+ component: "editor",
+ },
]
}
@@ -325,7 +357,12 @@
checkboxGroup: ["option1"],
select: ["1"],
select2: "1",
- cascader: ['resource','docs']
+ cascader: ['resource','docs'],
+ tableselect: {
+ user: "何敏",
+ id: "360000197302144442"
+ },
+ text: "Editor
\n\n\n\nName | \nSCUI | \n
\n\nDescribe | \nSuper color UI Admin | \n
\n\n
"
}
setTimeout(()=>{
@@ -336,7 +373,7 @@
setTimeout(()=>{
this.form = form
this.loading = false
- },1500)
+ },100)
},
methods: {
setName(){
@@ -347,11 +384,12 @@
this.config.formItems[2].span = this.config.formItems[2].span==24?12:24
},
save(){
- this.$refs.formref.validate((valid) => {
+ this.$refs.formref.validate((valid, obj) => {
if (valid) {
console.log(this.form)
alert('submit!')
}else{
+ this.$refs.formref.scrollToField(Object.keys(obj)[0])
return false
}
})