@dcp-designable/dn-components
Version:
设计期组件
244 lines • 9.38 kB
JavaScript
export const bpmButtonState = [
'pass',
'overrule',
'returnToPrevious',
'fallback',
'submit',
'reSubmit',
'saveDraft',
'undo',
'entrust',
'invite',
'suspend',
'flowChart',
'forecast',
'timeline',
'history',
];
export default () => {
return {
type: 'object',
properties: {
'base-group': {
'x-index': 1,
'type': 'void',
'x-component': 'CollapseItem',
'properties': {
'x-state': {
'x-hidden': true,
},
'x-hidden': {
'x-hidden': true,
},
'x-component-props': {
type: 'object',
properties: {
anchor: {
'x-decorator': 'FormItem',
'x-component': 'Switch',
'x-component-props': {
defaultChecked: true,
},
},
anchorPosition: {
'enum': ['top', 'bottom'],
'x-decorator': 'FormItem',
'x-component': 'Radio.Group',
'x-component-props': {
defaultValue: 'top',
optionType: 'button',
},
},
bpmButtonVisible: {
'enum': bpmButtonState,
'x-decorator': 'FormItem',
'x-component': 'Select',
'x-component-props': {
mode: 'multiple',
// defaultValue: bpmButtonState,
},
'default': bpmButtonState,
},
bpmButtonCustom: {
'type': 'boolean',
'enum': [true, false],
'x-decorator': 'FormItem',
'x-component': 'Switch',
'default': false,
},
// bpmButtonConfig: {
// 'x-component': BPMButtonCustomeNode,
// 'x-component-props': {
// compTitle: 'bpmButtonCustomeNode.title',
// items: '{{$values?.["x-component-props"]?.["bpmButtonVisible"]}}'
// },
// 'x-reactions': {
// fulfill: {
// state: {
// visible: '{{$values?.["x-component-props"]?.["bpmButtonCustom"] === true}}'
// }
// }
// }
// }
},
},
},
},
'event-group': {
// 事件
'type': 'void',
'x-index': 2,
'x-component': 'CollapseItem',
'properties': {
// 'x-submit-events': {
// 'x-index': 100,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '提交',
// events: [
// {
// label: '提交',
// value: EventTypeEnum.BPM_SUBMIT,
// },
// ],
// },
// },
// 'x-approval-events': {
// 'x-index': 101,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '审批通过',
// events: [
// {
// label: '审批通过',
// value: EventTypeEnum.BPM_PASS,
// },
// ],
// },
// },
// 'x-return-events': {
// 'x-index': 102,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '审批驳回',
// events: [
// {
// label: '审批驳回',
// value: EventTypeEnum.BPM_REJECTION,
// },
// ],
// },
// },
// 'x-prestep-events': {
// 'x-index': 103,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '退回到上一步',
// events: [
// {
// label: '退回到上一步',
// value: EventTypeEnum.BPM_BACK,
// },
// ],
// },
// },
// 'x-cancel-events': {
// 'x-index': 104,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '撤销',
// events: [
// {
// label: '撤销',
// value: EventTypeEnum.BPM_UNDO,
// },
// ],
// },
// },
// 'x-ReSubmit-events': {
// 'x-index': 105,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '重新提交',
// events: [
// {
// label: '重新提交',
// value: EventTypeEnum.BPM_ReSubmit,
// },
// ],
// },
// },
// 'x-SaveDraft-events': {
// 'x-index': 106,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '保存草稿',
// events: [
// {
// label: '保存草稿',
// value: EventTypeEnum.BPM_SaveDraft,
// },
// ],
// },
// },
// 'x-updateDraft-events': {
// 'x-index': 107,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '更新草稿',
// events: [
// {
// label: '更新草稿',
// value: EventTypeEnum.BPM_UpdateDraft,
// },
// ],
// },
// },'x-deleteDraft-events': {
// 'x-index': 120,
// type: 'array',
// 'x-decorator': 'FormItem',
// 'x-component': EventComponent,
// 'x-component-props': {
// title: '删除草稿',
// events: [
// {
// label: '删除草稿',
// value: EventTypeEnum.BPM_DeleteDraft,
// },
// ],
// },
// },
},
},
'style-group': {
'x-hidden': true,
},
'layout-group': {
'x-hidden': true,
},
'validator-group': {
'x-hidden': true,
},
'senior-group': {
'x-hidden': true,
},
},
};
};
//# sourceMappingURL=schema.js.map