12345678910111213141516171819202122232425262728293031 |
- import {localeOptions, localeProps} from '../../utils';
- const label = '分割线';
- const name = 'elDivider';
- export default {
- menu: 'aide',
- icon: 'icon-divider',
- label,
- name,
- rule({t}) {
- return {
- type: name,
- props: {},
- children: [t('com.elDivider.name')],
- };
- },
- props(_, {t}) {
- return localeProps(t, name + '.props', [{
- type: 'input',
- field: 'formCreateChild',
- }, {
- type: 'select',
- field: 'contentPosition',
- options: localeOptions(t, [{label: 'left', value: 'left'}, {label: 'right', value: 'right'}, {
- label: 'center',
- value: 'center'
- }])
- }]);
- }
- };
|