export default { state: { title: "", bodyText: "", cancelable: false, cancelLabelText: "", confirmLabelText: "", confirmCallback: null, cancelCallback: null, diloadShow: false, status: "", isEdit: false, textAreaInfo: { pla: "", maxLength: 50, defaultValue: "", }, showInfo: {}, }, actions: ({ model, setState }) => ({ showDialog({ ...props }) { setState({ diloadShow: true, showInfo: { ...props, }, }); }, hideDialog() { setState({ diloadShow: false }); }, removeEvent(confirmCallback) { const { showDialog } = model(); const { removeTips } = model("wordsModel"); showDialog({ bodyText: removeTips, status: "danger", cancelable: true, confirmCallback, }); }, }), };