ll-plus 2.3.14 → 2.3.16

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 (106) hide show
  1. package/es/components/advanced-filtering/index.d.ts +26 -6
  2. package/es/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
  3. package/es/components/advanced-filtering/src/advanced-filtering.mjs +2 -1
  4. package/es/components/advanced-filtering/src/advanced-filtering.mjs.map +1 -1
  5. package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
  6. package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
  7. package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs +5 -1
  8. package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs.map +1 -1
  9. package/es/components/drawer/index.d.ts +2 -1
  10. package/es/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
  11. package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
  12. package/es/components/drawer/src/drawer.vue.d.ts +2 -1
  13. package/es/components/drawer/src/drawer.vue2.mjs +43 -9
  14. package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
  15. package/es/components/form/index.d.ts +8 -2
  16. package/es/components/form/index.mjs +1 -1
  17. package/es/components/form/src/config/form.d.ts +6 -0
  18. package/es/components/form/src/config/form.mjs +7 -1
  19. package/es/components/form/src/config/form.mjs.map +1 -1
  20. package/es/components/form/src/config/index.mjs +1 -1
  21. package/es/components/form/src/form.vue.d.ts +8 -2
  22. package/es/components/form/src/form.vue2.mjs +14 -3
  23. package/es/components/form/src/form.vue2.mjs.map +1 -1
  24. package/es/components/index.mjs +1 -1
  25. package/es/components/key-value/index.d.ts +48 -12
  26. package/es/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
  27. package/es/components/key-value/src/components/key-value-item.vue2.mjs +1 -0
  28. package/es/components/key-value/src/components/key-value-item.vue2.mjs.map +1 -1
  29. package/es/components/key-value/src/key-value.vue.d.ts +48 -12
  30. package/es/components/modal/index.d.ts +2 -0
  31. package/es/components/modal/src/modal.vue.d.ts +2 -0
  32. package/es/components/modal/src/modal.vue2.mjs +41 -2
  33. package/es/components/modal/src/modal.vue2.mjs.map +1 -1
  34. package/es/components/table/src/config/main-table.d.ts +1 -0
  35. package/es/components/table/src/config/main-table.mjs.map +1 -1
  36. package/es/index.mjs +1 -1
  37. package/es/utils/props/runtime.d.ts +2 -2
  38. package/index.full.js +109 -12
  39. package/index.full.min.js +17 -17
  40. package/index.full.min.js.map +1 -1
  41. package/index.full.min.mjs +17 -17
  42. package/index.full.min.mjs.map +1 -1
  43. package/index.full.mjs +109 -13
  44. package/lib/components/advanced-filtering/index.d.ts +26 -6
  45. package/lib/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
  46. package/lib/components/advanced-filtering/src/advanced-filtering.js +2 -1
  47. package/lib/components/advanced-filtering/src/advanced-filtering.js.map +1 -1
  48. package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
  49. package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
  50. package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js +5 -1
  51. package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js.map +1 -1
  52. package/lib/components/drawer/index.d.ts +2 -1
  53. package/lib/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
  54. package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
  55. package/lib/components/drawer/src/drawer.vue.d.ts +2 -1
  56. package/lib/components/drawer/src/drawer.vue2.js +42 -8
  57. package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
  58. package/lib/components/form/index.d.ts +8 -2
  59. package/lib/components/form/index.js +1 -0
  60. package/lib/components/form/index.js.map +1 -1
  61. package/lib/components/form/src/config/form.d.ts +6 -0
  62. package/lib/components/form/src/config/form.js +7 -0
  63. package/lib/components/form/src/config/form.js.map +1 -1
  64. package/lib/components/form/src/config/index.js +1 -0
  65. package/lib/components/form/src/config/index.js.map +1 -1
  66. package/lib/components/form/src/form.vue.d.ts +8 -2
  67. package/lib/components/form/src/form.vue2.js +12 -1
  68. package/lib/components/form/src/form.vue2.js.map +1 -1
  69. package/lib/components/index.js +1 -0
  70. package/lib/components/index.js.map +1 -1
  71. package/lib/components/key-value/index.d.ts +48 -12
  72. package/lib/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
  73. package/lib/components/key-value/src/components/key-value-item.vue2.js +1 -0
  74. package/lib/components/key-value/src/components/key-value-item.vue2.js.map +1 -1
  75. package/lib/components/key-value/src/key-value.vue.d.ts +48 -12
  76. package/lib/components/modal/index.d.ts +2 -0
  77. package/lib/components/modal/src/modal.vue.d.ts +2 -0
  78. package/lib/components/modal/src/modal.vue2.js +40 -1
  79. package/lib/components/modal/src/modal.vue2.js.map +1 -1
  80. package/lib/components/table/src/config/main-table.d.ts +1 -0
  81. package/lib/components/table/src/config/main-table.js.map +1 -1
  82. package/lib/index.js +1 -0
  83. package/lib/index.js.map +1 -1
  84. package/lib/utils/props/runtime.d.ts +2 -2
  85. package/package.json +1 -1
  86. package/theme-chalk/css/drawer.css +1 -1
  87. package/theme-chalk/css/index.css +1 -1
  88. package/theme-chalk/css/modal.css +1 -1
  89. package/types/packages/components/advanced-filtering/index.d.ts +26 -6
  90. package/types/packages/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
  91. package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
  92. package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
  93. package/types/packages/components/drawer/index.d.ts +2 -1
  94. package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
  95. package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
  96. package/types/packages/components/drawer/src/drawer.vue.d.ts +2 -1
  97. package/types/packages/components/form/index.d.ts +8 -2
  98. package/types/packages/components/form/src/config/form.d.ts +6 -0
  99. package/types/packages/components/form/src/form.vue.d.ts +8 -2
  100. package/types/packages/components/key-value/index.d.ts +48 -12
  101. package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
  102. package/types/packages/components/key-value/src/key-value.vue.d.ts +48 -12
  103. package/types/packages/components/modal/index.d.ts +2 -0
  104. package/types/packages/components/modal/src/modal.vue.d.ts +2 -0
  105. package/types/packages/components/table/src/config/main-table.d.ts +1 -0
  106. package/types/packages/utils/props/runtime.d.ts +2 -2
@@ -41,8 +41,8 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
41
41
  bem: (blockSuffix: string, element: string, modifier: string) => string;
42
42
  is: (name?: string) => string;
43
43
  };
44
- content: import("vue").Ref<HTMLElement | undefined>;
45
44
  hasScroll: import("vue").Ref<boolean>;
45
+ scrollTop: import("vue").Ref<number>;
46
46
  symbolClass: import("vue").Ref<string>;
47
47
  symbolComparedClass: import("vue").Ref<string>;
48
48
  getBindValue: import("vue").ComputedRef<{
@@ -56,6 +56,7 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
56
56
  handleCancel: () => void;
57
57
  handleConfirm: () => void;
58
58
  handleResize: (value: boolean) => Promise<void>;
59
+ onScrollTop: () => Promise<void>;
59
60
  readonly Drawer: {
60
61
  new (...args: any[]): import("@vue/runtime-core").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
61
62
  autofocus: {
@@ -89,12 +89,14 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
89
89
  };
90
90
  modal: import("vue").Ref<HTMLElement | undefined>;
91
91
  hasScroll: import("vue").Ref<boolean>;
92
+ scrollTop: import("vue").Ref<number>;
92
93
  symbolClass: import("vue").Ref<string>;
93
94
  symbolComparedClass: import("vue").Ref<string>;
94
95
  getBindValue: import("vue").ComputedRef<import("ll-plus/es/index").IResultType>;
95
96
  handleCancel: () => void;
96
97
  handleOk: () => void;
97
98
  handleResize: (value: boolean) => Promise<void>;
99
+ onScrollTop: () => Promise<void>;
98
100
  readonly Modal: {
99
101
  new (...args: any[]): import("@vue/runtime-core").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
100
102
  prefixCls: StringConstructor;
@@ -88,12 +88,14 @@ declare const _default: import("vue").DefineComponent<{
88
88
  };
89
89
  modal: import("vue").Ref<HTMLElement | undefined>;
90
90
  hasScroll: import("vue").Ref<boolean>;
91
+ scrollTop: import("vue").Ref<number>;
91
92
  symbolClass: import("vue").Ref<string>;
92
93
  symbolComparedClass: import("vue").Ref<string>;
93
94
  getBindValue: import("vue").ComputedRef<import("ll-plus/es/components").IResultType>;
94
95
  handleCancel: () => void;
95
96
  handleOk: () => void;
96
97
  handleResize: (value: boolean) => Promise<void>;
98
+ onScrollTop: () => Promise<void>;
97
99
  readonly Modal: {
98
100
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
99
101
  prefixCls: StringConstructor;
@@ -40,8 +40,8 @@ declare const _default: import("vue").DefineComponent<{
40
40
  bem: (blockSuffix: string, element: string, modifier: string) => string;
41
41
  is: (name?: string) => string;
42
42
  };
43
- content: import("vue").Ref<HTMLElement | undefined>;
44
43
  hasScroll: import("vue").Ref<boolean>;
44
+ scrollTop: import("vue").Ref<number>;
45
45
  symbolClass: import("vue").Ref<string>;
46
46
  symbolComparedClass: import("vue").Ref<string>;
47
47
  getBindValue: import("vue").ComputedRef<{
@@ -55,6 +55,7 @@ declare const _default: import("vue").DefineComponent<{
55
55
  handleCancel: () => void;
56
56
  handleConfirm: () => void;
57
57
  handleResize: (value: boolean) => Promise<void>;
58
+ onScrollTop: () => Promise<void>;
58
59
  readonly Drawer: {
59
60
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
60
61
  autofocus: {
@@ -17,13 +17,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  __name: "drawer",
18
18
  props: drawer.drawerProps,
19
19
  emits: drawer.drawerEmits,
20
- setup(__props, { emit: __emit }) {
20
+ setup(__props, { expose: __expose, emit: __emit }) {
21
21
  const props = __props;
22
22
  const emits = __emit;
23
23
  const attrs = vue.useAttrs();
24
24
  const bem = createNamespace.createNamespace("drawer");
25
- const content = vue.ref();
26
25
  const hasScroll = vue.ref(false);
26
+ const scrollTop = vue.ref(0);
27
27
  const symbolClass = vue.ref(`ll-darwer-${(/* @__PURE__ */ new Date()).getTime()}`);
28
28
  const symbolComparedClass = vue.ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
29
29
  const getBindValue = vue.computed(() => ({
@@ -64,20 +64,35 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
64
64
  const { clientHeight } = entries[0].target;
65
65
  const scrollHeight = ele.clientHeight;
66
66
  hasScroll.value = clientHeight > scrollHeight;
67
- console.log(clientHeight, scrollHeight, hasScroll.value);
68
67
  });
69
68
  if (value) {
70
69
  resizeObserver.observe(modalBody);
70
+ ele.addEventListener("scroll", () => {
71
+ scrollTop.value = ele.scrollTop;
72
+ });
71
73
  } else {
72
74
  resizeObserver.unobserve(modalBody);
75
+ ele.removeEventListener("scroll", () => {
76
+ scrollTop.value = 0;
77
+ });
73
78
  }
74
79
  };
80
+ const onScrollTop = async () => {
81
+ await vue.nextTick();
82
+ if (!hasScroll.value)
83
+ return;
84
+ const ele = document.getElementsByClassName(symbolClass.value)[0];
85
+ ele.scrollTop = 0;
86
+ };
75
87
  vue.watch(
76
88
  () => props.open,
77
89
  (val) => {
78
90
  handleResize(val);
79
91
  }
80
92
  );
93
+ __expose({
94
+ onScrollTop
95
+ });
81
96
  return (_ctx, _cache) => {
82
97
  const _component_ll_button = vue.resolveComponent("ll-button");
83
98
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Drawer), vue.mergeProps(getBindValue.value, {
@@ -99,19 +114,38 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
99
114
  class: vue.normalizeClass([vue.unref(bem).e("container"), hasScroll.value ? vue.unref(bem).is("has-scroll") : ""])
100
115
  },
101
116
  [
117
+ _ctx.$slots.step ? (vue.openBlock(), vue.createElementBlock(
118
+ "div",
119
+ {
120
+ key: 0,
121
+ class: vue.normalizeClass(vue.unref(bem).e("step"))
122
+ },
123
+ [
124
+ vue.renderSlot(_ctx.$slots, "step")
125
+ ],
126
+ 2
127
+ /* CLASS */
128
+ )) : vue.createCommentVNode("v-if", true),
102
129
  vue.createElementVNode(
103
130
  "div",
104
131
  {
105
- ref_key: "content",
106
- ref: content,
107
132
  class: vue.normalizeClass([vue.unref(bem).e("content"), symbolClass.value])
108
133
  },
109
134
  [
110
- vue.createCommentVNode(` <div v-if="hasScroll" :class="bem.e('shandow')" /> `),
135
+ hasScroll.value && scrollTop.value > 0 ? (vue.openBlock(), vue.createElementBlock(
136
+ "div",
137
+ {
138
+ key: 0,
139
+ class: vue.normalizeClass(vue.unref(bem).e("shadow"))
140
+ },
141
+ null,
142
+ 2
143
+ /* CLASS */
144
+ )) : vue.createCommentVNode("v-if", true),
111
145
  vue.createElementVNode(
112
146
  "div",
113
147
  {
114
- class: vue.normalizeClass([symbolComparedClass.value])
148
+ class: vue.normalizeClass([symbolComparedClass.value, vue.unref(bem).e("scroll")])
115
149
  },
116
150
  [
117
151
  vue.renderSlot(_ctx.$slots, "default")
@@ -126,7 +160,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
126
160
  props.showFooter ? (vue.openBlock(), vue.createElementBlock(
127
161
  "div",
128
162
  {
129
- key: 0,
163
+ key: 1,
130
164
  class: vue.normalizeClass([vue.unref(bem).e("footer"), hasScroll.value ? vue.unref(bem).is("has-scroll") : ""])
131
165
  },
132
166
  [
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.vue2.js","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"[bem.e('container'), hasScroll ? bem.is('has-scroll') : '']\">\n <div ref=\"content\" :class=\"[bem.e('content'), symbolClass]\">\n <!-- <div v-if=\"hasScroll\" :class=\"bem.e('shandow')\" /> -->\n <div :class=\"[symbolComparedClass]\">\n <slot />\n </div>\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst content = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n emits('close')\n } else {\n handleCancel()\n return\n }\n emits('update:open')\n}\nconst handleCancel = (): void => {\n if (props.cancelConfirm) {\n useSecondConfirmation(\n props.cancelConfirmOptions || {\n title: '温馨提示',\n message: '你有未保存的更改,确定关闭?'\n }\n ).then(async () => {\n // 点击保存按钮则关闭弹窗和抽屉\n emits('cancel')\n })\n return\n }\n emits('cancel')\n}\nconst handleConfirm = (): void => {\n emits('confirm')\n}\n// const handleResize = async () => {\n// await nextTick()\n// const ele = document.getElementsByClassName(symbolClass.value)[0]\n// if (ele) {\n// setTimeout(() => {\n// hasScroll.value = ele.scrollHeight > ele.clientHeight\n// }, 0)\n// }\n// }\n\nconst handleResize = async (value: boolean) => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0]\n const resizeObserver = new ResizeObserver(entries => {\n // 处理大小变化的回调函数\n const { clientHeight } = entries[0].target\n const scrollHeight = ele.clientHeight\n hasScroll.value = clientHeight > scrollHeight\n console.log(clientHeight, scrollHeight, hasScroll.value)\n })\n if (value) {\n resizeObserver.observe(modalBody)\n } else {\n resizeObserver.unobserve(modalBody)\n }\n}\n\nwatch(\n () => props.open,\n val => {\n handleResize(val)\n }\n)\n</script>\n"],"names":["useAttrs","createNamespace","ref","computed","drawerOptions","omit","drawerProps","useSecondConfirmation","nextTick","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;AA+DA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,GAAA,GAAMC,gCAAgB,QAAQ,CAAA,CAAA;AAEpC,IAAA,MAAM,UAAUC,OAAiB,EAAA,CAAA;AAEjC,IAAM,MAAA,SAAA,GAAYA,QAAI,KAAK,CAAA,CAAA;AAE3B,IAAM,MAAA,WAAA,GAAcA,QAAI,CAAa,UAA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A,MAAM,MAAM,QAAS,CAAA,sBAAA,CAAuB,WAAY,CAAA,KAAK,EAAE,CAAC,CAAA,CAAA;AAChE,MAAA,MAAM,YAAY,GAAI,CAAA,sBAAA,CAAuB,mBAAoB,CAAA,KAAK,EAAE,CAAC,CAAA,CAAA;AACzE,MAAM,MAAA,cAAA,GAAiB,IAAI,cAAA,CAAe,CAAW,OAAA,KAAA;AAEnD,QAAA,MAAM,EAAE,YAAA,EAAiB,GAAA,OAAA,CAAQ,CAAC,CAAE,CAAA,MAAA,CAAA;AACpC,QAAA,MAAM,eAAe,GAAI,CAAA,YAAA,CAAA;AACzB,QAAA,SAAA,CAAU,QAAQ,YAAe,GAAA,YAAA,CAAA;AACjC,QAAA,OAAA,CAAQ,GAAI,CAAA,YAAA,EAAc,YAAc,EAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AAAA,OACxD,CAAA,CAAA;AACD,MAAA,IAAI,KAAO,EAAA;AACT,QAAA,cAAA,CAAe,QAAQ,SAAS,CAAA,CAAA;AAAA,OAC3B,MAAA;AACL,QAAA,cAAA,CAAe,UAAU,SAAS,CAAA,CAAA;AAAA,OACpC;AAAA,KACF,CAAA;AAEA,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,CAAO,GAAA,KAAA;AACL,QAAA,YAAA,CAAa,GAAG,CAAA,CAAA;AAAA,OAClB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"drawer.vue2.js","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"[bem.e('container'), hasScroll ? bem.is('has-scroll') : '']\">\n <div v-if=\"$slots.step\" :class=\"bem.e('step')\">\n <slot name=\"step\" />\n </div>\n <div :class=\"[bem.e('content'), symbolClass]\">\n <div v-if=\"hasScroll && scrollTop > 0\" :class=\"bem.e('shadow')\"></div>\n <div :class=\"[symbolComparedClass, bem.e('scroll')]\">\n <slot />\n </div>\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst hasScroll = ref(false)\n\nconst scrollTop = ref(0)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n emits('close')\n } else {\n handleCancel()\n return\n }\n emits('update:open')\n}\nconst handleCancel = (): void => {\n if (props.cancelConfirm) {\n useSecondConfirmation(\n props.cancelConfirmOptions || {\n title: '温馨提示',\n message: '你有未保存的更改,确定关闭?'\n }\n ).then(async () => {\n // 点击保存按钮则关闭弹窗和抽屉\n emits('cancel')\n })\n return\n }\n emits('cancel')\n}\nconst handleConfirm = (): void => {\n emits('confirm')\n}\n\nconst handleResize = async (value: boolean) => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0]\n const resizeObserver = new ResizeObserver(entries => {\n // 处理大小变化的回调函数\n const { clientHeight } = entries[0].target\n const scrollHeight = ele.clientHeight\n hasScroll.value = clientHeight > scrollHeight\n })\n if (value) {\n resizeObserver.observe(modalBody)\n ele.addEventListener('scroll', () => {\n scrollTop.value = ele.scrollTop\n })\n } else {\n resizeObserver.unobserve(modalBody)\n ele.removeEventListener('scroll', () => {\n scrollTop.value = 0\n })\n }\n}\n\nconst onScrollTop = async () => {\n await nextTick()\n if (!hasScroll.value) return\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n ele.scrollTop = 0\n}\n\nwatch(\n () => props.open,\n val => {\n handleResize(val)\n }\n)\n\ndefineExpose({\n onScrollTop\n})\n</script>\n"],"names":["useAttrs","createNamespace","ref","computed","drawerOptions","omit","drawerProps","useSecondConfirmation","nextTick","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkEA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,GAAA,GAAMC,gCAAgB,QAAQ,CAAA,CAAA;AAEpC,IAAM,MAAA,SAAA,GAAYC,QAAI,KAAK,CAAA,CAAA;AAE3B,IAAM,MAAA,SAAA,GAAYA,QAAI,CAAC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AEA,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,CAAO,GAAA,KAAA;AACL,QAAA,YAAA,CAAa,GAAG,CAAA,CAAA;AAAA,OAClB;AAAA,KACF,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,WAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1396,7 +1396,9 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
1396
1396
  }>>;
1397
1397
  readonly formColumns: any[];
1398
1398
  readonly formData: import("./src/config").FormData;
1399
+ readonly onChange?: ((value: import("./src/config").FormData) => any) | undefined;
1399
1400
  } & {}>;
1401
+ emits: (event: "change", value: import("./src/config").FormData) => void;
1400
1402
  bem: {
1401
1403
  b: (blockSuffix?: string) => string;
1402
1404
  e: (element?: string) => string;
@@ -1457,7 +1459,9 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
1457
1459
  readonly formData: import("./src/config").FormData;
1458
1460
  readonly item: any;
1459
1461
  }, {}>;
1460
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1462
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1463
+ change: (value: import("./src/config").FormData) => boolean;
1464
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1461
1465
  readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
1462
1466
  readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
1463
1467
  layout: import("vue-types").VueTypeDef<string>;
@@ -2543,7 +2547,9 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
2543
2547
  gutter: number;
2544
2548
  }, boolean>;
2545
2549
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
2546
- }>>, {
2550
+ }>> & {
2551
+ onChange?: ((value: import("./src/config").FormData) => any) | undefined;
2552
+ }, {
2547
2553
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
2548
2554
  layout: import("vue-types").VueTypeDef<string>;
2549
2555
  labelCol: {
@@ -15,6 +15,7 @@ var formComponent = require('./src/config/form-component.js');
15
15
  const LlFormComponent = withInstall.withInstall(formComponent$1.default);
16
16
  const LlForm = withInstall.withInstall(form$1.default);
17
17
 
18
+ exports.formEmits = form.formEmits;
18
19
  exports.formProps = form.formProps;
19
20
  exports.checkedType = components.checkedType;
20
21
  exports.formComponentProps = formComponent.formComponentProps;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../packages/components/form/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport FormComponent from './src/components/form-component.vue'\nimport Form from './src/form.vue'\n\nexport const LlFormComponent = withInstall(FormComponent)\nexport const LlForm = withInstall(Form)\nexport default LlForm\nexport * from './src/config'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlFormComponent: typeof FormComponent\n LlForm: typeof Form\n }\n}\n"],"names":["withInstall","FormComponent","Form"],"mappings":";;;;;;;;;;;;;;AAKa,MAAA,eAAA,GAAkBA,wBAAYC,uBAAa,EAAA;AAC3C,MAAA,MAAA,GAASD,wBAAYE,cAAI;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../packages/components/form/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport FormComponent from './src/components/form-component.vue'\nimport Form from './src/form.vue'\n\nexport const LlFormComponent = withInstall(FormComponent)\nexport const LlForm = withInstall(Form)\nexport default LlForm\nexport * from './src/config'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlFormComponent: typeof FormComponent\n LlForm: typeof Form\n }\n}\n"],"names":["withInstall","FormComponent","Form"],"mappings":";;;;;;;;;;;;;;AAKa,MAAA,eAAA,GAAkBA,wBAAYC,uBAAa,EAAA;AAC3C,MAAA,MAAA,GAASD,wBAAYE,cAAI;;;;;;;;;;"}
@@ -1106,6 +1106,12 @@ export declare const formProps: {
1106
1106
  }, boolean>;
1107
1107
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1108
1108
  };
1109
+ export declare const formEmits: {
1110
+ /**
1111
+ * @description 表单项值改变时触发
1112
+ */
1113
+ change: (value: FormData) => boolean;
1114
+ };
1109
1115
  export type FormProps = ExtractPropTypes<typeof formProps>;
1110
1116
  export type FormInstance = InstanceType<typeof Form>;
1111
1117
  export {};
@@ -45,6 +45,13 @@ const formProps = runtime.buildProps({
45
45
  default: false
46
46
  }
47
47
  });
48
+ const formEmits = {
49
+ /**
50
+ * @description 表单项值改变时触发
51
+ */
52
+ change: (value) => !!value
53
+ };
48
54
 
55
+ exports.formEmits = formEmits;
49
56
  exports.formProps = formProps;
50
57
  //# sourceMappingURL=form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sources":["../../../../../../packages/components/form/src/config/form.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type {\n FormItemProps,\n RowProps,\n ColProps,\n FormProps as AntFormProps\n} from 'ant-design-vue'\nimport type { TooltipProps } from '@ll-plus/components'\nimport type Form from '../form.vue'\n\ntype FormType<T = any> = (\n | 'input'\n | 'input-number'\n | 'cascader'\n | 'checkbox'\n | 'checkbox-group'\n | 'code-editor'\n | 'date-picker'\n | 'time-picker'\n | 'date-range'\n | 'time-range'\n | 'radio'\n | 'radio-group'\n | 'select'\n | 'switch'\n | 'textarea'\n | 'upload-image'\n) &\n T\n\nexport interface BasicFormColumn extends FormItemProps {\n label?: string\n key: string\n spanCol?: number | 24 // 一行几条\n colOptions?: ColProps\n tip?: string\n tipConfig?: TooltipProps\n type: FormType\n unit?: string\n change?: () => void\n rowOptions?: RowProps\n children?: FormColumn[]\n [key: string]: any\n}\n\nexport type FormColumn<T = any> = BasicFormColumn & T\n\nexport type FormData = Record<string, any>\n\nexport const formProps = buildProps({\n /**\n * @description 表单项列表\n */\n formColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n /**\n * @description 展开的行变化时触发\n */\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({\n layout: 'horizontal'\n })\n },\n /**\n * @description 展开的行变化时触发\n */\n formData: {\n type: definePropType<FormData>(Object),\n default: () => ({})\n },\n /**\n * @description 展开的行变化时触发\n */\n rowOptions: {\n type: definePropType<RowProps>(Object),\n default: () => ({\n gutter: 16\n })\n },\n /**\n * @description 表单加载状态\n */\n loading: {\n type: Boolean,\n default: false\n }\n} as const)\n\n// props\nexport type FormProps = ExtractPropTypes<typeof formProps>\n\n// instance\nexport type FormInstance = InstanceType<typeof Form>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAmDO,MAAM,YAAYA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIlC,WAAa,EAAA;AAAA,IACX,IAAA,EAAMC,uBAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,IACzC,SAAS,OAAO;AAAA,MACd,MAAQ,EAAA,YAAA;AAAA,KACV,CAAA;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAA,EAAMA,uBAAyB,MAAM,CAAA;AAAA,IACrC,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAMA,uBAAyB,MAAM,CAAA;AAAA,IACrC,SAAS,OAAO;AAAA,MACd,MAAQ,EAAA,EAAA;AAAA,KACV,CAAA;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAU;;;;"}
1
+ {"version":3,"file":"form.js","sources":["../../../../../../packages/components/form/src/config/form.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type {\n FormItemProps,\n RowProps,\n ColProps,\n FormProps as AntFormProps\n} from 'ant-design-vue'\nimport type { TooltipProps } from '@ll-plus/components'\nimport type Form from '../form.vue'\n\ntype FormType<T = any> = (\n | 'input'\n | 'input-number'\n | 'cascader'\n | 'checkbox'\n | 'checkbox-group'\n | 'code-editor'\n | 'date-picker'\n | 'time-picker'\n | 'date-range'\n | 'time-range'\n | 'radio'\n | 'radio-group'\n | 'select'\n | 'switch'\n | 'textarea'\n | 'upload-image'\n) &\n T\n\nexport interface BasicFormColumn extends FormItemProps {\n label?: string\n key: string\n spanCol?: number | 24 // 一行几条\n colOptions?: ColProps\n tip?: string\n tipConfig?: TooltipProps\n type: FormType\n unit?: string\n change?: () => void\n rowOptions?: RowProps\n children?: FormColumn[]\n [key: string]: any\n}\n\nexport type FormColumn<T = any> = BasicFormColumn & T\n\nexport type FormData = Record<string, any>\n\nexport const formProps = buildProps({\n /**\n * @description 表单项列表\n */\n formColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n /**\n * @description 展开的行变化时触发\n */\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({\n layout: 'horizontal'\n })\n },\n /**\n * @description 展开的行变化时触发\n */\n formData: {\n type: definePropType<FormData>(Object),\n default: () => ({})\n },\n /**\n * @description 展开的行变化时触发\n */\n rowOptions: {\n type: definePropType<RowProps>(Object),\n default: () => ({\n gutter: 16\n })\n },\n /**\n * @description 表单加载状态\n */\n loading: {\n type: Boolean,\n default: false\n }\n} as const)\n\nexport const formEmits = {\n /**\n * @description 表单项值改变时触发\n */\n change: (value: FormData) => !!value\n}\n\n// props\nexport type FormProps = ExtractPropTypes<typeof formProps>\n\n// instance\nexport type FormInstance = InstanceType<typeof Form>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAmDO,MAAM,YAAYA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIlC,WAAa,EAAA;AAAA,IACX,IAAA,EAAMC,uBAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,IACzC,SAAS,OAAO;AAAA,MACd,MAAQ,EAAA,YAAA;AAAA,KACV,CAAA;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAA,EAAMA,uBAAyB,MAAM,CAAA;AAAA,IACrC,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAMA,uBAAyB,MAAM,CAAA;AAAA,IACrC,SAAS,OAAO;AAAA,MACd,MAAQ,EAAA,EAAA;AAAA,KACV,CAAA;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,SAAY,GAAA;AAAA;AAAA;AAAA;AAAA,EAIvB,MAAQ,EAAA,CAAC,KAAoB,KAAA,CAAC,CAAC,KAAA;AACjC;;;;;"}
@@ -6,6 +6,7 @@ var formComponent = require('./form-component.js');
6
6
 
7
7
  "use strict";
8
8
 
9
+ exports.formEmits = form.formEmits;
9
10
  exports.formProps = form.formProps;
10
11
  exports.checkedType = components.checkedType;
11
12
  exports.formComponentProps = formComponent.formComponentProps;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1361,7 +1361,9 @@ declare const _default: import("vue").DefineComponent<{
1361
1361
  }>>;
1362
1362
  readonly formColumns: any[];
1363
1363
  readonly formData: import("./config").FormData;
1364
+ readonly onChange?: ((value: import("./config").FormData) => any) | undefined;
1364
1365
  } & {}>;
1366
+ emits: (event: "change", value: import("./config").FormData) => void;
1365
1367
  bem: {
1366
1368
  b: (blockSuffix?: string) => string;
1367
1369
  e: (element?: string) => string;
@@ -1422,7 +1424,9 @@ declare const _default: import("vue").DefineComponent<{
1422
1424
  readonly formData: import("./config").FormData;
1423
1425
  readonly item: any;
1424
1426
  }, {}>;
1425
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1427
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1428
+ change: (value: import("./config").FormData) => boolean;
1429
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1426
1430
  readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
1427
1431
  readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
1428
1432
  layout: import("vue-types").VueTypeDef<string>;
@@ -2508,7 +2512,9 @@ declare const _default: import("vue").DefineComponent<{
2508
2512
  gutter: number;
2509
2513
  }, boolean>;
2510
2514
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
2511
- }>>, {
2515
+ }>> & {
2516
+ onChange?: ((value: import("./config").FormData) => any) | undefined;
2517
+ }, {
2512
2518
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
2513
2519
  layout: import("vue-types").VueTypeDef<string>;
2514
2520
  labelCol: {
@@ -15,8 +15,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
15
  ...{ name: "LlForm" },
16
16
  __name: "form",
17
17
  props: form.formProps,
18
- setup(__props, { expose: __expose }) {
18
+ emits: form.formEmits,
19
+ setup(__props, { expose: __expose, emit: __emit }) {
19
20
  const props = __props;
21
+ const emits = __emit;
20
22
  const bem = createNamespace.createNamespace("form");
21
23
  const formData = vue.reactive(props.formData);
22
24
  const formRef = vue.ref();
@@ -40,6 +42,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
40
42
  }
41
43
  return bem.is("label-top");
42
44
  };
45
+ vue.watch(
46
+ () => formData,
47
+ (val) => {
48
+ emits("change", val);
49
+ },
50
+ {
51
+ deep: true
52
+ }
53
+ );
43
54
  __expose({
44
55
  validate,
45
56
  resetFields
@@ -1 +1 @@
1
- {"version":3,"file":"form.vue2.js","sources":["../../../../../packages/components/form/src/form.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-spin :spinning=\"props.loading\">\n <a-form ref=\"formRef\" v-bind=\"props.formOptions\" :model=\"props.formData\">\n <a-row v-bind=\"props.rowOptions\">\n <a-col\n v-for=\"(item, index) in props.formColumns\"\n :key=\"index\"\n v-bind=\"item?.colOptions ?? {}\"\n :span=\"item?.spanCol ?? 24\"\n >\n <slot name=\"formItem\" :item=\"item\" :index=\"index\">\n <ll-form-item\n :name=\"item?.key ?? index\"\n :class=\"getFormItemClass(item)\"\n v-bind=\"getBindValue(item)\"\n >\n <template #label>\n <slot name=\"label\" :item=\"item\" :index=\"index\">\n <span>{{ item.label }}</span>\n <span v-if=\"item?.tip\" :class=\"bem.e('tooltip-wrapper')\">\n <ll-tooltip\n style=\"margin-left: 8px\"\n :overlay-class-name=\"bem.e('tooltip')\"\n :arrow-point-at-center=\"true\"\n :max-width=\"item?.tipConfig?.maxWidth ?? 406\"\n :placement=\"item?.tipConfig?.placement ?? 'top'\"\n :tip=\"item.tip\"\n :font-size=\"'16px'\"\n v-bind=\"item?.tipConfig\"\n />\n </span>\n </slot>\n </template>\n <slot name=\"content\" :item=\"item\" :index=\"index\">\n <template v-if=\"!isEmpty(item.children)\">\n <a-row :gutter=\"5\" v-bind=\"item.rowOptions\">\n <a-col\n v-for=\"(child, childIndex) in item.children\"\n :key=\"childIndex\"\n :style=\"{\n display: 'flex',\n 'align-items': 'center'\n }\"\n v-bind=\"item?.colOptions ?? {}\"\n >\n <slot name=\"children\" :item=\"child\" :index=\"index\">\n <form-component :item=\"child\" :form-data=\"formData\" />\n </slot>\n </a-col>\n </a-row>\n </template>\n <form-component v-else :item=\"item\" :form-data=\"formData\" />\n </slot>\n </ll-form-item>\n </slot>\n </a-col>\n </a-row>\n </a-form>\n </a-spin>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { reactive, ref } from 'vue'\nimport { omit, isEmpty } from 'lodash-es'\nimport {\n formProps,\n // componentTypes,\n type FormColumn\n} from './config'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport formComponent from './components/form-component.vue'\n\n// 定义组件名称\ndefineOptions({ name: 'LlForm' })\n\n// Props\nconst props = defineProps(formProps)\n\nconst bem = createNamespace('form')\n\nconst formData = reactive(props.formData)\n\nconst formRef = ref()\n\nconst validate = async () => {\n return await formRef.value.validateFields()\n}\n\nconst resetFields = async () => {\n return await formRef.value.resetFields()\n}\n\nconst getBindValue = (item: FormColumn) => {\n const obj = { ...item }\n return omit(obj, ['label'])\n}\n\nconst getFormItemClass = (item = {} as FormColumn) => {\n if (props.formOptions.layout === 'horizontal') {\n if (item?.labelCol) {\n return item.labelCol.span && item.labelCol.span >= 24\n ? bem.is('label-top')\n : bem.is('label-left')\n } else {\n return bem.is('label-left')\n }\n }\n return bem.is('label-top')\n}\n\ndefineExpose({\n validate,\n resetFields\n})\n</script>\n"],"names":["createNamespace","reactive","ref","omit"],"mappings":";;;;;;;;;;;;;;;;;;AA+EA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAMA,gCAAgB,MAAM,CAAA,CAAA;AAElC,IAAM,MAAA,QAAA,GAAWC,YAAS,CAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAExC,IAAA,MAAM,UAAUC,OAAI,EAAA,CAAA;AAEpB,IAAA,MAAM,WAAW,YAAY;AAC3B,MAAO,OAAA,MAAM,OAAQ,CAAA,KAAA,CAAM,cAAe,EAAA,CAAA;AAAA,KAC5C,CAAA;AAEA,IAAA,MAAM,cAAc,YAAY;AAC9B,MAAO,OAAA,MAAM,OAAQ,CAAA,KAAA,CAAM,WAAY,EAAA,CAAA;AAAA,KACzC,CAAA;AAEA,IAAM,MAAA,YAAA,GAAe,CAAC,IAAqB,KAAA;AACzC,MAAM,MAAA,GAAA,GAAM,EAAE,GAAG,IAAK,EAAA,CAAA;AACtB,MAAA,OAAOC,aAAK,CAAA,GAAA,EAAK,CAAC,OAAO,CAAC,CAAA,CAAA;AAAA,KAC5B,CAAA;AAEA,IAAA,MAAM,gBAAmB,GAAA,CAAC,IAAO,GAAA,EAAqB,KAAA;AACpD,MAAI,IAAA,KAAA,CAAM,WAAY,CAAA,MAAA,KAAW,YAAc,EAAA;AAC7C,QAAA,IAAI,MAAM,QAAU,EAAA;AAClB,UAAA,OAAO,IAAK,CAAA,QAAA,CAAS,IAAQ,IAAA,IAAA,CAAK,QAAS,CAAA,IAAA,IAAQ,EAC/C,GAAA,GAAA,CAAI,EAAG,CAAA,WAAW,CAClB,GAAA,GAAA,CAAI,GAAG,YAAY,CAAA,CAAA;AAAA,SAClB,MAAA;AACL,UAAO,OAAA,GAAA,CAAI,GAAG,YAAY,CAAA,CAAA;AAAA,SAC5B;AAAA,OACF;AACA,MAAO,OAAA,GAAA,CAAI,GAAG,WAAW,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,QAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form.vue2.js","sources":["../../../../../packages/components/form/src/form.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-spin :spinning=\"props.loading\">\n <a-form ref=\"formRef\" v-bind=\"props.formOptions\" :model=\"props.formData\">\n <a-row v-bind=\"props.rowOptions\">\n <a-col\n v-for=\"(item, index) in props.formColumns\"\n :key=\"index\"\n v-bind=\"item?.colOptions ?? {}\"\n :span=\"item?.spanCol ?? 24\"\n >\n <slot name=\"formItem\" :item=\"item\" :index=\"index\">\n <ll-form-item\n :name=\"item?.key ?? index\"\n :class=\"getFormItemClass(item)\"\n v-bind=\"getBindValue(item)\"\n >\n <template #label>\n <slot name=\"label\" :item=\"item\" :index=\"index\">\n <span>{{ item.label }}</span>\n <span v-if=\"item?.tip\" :class=\"bem.e('tooltip-wrapper')\">\n <ll-tooltip\n style=\"margin-left: 8px\"\n :overlay-class-name=\"bem.e('tooltip')\"\n :arrow-point-at-center=\"true\"\n :max-width=\"item?.tipConfig?.maxWidth ?? 406\"\n :placement=\"item?.tipConfig?.placement ?? 'top'\"\n :tip=\"item.tip\"\n :font-size=\"'16px'\"\n v-bind=\"item?.tipConfig\"\n />\n </span>\n </slot>\n </template>\n <slot name=\"content\" :item=\"item\" :index=\"index\">\n <template v-if=\"!isEmpty(item.children)\">\n <a-row :gutter=\"5\" v-bind=\"item.rowOptions\">\n <a-col\n v-for=\"(child, childIndex) in item.children\"\n :key=\"childIndex\"\n :style=\"{\n display: 'flex',\n 'align-items': 'center'\n }\"\n v-bind=\"item?.colOptions ?? {}\"\n >\n <slot name=\"children\" :item=\"child\" :index=\"index\">\n <form-component :item=\"child\" :form-data=\"formData\" />\n </slot>\n </a-col>\n </a-row>\n </template>\n <form-component v-else :item=\"item\" :form-data=\"formData\" />\n </slot>\n </ll-form-item>\n </slot>\n </a-col>\n </a-row>\n </a-form>\n </a-spin>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { reactive, ref, watch } from 'vue'\nimport { omit, isEmpty } from 'lodash-es'\nimport { formProps, formEmits, type FormColumn } from './config'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport formComponent from './components/form-component.vue'\n\n// 定义组件名称\ndefineOptions({ name: 'LlForm' })\n\n// Props\nconst props = defineProps(formProps)\n\nconst emits = defineEmits(formEmits)\n\nconst bem = createNamespace('form')\n\nconst formData = reactive(props.formData)\n\nconst formRef = ref()\n\nconst validate = async () => {\n return await formRef.value.validateFields()\n}\n\nconst resetFields = async () => {\n return await formRef.value.resetFields()\n}\n\nconst getBindValue = (item: FormColumn) => {\n const obj = { ...item }\n return omit(obj, ['label'])\n}\n\nconst getFormItemClass = (item = {} as FormColumn) => {\n if (props.formOptions.layout === 'horizontal') {\n if (item?.labelCol) {\n return item.labelCol.span && item.labelCol.span >= 24\n ? bem.is('label-top')\n : bem.is('label-left')\n } else {\n return bem.is('label-left')\n }\n }\n return bem.is('label-top')\n}\n\nwatch(\n () => formData,\n val => {\n emits('change', val)\n },\n {\n deep: true\n }\n)\n\ndefineExpose({\n validate,\n resetFields\n})\n</script>\n"],"names":["createNamespace","reactive","ref","omit","watch"],"mappings":";;;;;;;;;;;;;;;;;;;AA2EA,IAAA,MAAM,KAAQ,GAAA,OAAA,CA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CAAO,GAAA,KAAA;AACL,QAAA,KAAA,CAAM,UAAU,GAAG,CAAA,CAAA;AAAA,OACrB;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,QAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -234,6 +234,7 @@ exports.useTabProps = useTabMixin.useTabProps;
234
234
  exports.useTabSetup = useTabMixin.useTabSetup;
235
235
  exports.emptyProps = empty.emptyProps;
236
236
  exports.url = empty.url;
237
+ exports.formEmits = form.formEmits;
237
238
  exports.formProps = form.formProps;
238
239
  exports.checkedType = components.checkedType;
239
240
  exports.formComponentProps = formComponent.formComponentProps;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1265,7 +1265,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
1265
1265
  gutter: number;
1266
1266
  }, boolean>;
1267
1267
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1268
- }>>, {
1268
+ }>> & {
1269
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
1270
+ }, {
1269
1271
  props: import("@vue/shared").LooseRequired<{
1270
1272
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
1271
1273
  layout: import("vue-types").VueTypeDef<string>;
@@ -1541,7 +1543,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
1541
1543
  }>>;
1542
1544
  readonly formColumns: any[];
1543
1545
  readonly formData: import("ll-plus/es/index").FormData;
1546
+ readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
1544
1547
  } & {}>;
1548
+ emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
1545
1549
  bem: {
1546
1550
  b: (blockSuffix?: string) => string;
1547
1551
  e: (element?: string) => string;
@@ -1602,7 +1606,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
1602
1606
  readonly formData: import("ll-plus/es/index").FormData;
1603
1607
  readonly item: any;
1604
1608
  }, {}>;
1605
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
1609
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1610
+ change: (value: import("ll-plus/es/index").FormData) => boolean;
1611
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
1606
1612
  readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
1607
1613
  readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
1608
1614
  layout: import("vue-types").VueTypeDef<string>;
@@ -2688,7 +2694,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
2688
2694
  gutter: number;
2689
2695
  }, boolean>;
2690
2696
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
2691
- }>>, {
2697
+ }>> & {
2698
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
2699
+ }, {
2692
2700
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
2693
2701
  layout: import("vue-types").VueTypeDef<string>;
2694
2702
  labelCol: {
@@ -4056,7 +4064,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
4056
4064
  gutter: number;
4057
4065
  }, boolean>;
4058
4066
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
4059
- }>>, {
4067
+ }>> & {
4068
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
4069
+ }, {
4060
4070
  props: import("@vue/shared").LooseRequired<{
4061
4071
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
4062
4072
  layout: import("vue-types").VueTypeDef<string>;
@@ -4332,7 +4342,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
4332
4342
  }>>;
4333
4343
  readonly formColumns: any[];
4334
4344
  readonly formData: import("ll-plus/es/index").FormData;
4345
+ readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
4335
4346
  } & {}>;
4347
+ emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
4336
4348
  bem: {
4337
4349
  b: (blockSuffix?: string) => string;
4338
4350
  e: (element?: string) => string;
@@ -6185,7 +6197,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
6185
6197
  gutter: number;
6186
6198
  }, boolean>;
6187
6199
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6188
- }>>, {
6200
+ }>> & {
6201
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
6202
+ }, {
6189
6203
  props: import("@vue/shared").LooseRequired<{
6190
6204
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
6191
6205
  layout: import("vue-types").VueTypeDef<string>;
@@ -6461,7 +6475,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
6461
6475
  }>>;
6462
6476
  readonly formColumns: any[];
6463
6477
  readonly formData: import("ll-plus/es/index").FormData;
6478
+ readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
6464
6479
  } & {}>;
6480
+ emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
6465
6481
  bem: {
6466
6482
  b: (blockSuffix?: string) => string;
6467
6483
  e: (element?: string) => string;
@@ -6522,7 +6538,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
6522
6538
  readonly formData: import("ll-plus/es/index").FormData;
6523
6539
  readonly item: any;
6524
6540
  }, {}>;
6525
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
6541
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6542
+ change: (value: import("ll-plus/es/index").FormData) => boolean;
6543
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
6526
6544
  readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
6527
6545
  readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
6528
6546
  layout: import("vue-types").VueTypeDef<string>;
@@ -7608,7 +7626,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
7608
7626
  gutter: number;
7609
7627
  }, boolean>;
7610
7628
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
7611
- }>>, {
7629
+ }>> & {
7630
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
7631
+ }, {
7612
7632
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
7613
7633
  layout: import("vue-types").VueTypeDef<string>;
7614
7634
  labelCol: {
@@ -8976,7 +8996,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
8976
8996
  gutter: number;
8977
8997
  }, boolean>;
8978
8998
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
8979
- }>>, {
8999
+ }>> & {
9000
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
9001
+ }, {
8980
9002
  props: import("@vue/shared").LooseRequired<{
8981
9003
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
8982
9004
  layout: import("vue-types").VueTypeDef<string>;
@@ -9252,7 +9274,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
9252
9274
  }>>;
9253
9275
  readonly formColumns: any[];
9254
9276
  readonly formData: import("ll-plus/es/index").FormData;
9277
+ readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
9255
9278
  } & {}>;
9279
+ emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
9256
9280
  bem: {
9257
9281
  b: (blockSuffix?: string) => string;
9258
9282
  e: (element?: string) => string;
@@ -11032,7 +11056,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
11032
11056
  gutter: number;
11033
11057
  }, boolean>;
11034
11058
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
11035
- }>>, {
11059
+ }>> & {
11060
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
11061
+ }, {
11036
11062
  props: import("@vue/shared").LooseRequired<{
11037
11063
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
11038
11064
  layout: import("vue-types").VueTypeDef<string>;
@@ -11308,7 +11334,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
11308
11334
  }>>;
11309
11335
  readonly formColumns: any[];
11310
11336
  readonly formData: import("ll-plus/es/index").FormData;
11337
+ readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
11311
11338
  } & {}>;
11339
+ emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
11312
11340
  bem: {
11313
11341
  b: (blockSuffix?: string) => string;
11314
11342
  e: (element?: string) => string;
@@ -11369,7 +11397,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
11369
11397
  readonly formData: import("ll-plus/es/index").FormData;
11370
11398
  readonly item: any;
11371
11399
  }, {}>;
11372
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
11400
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11401
+ change: (value: import("ll-plus/es/index").FormData) => boolean;
11402
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
11373
11403
  readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
11374
11404
  readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
11375
11405
  layout: import("vue-types").VueTypeDef<string>;
@@ -12455,7 +12485,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
12455
12485
  gutter: number;
12456
12486
  }, boolean>;
12457
12487
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
12458
- }>>, {
12488
+ }>> & {
12489
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
12490
+ }, {
12459
12491
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
12460
12492
  layout: import("vue-types").VueTypeDef<string>;
12461
12493
  labelCol: {
@@ -13823,7 +13855,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
13823
13855
  gutter: number;
13824
13856
  }, boolean>;
13825
13857
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
13826
- }>>, {
13858
+ }>> & {
13859
+ onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
13860
+ }, {
13827
13861
  props: import("@vue/shared").LooseRequired<{
13828
13862
  readonly formOptions: Partial<import("vue").ExtractPropTypes<{
13829
13863
  layout: import("vue-types").VueTypeDef<string>;
@@ -14099,7 +14133,9 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
14099
14133
  }>>;
14100
14134
  readonly formColumns: any[];
14101
14135
  readonly formData: import("ll-plus/es/index").FormData;
14136
+ readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
14102
14137
  } & {}>;
14138
+ emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
14103
14139
  bem: {
14104
14140
  b: (blockSuffix?: string) => string;
14105
14141
  e: (element?: string) => string;