xm-flow-modal.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div>
  3. <a-form-model-item label="提示标题(必填)">
  4. <a-input v-model="component.attrFD.formItemProps.inputProps.modalTitle"></a-input>
  5. </a-form-model-item>
  6. <a-form-model-item label="提示内容">
  7. <a-input v-model="component.attrFD.formItemProps.inputProps.modalContent"></a-input>
  8. </a-form-model-item>
  9. <a-form-model-item label="提示类型">
  10. <a-select
  11. v-model="component.attrFD.formItemProps.inputProps.modalType"
  12. :options="options"
  13. ></a-select>
  14. </a-form-model-item>
  15. </div>
  16. </template>
  17. <script>
  18. import components from './_import-components/xm-flow-modal-import'
  19. export const metaInfo = {
  20. caption: '全局提示框',
  21. hiddenProps: [
  22. 'readonly',
  23. 'required',
  24. 'name',
  25. 'caption',
  26. 'description',
  27. 'displayExpr',
  28. 'mobileVisible',
  29. ],
  30. component: {
  31. render() {
  32. return <span>建议此控件单独放在1x1的无边框表格中</span>
  33. },
  34. },
  35. icon: 'link',
  36. }
  37. export const fieldProps = {
  38. dataType: 'string',
  39. attrFD: {
  40. hideLabel: true,
  41. transient: true,
  42. formItemProps: { inputProps: { modalTitle: '', modalContent: '', modalType: 'info' } },
  43. },
  44. }
  45. export default {
  46. name: 'XmFlowModal',
  47. metaInfo: {
  48. title: 'XmFlowModal',
  49. },
  50. components,
  51. data() {
  52. return {
  53. options: [
  54. { label: '普通提示', value: 'info' },
  55. { label: '警告', value: 'warn' },
  56. ],
  57. }
  58. },
  59. }
  60. </script>
  61. <style module lang="scss">
  62. @use '@/common/design' as *;
  63. </style>