wt-dynamic-form
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -123,9 +123,10 @@ export const formConf = { | ||
multiple: false, | ||
options: [{ | ||
label: '选项一', | ||
value: 1 | ||
}, { | ||
label: '选项二', | ||
value: 2 | ||
}], | ||
options: [], | ||
// options: [{ | ||
// label: '选项一', | ||
// value: 1 | ||
// }, { | ||
// label: '选项二', | ||
// value: 2 | ||
// }], | ||
regList: [], | ||
@@ -154,12 +155,13 @@ changeTag: true, | ||
required: false, | ||
options: [{ | ||
id: 1, | ||
value: 1, | ||
label: '选项1', | ||
children: [{ | ||
id: 2, | ||
value: 2, | ||
label: '选项1-1' | ||
}] | ||
}], | ||
options: [], | ||
// options: [{ | ||
// id: 1, | ||
// value: 1, | ||
// label: '选项1', | ||
// children: [{ | ||
// id: 2, | ||
// value: 2, | ||
// label: '选项1-1' | ||
// }] | ||
// }], | ||
dataType: 'dynamic', | ||
@@ -187,9 +189,10 @@ labelKey: 'label', | ||
required: false, | ||
options: [{ | ||
label: '选项一', | ||
value: 1 | ||
}, { | ||
label: '选项二', | ||
value: 2 | ||
}], | ||
options: [], | ||
// options: [{ | ||
// label: '选项一', | ||
// value: 1 | ||
// }, { | ||
// label: '选项二', | ||
// value: 2 | ||
// }], | ||
regList: [], | ||
@@ -212,9 +215,10 @@ changeTag: true, | ||
required: false, | ||
options: [{ | ||
label: '选项一', | ||
value: 1 | ||
}, { | ||
label: '选项二', | ||
value: 2 | ||
}], | ||
options: [], | ||
// options: [{ | ||
// label: '选项一', | ||
// value: 1 | ||
// }, { | ||
// label: '选项二', | ||
// value: 2 | ||
// }], | ||
regList: [], | ||
@@ -384,3 +388,3 @@ changeTag: true, | ||
tagIcon: 'upload', | ||
action: 'https://jsonplaceholder.typicode.com/posts/', | ||
action: process.env.VUE_APP_SYSTEM_URL || process.env.VUE_APP_BASE_API + '/system/common/upload', | ||
defaultValue: null, | ||
@@ -457,3 +461,4 @@ labelWidth: null, | ||
'el-date-picker': 'change', | ||
'el-rate': 'change' | ||
'el-rate': 'change', | ||
'el-upload': 'change', | ||
} | ||
@@ -460,0 +465,0 @@ |
@@ -157,3 +157,3 @@ import { makeMap, deepClone } from '../utils/index' | ||
}) | ||
console.log("渲染的配置项:", dataObject, dataObject.attrs.label, dataObject.on) | ||
console.log("渲染的配置项:", this.conf.tag, dataObject) | ||
return h(this.conf.tag, dataObject, children) | ||
@@ -160,0 +160,0 @@ }, |
{ | ||
"name": "wt-dynamic-form", | ||
"version": "1.0.1", | ||
"description": "动态组件", | ||
"author": "", | ||
"license": "MIT", | ||
"scripts": {}, | ||
"keywords": [], | ||
"repository": {}, | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"engines": { | ||
"node": ">=8.9", | ||
"npm": ">= 3.0.0" | ||
"version": "1.0.2", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions" | ||
] | ||
"author": "wintao", | ||
"license": "ISC" | ||
} |
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
104915
15
652
1
2