You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
897 B
57 lines
897 B
|
|
export const templatePropsMap = new Map([
|
|
["text", {
|
|
readonly: true,
|
|
clearable: true
|
|
}],
|
|
["richtext",'my-tinymce'],
|
|
['select', {
|
|
value: '选项1',
|
|
readonly: true
|
|
}],
|
|
['radio',{
|
|
value: '选项1',
|
|
readonly: true
|
|
}],
|
|
["checkbox", {
|
|
multiple: true,
|
|
readonly: true,
|
|
value: ['选项1']
|
|
}],
|
|
["date", {
|
|
readonly: true,
|
|
}],
|
|
["datetime", {
|
|
readonly: true,
|
|
}],
|
|
["file",{
|
|
action: "a",
|
|
fileList: [
|
|
{name: 'food.jpeg', url: ''}
|
|
],
|
|
autoUpload: true,
|
|
multiple: false,
|
|
limit: 1
|
|
}],
|
|
["files",{
|
|
action: "a",
|
|
fileList: [
|
|
{name: 'food.jpeg', url: ''},
|
|
{name: 'food2.jpeg', url: ''}
|
|
],
|
|
autoUpload: true,
|
|
multiple: true
|
|
}],
|
|
["textarea", {
|
|
readonly: true,
|
|
clearable: true,
|
|
type: 'textarea',
|
|
autosize: {
|
|
'minRows': 2
|
|
}
|
|
}],
|
|
|
|
|
|
["map", "el-input"],
|
|
])
|