update 完成厂务,优化dialog

This commit is contained in:
2022-08-11 16:08:01 +08:00
parent 0ef30e1985
commit db5b5091e1
2 changed files with 49 additions and 4 deletions

View File

@@ -163,7 +163,6 @@ export default {
}
},
mounted() {
console.log('mounted>..')
/** 计算 defaultPlaceholders */
const prefix = '请输入'
Object.entries(this.defaultNames).map(([key, value]) => {
@@ -254,7 +253,17 @@ export default {
const opt = this.configs.fields[(n - 1) * COLUMN_PER_ROW + (c - 1)]
if (opt) {
// if opt is valid
return opt.placeholder ? opt.placeholder : this.defaultPlaceholders[opt.name]
return opt.placeholder
? opt.placeholder
: this.defaultPlaceholders[opt.name]
? this.defaultPlaceholders[opt.name]
: opt.label
? (opt.type === 'select' ? '请选择' : '请输入') + opt.label
: null
// : opt.type === 'select'
// ? '请选择'
// : '请输入'
}
},