@kp-ui/lowcode 2.15.0-beta.8 → 2.16.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/install.js +17 -15
  2. package/install.js.map +1 -1
  3. package/package.json +3 -2
  4. package/src/components/FormRender/FormContainer.vue.js +55 -0
  5. package/src/components/FormRender/FormContainer.vue.js.map +1 -0
  6. package/src/components/FormRender/FormContainer.vue2.js +5 -0
  7. package/src/components/FormRender/FormContainer.vue2.js.map +1 -0
  8. package/src/components/FormRender/index.vue.js +2 -2
  9. package/src/components/FormRender/index.vue2.js +28 -30
  10. package/src/components/FormRender/index.vue2.js.map +1 -1
  11. package/src/components/FormRender/useFormContext.js +119 -112
  12. package/src/components/FormRender/useFormContext.js.map +1 -1
  13. package/src/components/form-designer/form-widget/container-widget/useTableWidget.js +143 -138
  14. package/src/components/form-designer/form-widget/container-widget/useTableWidget.js.map +1 -1
  15. package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +2 -2
  16. package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue2.js +22 -16
  17. package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue2.js.map +1 -1
  18. package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +1 -1
  19. package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue2.js +65 -53
  20. package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue2.js.map +1 -1
  21. package/src/components/form-designer/form-widget/field-widget/rich-editor-widget.vue2.js.map +1 -1
  22. package/src/components/form-designer/form-widget/field-widget/useField.js +33 -33
  23. package/src/components/form-designer/form-widget/field-widget/useField.js.map +1 -1
  24. package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
  25. package/src/components/form-designer/setting-panel/form-setting.vue2.js +100 -126
  26. package/src/components/form-designer/setting-panel/form-setting.vue2.js.map +1 -1
  27. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +45 -39
  28. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js.map +1 -1
  29. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js +2 -2
  30. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue2.js.map +1 -1
  31. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue2.js.map +1 -1
  32. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue.js +5 -0
  33. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue.js.map +1 -0
  34. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue2.js +38 -0
  35. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/left-editor.vue2.js.map +1 -0
  36. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue.js +5 -0
  37. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue.js.map +1 -0
  38. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue2.js +38 -0
  39. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/top-editor.vue2.js.map +1 -0
  40. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue2.js.map +1 -1
  41. package/src/components/form-designer/setting-panel/property-editor/event-handler/onTableChange-editor.vue2.js +4 -4
  42. package/src/components/form-designer/setting-panel/property-editor/event-handler/onTableChange-editor.vue2.js.map +1 -1
  43. package/src/components/form-designer/setting-panel/property-editor/index.js +158 -156
  44. package/src/components/form-designer/setting-panel/property-editor/index.js.map +1 -1
  45. package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue2.js +29 -18
  46. package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue2.js.map +1 -1
  47. package/src/components/form-designer/setting-panel/propertyRegister.js +2 -0
  48. package/src/components/form-designer/setting-panel/propertyRegister.js.map +1 -1
  49. package/src/components/form-designer/widget-panel/basicFields/input.js +4 -2
  50. package/src/components/form-designer/widget-panel/basicFields/input.js.map +1 -1
  51. package/src/components/form-designer/widget-panel/containers/vf-dialog.js +34 -10
  52. package/src/components/form-designer/widget-panel/containers/vf-dialog.js.map +1 -1
  53. package/src/components/form-render/container-items/data-table-widget.vue.js +1 -1
  54. package/src/components/form-render/container-items/data-table-widget.vue2.js +60 -61
  55. package/src/components/form-render/container-items/data-table-widget.vue2.js.map +1 -1
  56. package/src/components/form-render/dynamic-dialog.vue.js +79 -82
  57. package/src/components/form-render/dynamic-dialog.vue.js.map +1 -1
  58. package/src/components/public/ActionButtonListDialog.vue.js +2 -2
  59. package/src/components/public/ActionButtonListDialog.vue2.js +117 -96
  60. package/src/components/public/ActionButtonListDialog.vue2.js.map +1 -1
  61. package/src/components/public/ActionButtonListRender.vue.js +17 -15
  62. package/src/components/public/ActionButtonListRender.vue.js.map +1 -1
  63. package/src/components/public/ActionButtonListRender.vue2.js +48 -38
  64. package/src/components/public/ActionButtonListRender.vue2.js.map +1 -1
  65. package/src/components/public/ConfigView/CustomPageRender.vue.js +58 -0
  66. package/src/components/public/ConfigView/CustomPageRender.vue.js.map +1 -0
  67. package/src/components/public/ConfigView/CustomPageRender.vue2.js +5 -0
  68. package/src/components/public/ConfigView/CustomPageRender.vue2.js.map +1 -0
  69. package/src/components/public/CustomerModal/CustomerModal.vue2.js +63 -56
  70. package/src/components/public/CustomerModal/CustomerModal.vue2.js.map +1 -1
  71. package/src/constants/EditorTypeEnum.js +1 -1
  72. package/src/constants/EditorTypeEnum.js.map +1 -1
  73. package/src/hooks/useDataHttp.js +8 -7
  74. package/src/hooks/useDataHttp.js.map +1 -1
  75. package/src/hooks/useLowcode.js.map +1 -1
  76. package/src/lang/en-US.js +2 -0
  77. package/src/lang/en-US.js.map +1 -1
  78. package/src/lang/zh-CN.js +2 -0
  79. package/src/lang/zh-CN.js.map +1 -1
  80. package/src/utils/util.js +25 -34
  81. package/src/utils/util.js.map +1 -1
  82. package/stats.html +1 -1
  83. package/styles/style.css +1 -1
  84. package/src/components/FormRender/FormContainer.js +0 -52
  85. package/src/components/FormRender/FormContainer.js.map +0 -1
  86. package/src/components/form-render/SubmitButtonRender.vue.js +0 -92
  87. package/src/components/form-render/SubmitButtonRender.vue.js.map +0 -1
  88. package/src/components/form-render/SubmitButtonRender.vue2.js +0 -5
  89. package/src/components/form-render/SubmitButtonRender.vue2.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtonListRender.vue.js","sources":["../../../../src/components/public/ActionButtonListRender.vue"],"sourcesContent":["<template>\n <div\n ref=\"fieldEditor\"\n :class=\"['button-list-container', ...customClass]\"\n :style=\"containerStyle\"\n >\n <Teleport :disabled=\"isDisabled\" :to=\"getContainer\">\n <a-space :size=\"8\">\n <a-button\n v-for=\"item in visibleButtons\"\n :key=\"item.key\"\n :type=\"item.type\"\n :danger=\"!!item.danger\"\n :ghost=\"!!item.ghost\"\n class=\"tpf-button\"\n :disabled=\"handleDisabled(item)\"\n @click=\"handleClick(item)\"\n >\n <template v-if=\"item.icon\">\n <SvgIcon :icon-class=\"item.icon\" class=\"button-icon\" />\n </template>\n {{ item.label }}\n </a-button>\n </a-space>\n </Teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, computed, PropType } from 'vue';\n import { SvgIcon, useExecFunction } from 'tmgc2-share';\n import type { ActionButton } from '@/types/button';\n import { ButtonPositionEnum } from '@/constants';\n\n export default defineComponent({\n name: 'ActionButtonListRender',\n components: { SvgIcon },\n props: {\n options: {\n type: Object,\n default: () => {}\n },\n scope: {\n type: Object,\n default: () => {}\n },\n ctx: {\n type: Object,\n default: () => {}\n },\n buttonList: {\n type: Array as PropType<ActionButton[]>,\n default: () => []\n },\n customClass: {\n type: Array as PropType<string[]>,\n default: () => []\n },\n flex: {\n type: String,\n default: 'center'\n },\n designState: {\n type: Boolean,\n default: false\n }\n },\n setup(props) {\n const containerStyle = computed(() => ({\n '--flex': props.flex\n }));\n\n const { executeFunction } = useExecFunction();\n\n const isDisabled = computed(\n () => props.options?.buttonPosition !== ButtonPositionEnum.DIY || props.designState\n );\n\n const getContainer = computed(() =>\n isDisabled.value ? null : props.options?.getContainer\n );\n\n const visibleButtons = computed(() =>\n props.buttonList.filter(item => !handleHidden(item))\n );\n\n const handleClick = async (item: ActionButton) => {\n if (props.designState) return; // 在设计状态下不处理点击事件\n if (!item.onClick) return;\n try {\n await executeFunction({\n functionBody: item.onClick,\n context: props.ctx,\n params: props.scope\n });\n } catch (error) {\n console.error('Button click handler error:', error);\n }\n };\n\n const handleDisabled = (item: ActionButton): boolean => {\n if (!item.onDisabled) return false;\n\n try {\n const result = executeFunction({\n functionBody: item.onDisabled,\n context: props.ctx,\n params: props.scope\n });\n if (typeof result === 'boolean') {\n return result;\n } else {\n return false;\n }\n } catch (error) {\n console.error('Button disabled handler error:', error);\n return false;\n }\n };\n\n const handleHidden = (item: ActionButton): boolean => {\n if (!item.onHidden) return false;\n\n try {\n return executeFunction({\n functionBody: item.onHidden,\n context: props.ctx,\n params: props.scope\n });\n } catch (error) {\n console.error('Button hidden handler error:', error);\n return false;\n }\n };\n\n return {\n getContainer,\n isDisabled,\n containerStyle,\n visibleButtons,\n handleClick,\n handleDisabled\n };\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .button-list-container {\n flex: 1;\n display: flex;\n justify-content: var(--flex);\n\n .button-icon {\n margin-right: 4px;\n }\n }\n</style>\n"],"names":["_createElementBlock","_normalizeClass","_ctx","_normalizeStyle","_createBlock","_Teleport","_createVNode","_component_a_space","_withCtx","_openBlock","_Fragment","_renderList","item","_component_a_button","$event","_component_SvgIcon","_createCommentVNode","_toDisplayString"],"mappings":";;;;;;cACIA,EAwBM,OAAA;AAAA,IAvBF,KAAI;AAAA,IACH,OAAKC,+BAA+BC,EAAA,WAAW,CAAA;AAAA,IAC/C,OAAKC,EAAED,EAAA,cAAc;AAAA,EAAA,GAAA;AAAA,UAEtBE,EAkBWC,GAAA;AAAA,MAlBA,UAAUH,EAAA;AAAA,MAAa,IAAIA,EAAA;AAAA,IAAA,GAAA;AAAA,MAClCI,EAgBUC,GAAA,EAhBA,MAAM,EAAA,GAAC;AAAA,QAAA,SAAAC,EAET,MAA8B;AAAA,WAAAC,EAAA,EAAA,GADlCT,EAcWU,GAAA,MAAAC,EAbQT,EAAA,gBAAc,CAAtBU,YADXR,EAcWS,GAAA;AAAA,YAZN,KAAKD,EAAK;AAAA,YACV,MAAMA,EAAK;AAAA,YACX,QAAM,EAAIA,EAAK;AAAA,YACf,OAAK,EAAIA,EAAK;AAAA,YACf,OAAM;AAAA,YACL,UAAUV,iBAAeU,CAAI;AAAA,YAC7B,SAAK,CAAAE,MAAEZ,EAAA,YAAYU,CAAI;AAAA,UAAA,GAAA;AAAA,uBAExB,MAEW;AAAA,cAFKA,EAAK,aACjBR,EAAuDW,GAAA;AAAA,gBAAA,KAAA;AAAA,gBAA7C,cAAYH,EAAK;AAAA,gBAAM,OAAM;AAAA,cAAA,GAAA,MAAA,GAAA,CAAA,YAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA,gBAChC,MACXC,EAAGL,EAAK,KAAK,GAAA,CAAA;AAAA,YAAA,CAAA;AAAA;;;;;;;;;"}
1
+ {"version":3,"file":"ActionButtonListRender.vue.js","sources":["../../../../src/components/public/ActionButtonListRender.vue"],"sourcesContent":["<template>\n <div\n ref=\"fieldEditor\"\n :class=\"['button-list-container', ...customClass]\"\n :style=\"containerStyle\"\n >\n <Teleport :disabled=\"isDisabled\" :to=\"getContainer\">\n <a-space :size=\"8\">\n <a-button\n v-for=\"item in visibleButtons\"\n :key=\"item.key\"\n :type=\"item.type\"\n :size=\"item.size\"\n :danger=\"!!item.danger\"\n :ghost=\"!!item.ghost\"\n class=\"tpf-button\"\n :loading=\"item.loading\"\n :disabled=\"handleDisabled(item) || disabled || !!item.disabled\"\n @click=\"handleClick(item)\"\n >\n <template v-if=\"item.icon\">\n <SvgIcon :icon-class=\"item.icon\" class=\"button-icon\" />\n </template>\n {{ item.label }}\n </a-button>\n </a-space>\n </Teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, computed, PropType } from 'vue';\n import { SvgIcon, useExecFunction } from 'tmgc2-share';\n import type { ActionButton } from '@/types/button';\n import { ButtonPositionEnum } from '@/constants';\n\n export default defineComponent({\n name: 'ActionButtonListRender',\n components: { SvgIcon },\n props: {\n options: {\n type: Object,\n default: () => {}\n },\n disabled: {\n type: Boolean,\n default: false\n },\n scope: {\n type: Object,\n default: () => {}\n },\n ctx: {\n type: Object,\n default: () => {}\n },\n buttonList: {\n type: Array as PropType<ActionButton[]>,\n default: () => []\n },\n customClass: {\n type: Array as PropType<string[]>,\n default: () => []\n },\n flex: {\n type: String,\n default: 'center'\n },\n designState: {\n type: Boolean,\n default: false\n }\n },\n emits: ['on-click'],\n setup(props, { emit }) {\n const containerStyle = computed(() => ({\n '--flex': props.flex\n }));\n\n const { executeFunction, asyncExecuteFunction } = useExecFunction();\n\n const isDisabled = computed(\n () => props.options?.buttonPosition !== ButtonPositionEnum.DIY || props.designState\n );\n\n const getContainer = computed(() =>\n isDisabled.value ? null : props.options?.getContainer\n );\n\n const visibleButtons = computed(() =>\n props.buttonList\n .filter(item => item.hidden !== 1)\n .filter(item => !handleHidden(item))\n );\n\n const handleClick = async (item: ActionButton) => {\n if (props.designState) return; // 在设计状态下不处理点击事件\n if (!item.onClick) return;\n if (item.loading) return;\n item.loading = true;\n try {\n const result = await asyncExecuteFunction({\n functionBody: item.onClick,\n context: props.ctx,\n params: props.scope\n });\n console.log({ result });\n\n emit('on-click', { item, result });\n } catch (error) {\n console.error('Button click handler error:', error);\n } finally {\n item.loading = false;\n }\n };\n\n const handleDisabled = (item: ActionButton): boolean => {\n if (!item.onDisabled) return false;\n\n try {\n const result = executeFunction({\n functionBody: item.onDisabled,\n context: props.ctx,\n params: props.scope\n });\n if (typeof result === 'boolean') {\n return result;\n } else {\n return false;\n }\n } catch (error) {\n console.error('Button disabled handler error:', error);\n return false;\n }\n };\n\n const handleHidden = (item: ActionButton): boolean => {\n if (!item.onHidden) return false;\n\n try {\n return executeFunction({\n functionBody: item.onHidden,\n context: props.ctx,\n params: props.scope\n });\n } catch (error) {\n console.error('Button hidden handler error:', error);\n return false;\n }\n };\n\n return {\n getContainer,\n isDisabled,\n containerStyle,\n visibleButtons,\n handleClick,\n handleDisabled\n };\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .button-list-container {\n flex: 1;\n display: flex;\n justify-content: var(--flex);\n\n .button-icon {\n margin-right: 4px;\n }\n }\n</style>\n"],"names":["_createElementBlock","_normalizeClass","_ctx","_normalizeStyle","_createBlock","_Teleport","_createVNode","_component_a_space","_withCtx","_openBlock","_Fragment","_renderList","item","_component_a_button","$event","_component_SvgIcon","_createCommentVNode","_toDisplayString"],"mappings":";;;;;;cACIA,EA0BM,OAAA;AAAA,IAzBF,KAAI;AAAA,IACH,OAAKC,+BAA+BC,EAAA,WAAW,CAAA;AAAA,IAC/C,OAAKC,EAAED,EAAA,cAAc;AAAA,EAAA,GAAA;AAAA,UAEtBE,EAoBWC,GAAA;AAAA,MApBA,UAAUH,EAAA;AAAA,MAAa,IAAIA,EAAA;AAAA,IAAA,GAAA;AAAA,MAClCI,EAkBUC,GAAA,EAlBA,MAAM,EAAA,GAAC;AAAA,QAAA,SAAAC,EAET,MAA8B;AAAA,WAAAC,EAAA,EAAA,GADlCT,EAgBWU,GAAA,MAAAC,EAfQT,EAAA,gBAAc,CAAtBU,YADXR,EAgBWS,GAAA;AAAA,YAdN,KAAKD,EAAK;AAAA,YACV,MAAMA,EAAK;AAAA,YACX,MAAMA,EAAK;AAAA,YACX,QAAM,EAAIA,EAAK;AAAA,YACf,OAAK,EAAIA,EAAK;AAAA,YACf,OAAM;AAAA,YACL,SAASA,EAAK;AAAA,YACd,UAAUV,EAAA,eAAeU,CAAI,KAAKV,EAAA,YAAQ,EAAMU,EAAK;AAAA,YACrD,SAAK,CAAAE,MAAEZ,EAAA,YAAYU,CAAI;AAAA,UAAA,GAAA;AAAA,uBAExB,MAEW;AAAA,cAFKA,EAAK,aACjBR,EAAuDW,GAAA;AAAA,gBAAA,KAAA;AAAA,gBAA7C,cAAYH,EAAK;AAAA,gBAAM,OAAM;AAAA,cAAA,GAAA,MAAA,GAAA,CAAA,YAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA,gBAChC,MACXC,EAAGL,EAAK,KAAK,GAAA,CAAA;AAAA,YAAA,CAAA;AAAA;;;;;;;;;"}
@@ -1,15 +1,19 @@
1
- import { defineComponent as f, computed as o } from "vue";
2
- import { SvgIcon as y, useExecFunction as b } from "tmgc2-share";
3
- import { ButtonPositionEnum as m } from "../../constants/index.js";
4
- const g = f({
1
+ import { defineComponent as b, computed as o } from "vue";
2
+ import { SvgIcon as x, useExecFunction as g } from "tmgc2-share";
3
+ import { ButtonPositionEnum as h } from "../../constants/index.js";
4
+ const C = b({
5
5
  name: "ActionButtonListRender",
6
- components: { SvgIcon: y },
6
+ components: { SvgIcon: x },
7
7
  props: {
8
8
  options: {
9
9
  type: Object,
10
10
  default: () => {
11
11
  }
12
12
  },
13
+ disabled: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
13
17
  scope: {
14
18
  type: Object,
15
19
  default: () => {
@@ -37,67 +41,73 @@ const g = f({
37
41
  default: !1
38
42
  }
39
43
  },
40
- setup(e) {
41
- const a = o(() => ({
42
- "--flex": e.flex
43
- })), { executeFunction: r } = b(), c = o(
44
+ emits: ["on-click"],
45
+ setup(t, { emit: a }) {
46
+ const l = o(() => ({
47
+ "--flex": t.flex
48
+ })), { executeFunction: r, asyncExecuteFunction: i } = g(), c = o(
44
49
  () => {
45
- var t;
46
- return ((t = e.options) == null ? void 0 : t.buttonPosition) !== m.DIY || e.designState;
50
+ var e;
51
+ return ((e = t.options) == null ? void 0 : e.buttonPosition) !== h.DIY || t.designState;
47
52
  }
48
- ), i = o(
53
+ ), s = o(
49
54
  () => {
50
- var t;
51
- return c.value ? null : (t = e.options) == null ? void 0 : t.getContainer;
55
+ var e;
56
+ return c.value ? null : (e = t.options) == null ? void 0 : e.getContainer;
52
57
  }
53
- ), l = o(
54
- () => e.buttonList.filter((t) => !d(t))
55
- ), s = async (t) => {
56
- if (!e.designState && t.onClick)
58
+ ), u = o(
59
+ () => t.buttonList.filter((e) => e.hidden !== 1).filter((e) => !y(e))
60
+ ), d = async (e) => {
61
+ if (!t.designState && e.onClick && !e.loading) {
62
+ e.loading = !0;
57
63
  try {
58
- await r({
59
- functionBody: t.onClick,
60
- context: e.ctx,
61
- params: e.scope
64
+ const n = await i({
65
+ functionBody: e.onClick,
66
+ context: t.ctx,
67
+ params: t.scope
62
68
  });
69
+ console.log({ result: n }), a("on-click", { item: e, result: n });
63
70
  } catch (n) {
64
71
  console.error("Button click handler error:", n);
72
+ } finally {
73
+ e.loading = !1;
65
74
  }
66
- }, u = (t) => {
67
- if (!t.onDisabled) return !1;
75
+ }
76
+ }, f = (e) => {
77
+ if (!e.onDisabled) return !1;
68
78
  try {
69
79
  const n = r({
70
- functionBody: t.onDisabled,
71
- context: e.ctx,
72
- params: e.scope
80
+ functionBody: e.onDisabled,
81
+ context: t.ctx,
82
+ params: t.scope
73
83
  });
74
84
  return typeof n == "boolean" ? n : !1;
75
85
  } catch (n) {
76
86
  return console.error("Button disabled handler error:", n), !1;
77
87
  }
78
- }, d = (t) => {
79
- if (!t.onHidden) return !1;
88
+ }, y = (e) => {
89
+ if (!e.onHidden) return !1;
80
90
  try {
81
91
  return r({
82
- functionBody: t.onHidden,
83
- context: e.ctx,
84
- params: e.scope
92
+ functionBody: e.onHidden,
93
+ context: t.ctx,
94
+ params: t.scope
85
95
  });
86
96
  } catch (n) {
87
97
  return console.error("Button hidden handler error:", n), !1;
88
98
  }
89
99
  };
90
100
  return {
91
- getContainer: i,
101
+ getContainer: s,
92
102
  isDisabled: c,
93
- containerStyle: a,
94
- visibleButtons: l,
95
- handleClick: s,
96
- handleDisabled: u
103
+ containerStyle: l,
104
+ visibleButtons: u,
105
+ handleClick: d,
106
+ handleDisabled: f
97
107
  };
98
108
  }
99
109
  });
100
110
  export {
101
- g as default
111
+ C as default
102
112
  };
103
113
  //# sourceMappingURL=ActionButtonListRender.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtonListRender.vue2.js","sources":["../../../../src/components/public/ActionButtonListRender.vue"],"sourcesContent":["<template>\n <div\n ref=\"fieldEditor\"\n :class=\"['button-list-container', ...customClass]\"\n :style=\"containerStyle\"\n >\n <Teleport :disabled=\"isDisabled\" :to=\"getContainer\">\n <a-space :size=\"8\">\n <a-button\n v-for=\"item in visibleButtons\"\n :key=\"item.key\"\n :type=\"item.type\"\n :danger=\"!!item.danger\"\n :ghost=\"!!item.ghost\"\n class=\"tpf-button\"\n :disabled=\"handleDisabled(item)\"\n @click=\"handleClick(item)\"\n >\n <template v-if=\"item.icon\">\n <SvgIcon :icon-class=\"item.icon\" class=\"button-icon\" />\n </template>\n {{ item.label }}\n </a-button>\n </a-space>\n </Teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, computed, PropType } from 'vue';\n import { SvgIcon, useExecFunction } from 'tmgc2-share';\n import type { ActionButton } from '@/types/button';\n import { ButtonPositionEnum } from '@/constants';\n\n export default defineComponent({\n name: 'ActionButtonListRender',\n components: { SvgIcon },\n props: {\n options: {\n type: Object,\n default: () => {}\n },\n scope: {\n type: Object,\n default: () => {}\n },\n ctx: {\n type: Object,\n default: () => {}\n },\n buttonList: {\n type: Array as PropType<ActionButton[]>,\n default: () => []\n },\n customClass: {\n type: Array as PropType<string[]>,\n default: () => []\n },\n flex: {\n type: String,\n default: 'center'\n },\n designState: {\n type: Boolean,\n default: false\n }\n },\n setup(props) {\n const containerStyle = computed(() => ({\n '--flex': props.flex\n }));\n\n const { executeFunction } = useExecFunction();\n\n const isDisabled = computed(\n () => props.options?.buttonPosition !== ButtonPositionEnum.DIY || props.designState\n );\n\n const getContainer = computed(() =>\n isDisabled.value ? null : props.options?.getContainer\n );\n\n const visibleButtons = computed(() =>\n props.buttonList.filter(item => !handleHidden(item))\n );\n\n const handleClick = async (item: ActionButton) => {\n if (props.designState) return; // 在设计状态下不处理点击事件\n if (!item.onClick) return;\n try {\n await executeFunction({\n functionBody: item.onClick,\n context: props.ctx,\n params: props.scope\n });\n } catch (error) {\n console.error('Button click handler error:', error);\n }\n };\n\n const handleDisabled = (item: ActionButton): boolean => {\n if (!item.onDisabled) return false;\n\n try {\n const result = executeFunction({\n functionBody: item.onDisabled,\n context: props.ctx,\n params: props.scope\n });\n if (typeof result === 'boolean') {\n return result;\n } else {\n return false;\n }\n } catch (error) {\n console.error('Button disabled handler error:', error);\n return false;\n }\n };\n\n const handleHidden = (item: ActionButton): boolean => {\n if (!item.onHidden) return false;\n\n try {\n return executeFunction({\n functionBody: item.onHidden,\n context: props.ctx,\n params: props.scope\n });\n } catch (error) {\n console.error('Button hidden handler error:', error);\n return false;\n }\n };\n\n return {\n getContainer,\n isDisabled,\n containerStyle,\n visibleButtons,\n handleClick,\n handleDisabled\n };\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .button-list-container {\n flex: 1;\n display: flex;\n justify-content: var(--flex);\n\n .button-icon {\n margin-right: 4px;\n }\n }\n</style>\n"],"names":["_sfc_main","defineComponent","SvgIcon","props","containerStyle","computed","executeFunction","useExecFunction","isDisabled","_a","ButtonPositionEnum","getContainer","visibleButtons","handleHidden","item","handleClick","error","handleDisabled","result"],"mappings":";;;AAkCI,MAAAA,IAAeC,EAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,EAAA;AAAA,EACd,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAC;AAAA,IAAA;AAAA,IAEpB,OAAO;AAAA,MACH,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAC;AAAA,IAAA;AAAA,IAEpB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AAgB;AAAA,UAC3B,cAAcQ,EAAK;AAAA,UACnB,SAASX,EAAM;AAAA,UACf,QAAQA,EAAM;AAAA,QAAA,CACjB;AACD,eAAI,OAAOe,KAAW,YACXA,IAEA;AAAA,MAEf,SAASF,GAAO;AACZ,uBAAQ,MAAM,kCAAkCA,CAAK,GAC9C;AAAA,MACX;AAAA,IACJ,GAEMH,IAAe,CAACC,MAAgC;AAClD,UAAI,CAACA,EAAK,SAAU,QAAO;AAE3B,UAAI;AACA,eAAOR,EAAgB;AAAA,UACnB,cAAcQ,EAAK;AAAA,UACnB,SAASX,EAAM;AAAA,UACf,QAAQA,EAAM;AAAA,QAAA,CACjB;AAAA,MACL,SAASa,GAAO;AACZ,uBAAQ,MAAM,gCAAgCA,CAAK,GAC5C;AAAA,MACX;AAAA,IACJ;AAEA,WAAO;AAAA,MACH,cAAAL;AAAA,MACA,YAAAH;AAAA,MACA,gBAAAJ;AAAA,MACA,gBAAAQ;AAAA,MACA,aAAAG;AAAA,MACA,gBAAAE;AAAA,IAAA;AAAA,EAER;AACJ,CAAC;"}
1
+ {"version":3,"file":"ActionButtonListRender.vue2.js","sources":["../../../../src/components/public/ActionButtonListRender.vue"],"sourcesContent":["<template>\n <div\n ref=\"fieldEditor\"\n :class=\"['button-list-container', ...customClass]\"\n :style=\"containerStyle\"\n >\n <Teleport :disabled=\"isDisabled\" :to=\"getContainer\">\n <a-space :size=\"8\">\n <a-button\n v-for=\"item in visibleButtons\"\n :key=\"item.key\"\n :type=\"item.type\"\n :size=\"item.size\"\n :danger=\"!!item.danger\"\n :ghost=\"!!item.ghost\"\n class=\"tpf-button\"\n :loading=\"item.loading\"\n :disabled=\"handleDisabled(item) || disabled || !!item.disabled\"\n @click=\"handleClick(item)\"\n >\n <template v-if=\"item.icon\">\n <SvgIcon :icon-class=\"item.icon\" class=\"button-icon\" />\n </template>\n {{ item.label }}\n </a-button>\n </a-space>\n </Teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, computed, PropType } from 'vue';\n import { SvgIcon, useExecFunction } from 'tmgc2-share';\n import type { ActionButton } from '@/types/button';\n import { ButtonPositionEnum } from '@/constants';\n\n export default defineComponent({\n name: 'ActionButtonListRender',\n components: { SvgIcon },\n props: {\n options: {\n type: Object,\n default: () => {}\n },\n disabled: {\n type: Boolean,\n default: false\n },\n scope: {\n type: Object,\n default: () => {}\n },\n ctx: {\n type: Object,\n default: () => {}\n },\n buttonList: {\n type: Array as PropType<ActionButton[]>,\n default: () => []\n },\n customClass: {\n type: Array as PropType<string[]>,\n default: () => []\n },\n flex: {\n type: String,\n default: 'center'\n },\n designState: {\n type: Boolean,\n default: false\n }\n },\n emits: ['on-click'],\n setup(props, { emit }) {\n const containerStyle = computed(() => ({\n '--flex': props.flex\n }));\n\n const { executeFunction, asyncExecuteFunction } = useExecFunction();\n\n const isDisabled = computed(\n () => props.options?.buttonPosition !== ButtonPositionEnum.DIY || props.designState\n );\n\n const getContainer = computed(() =>\n isDisabled.value ? null : props.options?.getContainer\n );\n\n const visibleButtons = computed(() =>\n props.buttonList\n .filter(item => item.hidden !== 1)\n .filter(item => !handleHidden(item))\n );\n\n const handleClick = async (item: ActionButton) => {\n if (props.designState) return; // 在设计状态下不处理点击事件\n if (!item.onClick) return;\n if (item.loading) return;\n item.loading = true;\n try {\n const result = await asyncExecuteFunction({\n functionBody: item.onClick,\n context: props.ctx,\n params: props.scope\n });\n console.log({ result });\n\n emit('on-click', { item, result });\n } catch (error) {\n console.error('Button click handler error:', error);\n } finally {\n item.loading = false;\n }\n };\n\n const handleDisabled = (item: ActionButton): boolean => {\n if (!item.onDisabled) return false;\n\n try {\n const result = executeFunction({\n functionBody: item.onDisabled,\n context: props.ctx,\n params: props.scope\n });\n if (typeof result === 'boolean') {\n return result;\n } else {\n return false;\n }\n } catch (error) {\n console.error('Button disabled handler error:', error);\n return false;\n }\n };\n\n const handleHidden = (item: ActionButton): boolean => {\n if (!item.onHidden) return false;\n\n try {\n return executeFunction({\n functionBody: item.onHidden,\n context: props.ctx,\n params: props.scope\n });\n } catch (error) {\n console.error('Button hidden handler error:', error);\n return false;\n }\n };\n\n return {\n getContainer,\n isDisabled,\n containerStyle,\n visibleButtons,\n handleClick,\n handleDisabled\n };\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .button-list-container {\n flex: 1;\n display: flex;\n justify-content: var(--flex);\n\n .button-icon {\n margin-right: 4px;\n }\n }\n</style>\n"],"names":["_sfc_main","defineComponent","SvgIcon","props","emit","containerStyle","computed","executeFunction","asyncExecuteFunction","useExecFunction","isDisabled","_a","ButtonPositionEnum","getContainer","visibleButtons","item","handleHidden","handleClick","result","error","handleDisabled"],"mappings":";;;AAoCI,MAAAA,IAAeC,EAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,YAAY,EAAE,SAAAC,EAAA;AAAA,EACd,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAC;AAAA,IAAA;AAAA,IAEpB,UAAU;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAEb,OAAO;AAAA,MACH,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAC;AAAA,IAAA;AAAA,IAEpB,KAAK;AAAA,MACD,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAC;AAAA,IAAA;AAAA,IAEpB,YAAY;AAAA,MACR,MAAM;AAAA,MACN,SAAS,MAAM,CAAA;AAAA,IAAC;AAAA,IAEpB,aAAa;AAAA,MACT,MAAM;AAAA,MACN,SAAS,MAAM,CAAA;AAAA,IAAC;AAAA,IAEpB,MAAM;AAAA,MACF,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAEb,aAAa;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,EACb;AAAA,EAEJ,OAAO,CAAC,UAAU;AAAA,EAClB,MAAMC,GAAO,EAAE,MAAAC,KAAQ;AACnB,UAAMC,IAAiBC,EAAS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MAEf,SAASC,GAAO;AACZ,uBAAQ,MAAM,kCAAkCA,CAAK,GAC9C;AAAA,MACX;AAAA,IACJ,GAEMH,IAAe,CAACD,MAAgC;AAClD,UAAI,CAACA,EAAK,SAAU,QAAO;AAE3B,UAAI;AACA,eAAOR,EAAgB;AAAA,UACnB,cAAcQ,EAAK;AAAA,UACnB,SAASZ,EAAM;AAAA,UACf,QAAQA,EAAM;AAAA,QAAA,CACjB;AAAA,MACL,SAASgB,GAAO;AACZ,uBAAQ,MAAM,gCAAgCA,CAAK,GAC5C;AAAA,MACX;AAAA,IACJ;AAEA,WAAO;AAAA,MACH,cAAAN;AAAA,MACA,YAAAH;AAAA,MACA,gBAAAL;AAAA,MACA,gBAAAS;AAAA,MACA,aAAAG;AAAA,MACA,gBAAAG;AAAA,IAAA;AAAA,EAER;AACJ,CAAC;"}
@@ -0,0 +1,58 @@
1
+ import { defineComponent as C, onMounted as g, createElementBlock as x, openBlock as B, createVNode as o, unref as t, withCtx as m, createElementVNode as k } from "vue";
2
+ import { getLocat as d } from "@kp-ui/tool";
3
+ import { TpfAddInfoLayout as L } from "tmgc2-share";
4
+ import { useLowcode as v } from "../../../hooks/useLowcode.js";
5
+ import R from "../ActionButtonListRender.vue.js";
6
+ import b from "../../FormRender/index.vue.js";
7
+ const h = {
8
+ class: "t-bg-[#fff] t-h-full"
9
+ }, I = /* @__PURE__ */ C({
10
+ __name: "CustomPageRender",
11
+ setup(y) {
12
+ const {
13
+ formCode: l = "",
14
+ id: u = "",
15
+ type: s = "edit"
16
+ } = d(), {
17
+ vfdRef: e,
18
+ formConfig: a,
19
+ getComponentJson: p,
20
+ goBack: n
21
+ } = v({
22
+ formCode: l,
23
+ type: s
24
+ }), _ = ({
25
+ item: r
26
+ }) => {
27
+ r.name === "cancelButton" && n();
28
+ };
29
+ return g(async () => {
30
+ await p([]);
31
+ }), (r, f) => (B(), x("div", h, [o(t(L), null, {
32
+ footerRight: m(() => {
33
+ var i, c;
34
+ return [f[0] || (f[0] = k("div", {
35
+ id: "fromBtn"
36
+ }, null, -1)), o(R, {
37
+ buttonList: ((i = t(a)) == null ? void 0 : i.buttonList) || [],
38
+ ctx: (c = t(e)) == null ? void 0 : c.context,
39
+ onOnClick: _
40
+ }, null, 8, ["buttonList", "ctx"])];
41
+ }),
42
+ default: m(() => [o(b, {
43
+ ref_key: "vfdRef",
44
+ ref: e,
45
+ vfCtx: {
46
+ _id: t(u),
47
+ ...t(d)(),
48
+ goBack: t(n)
49
+ }
50
+ }, null, 8, ["vfCtx"])]),
51
+ _: 1
52
+ })]));
53
+ }
54
+ });
55
+ export {
56
+ I as default
57
+ };
58
+ //# sourceMappingURL=CustomPageRender.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomPageRender.vue.js","sources":["../../../../../src/components/public/ConfigView/CustomPageRender.vue"],"sourcesContent":["<template>\n <div class=\"t-bg-[#fff] t-h-full\">\n <TpfAddInfoLayout>\n <VFormRender ref=\"vfdRef\" :vfCtx=\"{ _id: id, ...getLocat(), goBack }\" />\n <template #footerRight>\n <div id=\"fromBtn\"></div>\n <ActionButtonListRender\n :buttonList=\"formConfig?.buttonList || []\"\n :ctx=\"vfdRef?.context\"\n @on-click=\"handleButtonClick\"\n />\n </template>\n </TpfAddInfoLayout>\n </div>\n</template>\n\n<script lang=\"tsx\" setup>\n import { getLocat } from '@kp-ui/tool';\n import { onMounted } from 'vue';\n import { TpfAddInfoLayout } from 'tmgc2-share';\n import { useLowcode } from '@/hooks/useLowcode';\n import ActionButtonListRender from '@/components/public/ActionButtonListRender.vue';\n import VFormRender from '@/components/FormRender/index.vue';\n import { ActionButton } from '@/types/button';\n\n const { formCode = '', id = '', type = 'edit' } = getLocat();\n\n const { vfdRef, formConfig, getComponentJson, goBack } = useLowcode({ formCode, type });\n\n const handleButtonClick = ({ item }: { item: ActionButton }) => {\n if (item.name === 'cancelButton') {\n goBack();\n }\n };\n\n onMounted(async () => {\n await getComponentJson([]);\n });\n</script>\n\n<style lang=\"less\"></style>\n"],"names":["formCode","id","type","getLocat","vfdRef","formConfig","getComponentJson","goBack","useLowcode","handleButtonClick","item","name","onMounted","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_unref","TpfAddInfoLayout","footerRight","_createElementVNode","ActionButtonListRender","buttonList","ctx","context","onOnClick","VFormRender","ref","vfCtx","_id"],"mappings":";;;;;;;;;;;AAyBI,UAAM;AAAA,MAAEA,UAAAA,IAAW;AAAA,MAAIC,IAAAA,IAAK;AAAA,MAAIC,MAAAA,IAAO;AAAA,QAAWC,EAAQ,GAEpD;AAAA,MAAEC,QAAAA;AAAAA,MAAQC,YAAAA;AAAAA,MAAYC,kBAAAA;AAAAA,MAAkBC,QAAAA;AAAAA,QAAWC,EAAW;AAAA,MAAER,UAAAA;AAAAA,MAAUE,MAAAA;AAAAA,IAAK,CAAC,GAEhFO,IAAoBA,CAAC;AAAA,MAAEC,MAAAA;AAAAA,IAA6B,MAAM;AAC5D,MAAIA,EAAKC,SAAS,kBACdJ,EAAM;AAAA,IAEd;AAEAK,WAAAA,EAAU,YAAY;AAClB,YAAMN,EAAiB,CAAA,CAAE;AAAA,IAC7B,CAAC,cApCDO,EAAA,GAAAC,EAYM,OAZNC,GAYM,CAXFC,EAUmBC,EAAAC,CAAA,GAAA,MAAA;AAAA,MARJC,eACP,MAAA;;AAAwB,gCAAxBC,EAAwB,OAAA;AAAA,UAAnBnB,IAAG;AAAA,WAAS,MAAA,EAAA,IACjBe,EAIEK,GAAA;AAAA,UAHGC,cAAYL,IAAAA,EAAAZ,CAAA,MAAAY,gBAAAA,EAAYK,eAAU,CAAA;AAAA,UAClCC,MAAKN,IAAAA,EAAAb,CAAA,MAAAa,gBAAAA,EAAQO;AAAAA,UACbC,WAAUhB;AAAAA;;iBANnB,MAAwE,CAAxEO,EAAwEU,GAAA;AAAA,iBAAvD;AAAA,QAAJC,KAAIvB;AAAAA,QAAUwB,OAAK;AAAA,UAAAC,KAASZ,EAAAhB,CAAA;AAAA,UAAE,GAAKgB,EAAAd,CAAA,EAAQ;AAAA,kBAAIc,EAAAV,CAAA;AAAA,QAAM;AAAA;;;;;"}
@@ -0,0 +1,5 @@
1
+ import f from "./CustomPageRender.vue.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=CustomPageRender.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomPageRender.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,81 +1,88 @@
1
- import { defineComponent as T, getCurrentInstance as $, useAttrs as M, ref as f, computed as c, onMounted as h, createBlock as D, openBlock as I, unref as r, withCtx as s, createVNode as a, mergeProps as L, nextTick as P } from "vue";
2
- import { useLowcode as U } from "../../../hooks/useLowcode.js";
3
- import A from "../../form-render/SubmitButtonRender.vue.js";
4
- import F from "../../FormRender/index.vue.js";
5
- import { TpfConfigProvider as J, TpfModal as S } from "tmgc2-share";
6
- import { Skeleton as j } from "ant-design-vue";
7
- import { useI18n as q } from "../../../utils/i18n.js";
8
- const W = /* @__PURE__ */ T({
1
+ import { defineComponent as T, getCurrentInstance as D, useAttrs as M, ref as a, computed as v, onMounted as $, createBlock as A, openBlock as I, unref as n, withCtx as s, createVNode as u, mergeProps as P, nextTick as V } from "vue";
2
+ import { useLowcode as F } from "../../../hooks/useLowcode.js";
3
+ import J from "../../FormRender/index.vue.js";
4
+ import { TpfConfigProvider as O, TpfModal as S } from "tmgc2-share";
5
+ import { Skeleton as U } from "ant-design-vue";
6
+ import { useI18n as j } from "../../../utils/i18n.js";
7
+ import q from "../ActionButtonListRender.vue.js";
8
+ const X = /* @__PURE__ */ T({
9
9
  __name: "CustomerModal",
10
10
  props: {
11
11
  title: {},
12
12
  type: {},
13
13
  formCode: {}
14
14
  },
15
- setup(v, {
16
- expose: C
15
+ setup(C, {
16
+ expose: x
17
17
  }) {
18
18
  const {
19
- i18nt: g
20
- } = q(), u = $(), n = M() || {}, l = f(!1), e = v, x = c(() => {
19
+ i18nt: y
20
+ } = j(), c = D(), r = M() || {}, i = a(!1), e = C, g = v(() => {
21
21
  var t, o;
22
22
  return {
23
- $router: u.proxy.$router,
24
- _id: ((o = (t = n == null ? void 0 : n.row) == null ? void 0 : t.record) == null ? void 0 : o._id) || null,
23
+ $router: c.proxy.$router,
24
+ _id: ((o = (t = r == null ? void 0 : r.row) == null ? void 0 : t.record) == null ? void 0 : o._id) || null,
25
25
  type: e.type,
26
- instance: u,
27
- ...n
26
+ instance: c,
27
+ ...r
28
28
  };
29
- }), d = f(!1), {
30
- vfdRef: p,
31
- formConfig: y,
32
- getComponentJson: b,
33
- isLoading: _
34
- } = U({
29
+ }), b = a(!1), {
30
+ vfdRef: d,
31
+ formConfig: _,
32
+ getComponentJson: k,
33
+ isLoading: w
34
+ } = F({
35
35
  formCode: e.formCode,
36
36
  type: e.type
37
- }), m = f(null), w = c(() => e.title ? e.title : e.type === "add" ? "新增" : e.type === "edit" ? "编辑" : e.type === "view" ? "查看" : "新增"), k = async () => {
38
- l.value = !0, await P(), await b([]), console.log("attrs", n);
39
- }, V = (t) => {
40
- m.value = t;
41
- }, B = (t) => {
42
- d.value = t;
37
+ }), p = a(null), L = v(() => e.title ? e.title : e.type === "add" ? "新增" : e.type === "edit" ? "编辑" : e.type === "view" ? "查看" : "新增"), B = async () => {
38
+ i.value = !0, await V(), await k([]), console.log("attrs", r);
39
+ }, R = (t) => {
40
+ p.value = t;
41
+ }, h = (t) => {
42
+ b.value = t;
43
43
  };
44
- h(() => {
45
- k();
44
+ $(() => {
45
+ B();
46
46
  });
47
- const N = async () => !0;
48
- return C({
49
- i18nt: g,
50
- setDisabled: B,
51
- setleftText: V
52
- }), (t, o) => (I(), D(r(J), null, {
53
- default: s(() => [a(r(S), L({
54
- visible: l.value,
55
- "onUpdate:visible": o[1] || (o[1] = (i) => l.value = i)
47
+ const f = () => {
48
+ i.value = !1;
49
+ }, N = async ({
50
+ item: t,
51
+ result: o
52
+ }) => {
53
+ if (t.name === "cancelButton")
54
+ return f();
55
+ o !== !1 && f();
56
+ };
57
+ return x({
58
+ handleCloseDialog: f,
59
+ i18nt: y,
60
+ setDisabled: h,
61
+ setleftText: R
62
+ }), (t, o) => (I(), A(n(O), null, {
63
+ default: s(() => [u(n(S), P({
64
+ visible: i.value,
65
+ "onUpdate:visible": o[0] || (o[0] = (l) => i.value = l)
56
66
  }, t.$attrs, {
57
- title: w.value,
58
- leftNum: m.value
67
+ title: L.value,
68
+ leftNum: p.value
59
69
  }), {
60
70
  footerRight: s(() => {
61
- var i;
62
- return [a(A, {
63
- disabled: d.value,
64
- handleBeforeClose: N,
65
- dialogVisible: l.value,
66
- "onUpdate:dialogVisible": o[0] || (o[0] = (R) => l.value = R),
67
- options: r(y),
68
- ctx: (i = r(p)) == null ? void 0 : i.context
69
- }, null, 8, ["disabled", "dialogVisible", "options", "ctx"])];
71
+ var l, m;
72
+ return [u(q, {
73
+ buttonList: ((l = n(_)) == null ? void 0 : l.buttonList) || [],
74
+ ctx: (m = n(d)) == null ? void 0 : m.context,
75
+ onOnClick: N
76
+ }, null, 8, ["buttonList", "ctx"])];
70
77
  }),
71
- default: s(() => [a(r(j), {
78
+ default: s(() => [u(n(U), {
72
79
  active: "",
73
- loading: r(_)
80
+ loading: n(w)
74
81
  }, {
75
- default: s(() => [a(F, {
76
- vfCtx: x.value,
82
+ default: s(() => [u(J, {
83
+ vfCtx: g.value,
77
84
  ref_key: "vfdRef",
78
- ref: p
85
+ ref: d
79
86
  }, null, 8, ["vfCtx"])]),
80
87
  _: 1
81
88
  }, 8, ["loading"])]),
@@ -86,6 +93,6 @@ const W = /* @__PURE__ */ T({
86
93
  }
87
94
  });
88
95
  export {
89
- W as default
96
+ X as default
90
97
  };
91
98
  //# sourceMappingURL=CustomerModal.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerModal.vue2.js","sources":["../../../../../src/components/public/CustomerModal/CustomerModal.vue"],"sourcesContent":["<template>\n <TpfConfigProvider>\n <TpfModal v-model:visible=\"visible\" v-bind=\"$attrs\" :title=\"title\" :leftNum=\"leftNum\">\n <Skeleton active :loading=\"isLoading\">\n <VFormRender :vfCtx=\"vfCtx\" ref=\"vfdRef\" />\n </Skeleton>\n <template #footerRight>\n <SubmitButtonRender\n :disabled=\"isDisabled\"\n :handleBeforeClose=\"handleBeforeClose\"\n v-model:dialogVisible=\"visible\"\n :options=\"formConfig\"\n :ctx=\"vfdRef?.context\"\n />\n </template>\n </TpfModal>\n </TpfConfigProvider>\n</template>\n\n<script setup lang=\"tsx\">\n import { useLowcode } from '@/hooks/useLowcode';\n import { useAttrs, onMounted, nextTick, computed, getCurrentInstance, ref } from 'vue';\n import SubmitButtonRender from '@/components/form-render/SubmitButtonRender.vue';\n import VFormRender from '@/components/FormRender/index.vue';\n import { TpfModal, TpfConfigProvider } from 'tmgc2-share';\n import { Skeleton } from 'ant-design-vue';\n import { useI18n } from '@/utils/i18n';\n\n const { i18nt } = useI18n();\n\n const instance = getCurrentInstance()!;\n\n const attrs = (useAttrs() || {}) as any;\n const visible = ref(false);\n\n type Props = {\n title: string;\n type: string;\n formCode: string;\n };\n\n const props = withDefaults(defineProps<Props>(), {});\n\n const vfCtx = computed(() => {\n return {\n $router: instance.proxy!.$router,\n _id: attrs?.row?.record?._id || null,\n type: props.type,\n instance,\n ...attrs\n };\n });\n const isDisabled = ref(false);\n const { vfdRef, formConfig, getComponentJson, isLoading } = useLowcode({\n formCode: props.formCode,\n type: props.type\n });\n const leftNum = ref(null);\n\n const title = computed(() => {\n if (props.title) return props.title;\n if (props.type === 'add') return '新增';\n if (props.type === 'edit') return '编辑';\n if (props.type === 'view') return '查看';\n return '新增';\n });\n\n const show = async () => {\n visible.value = true;\n await nextTick();\n await getComponentJson([]);\n console.log('attrs', attrs);\n };\n\n const setleftText = number => {\n leftNum.value = number;\n };\n\n const setDisabled = status => {\n isDisabled.value = status;\n };\n\n onMounted(() => {\n show();\n });\n\n const handleBeforeClose = async () => {\n // if (props.options.onDialogBeforeClose) {\n // return (await asyncExecuteFunction({\n // functionBody: props.options.onDialogBeforeClose\n // })) as Promise<boolean>;\n // }\n return true;\n };\n\n defineExpose({\n i18nt,\n setDisabled,\n setleftText\n });\n</script>\n\n<style lang=\"less\" scoped></style>\n"],"names":["i18nt","useI18n","instance","getCurrentInstance","attrs","useAttrs","visible","ref","props","__props","vfCtx","computed","$router","proxy","_id","row","record","type","isDisabled","vfdRef","formConfig","getComponentJson","isLoading","useLowcode","formCode","leftNum","title","show","value","nextTick","console","log","setleftText","number","setDisabled","status","onMounted","handleBeforeClose","__expose","_createBlock","_unref","TpfConfigProvider","_createVNode","_mergeProps","$event","$attrs","footerRight","SubmitButtonRender","disabled","dialogVisible","options","ctx","context","Skeleton","active","loading","VFormRender"],"mappings":";;;;;;;;;;;;;;;;;AA4BI,UAAM;AAAA,MAAEA,OAAAA;AAAAA,QAAUC,EAAO,GAEnBC,IAAWC,EAAkB,GAE7BC,IAASC,EAAQ,KAAM,CAAA,GACvBC,IAAUC,EAAI,EAAK,GAQnBC,IAAQC,GAERC,IAAQC,EAAS,MAAM;;AACzB,aAAO;AAAA,QACHC,SAASV,EAASW,MAAOD;AAAAA,QACzBE,OAAKV,KAAAA,IAAAA,KAAAA,gBAAAA,EAAOW,QAAPX,gBAAAA,EAAYY,WAAZZ,gBAAAA,EAAoBU,QAAO;AAAA,QAChCG,MAAMT,EAAMS;AAAAA,QACZf,UAAAA;AAAAA,QACA,GAAGE;AAAAA;IAEX,CAAC,GACKc,IAAaX,EAAI,EAAK,GACtB;AAAA,MAAEY,QAAAA;AAAAA,MAAQC,YAAAA;AAAAA,MAAYC,kBAAAA;AAAAA,MAAkBC,WAAAA;AAAAA,QAAcC,EAAW;AAAA,MACnEC,UAAUhB,EAAMgB;AAAAA,MAChBP,MAAMT,EAAMS;AAAAA,IAChB,CAAC,GACKQ,IAAUlB,EAAI,IAAI,GAElBmB,IAAQf,EAAS,MACfH,EAAMkB,QAAclB,EAAMkB,QAC1BlB,EAAMS,SAAS,QAAc,OAC7BT,EA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AA,qBAAW;AAAA,YAAJrB,KAAIY;AAAAA;;;;;;;;;"}
1
+ {"version":3,"file":"CustomerModal.vue2.js","sources":["../../../../../src/components/public/CustomerModal/CustomerModal.vue"],"sourcesContent":["<template>\n <TpfConfigProvider>\n <TpfModal v-model:visible=\"visible\" v-bind=\"$attrs\" :title=\"title\" :leftNum=\"leftNum\">\n <Skeleton active :loading=\"isLoading\">\n <VFormRender :vfCtx=\"vfCtx\" ref=\"vfdRef\" />\n </Skeleton>\n <template #footerRight>\n <ActionButtonListRender\n :buttonList=\"formConfig?.buttonList || []\"\n :ctx=\"vfdRef?.context\"\n @on-click=\"handleButtonClick\"\n />\n <!-- <SubmitButtonRender\n :disabled=\"isDisabled\"\n :handleBeforeClose=\"handleBeforeClose\"\n v-model:dialogVisible=\"visible\"\n :options=\"formConfig\"\n :ctx=\"vfdRef?.context\"\n /> -->\n </template>\n </TpfModal>\n </TpfConfigProvider>\n</template>\n\n<script setup lang=\"tsx\">\n import { useLowcode } from '@/hooks/useLowcode';\n import { useAttrs, onMounted, nextTick, computed, getCurrentInstance, ref } from 'vue';\n import VFormRender from '@/components/FormRender/index.vue';\n import { TpfModal, TpfConfigProvider, useExecFunction } from 'tmgc2-share';\n import { Skeleton } from 'ant-design-vue';\n import { useI18n } from '@/utils/i18n';\n import ActionButtonListRender from '@/components/public/ActionButtonListRender.vue';\n\n const { i18nt } = useI18n();\n\n const instance = getCurrentInstance()!;\n\n const attrs = (useAttrs() || {}) as any;\n const visible = ref(false);\n\n type Props = {\n title: string;\n type: string;\n formCode: string;\n };\n\n const props = withDefaults(defineProps<Props>(), {});\n const vfCtx = computed(() => {\n return {\n $router: instance.proxy!.$router,\n _id: attrs?.row?.record?._id || null,\n type: props.type,\n instance,\n ...attrs\n };\n });\n const isDisabled = ref(false);\n const { vfdRef, formConfig, getComponentJson, isLoading } = useLowcode({\n formCode: props.formCode,\n type: props.type\n });\n const leftNum = ref(null);\n\n const title = computed(() => {\n if (props.title) return props.title;\n if (props.type === 'add') return '新增';\n if (props.type === 'edit') return '编辑';\n if (props.type === 'view') return '查看';\n return '新增';\n });\n\n const show = async () => {\n visible.value = true;\n await nextTick();\n await getComponentJson([]);\n console.log('attrs', attrs);\n };\n\n const setleftText = number => {\n leftNum.value = number;\n };\n\n const setDisabled = status => {\n isDisabled.value = status;\n };\n\n onMounted(() => {\n show();\n });\n\n const handleCloseDialog = () => {\n visible.value = false;\n };\n\n const handleButtonClick = async ({ item, result }: any) => {\n if (item.name === 'cancelButton') {\n return handleCloseDialog();\n }\n if (result !== false) {\n handleCloseDialog();\n }\n };\n\n defineExpose({\n handleCloseDialog,\n i18nt,\n setDisabled,\n setleftText\n });\n</script>\n\n<style lang=\"less\" scoped></style>\n"],"names":["i18nt","useI18n","instance","getCurrentInstance","attrs","useAttrs","visible","ref","props","__props","vfCtx","computed","$router","proxy","_id","row","record","type","isDisabled","vfdRef","formConfig","getComponentJson","isLoading","useLowcode","formCode","leftNum","title","show","value","nextTick","console","log","setleftText","number","setDisabled","status","onMounted","handleCloseDialog","handleButtonClick","item","result","name","__expose","_createBlock","_unref","TpfConfigProvider","_createVNode","_mergeProps","$event","$attrs","footerRight","ActionButtonListRender","buttonList","ctx","context","onOnClick","Skeleton","active","loading","VFormRender"],"mappings":";;;;;;;;;;;;;;;;;AAiCI,UAAM;AAAA,MAAEA,OAAAA;AAAAA,QAAUC,EAAO,GAEnBC,IAAWC,EAAkB,GAE7BC,IAASC,EAAQ,KAAM,CAAA,GACvBC,IAAUC,EAAI,EAAK,GAQnBC,IAAQC,GACRC,IAAQC,EAAS,MAAM;;AACzB,aAAO;AAAA,QACHC,SAASV,EAASW,MAAOD;AAAAA,QACzBE,OAAKV,KAAAA,IAAAA,KAAAA,gBAAAA,EAAOW,QAAPX,gBAAAA,EAAYY,WAAZZ,gBAAAA,EAAoBU,QAAO;AAAA,QAChCG,MAAMT,EAAMS;AAAAA,QACZf,UAAAA;AAAAA,QACA,GAAGE;AAAAA;IAEX,CAAC,GACKc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ASA,EAAAsB;AAAAA,mDAAAtB,EAAOsB,QAAAoB;AAAAA,SAAUC,EAAAA,QAAM;AAAA,QAAGvB,OAAOA,EAAAE;AAAAA,QAAQH,SAASA,EAAAG;AAAAA;QAI9DsB,eACP;;AAIE,kBAJFJ,EAIEK,GAAA;AAAA,YAHGC,cAAYR,IAAAA,EAAAxB,CAAA,MAAAwB,gBAAAA,EAAYQ,eAAU,CAAA;AAAA,YAClCC,MAAKT,IAAAA,EAAAzB,CAAA,MAAAyB,gBAAAA,EAAQU;AAAAA,YACbC,WAAUjB;AAAAA;;mBAPnB,MAEW,CAFXQ,EAEWF,EAAAY,CAAA,GAAA;AAAA,UAFDC,QAAA;AAAA,UAAQC,SAASd,EAAAtB,CAAA;AAAA;qBACvB,MAA2C,CAA3CwB,EAA2Ca,GAAA;AAAA,YAA7BjD,OAAOA,EAAAkB;AAAAA,qBAAW;AAAA,YAAJrB,KAAIY;AAAAA;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- var t = /* @__PURE__ */ ((o) => (o.name = "name-editor", o.disabled = "disabled-editor", o.hidden = "hidden-editor", o.customClassEditor = "customClass-editor", o.colHeightEditor = "colHeight-editor", o.gutterEditor = "gutter-editor", o.gridColResponsiveEditor = "grid-col-responsive-editor", o.gridColSpanEditor = "grid-col-span-editor", o.gridColOffsetEditor = "grid-col-offset-editor", o.gridColPullEditor = "grid-col-pull-editor", o.gridColPushEditor = "grid-col-push-editor", o.showBlankRowEditor = "showBlankRow-editor", o.showRowNumberEditor = "showRowNumber-editor", o.subFormLabelAlignEditor = "sub-form-labelAlign-editor", o.onSubFormRowAddEditor = "onSubFormRowAdd-editor", o.onSubFormRowInsertEditor = "onSubFormRowInsert-editor", o.onSubFormRowDeleteEditor = "onSubFormRowDelete-editor", o.onSubFormRowChangeEditor = "onSubFormRowChange-editor", o.tabTypeEditor = "tab-type-editor", o.tabTabPositionEditor = "tab-tabPosition-editor", o.tabTabBarGutterEditor = "tab-tabBarGutter-editor", o.tabCustomClassEditor = "tab-customClass-editor", o.onMountedEditor = "onMounted-editor", o.onTabClickEditor = "onTabClick-editor", o.boxModelEditor = "boxModel-editor", o.titleEditor = "title-editor", o.heightEditor = "height-editor", o.collapseIconEditor = "collapseIcon-editor", o.unCollapseIconEditor = "unCollapseIcon-editor", o.isCollapseEditor = "isCollapse-editor", o.rightSlotCssEditor = "rightSlotCss-editor", o.widthEditor = "width-editor", o.formCodeEditor = "formCode-editor", o.bodyStyleEditor = "bodyStyle-editor", o.showCloseEditor = "showClose-editor", o.closeOnClickModalEditor = "closeOnClickModal-editor", o.closeOnPressEscapeEditor = "closeOnPressEscape-editor", o.readModeEditor = "readMode-editor", o.disabledModeEditor = "disabledMode-editor", o.okButtonLabelEditor = "okButtonLabel-editor", o.okButtonHiddenEditor = "okButtonHidden-editor", o.cancelButtonLabelEditor = "cancelButtonLabel-editor", o.cancelButtonHiddenEditor = "cancelButtonHidden-editor", o.onCancelButtonClickEditor = "onCancelButtonClick-editor", o.onOkButtonClickEditor = "onOkButtonClick-editor", o.onDialogOpenedEditor = "onDialogOpened-editor", o.onDialogBeforeCloseEditor = "onDialogBeforeClose-editor", o.labelEditor = "label-editor", o.labelAlignEditor = "labelAlign-editor", o.typeEditor = "type-editor", o.dateRangeTypeEditor = "date-range-type-editor", o.defaultValueEditor = "defaultValue-editor", o.placeholderEditor = "placeholder-editor", o.sizeEditor = "size-editor", o.labelWidthEditor = "labelWidth-editor", o.labelHiddenEditor = "labelHidden-editor", o.requiredEditor = "required-editor", o.requiredHintEditor = "requiredHint-editor", o.validationEditor = "validation-editor", o.validationHintEditor = "validationHint-editor", o.readonlyEditor = "readonly-editor", o.useModalEditor = "useModal-editor", o.allowClearEditor = "allowClear-editor", o.maxLengthEditor = "maxLength-editor", o.showCountEditor = "showCount-editor", o.onChangeEditor = "onChange-editor", o.onInputEditor = "onInput-editor", o.onFocusEditor = "onFocus-editor", o.onBlurEditor = "onBlur-editor", o.onValidateEditor = "onValidate-editor", o.onClickIconEditor = "onClickIcon-editor", o.onCreatedEditor = "onCreated-editor", o.rowsEditor = "rows-editor", o.labelIconClassEditor = "labelIconClass-editor", o.labelIconPositionEditor = "labelIconPosition-editor", o.numberDefaultValueEditor = "number-defaultValue-editor", o.minEditor = "min-editor", o.maxEditor = "max-editor", o.precisionEditor = "precision-editor", o.stepEditor = "step-editor", o.buttonStyleEditor = "buttonStyle-editor", o.borderEditor = "border-editor", o.optionItemsEditor = "optionItems-editor", o.loadingPageEditor = "loadingPage-editor", o.showSearchEditor = "showSearch-editor", o.modeEditor = "mode-editor", o.timeDefaultValueEditor = "time-defaultValue-editor", o.autoFullWidthEditor = "autoFullWidth-editor", o.timeFormatEditor = "time-format-editor", o.timeRangeDefaultValueEditor = "time-range-defaultValue-editor", o.startPlaceholderEditor = "startPlaceholder-editor", o.endPlaceholderEditor = "endPlaceholder-editor", o.dateTypeEditor = "date-type-editor", o.dateRangeDefaultValueEditor = "date-range-defaultValue-editor", o.showTimeEditor = "showTime-editor", o.dateRangeFormatEditor = "date-range-format-editor", o.dateRangeValueFormatEditor = "date-range-valueFormat-editor", o.switchDefaultValueEditor = "switch-defaultValue-editor", o.checkedValueEditor = "checkedValue-editor", o.unCheckedValueEditor = "unCheckedValue-editor", o.switchWidthEditor = "switchWidth-editor", o.rateDefaultValueEditor = "rate-defaultValue-editor", o.rateCountEditor = "rate-count-editor", o.allowHalfEditor = "allowHalf-editor", o.colorDefaultValueEditor = "color-defaultValue-editor", o.textContentEditor = "textContent-editor", o.rangeEditor = "range-editor", o.htmlContentEditor = "htmlContent-editor", o.buttonTypeEditor = "button-type-editor", o.shapeEditor = "shape-editor", o.dangerEditor = "danger-editor", o.ghostEditor = "ghost-editor", o.iconEditor = "icon-editor", o.onClickEditor = "onClick-editor", o.flexEditor = "flex-editor", o.buttonListEditor = "button-list-editor", o.buttonPositionEditor = "button-position-editor", o.contentPositionEditor = "contentPosition-editor", o.dividerDirectionEditor = "divider-direction-editor", o.placementEditor = "placement-editor", o.menuListEditor = "menuList-editor", o.onMenuClickEditor = "onMenuClick-editor", o.cascaderMultipleEditor = "cascader-multiple-editor", o.multipleEditor = "multiple-editor", o.treeDataEditor = "tree-data-editor", o.onCheckEditor = "onCheck-editor", o.richEditorContentHeightEditor = "rich-editor-contentHeight-editor", o.acceptEditor = "accept-editor", o.limitEditor = "limit-editor", o.maxSizeEditor = "maxSize-editor", o.uploadListTypeEditor = "uploadListType-editor", o.rowKeyEditor = "rowKey-editor", o.tableWidthEditor = "tableWidth-editor", o.tableHeightEditor = "tableHeight-editor", o.showIndexEditor = "showIndex-editor", o.dataTableColorRowEditor = "data-table-colorRow-editor", o.tableSizeEditor = "tableSize-editor", o.paginationEditor = "pagination-editor", o.showButtonsColumnEditor = "showButtonsColumn-editor", o.rowSelectionEditor = "rowSelection-editor", o.dataTableDsEnabledEditor = "data-table-dsEnabled-editor", o.dataTableCustomClassEditor = "data-table-customClass-editor", o.lineHeightEditor = "line-height-editor", o.onTableChangeEditor = "onTableChange-editor", o.dataTableCustomRowEditor = "data-table-customRow-editor", o.dateDefaultValueEditor = "date-defaultValue-editor", o))(t || {});
1
+ var t = /* @__PURE__ */ ((o) => (o.name = "name-editor", o.disabled = "disabled-editor", o.hidden = "hidden-editor", o.customClassEditor = "customClass-editor", o.colHeightEditor = "colHeight-editor", o.gutterEditor = "gutter-editor", o.gridColResponsiveEditor = "grid-col-responsive-editor", o.gridColSpanEditor = "grid-col-span-editor", o.gridColOffsetEditor = "grid-col-offset-editor", o.gridColPullEditor = "grid-col-pull-editor", o.gridColPushEditor = "grid-col-push-editor", o.showBlankRowEditor = "showBlankRow-editor", o.showRowNumberEditor = "showRowNumber-editor", o.subFormLabelAlignEditor = "sub-form-labelAlign-editor", o.onSubFormRowAddEditor = "onSubFormRowAdd-editor", o.onSubFormRowInsertEditor = "onSubFormRowInsert-editor", o.onSubFormRowDeleteEditor = "onSubFormRowDelete-editor", o.onSubFormRowChangeEditor = "onSubFormRowChange-editor", o.tabTypeEditor = "tab-type-editor", o.tabTabPositionEditor = "tab-tabPosition-editor", o.tabTabBarGutterEditor = "tab-tabBarGutter-editor", o.tabCustomClassEditor = "tab-customClass-editor", o.onMountedEditor = "onMounted-editor", o.onTabClickEditor = "onTabClick-editor", o.boxModelEditor = "boxModel-editor", o.titleEditor = "title-editor", o.heightEditor = "height-editor", o.collapseIconEditor = "collapseIcon-editor", o.unCollapseIconEditor = "unCollapseIcon-editor", o.isCollapseEditor = "isCollapse-editor", o.rightSlotCssEditor = "rightSlotCss-editor", o.widthEditor = "width-editor", o.topEditor = "top-editor", o.leftEditor = "left-editor", o.formCodeEditor = "formCode-editor", o.bodyStyleEditor = "bodyStyle-editor", o.showCloseEditor = "showClose-editor", o.closeOnClickModalEditor = "closeOnClickModal-editor", o.closeOnPressEscapeEditor = "closeOnPressEscape-editor", o.readModeEditor = "readMode-editor", o.disabledModeEditor = "disabledMode-editor", o.okButtonLabelEditor = "okButtonLabel-editor", o.okButtonHiddenEditor = "okButtonHidden-editor", o.cancelButtonLabelEditor = "cancelButtonLabel-editor", o.cancelButtonHiddenEditor = "cancelButtonHidden-editor", o.onCancelButtonClickEditor = "onCancelButtonClick-editor", o.onOkButtonClickEditor = "onOkButtonClick-editor", o.onDialogOpenedEditor = "onDialogOpened-editor", o.onDialogBeforeCloseEditor = "onDialogBeforeClose-editor", o.labelEditor = "label-editor", o.labelAlignEditor = "labelAlign-editor", o.typeEditor = "type-editor", o.dateRangeTypeEditor = "date-range-type-editor", o.defaultValueEditor = "defaultValue-editor", o.placeholderEditor = "placeholder-editor", o.sizeEditor = "size-editor", o.labelWidthEditor = "labelWidth-editor", o.labelHiddenEditor = "labelHidden-editor", o.requiredEditor = "required-editor", o.requiredHintEditor = "requiredHint-editor", o.validationEditor = "validation-editor", o.validationHintEditor = "validationHint-editor", o.readonlyEditor = "readonly-editor", o.useModalEditor = "useModal-editor", o.allowClearEditor = "allowClear-editor", o.maxLengthEditor = "maxLength-editor", o.showCountEditor = "showCount-editor", o.onChangeEditor = "onChange-editor", o.onInputEditor = "onInput-editor", o.onFocusEditor = "onFocus-editor", o.onBlurEditor = "onBlur-editor", o.onValidateEditor = "onValidate-editor", o.onClickIconEditor = "onClickIcon-editor", o.onCreatedEditor = "onCreated-editor", o.rowsEditor = "rows-editor", o.labelIconClassEditor = "labelIconClass-editor", o.labelIconPositionEditor = "labelIconPosition-editor", o.numberDefaultValueEditor = "number-defaultValue-editor", o.minEditor = "min-editor", o.maxEditor = "max-editor", o.precisionEditor = "precision-editor", o.stepEditor = "step-editor", o.buttonStyleEditor = "buttonStyle-editor", o.borderEditor = "border-editor", o.optionItemsEditor = "optionItems-editor", o.loadingPageEditor = "loadingPage-editor", o.showSearchEditor = "showSearch-editor", o.modeEditor = "mode-editor", o.timeDefaultValueEditor = "time-defaultValue-editor", o.autoFullWidthEditor = "autoFullWidth-editor", o.timeFormatEditor = "time-format-editor", o.timeRangeDefaultValueEditor = "time-range-defaultValue-editor", o.startPlaceholderEditor = "startPlaceholder-editor", o.endPlaceholderEditor = "endPlaceholder-editor", o.dateTypeEditor = "date-type-editor", o.dateRangeDefaultValueEditor = "date-range-defaultValue-editor", o.showTimeEditor = "showTime-editor", o.dateRangeFormatEditor = "date-range-format-editor", o.dateRangeValueFormatEditor = "date-range-valueFormat-editor", o.switchDefaultValueEditor = "switch-defaultValue-editor", o.checkedValueEditor = "checkedValue-editor", o.unCheckedValueEditor = "unCheckedValue-editor", o.switchWidthEditor = "switchWidth-editor", o.rateDefaultValueEditor = "rate-defaultValue-editor", o.rateCountEditor = "rate-count-editor", o.allowHalfEditor = "allowHalf-editor", o.colorDefaultValueEditor = "color-defaultValue-editor", o.textContentEditor = "textContent-editor", o.rangeEditor = "range-editor", o.htmlContentEditor = "htmlContent-editor", o.buttonTypeEditor = "button-type-editor", o.shapeEditor = "shape-editor", o.dangerEditor = "danger-editor", o.ghostEditor = "ghost-editor", o.iconEditor = "icon-editor", o.onClickEditor = "onClick-editor", o.flexEditor = "flex-editor", o.buttonListEditor = "button-list-editor", o.buttonPositionEditor = "button-position-editor", o.contentPositionEditor = "contentPosition-editor", o.dividerDirectionEditor = "divider-direction-editor", o.placementEditor = "placement-editor", o.menuListEditor = "menuList-editor", o.onMenuClickEditor = "onMenuClick-editor", o.cascaderMultipleEditor = "cascader-multiple-editor", o.multipleEditor = "multiple-editor", o.treeDataEditor = "tree-data-editor", o.onCheckEditor = "onCheck-editor", o.richEditorContentHeightEditor = "rich-editor-contentHeight-editor", o.acceptEditor = "accept-editor", o.limitEditor = "limit-editor", o.maxSizeEditor = "maxSize-editor", o.uploadListTypeEditor = "uploadListType-editor", o.rowKeyEditor = "rowKey-editor", o.tableWidthEditor = "tableWidth-editor", o.tableHeightEditor = "tableHeight-editor", o.showIndexEditor = "showIndex-editor", o.dataTableColorRowEditor = "data-table-colorRow-editor", o.tableSizeEditor = "tableSize-editor", o.paginationEditor = "pagination-editor", o.showButtonsColumnEditor = "showButtonsColumn-editor", o.rowSelectionEditor = "rowSelection-editor", o.dataTableDsEnabledEditor = "data-table-dsEnabled-editor", o.dataTableCustomClassEditor = "data-table-customClass-editor", o.lineHeightEditor = "line-height-editor", o.onTableChangeEditor = "onTableChange-editor", o.dataTableCustomRowEditor = "data-table-customRow-editor", o.dateDefaultValueEditor = "date-defaultValue-editor", o))(t || {});
2
2
  export {
3
3
  t as EditorTypeEnum
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EditorTypeEnum.js","sources":["../../../src/constants/EditorTypeEnum.ts"],"sourcesContent":["export enum EditorTypeEnum {\n name = 'name-editor',\n disabled = 'disabled-editor',\n hidden = 'hidden-editor',\n customClassEditor = 'customClass-editor',\n colHeightEditor = 'colHeight-editor',\n gutterEditor = 'gutter-editor',\n gridColResponsiveEditor = 'grid-col-responsive-editor',\n gridColSpanEditor = 'grid-col-span-editor',\n gridColOffsetEditor = 'grid-col-offset-editor',\n gridColPullEditor = 'grid-col-pull-editor',\n gridColPushEditor = 'grid-col-push-editor',\n showBlankRowEditor = 'showBlankRow-editor',\n showRowNumberEditor = 'showRowNumber-editor',\n subFormLabelAlignEditor = 'sub-form-labelAlign-editor',\n onSubFormRowAddEditor = 'onSubFormRowAdd-editor',\n onSubFormRowInsertEditor = 'onSubFormRowInsert-editor',\n onSubFormRowDeleteEditor = 'onSubFormRowDelete-editor',\n onSubFormRowChangeEditor = 'onSubFormRowChange-editor',\n tabTypeEditor = 'tab-type-editor',\n tabTabPositionEditor = 'tab-tabPosition-editor',\n tabTabBarGutterEditor = 'tab-tabBarGutter-editor',\n tabCustomClassEditor = 'tab-customClass-editor',\n onMountedEditor = 'onMounted-editor',\n onTabClickEditor = 'onTabClick-editor',\n boxModelEditor = 'boxModel-editor',\n titleEditor = 'title-editor',\n heightEditor = 'height-editor',\n collapseIconEditor = 'collapseIcon-editor',\n unCollapseIconEditor = 'unCollapseIcon-editor',\n isCollapseEditor = 'isCollapse-editor',\n rightSlotCssEditor = 'rightSlotCss-editor',\n widthEditor = 'width-editor',\n formCodeEditor = 'formCode-editor',\n bodyStyleEditor = 'bodyStyle-editor',\n showCloseEditor = 'showClose-editor',\n closeOnClickModalEditor = 'closeOnClickModal-editor',\n closeOnPressEscapeEditor = 'closeOnPressEscape-editor',\n readModeEditor = 'readMode-editor',\n disabledModeEditor = 'disabledMode-editor',\n okButtonLabelEditor = 'okButtonLabel-editor',\n okButtonHiddenEditor = 'okButtonHidden-editor',\n cancelButtonLabelEditor = 'cancelButtonLabel-editor',\n cancelButtonHiddenEditor = 'cancelButtonHidden-editor',\n onCancelButtonClickEditor = 'onCancelButtonClick-editor',\n onOkButtonClickEditor = 'onOkButtonClick-editor',\n onDialogOpenedEditor = 'onDialogOpened-editor',\n onDialogBeforeCloseEditor = 'onDialogBeforeClose-editor',\n labelEditor = 'label-editor',\n labelAlignEditor = 'labelAlign-editor',\n typeEditor = 'type-editor',\n dateRangeTypeEditor = 'date-range-type-editor',\n defaultValueEditor = 'defaultValue-editor',\n placeholderEditor = 'placeholder-editor',\n sizeEditor = 'size-editor',\n labelWidthEditor = 'labelWidth-editor',\n labelHiddenEditor = 'labelHidden-editor',\n requiredEditor = 'required-editor',\n requiredHintEditor = 'requiredHint-editor',\n validationEditor = 'validation-editor',\n validationHintEditor = 'validationHint-editor',\n readonlyEditor = 'readonly-editor',\n useModalEditor = 'useModal-editor',\n allowClearEditor = 'allowClear-editor',\n maxLengthEditor = 'maxLength-editor',\n showCountEditor = 'showCount-editor',\n onChangeEditor = 'onChange-editor',\n onInputEditor = 'onInput-editor',\n onFocusEditor = 'onFocus-editor',\n onBlurEditor = 'onBlur-editor',\n onValidateEditor = 'onValidate-editor',\n onClickIconEditor = 'onClickIcon-editor',\n onCreatedEditor = 'onCreated-editor',\n rowsEditor = 'rows-editor',\n labelIconClassEditor = 'labelIconClass-editor',\n labelIconPositionEditor = 'labelIconPosition-editor',\n numberDefaultValueEditor = 'number-defaultValue-editor',\n minEditor = 'min-editor',\n maxEditor = 'max-editor',\n precisionEditor = 'precision-editor',\n stepEditor = 'step-editor',\n buttonStyleEditor = 'buttonStyle-editor',\n borderEditor = 'border-editor',\n optionItemsEditor = 'optionItems-editor',\n loadingPageEditor = 'loadingPage-editor',\n showSearchEditor = 'showSearch-editor',\n modeEditor = 'mode-editor',\n timeDefaultValueEditor = 'time-defaultValue-editor',\n autoFullWidthEditor = 'autoFullWidth-editor',\n timeFormatEditor = 'time-format-editor',\n timeRangeDefaultValueEditor = 'time-range-defaultValue-editor',\n startPlaceholderEditor = 'startPlaceholder-editor',\n endPlaceholderEditor = 'endPlaceholder-editor',\n dateTypeEditor = 'date-type-editor',\n dateRangeDefaultValueEditor = 'date-range-defaultValue-editor',\n showTimeEditor = 'showTime-editor',\n dateRangeFormatEditor = 'date-range-format-editor',\n dateRangeValueFormatEditor = 'date-range-valueFormat-editor',\n switchDefaultValueEditor = 'switch-defaultValue-editor',\n checkedValueEditor = 'checkedValue-editor',\n unCheckedValueEditor = 'unCheckedValue-editor',\n switchWidthEditor = 'switchWidth-editor',\n rateDefaultValueEditor = 'rate-defaultValue-editor',\n rateCountEditor = 'rate-count-editor',\n allowHalfEditor = 'allowHalf-editor',\n colorDefaultValueEditor = 'color-defaultValue-editor',\n textContentEditor = 'textContent-editor',\n rangeEditor = 'range-editor',\n htmlContentEditor = 'htmlContent-editor',\n buttonTypeEditor = 'button-type-editor',\n shapeEditor = 'shape-editor',\n dangerEditor = 'danger-editor',\n ghostEditor = 'ghost-editor',\n iconEditor = 'icon-editor',\n onClickEditor = 'onClick-editor',\n flexEditor = 'flex-editor',\n buttonListEditor = 'button-list-editor',\n buttonPositionEditor = 'button-position-editor',\n contentPositionEditor = 'contentPosition-editor',\n dividerDirectionEditor = 'divider-direction-editor',\n placementEditor = 'placement-editor',\n menuListEditor = 'menuList-editor',\n onMenuClickEditor = 'onMenuClick-editor',\n cascaderMultipleEditor = 'cascader-multiple-editor',\n multipleEditor = 'multiple-editor',\n treeDataEditor = 'tree-data-editor',\n onCheckEditor = 'onCheck-editor',\n richEditorContentHeightEditor = 'rich-editor-contentHeight-editor',\n acceptEditor = 'accept-editor',\n limitEditor = 'limit-editor',\n maxSizeEditor = 'maxSize-editor',\n uploadListTypeEditor = 'uploadListType-editor',\n rowKeyEditor = 'rowKey-editor',\n tableWidthEditor = 'tableWidth-editor',\n tableHeightEditor = 'tableHeight-editor',\n showIndexEditor = 'showIndex-editor',\n dataTableColorRowEditor = 'data-table-colorRow-editor',\n tableSizeEditor = 'tableSize-editor',\n paginationEditor = 'pagination-editor',\n showButtonsColumnEditor = 'showButtonsColumn-editor',\n rowSelectionEditor = 'rowSelection-editor',\n dataTableDsEnabledEditor = 'data-table-dsEnabled-editor',\n dataTableCustomClassEditor = 'data-table-customClass-editor',\n lineHeightEditor = 'line-height-editor',\n onTableChangeEditor = 'onTableChange-editor',\n dataTableCustomRowEditor = 'data-table-customRow-editor',\n dateDefaultValueEditor = 'date-defaultValue-editor'\n}\n"],"names":["EditorTypeEnum"],"mappings":"AAAO,IAAKA,sBAAAA,OACRA,EAAA,OAAO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A,EAAA,cAAc,gBACdA,EAAA,aAAa,eACbA,EAAA,gBAAgB,kBAChBA,EAAA,aAAa,eACbA,EAAA,mBAAmB,sBACnBA,EAAA,uBAAuB,0BACvBA,EAAA,wBAAwB,0BACxBA,EAAA,yBAAyB,4BACzBA,EAAA,kBAAkB,oBAClBA,EAAA,iBAAiB,mBACjBA,EAAA,oBAAoB,sBACpBA,EAAA,yBAAyB,4BACzBA,EAAA,iBAAiB,mBACjBA,EAAA,iBAAiB,oBACjBA,EAAA,gBAAgB,kBAChBA,EAAA,gCAAgC,oCAChCA,EAAA,eAAe,iBACfA,EAAA,cAAc,gBACdA,EAAA,gBAAgB,kBAChBA,EAAA,uBAAuB,yBACvBA,EAAA,eAAe,iBACfA,EAAA,mBAAmB,qBACnBA,EAAA,oBAAoB,sBACpBA,EAAA,kBAAkB,oBAClBA,EAAA,0BAA0B,8BAC1BA,EAAA,kBAAkB,oBAClBA,EAAA,mBAAmB,qBACnBA,EAAA,0BAA0B,4BAC1BA,EAAA,qBAAqB,uBACrBA,EAAA,2BAA2B,+BAC3BA,EAAA,6BAA6B,iCAC7BA,EAAA,mBAAmB,sBACnBA,EAAA,sBAAsB,wBACtBA,EAAA,2BAA2B,+BAC3BA,EAAA,yBAAyB,4BAlJjBA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"EditorTypeEnum.js","sources":["../../../src/constants/EditorTypeEnum.ts"],"sourcesContent":["export enum EditorTypeEnum {\n name = 'name-editor',\n disabled = 'disabled-editor',\n hidden = 'hidden-editor',\n customClassEditor = 'customClass-editor',\n colHeightEditor = 'colHeight-editor',\n gutterEditor = 'gutter-editor',\n gridColResponsiveEditor = 'grid-col-responsive-editor',\n gridColSpanEditor = 'grid-col-span-editor',\n gridColOffsetEditor = 'grid-col-offset-editor',\n gridColPullEditor = 'grid-col-pull-editor',\n gridColPushEditor = 'grid-col-push-editor',\n showBlankRowEditor = 'showBlankRow-editor',\n showRowNumberEditor = 'showRowNumber-editor',\n subFormLabelAlignEditor = 'sub-form-labelAlign-editor',\n onSubFormRowAddEditor = 'onSubFormRowAdd-editor',\n onSubFormRowInsertEditor = 'onSubFormRowInsert-editor',\n onSubFormRowDeleteEditor = 'onSubFormRowDelete-editor',\n onSubFormRowChangeEditor = 'onSubFormRowChange-editor',\n tabTypeEditor = 'tab-type-editor',\n tabTabPositionEditor = 'tab-tabPosition-editor',\n tabTabBarGutterEditor = 'tab-tabBarGutter-editor',\n tabCustomClassEditor = 'tab-customClass-editor',\n onMountedEditor = 'onMounted-editor',\n onTabClickEditor = 'onTabClick-editor',\n boxModelEditor = 'boxModel-editor',\n titleEditor = 'title-editor',\n heightEditor = 'height-editor',\n collapseIconEditor = 'collapseIcon-editor',\n unCollapseIconEditor = 'unCollapseIcon-editor',\n isCollapseEditor = 'isCollapse-editor',\n rightSlotCssEditor = 'rightSlotCss-editor',\n widthEditor = 'width-editor',\n topEditor = 'top-editor',\n leftEditor = 'left-editor',\n formCodeEditor = 'formCode-editor',\n bodyStyleEditor = 'bodyStyle-editor',\n showCloseEditor = 'showClose-editor',\n closeOnClickModalEditor = 'closeOnClickModal-editor',\n closeOnPressEscapeEditor = 'closeOnPressEscape-editor',\n readModeEditor = 'readMode-editor',\n disabledModeEditor = 'disabledMode-editor',\n okButtonLabelEditor = 'okButtonLabel-editor',\n okButtonHiddenEditor = 'okButtonHidden-editor',\n cancelButtonLabelEditor = 'cancelButtonLabel-editor',\n cancelButtonHiddenEditor = 'cancelButtonHidden-editor',\n onCancelButtonClickEditor = 'onCancelButtonClick-editor',\n onOkButtonClickEditor = 'onOkButtonClick-editor',\n onDialogOpenedEditor = 'onDialogOpened-editor',\n onDialogBeforeCloseEditor = 'onDialogBeforeClose-editor',\n labelEditor = 'label-editor',\n labelAlignEditor = 'labelAlign-editor',\n typeEditor = 'type-editor',\n dateRangeTypeEditor = 'date-range-type-editor',\n defaultValueEditor = 'defaultValue-editor',\n placeholderEditor = 'placeholder-editor',\n sizeEditor = 'size-editor',\n labelWidthEditor = 'labelWidth-editor',\n labelHiddenEditor = 'labelHidden-editor',\n requiredEditor = 'required-editor',\n requiredHintEditor = 'requiredHint-editor',\n validationEditor = 'validation-editor',\n validationHintEditor = 'validationHint-editor',\n readonlyEditor = 'readonly-editor',\n useModalEditor = 'useModal-editor',\n allowClearEditor = 'allowClear-editor',\n maxLengthEditor = 'maxLength-editor',\n showCountEditor = 'showCount-editor',\n onChangeEditor = 'onChange-editor',\n onInputEditor = 'onInput-editor',\n onFocusEditor = 'onFocus-editor',\n onBlurEditor = 'onBlur-editor',\n onValidateEditor = 'onValidate-editor',\n onClickIconEditor = 'onClickIcon-editor',\n onCreatedEditor = 'onCreated-editor',\n rowsEditor = 'rows-editor',\n labelIconClassEditor = 'labelIconClass-editor',\n labelIconPositionEditor = 'labelIconPosition-editor',\n numberDefaultValueEditor = 'number-defaultValue-editor',\n minEditor = 'min-editor',\n maxEditor = 'max-editor',\n precisionEditor = 'precision-editor',\n stepEditor = 'step-editor',\n buttonStyleEditor = 'buttonStyle-editor',\n borderEditor = 'border-editor',\n optionItemsEditor = 'optionItems-editor',\n loadingPageEditor = 'loadingPage-editor',\n showSearchEditor = 'showSearch-editor',\n modeEditor = 'mode-editor',\n timeDefaultValueEditor = 'time-defaultValue-editor',\n autoFullWidthEditor = 'autoFullWidth-editor',\n timeFormatEditor = 'time-format-editor',\n timeRangeDefaultValueEditor = 'time-range-defaultValue-editor',\n startPlaceholderEditor = 'startPlaceholder-editor',\n endPlaceholderEditor = 'endPlaceholder-editor',\n dateTypeEditor = 'date-type-editor',\n dateRangeDefaultValueEditor = 'date-range-defaultValue-editor',\n showTimeEditor = 'showTime-editor',\n dateRangeFormatEditor = 'date-range-format-editor',\n dateRangeValueFormatEditor = 'date-range-valueFormat-editor',\n switchDefaultValueEditor = 'switch-defaultValue-editor',\n checkedValueEditor = 'checkedValue-editor',\n unCheckedValueEditor = 'unCheckedValue-editor',\n switchWidthEditor = 'switchWidth-editor',\n rateDefaultValueEditor = 'rate-defaultValue-editor',\n rateCountEditor = 'rate-count-editor',\n allowHalfEditor = 'allowHalf-editor',\n colorDefaultValueEditor = 'color-defaultValue-editor',\n textContentEditor = 'textContent-editor',\n rangeEditor = 'range-editor',\n htmlContentEditor = 'htmlContent-editor',\n buttonTypeEditor = 'button-type-editor',\n shapeEditor = 'shape-editor',\n dangerEditor = 'danger-editor',\n ghostEditor = 'ghost-editor',\n iconEditor = 'icon-editor',\n onClickEditor = 'onClick-editor',\n flexEditor = 'flex-editor',\n buttonListEditor = 'button-list-editor',\n buttonPositionEditor = 'button-position-editor',\n contentPositionEditor = 'contentPosition-editor',\n dividerDirectionEditor = 'divider-direction-editor',\n placementEditor = 'placement-editor',\n menuListEditor = 'menuList-editor',\n onMenuClickEditor = 'onMenuClick-editor',\n cascaderMultipleEditor = 'cascader-multiple-editor',\n multipleEditor = 'multiple-editor',\n treeDataEditor = 'tree-data-editor',\n onCheckEditor = 'onCheck-editor',\n richEditorContentHeightEditor = 'rich-editor-contentHeight-editor',\n acceptEditor = 'accept-editor',\n limitEditor = 'limit-editor',\n maxSizeEditor = 'maxSize-editor',\n uploadListTypeEditor = 'uploadListType-editor',\n rowKeyEditor = 'rowKey-editor',\n tableWidthEditor = 'tableWidth-editor',\n tableHeightEditor = 'tableHeight-editor',\n showIndexEditor = 'showIndex-editor',\n dataTableColorRowEditor = 'data-table-colorRow-editor',\n tableSizeEditor = 'tableSize-editor',\n paginationEditor = 'pagination-editor',\n showButtonsColumnEditor = 'showButtonsColumn-editor',\n rowSelectionEditor = 'rowSelection-editor',\n dataTableDsEnabledEditor = 'data-table-dsEnabled-editor',\n dataTableCustomClassEditor = 'data-table-customClass-editor',\n lineHeightEditor = 'line-height-editor',\n onTableChangeEditor = 'onTableChange-editor',\n dataTableCustomRowEditor = 'data-table-customRow-editor',\n dateDefaultValueEditor = 'date-defaultValue-editor'\n}\n"],"names":["EditorTypeEnum"],"mappings":"AAAO,IAAKA,sBAAAA,OACRA,EAAA,OAAO,eAC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A,cAAc,gBACdA,EAAA,eAAe,iBACfA,EAAA,cAAc,gBACdA,EAAA,aAAa,eACbA,EAAA,gBAAgB,kBAChBA,EAAA,aAAa,eACbA,EAAA,mBAAmB,sBACnBA,EAAA,uBAAuB,0BACvBA,EAAA,wBAAwB,0BACxBA,EAAA,yBAAyB,4BACzBA,EAAA,kBAAkB,oBAClBA,EAAA,iBAAiB,mBACjBA,EAAA,oBAAoB,sBACpBA,EAAA,yBAAyB,4BACzBA,EAAA,iBAAiB,mBACjBA,EAAA,iBAAiB,oBACjBA,EAAA,gBAAgB,kBAChBA,EAAA,gCAAgC,oCAChCA,EAAA,eAAe,iBACfA,EAAA,cAAc,gBACdA,EAAA,gBAAgB,kBAChBA,EAAA,uBAAuB,yBACvBA,EAAA,eAAe,iBACfA,EAAA,mBAAmB,qBACnBA,EAAA,oBAAoB,sBACpBA,EAAA,kBAAkB,oBAClBA,EAAA,0BAA0B,8BAC1BA,EAAA,kBAAkB,oBAClBA,EAAA,mBAAmB,qBACnBA,EAAA,0BAA0B,4BAC1BA,EAAA,qBAAqB,uBACrBA,EAAA,2BAA2B,+BAC3BA,EAAA,6BAA6B,iCAC7BA,EAAA,mBAAmB,sBACnBA,EAAA,sBAAsB,wBACtBA,EAAA,2BAA2B,+BAC3BA,EAAA,yBAAyB,4BApJjBA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,11 +1,11 @@
1
- import { ref as l } from "vue";
2
- import { useI18n as d } from "../utils/i18n.js";
3
- import { useExecFunction as s } from "tmgc2-share";
1
+ import { ref as u } from "vue";
2
+ import { useI18n as s } from "../utils/i18n.js";
3
+ import { useExecFunction as d } from "tmgc2-share";
4
4
  function w({ props: e }) {
5
- const { http: n, dataHandlerCode: a, dataReqHandlerCode: r } = e.field.options, { i18nt: i } = d(), { execHttpFunction: c } = s(), o = l({
5
+ const { http: n, dataHandlerCode: a, dataReqHandlerCode: r } = e.field.options, { i18nt: i } = s(), { execHttpFunction: c } = d(), o = u({
6
6
  ...e.widget.options.pagination,
7
- onShowSizeChange: (t, u) => {
8
- e.field.options.pagination.pageSize = u, e.field.options.pagination.current = 1, o.value.current = 1, console.log(o.value);
7
+ onShowSizeChange: (t, l) => {
8
+ e.field.options.pagination.pageSize = l, e.field.options.pagination.current = 1, o.value.current = 1, console.log(o.value);
9
9
  },
10
10
  showTotal: (t) => i("designer.showTotal", { total: t })
11
11
  });
@@ -17,7 +17,7 @@ function w({ props: e }) {
17
17
  getPagination: () => o.value,
18
18
  loadataSource: async () => {
19
19
  try {
20
- return await c(
20
+ const t = await c(
21
21
  {
22
22
  http: n,
23
23
  dataHandlerCode: a,
@@ -25,6 +25,7 @@ function w({ props: e }) {
25
25
  },
26
26
  {}
27
27
  );
28
+ return console.log({ data: t }), t;
28
29
  } catch (t) {
29
30
  return console.error(t), {};
30
31
  }