@wufengteam/wform
Version:
@wufengteam/wform
187 lines • 3.92 kB
JavaScript
import { PROPS_FOR_PC } from '../utils/constant';
export default {
icon: 'Tabs',
label: '标签页',
type: 'WFTabs',
alias: 'null',
groupsName: '标签页',
compType: 0,
compLib: 'custom',
isContainer: true,
engineApi: [],
props: {
name: '标签页',
basicStatus: 1,
tabStyle: '1',
tabBgColor: 'rgba(65, 127, 251, 1)',
tabFontColor: 'rgba(65, 127, 251, 1)',
tabFontSize: 14,
tabFontWeight: 400,
selfSpan: 24
},
todoProps: {
colSpan: {
label: '标题',
type: 'Input',
groupsName: '基础',
props: {
dependProps: {
noShow: true
}
}
},
colSpace: {
label: '标题',
type: 'Input',
groupsName: '基础',
props: {
dependProps: {
noShow: true
}
}
},
name: {
label: '标题',
type: 'Input',
groupsName: '基础',
props: {}
},
basicStatus: {
label: '状态',
type: 'SetBasicStatus',
groupsName: '基础',
props: {
options: [{
title: '普通',
value: 1
}, {
title: '隐藏',
value: 2
}],
defaultValue: 1
}
},
selfSpan: {
label: '列占比',
type: 'ColSpan',
groupsName: PROPS_FOR_PC,
props: {
dependProps: {
noShow: true
}
},
istodoBind: false
},
tabsItems: {
groupsName: '面板设置',
label: '面板设置',
type: 'TabsSet'
},
tabStyle: {
label: '标签页样式',
groupsName: 'PC设置',
type: 'RadioButton',
props: {
defaultValue: '1',
options: [{
title: '线条式',
value: '1'
}, {
title: '卡片式',
value: '2'
}]
}
},
// tabStyle: {
// label: '标签页样式',
// groupsName: 'PC设置',
// type: 'TabStyleSelect',
// props: {
// defaultValue: '1',
// },
// },
// tabBgColor: {
// label: '标签页颜色',
// groupsName: 'PC设置',
// type: 'ColorPicker',
// props: {
// defaultValue: 'rgba(65, 127, 251, 100)',
// },
// },
// tabFontColor: {
// label: '字体颜色',
// groupsName: 'PC设置',
// type: 'ColorPicker',
// props: {
// defaultValue: 'rgba(255, 255, 255, 1)',
// },
// },
// tabFontSize: {
// label: '字体大小',
// groupsName: 'PC设置',
// type: 'InputNumber',
// props: {
// defaultValue: '14',
// },
// },
// tabFontWeight: {
// label: '字重',
// groupsName: 'PC设置',
// type: 'FontWeightSelect',
// props: {
// defaultValue: '400',
// },
// },
rowSpace: {
label: '行间距',
type: 'SelectAndInputNum',
istodoBind: false,
groupsName: '基础',
props: {
options: [{
title: '超大(24px)',
value: '24px'
}, {
title: '大(20px)',
value: '20px'
}, {
title: '中(16px)',
value: '16px'
}, {
title: '小(12px)',
value: '12px'
}, {
title: '超小(8px)',
value: '8px'
}, {
title: '无(0px)',
value: '0px'
}],
dependProps: {
noShow: true
}
}
},
layout: {
label: '布局',
type: 'Select',
istodoBind: false,
groupsName: '基础',
props: {
defaultValue: 'horizontal',
options: [{
title: '水平',
value: 'horizontal'
}, {
title: '垂直',
value: 'vertical'
}],
dependProps: {
noShow: true
}
}
}
},
onlyChildren: ['WFTabPane'],
onlyRoot: ['Form']
};