Skip to content
New issue

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

当我基于栅格控件自定义了一个加强版的栅格控件时,我每次拖动自定义的栅格控件,里面的元素总是同一个数组的,改变其中一个,同样使用自定义栅格控件的元素也会改变 #126

Open
exile-yy opened this issue Oct 12, 2023 · 0 comments

Comments

@exile-yy
Copy link

{
type: 'grid',
label: '测试栅格',
columns: [
{
span: 4,
list: [
{
type: 'text',
label: '姓名',
labelHTML: '', // 标题增强
// cssName: '',
// icon: 'icon-zihao',
// reflectValue: '',
options: {
textAlign: 'center',
hidden: false,
showRequiredMark: false,
defaultValue: '' // 默认值
},
key: 'text1_' + new Date().getTime()
}
]
},
{
span: 8,
list: [
{
type: 'input',
label: '姓名',
labelHTML: '',
reflectValue: '',
icon: 'icon-write',
isShowWx: true,
cssName: '',
options: {
type: 'text',
width: '100%',
defaultValue: '',
placeholder: '请输入',
clearable: false,
isCc: false,
maxLength: null,
hidden: false,
disabled: false,
dynamic: 'default',
queryUrl: '',
localOptions: {
key: '',
value: ''
}
},
model: 'input' + new Date().getTime(),
key: 'input1' + new Date().getTime(),
rules: [
{
required: false,
message: '必填项'
}
]
}
]
},
{
span: 4,
list: [
{
type: 'text',
label: '班级',
labelHTML: '', // 标题增强
cssName: '',
icon: 'icon-zihao',
reflectValue: '',
options: {
textAlign: 'center',
hidden: false,
showRequiredMark: false
},
key: 'text2_' + new Date().getTime()
}
]
},
{
span: 8,
list: [
{
type: 'input',
label: '班级',
labelHTML: '',
reflectValue: '',
icon: 'icon-write',
isShowWx: true,
cssName: '',
options: {
type: 'text',
width: '100%',
defaultValue: '',
placeholder: '请输入',
clearable: false,
isCc: false,
maxLength: null,
hidden: false,
disabled: false,
dynamic: 'default',
queryUrl: '',
localOptions: {
key: '',
value: ''
}
},
model: 'input_1697071400659',
key: 'input2' + new Date().getTime(),
rules: [
{
required: false,
message: '必填项'
}
]
}
]
}
],
options: {
gutter: 0,
cssName: ''
},
key: 'grid_1697071382372'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant