New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wt-dynamic-form

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wt-dynamic-form - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

demo.vue

71

libs/config.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc