@aplus-frontend/ui 0.4.34 → 0.4.36

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 (39) hide show
  1. package/es/src/ap-form/hooks/use-watch.d.ts +4 -1
  2. package/es/src/ap-form/hooks/use-watch.mjs +31 -29
  3. package/es/src/ap-form/index.mjs +1 -1
  4. package/es/src/ap-form/search-form/index.vue.mjs +14 -15
  5. package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
  6. package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
  7. package/es/src/ap-modal/index.d.ts +2 -1
  8. package/es/src/ap-modal/index.mjs +2 -0
  9. package/es/src/ap-modal/interface.d.ts +126 -1
  10. package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
  11. package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
  12. package/es/src/ap-modal/utils/index.d.ts +1 -0
  13. package/es/src/ap-modal/utils/index.mjs +4 -2
  14. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
  15. package/es/src/ap-table/utils.d.ts +1 -4
  16. package/es/src/ap-table/utils.mjs +43 -41
  17. package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
  18. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +13 -13
  19. package/lib/src/ap-form/hooks/use-watch.d.ts +4 -1
  20. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  21. package/lib/src/ap-form/index.js +1 -1
  22. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  23. package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
  24. package/lib/src/ap-modal/enums/modalMessage.js +1 -0
  25. package/lib/src/ap-modal/index.d.ts +2 -1
  26. package/lib/src/ap-modal/index.js +1 -1
  27. package/lib/src/ap-modal/interface.d.ts +126 -1
  28. package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
  29. package/lib/src/ap-modal/utils/createModalStream.js +1 -0
  30. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  31. package/lib/src/ap-modal/utils/index.js +1 -1
  32. package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
  33. package/lib/src/ap-table/utils.d.ts +1 -4
  34. package/lib/src/ap-table/utils.js +1 -1
  35. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  36. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  37. package/package.json +5 -5
  38. package/theme/ap-grid/index.css +302 -0
  39. package/theme/ap-grid/index.less +65 -0
@@ -2,5 +2,8 @@ import { NamePath } from '@aplus-frontend/antdv/es/form/interface';
2
2
  import { ApFormExpose } from '../interface';
3
3
  import { Ref } from 'vue';
4
4
  type ApFormIns<T> = ApFormExpose<T>;
5
- declare const useWatch: <ValueType = any, StoreType = any>(name: NamePath | Ref<NamePath>, form?: Ref<ApFormIns<StoreType> | undefined>) => Ref<ValueType | undefined, ValueType | undefined>;
5
+ type WatchOptions<ValueType> = {
6
+ initialValue: ValueType;
7
+ };
8
+ export declare function useWatch<ValueType = any, StoreType = any>(name: NamePath | Ref<NamePath>, formOrOptions?: Ref<ApFormIns<StoreType> | undefined> | WatchOptions<ValueType>, options?: WatchOptions<ValueType>): Ref<ValueType | undefined, ValueType | undefined>;
6
9
  export default useWatch;
@@ -1,40 +1,42 @@
1
- import { useInjectForm as V } from "../context.mjs";
2
- import { ref as N, watchEffect as A, unref as l, watch as M } from "vue";
3
- import { isArray as R } from "lodash-unified";
4
- import { INTERNAL_FORM_INSTANCE_MARK as y } from "../constant.mjs";
5
- function w(t, e) {
6
- return R(e) ? e.reduce((n, u) => n == null ? void 0 : n[u], t) : t == null ? void 0 : t[e];
1
+ import { useInjectForm as M } from "../context.mjs";
2
+ import { ref as R, watchEffect as d, unref as s, watch as y } from "vue";
3
+ import { isArray as E } from "lodash-unified";
4
+ import { INTERNAL_FORM_INSTANCE_MARK as _ } from "../constant.mjs";
5
+ function N(e, t) {
6
+ return E(t) ? t.reduce((n, l) => n == null ? void 0 : n[l], e) : e == null ? void 0 : e[t];
7
7
  }
8
- function I(t) {
8
+ function V(e) {
9
9
  try {
10
- return JSON.stringify(t);
10
+ return JSON.stringify(e);
11
11
  } catch {
12
12
  return Math.random();
13
13
  }
14
14
  }
15
- const F = (t, e) => {
16
- const { internalInstance: n, model: u } = V(), i = N();
17
- let a = "", o = !0;
18
- return A((s) => {
19
- var f;
20
- const r = ((f = e == null ? void 0 : e.value) == null ? void 0 : f.getInternalInstance(y)) || n;
21
- if (!r) {
22
- o = !1;
15
+ function W(e, t, n) {
16
+ const { internalInstance: l, model: v } = M(), g = (n == null ? void 0 : n.initialValue) || (t == null ? void 0 : t.initialValue) || void 0, r = R(g);
17
+ let u = V(g), h = !0;
18
+ const i = t && "value" in t ? t : void 0;
19
+ return d((f) => {
20
+ var w;
21
+ const a = ((w = i == null ? void 0 : i.value) == null ? void 0 : w.getInternalInstance(_)) || l;
22
+ if (!a) {
23
+ h = !1;
23
24
  return;
24
25
  }
25
- const c = r.registerWatch((S) => {
26
- const g = w(S, l(t)), h = I(g);
27
- h !== a && (i.value = g, a = h);
28
- }, o);
29
- s(c);
30
- }), M(
31
- () => l(t),
32
- (s) => {
33
- const r = w(l(u), s), c = I(r);
34
- c !== a && (i.value = r, a = c);
26
+ const c = a.registerWatch((A) => {
27
+ const I = N(A, s(e)), S = V(I);
28
+ S !== u && (r.value = I, u = S);
29
+ }, h);
30
+ f(c);
31
+ }), y(
32
+ () => s(e),
33
+ (f) => {
34
+ const a = N(s(v), f), c = V(a);
35
+ c !== u && (r.value = a, u = c);
35
36
  }
36
- ), i;
37
- };
37
+ ), r;
38
+ }
38
39
  export {
39
- F as default
40
+ W as default,
41
+ W as useWatch
40
42
  };
@@ -4,7 +4,7 @@ import "./item-group/index.vue2.mjs";
4
4
  import "./list/index.vue2.mjs";
5
5
  import "./search-form/index.vue2.mjs";
6
6
  import "./modal-form/index.vue2.mjs";
7
- import m from "./hooks/use-watch.mjs";
7
+ import { useWatch as m } from "./hooks/use-watch.mjs";
8
8
  import "./dependency/index.vue2.mjs";
9
9
  import "./set/index.vue2.mjs";
10
10
  import "./drawer-form/index.vue2.mjs";
@@ -1,4 +1,4 @@
1
- import { isVNode as se, defineComponent as ie, useSlots as ce, ref as ue, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F, createBlock as C, openBlock as m, mergeProps as de, withCtx as E, resolveDynamicComponent as b, createElementBlock as fe, renderList as me } from "vue";
1
+ import { isVNode as se, defineComponent as ie, useSlots as ue, ref as ce, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F, createBlock as C, openBlock as m, mergeProps as de, withCtx as E, resolveDynamicComponent as b, createElementBlock as fe, renderList as me } from "vue";
2
2
  import { Col as B, Flex as $, Space as he, Button as v, Row as xe } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
@@ -108,8 +108,8 @@ const r = 24, ze = /* @__PURE__ */ ie({
108
108
  emit: H
109
109
  }) {
110
110
  var I;
111
- const c = ce(), n = h, G = H, {
112
- value: u,
111
+ const u = ue(), n = h, G = H, {
112
+ value: c,
113
113
  updateValue: J
114
114
  } = Fe(n, G, {
115
115
  valuePropName: "collapse",
@@ -118,9 +118,9 @@ const r = 24, ze = /* @__PURE__ */ ie({
118
118
  b: K
119
119
  } = Be("ap-form-search-form"), Q = Re("uiMode"), {
120
120
  t: w
121
- } = Ae(), g = ue();
121
+ } = Ae(), g = ce();
122
122
  function X() {
123
- J(!o(u));
123
+ J(!o(c));
124
124
  }
125
125
  function Y() {
126
126
  var e, t;
@@ -131,12 +131,12 @@ const r = 24, ze = /* @__PURE__ */ ie({
131
131
  n.customReset || (t = (e = g.value) == null ? void 0 : e.resetFields) == null || t.call(e), W(n.onReset);
132
132
  }
133
133
  let N = [];
134
- const R = M(L(c.default())), d = M((I = c.extra) == null ? void 0 : I.call(c)), k = S(() => Math.floor(r / n.countPerRow));
135
- D(() => c.default(), (e) => {
134
+ const R = M(L(u.default())), d = M((I = u.extra) == null ? void 0 : I.call(u)), k = S(() => Math.floor(r / n.countPerRow));
135
+ D(() => u.default(), (e) => {
136
136
  N = R.value, R.value = Se(N, L(e));
137
137
  }), D(() => {
138
138
  var e;
139
- return (e = c.extra) == null ? void 0 : e.call(c);
139
+ return (e = u.extra) == null ? void 0 : e.call(u);
140
140
  }, (e) => {
141
141
  d.value = e;
142
142
  });
@@ -158,9 +158,8 @@ const r = 24, ze = /* @__PURE__ */ ie({
158
158
  let V = 0, j = 0;
159
159
  const le = s.map((p, f) => {
160
160
  const x = p.props, y = x.span || l;
161
- if (V += y, !n.forceExpand && o(u) && V > O) {
161
+ if (V += y, !n.forceExpand && o(c) && V > O) {
162
162
  t.push(pe(p, {
163
- class: "ant-form-item-hidden",
164
163
  hidden: !0
165
164
  }));
166
165
  return;
@@ -187,7 +186,7 @@ const r = 24, ze = /* @__PURE__ */ ie({
187
186
  }, {
188
187
  default: () => [a(q, null, {
189
188
  default: () => [a($, {
190
- justify: !o(u) && t.lastRowOnlyIncludeActionAndExtra && !(o(d) && n.extraInAction) ? "flex-end" : "space-between"
189
+ justify: !o(c) && t.lastRowOnlyIncludeActionAndExtra && !(o(d) && n.extraInAction) ? "flex-end" : "space-between"
191
190
  }, {
192
191
  default: () => [a(he, null, {
193
192
  default: () => [a(v, {
@@ -205,19 +204,19 @@ const r = 24, ze = /* @__PURE__ */ ie({
205
204
  onClick: X,
206
205
  icon: a(ye, {
207
206
  style: Q.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
208
- rotate: o(u) ? 90 : -90
207
+ rotate: o(c) ? 90 : -90
209
208
  }, null)
210
209
  }, null) : null]
211
210
  }), n.extraInAction ? o(d) : null]
212
211
  })]
213
212
  })]
214
213
  }), l = !n.extraInAction && o(d) ? a(B, {
215
- span: o(u) ? t.actualExtraSpan : t.defaultExtraSpan,
214
+ span: o(c) ? t.actualExtraSpan : t.defaultExtraSpan,
216
215
  key: "extraNode"
217
216
  }, {
218
217
  default: () => [a(q, null, {
219
218
  default: () => [a($, {
220
- justify: !o(u) && (t.defaultExtraSpan === r || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
219
+ justify: !o(c) && (t.defaultExtraSpan === r || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
221
220
  }, be(e = o(d)) ? e : {
222
221
  default: () => [e]
223
222
  })]
@@ -225,7 +224,7 @@ const r = 24, ze = /* @__PURE__ */ ie({
225
224
  }) : null, i = a(B, {
226
225
  span: t.defaultExtraSpan
227
226
  }, null);
228
- return !o(u) && t.lastRowOnlyIncludeActionAndExtra ? a(F, null, [l || i, s]) : a(F, null, [s, l]);
227
+ return !o(c) && t.lastRowOnlyIncludeActionAndExtra ? a(F, null, [l || i, s]) : a(F, null, [s, l]);
229
228
  });
230
229
  return z({
231
230
  apForm: S(() => o(g))
@@ -0,0 +1,6 @@
1
+ export declare enum ModalMessage {
2
+ /**
3
+ * 弹框不需要关闭
4
+ */
5
+ NOT_NEED_CLOSE = "Info: [aplus-ui: ApModal.createModalStream] The modal does not need to be closed"
6
+ }
@@ -0,0 +1,4 @@
1
+ var o = /* @__PURE__ */ ((e) => (e.NOT_NEED_CLOSE = "Info: [aplus-ui: ApModal.createModalStream] The modal does not need to be closed", e))(o || {});
2
+ export {
3
+ o as ModalMessage
4
+ };
@@ -1,8 +1,9 @@
1
1
  import { Modal as _Modal } from '@aplus-frontend/antdv';
2
- import { CreateModalFunc } from './interface';
2
+ import { CreateModalFunc, CreateModalStreamFunc } from './interface';
3
3
  export * from './interface';
4
4
  type ApModalMixedProps = typeof _Modal & {
5
5
  createModal: CreateModalFunc;
6
+ createModalStream: CreateModalStreamFunc;
6
7
  };
7
8
  declare const ApModal: ApModalMixedProps;
8
9
  export { ApModal };
@@ -2,8 +2,10 @@ import { Modal as r } from "@aplus-frontend/antdv";
2
2
  import "./utils/index.mjs";
3
3
  import "./interface.mjs";
4
4
  import { createModal as a } from "./utils/createModal.mjs";
5
+ import { createModalStream as t } from "./utils/createModalStream.mjs";
5
6
  const o = r;
6
7
  o.createModal = a;
8
+ o.createModalStream = t;
7
9
  o.name = "ApModal";
8
10
  export {
9
11
  o as ApModal
@@ -1,16 +1,141 @@
1
- import { ModalProps } from '@aplus-frontend/antdv';
1
+ import { ModalProps, ModalFuncProps } from '@aplus-frontend/antdv';
2
+ import { ModalFunc } from '@aplus-frontend/antdv/lib/modal/confirm';
2
3
  export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon'> & Partial<{
4
+ /**
5
+ * 点击取消回调
6
+ * @param params content组件内使用defineExpose导出的对象
7
+ * @returns
8
+ */
3
9
  onCancel: (params: ContentRecord) => any | Promise<any>;
10
+ /**
11
+ * 点击确定回调
12
+ * @param params content组件内使用defineExpose导出的对象
13
+ * @returns
14
+ */
4
15
  onOk: (params: ContentRecord) => any | Promise<any>;
16
+ /**
17
+ * 指定弹框挂载的 HTML 节点
18
+ */
5
19
  getContainer: HTMLElement;
20
+ /**
21
+ * 内容
22
+ */
6
23
  content: any;
24
+ /**
25
+ * 关闭时是否销毁弹框
26
+ */
7
27
  destroyOnClose: boolean;
28
+ /**
29
+ * 自适应高度
30
+ */
8
31
  wrapperOffset: boolean | number;
9
32
  }>;
10
33
  export type CreateModalFuncReturn = {
34
+ /**
35
+ * 销毁弹框
36
+ * @returns
37
+ */
11
38
  destroy: () => void;
39
+ /**
40
+ * 更新弹框 props 属性
41
+ * @param newConfig
42
+ * @returns
43
+ */
12
44
  update: (newConfig: CreateModalFuncProps) => void;
45
+ /**
46
+ * 打开弹框
47
+ * @returns
48
+ */
13
49
  open: () => void;
50
+ /**
51
+ * 关闭弹框,不销毁
52
+ * @returns
53
+ */
14
54
  close: () => void;
15
55
  };
16
56
  export type CreateModalFunc = (props: CreateModalFuncProps) => CreateModalFuncReturn;
57
+ export type ModalStreamNextFunc<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = (option: {
58
+ /**
59
+ * 下一步弹框的id
60
+ */
61
+ modalId?: string;
62
+ /**
63
+ * 下一步弹框传递的参数
64
+ */
65
+ params?: any;
66
+ /**
67
+ * 本次弹框关闭前的回调,createModal默认关闭弹框,其他弹框类型默认销毁弹框,调用弹框实例的open方法可以不关闭弹框
68
+ */
69
+ handleCurrentModal?: (
70
+ /**
71
+ * 本次弹框的实例方法
72
+ */
73
+ modalExample: ModalStreamTypeExample[ModalType]) => any | Promise<any>;
74
+ }) => any | Promise<any>;
75
+ export type ModalStreamType = {
76
+ createModal: CreateModalStream<'createModal'>;
77
+ info: ModalFuncStream<'info'>;
78
+ success: ModalFuncStream<'success'>;
79
+ error: ModalFuncStream<'error'>;
80
+ warning: ModalFuncStream<'warning'>;
81
+ confirm: ModalFuncStream<'confirm'>;
82
+ };
83
+ export type ModalStreamFuncReturn = ReturnType<ModalFunc> & {
84
+ open: () => void;
85
+ };
86
+ export type ModalStreamTypeExample = {
87
+ createModal: CreateModalFuncReturn;
88
+ info: ModalStreamFuncReturn;
89
+ success: ModalStreamFuncReturn;
90
+ error: ModalStreamFuncReturn;
91
+ warning: ModalStreamFuncReturn;
92
+ confirm: ModalStreamFuncReturn;
93
+ };
94
+ export type ModalFuncStream<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = Omit<ModalFuncProps, 'onOk' | 'onCancel'> & {
95
+ /**
96
+ * 点击确定回调
97
+ * @param next 下一步
98
+ * @returns
99
+ */
100
+ onOk?: (next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
101
+ /**
102
+ * 点击取消回调
103
+ * @param next 下一步
104
+ * @returns
105
+ */
106
+ onCancel?: (next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
107
+ };
108
+ export type CreateModalStream<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = Omit<CreateModalFuncProps, 'destroyOnClose' | 'onOk' | 'onCancel'> & {
109
+ /**
110
+ * 点击确定回调
111
+ * * @param params content组件内使用defineExpose导出的对象
112
+ * @param next 下一步
113
+ * @returns
114
+ */
115
+ onOk?: (params: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
116
+ /**
117
+ * 点击取消回调
118
+ * * @param params content组件内使用defineExpose导出的对象
119
+ * @param next 下一步
120
+ * @returns
121
+ */
122
+ onCancel?: (params: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
123
+ };
124
+ export type ModalStreamTypeKey = keyof ModalStreamType;
125
+ export type CreateModalStreamProps<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = ModalType extends ModalStreamTypeKey ? {
126
+ /**
127
+ * 弹框id
128
+ */
129
+ modalId: string;
130
+ /**
131
+ * 弹框类型
132
+ */
133
+ modalType?: ModalType;
134
+ /**
135
+ * 弹框属性
136
+ * @param params 上一步弹框传递的参数
137
+ * @returns
138
+ */
139
+ props: (params: any) => Promise<ModalStreamType[ModalType]>;
140
+ } : never;
141
+ export type CreateModalStreamFunc<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = (streamList: CreateModalStreamProps<ModalType>[], firstModalId?: string) => void;
@@ -0,0 +1,2 @@
1
+ import { CreateModalStreamFunc } from '../interface';
2
+ export declare const createModalStream: CreateModalStreamFunc;
@@ -0,0 +1,99 @@
1
+ import { isValid as L } from "@aplus-frontend/utils";
2
+ import { createModal as P } from "./createModal.mjs";
3
+ import { Modal as V } from "@aplus-frontend/antdv";
4
+ import { ModalMessage as S } from "../enums/modalMessage.mjs";
5
+ const G = (_, F) => {
6
+ var O;
7
+ const l = F ?? (Array.isArray(_) ? (O = _[0]) == null ? void 0 : O.modalId : void 0), d = /* @__PURE__ */ new Map();
8
+ let T, u, E = 1e3;
9
+ const y = async ({
10
+ modalId: a,
11
+ params: o,
12
+ handleCurrentModal: t
13
+ }) => {
14
+ T = o;
15
+ const w = _.find((n) => n.modalId === a);
16
+ let s = !1;
17
+ if (u) {
18
+ const n = d.get(u), i = {
19
+ ...n,
20
+ destroy: () => {
21
+ var f;
22
+ (f = n == null ? void 0 : n.destroy) == null || f.call(n), d.delete(u);
23
+ },
24
+ open: () => {
25
+ s = !0;
26
+ }
27
+ };
28
+ await (t == null ? void 0 : t(i));
29
+ }
30
+ return w && setTimeout(() => {
31
+ k(w);
32
+ }), s;
33
+ }, I = () => {
34
+ var a;
35
+ for (const [o, t] of d)
36
+ (a = t == null ? void 0 : t.destroy) == null || a.call(t);
37
+ }, k = async (a) => {
38
+ var g, A, C, z;
39
+ const {
40
+ modalId: o,
41
+ modalType: t = "createModal",
42
+ props: w
43
+ } = a;
44
+ u = o;
45
+ const s = d.get(o), n = await (w == null ? void 0 : w(T));
46
+ E = Math.max((n == null ? void 0 : n.zIndex) ?? 0, E), E += 1;
47
+ let i, f = !1;
48
+ if (t === "createModal") {
49
+ const e = n, m = async (r) => (f = !0, await y(r));
50
+ i = {
51
+ ...e,
52
+ destroyOnClose: !1,
53
+ zIndex: E,
54
+ onOk: async (r) => {
55
+ var N;
56
+ const c = await ((N = e == null ? void 0 : e.onOk) == null ? void 0 : N.call(e, r, m));
57
+ if (f || I(), c)
58
+ throw new Error(S.NOT_NEED_CLOSE);
59
+ },
60
+ onCancel: async (r) => {
61
+ var N;
62
+ const c = await ((N = e == null ? void 0 : e.onCancel) == null ? void 0 : N.call(e, r, m));
63
+ if (f || I(), c)
64
+ throw new Error(S.NOT_NEED_CLOSE);
65
+ }
66
+ };
67
+ } else {
68
+ const e = n, m = async (r) => (f = !0, await y(r));
69
+ i = {
70
+ ...e,
71
+ zIndex: E,
72
+ onOk: async () => {
73
+ var c;
74
+ const r = await ((c = e == null ? void 0 : e.onOk) == null ? void 0 : c.call(e, m));
75
+ if (f || I(), r)
76
+ throw new Error(S.NOT_NEED_CLOSE);
77
+ },
78
+ onCancel: async () => {
79
+ var c;
80
+ const r = await ((c = e == null ? void 0 : e.onCancel) == null ? void 0 : c.call(e, m));
81
+ if (f || I(), r)
82
+ throw new Error(S.NOT_NEED_CLOSE);
83
+ }
84
+ };
85
+ }
86
+ if (s) {
87
+ s == null || s.update(i), (g = s == null ? void 0 : s.open) == null || g.call(s);
88
+ return;
89
+ } else if (t === "createModal") {
90
+ const e = P(i);
91
+ (A = e == null ? void 0 : e.open) == null || A.call(e), d.set(o, e);
92
+ } else
93
+ (z = (C = V) == null ? void 0 : C[t]) == null || z.call(C, i);
94
+ }, D = _.find((a) => L(l) && a.modalId === l);
95
+ D !== void 0 && k(D);
96
+ };
97
+ export {
98
+ G as createModalStream
99
+ };
@@ -1 +1,2 @@
1
1
  export * from './createModal';
2
+ export * from './createModalStream';
@@ -1,4 +1,6 @@
1
- import { createModal as r } from "./createModal.mjs";
1
+ import { createModal as o } from "./createModal.mjs";
2
+ import { createModalStream as t } from "./createModalStream.mjs";
2
3
  export {
3
- r as createModal
4
+ o as createModal,
5
+ t as createModalStream
4
6
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as t, createElementBlock as o, openBlock as n, Fragment as r, createBlock as a, createTextVNode as s, resolveDynamicComponent as c, toDisplayString as m } from "vue";
2
- const u = /* @__PURE__ */ t({
1
+ import { defineComponent as n, createBlock as o, openBlock as t, resolveDynamicComponent as r } from "vue";
2
+ const s = /* @__PURE__ */ n({
3
3
  name: "ApTableDynamicComponent",
4
4
  inheritAttrs: !1,
5
5
  __name: "index",
@@ -7,12 +7,9 @@ const u = /* @__PURE__ */ t({
7
7
  customRender: { type: Function }
8
8
  },
9
9
  setup(p) {
10
- return (e, l) => (n(), o(r, null, [
11
- (n(), a(c(e.customRender(e.$attrs)))),
12
- s(" " + m(console.log(e.$attrs)), 1)
13
- ], 64));
10
+ return (e, a) => (t(), o(r(e.customRender(e.$attrs))));
14
11
  }
15
12
  });
16
13
  export {
17
- u as default
14
+ s as default
18
15
  };
@@ -1010,10 +1010,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
1010
1010
  };
1011
1011
  parser: {
1012
1012
  type: PropType<(displayValue: string) => ValueType>;
1013
- default: (displayValue: string) => **
1014
- * 通常情况下,表格渲染是不需要请求网络数据的,因此这里删掉request,
1015
- * 如果需要做映射,可以在外部发起一次网络请求,然后使用valueEnum设置匹配枚举。
1016
- */).ValueType;
1013
+ default: (displayValue: string) => ValueType;
1017
1014
  };
1018
1015
  formatter: {
1019
1016
  type: PropType<(value: ValueType, info: {