@aplus-frontend/ui 0.2.20 → 0.2.22

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 (73) hide show
  1. package/es/index.mjs +95 -93
  2. package/es/src/ap-descriptions/help-message/index.vue2.mjs +18 -18
  3. package/es/src/ap-drawer/index.d.ts +8 -0
  4. package/es/src/ap-drawer/index.mjs +10 -0
  5. package/es/src/ap-drawer/interface.d.ts +16 -0
  6. package/es/src/ap-drawer/interface.mjs +1 -0
  7. package/es/src/ap-drawer/style/css.d.ts +1 -0
  8. package/es/src/ap-drawer/style/css.js +1 -0
  9. package/es/src/ap-drawer/style/index.d.ts +1 -0
  10. package/es/src/ap-drawer/style/index.js +1 -0
  11. package/es/src/ap-drawer/utils/createDrawer.d.ts +2 -0
  12. package/es/src/ap-drawer/utils/createDrawer.mjs +83 -0
  13. package/es/src/ap-drawer/utils/index.d.ts +1 -0
  14. package/es/src/ap-drawer/utils/index.mjs +4 -0
  15. package/es/src/ap-form/interface.d.ts +1 -1
  16. package/es/src/ap-form/item/index.vue.mjs +48 -51
  17. package/es/src/ap-form/items/number/index.vue.d.ts +10 -10
  18. package/es/src/ap-form/items/text/index.vue.d.ts +10 -10
  19. package/es/src/ap-form/items/text/password.vue.d.ts +10 -10
  20. package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -9
  21. package/es/src/ap-form/render/control.vue.mjs +7 -7
  22. package/es/src/ap-form/render/item.vue.d.ts +6 -5
  23. package/es/src/ap-form/render/item.vue.mjs +20 -12
  24. package/es/src/ap-form/render/style/css.d.ts +1 -0
  25. package/es/src/ap-form/render/style/css.js +1 -0
  26. package/es/src/ap-form/render/style/style.d.ts +1 -0
  27. package/es/src/ap-list/index.vue.d.ts +10 -2
  28. package/es/src/ap-list/index.vue.mjs +135 -85
  29. package/es/src/ap-list/interface.d.ts +22 -3
  30. package/es/src/ap-modal/interface.d.ts +3 -0
  31. package/es/src/ap-modal/utils/createModal.mjs +46 -36
  32. package/es/src/ap-table/constants.d.ts +42 -42
  33. package/es/src/ap-tag/ap-tag.vue.mjs +16 -13
  34. package/es/src/index.d.ts +1 -0
  35. package/es/src/index.mjs +206 -204
  36. package/es/src/path-map.mjs +4 -1
  37. package/lib/index.js +1 -1
  38. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  39. package/lib/src/ap-drawer/index.d.ts +8 -0
  40. package/lib/src/ap-drawer/index.js +1 -0
  41. package/lib/src/ap-drawer/interface.d.ts +16 -0
  42. package/lib/src/ap-drawer/interface.js +1 -0
  43. package/lib/src/ap-drawer/style/css.d.ts +1 -0
  44. package/lib/src/ap-drawer/style/css.js +1 -0
  45. package/lib/src/ap-drawer/style/index.d.ts +1 -0
  46. package/lib/src/ap-drawer/style/index.js +1 -0
  47. package/lib/src/ap-drawer/utils/createDrawer.d.ts +2 -0
  48. package/lib/src/ap-drawer/utils/createDrawer.js +1 -0
  49. package/lib/src/ap-drawer/utils/index.d.ts +1 -0
  50. package/lib/src/ap-drawer/utils/index.js +1 -0
  51. package/lib/src/ap-form/interface.d.ts +1 -1
  52. package/lib/src/ap-form/item/index.vue.js +1 -1
  53. package/lib/src/ap-form/items/number/index.vue.d.ts +10 -10
  54. package/lib/src/ap-form/items/text/index.vue.d.ts +10 -10
  55. package/lib/src/ap-form/items/text/password.vue.d.ts +10 -10
  56. package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -9
  57. package/lib/src/ap-form/render/control.vue.js +1 -1
  58. package/lib/src/ap-form/render/item.vue.d.ts +6 -5
  59. package/lib/src/ap-form/render/item.vue.js +1 -1
  60. package/lib/src/ap-form/render/style/css.d.ts +1 -0
  61. package/lib/src/ap-form/render/style/css.js +1 -0
  62. package/lib/src/ap-form/render/style/style.d.ts +1 -0
  63. package/lib/src/ap-list/index.vue.d.ts +10 -2
  64. package/lib/src/ap-list/index.vue.js +1 -1
  65. package/lib/src/ap-list/interface.d.ts +22 -3
  66. package/lib/src/ap-modal/interface.d.ts +3 -0
  67. package/lib/src/ap-modal/utils/createModal.js +1 -1
  68. package/lib/src/ap-table/constants.d.ts +42 -42
  69. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  70. package/lib/src/index.d.ts +1 -0
  71. package/lib/src/index.js +1 -1
  72. package/lib/src/path-map.js +1 -1
  73. package/package.json +4 -3
@@ -1,12 +1,14 @@
1
- import { defineComponent as M, ref as W, unref as t, computed as l, watch as j, openBlock as s, createBlock as A, normalizeClass as u, withCtx as G, createElementVNode as U, normalizeStyle as D, renderSlot as f, createVNode as k, createElementBlock as g, Fragment as H, renderList as J, mergeProps as K, createCommentVNode as Q } from "vue";
2
- import { Empty as B, Spin as X, Pagination as Y } from "@aplus-frontend/antdv";
1
+ import { defineComponent as H, ref as J, unref as t, computed as c, watch as Q, openBlock as i, createBlock as y, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as v, renderSlot as l, createVNode as h, createElementBlock as p, Fragment as B, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
2
+ import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
3
3
  import "../ap-table/index.mjs";
4
4
  import "../config-provider/index.mjs";
5
- import { isUndefined as E, omit as Z } from "lodash-unified";
6
- import { useOfflineList as x } from "./hooks/use-offline-list.mjs";
7
- import { useNamespace as ee } from "../config-provider/hooks/use-namespace.mjs";
8
- import { useTablePaging as te } from "../ap-table/hooks/use-table-paging.mjs";
9
- const fe = /* @__PURE__ */ M({
5
+ import { isUndefined as O, isNumber as te, omit as ae } from "lodash-unified";
6
+ import { useOfflineList as ne } from "./hooks/use-offline-list.mjs";
7
+ import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
8
+ import { RecycleScroller as re, DynamicScroller as oe, DynamicScrollerItem as ie } from "vue-virtual-scroller";
9
+ import { useNamespace as le } from "../config-provider/hooks/use-namespace.mjs";
10
+ import { useTablePaging as se } from "../ap-table/hooks/use-table-paging.mjs";
11
+ const he = /* @__PURE__ */ H({
10
12
  __name: "index",
11
13
  props: {
12
14
  dataSource: {},
@@ -19,26 +21,29 @@ const fe = /* @__PURE__ */ M({
19
21
  beforeSearchSubmit: {},
20
22
  pagination: { type: [Boolean, Object], default: void 0 },
21
23
  manual: { type: Boolean },
22
- containerStyle: {},
23
- footerWarpperStyle: {}
24
+ containerStyle: { type: [Boolean, null, String, Object, Array] },
25
+ contentStyle: { type: [Boolean, null, String, Object, Array] },
26
+ footerWarpperStyle: { type: [Boolean, null, String, Object, Array] },
27
+ virtual: { default: void 0 },
28
+ rowKey: {}
24
29
  },
25
- setup(w, { expose: V }) {
26
- const F = B.PRESENTED_IMAGE_SIMPLE, n = w, { b: p, e: S } = ee("ap-list"), h = W(), {
27
- formRef: y,
28
- submit: v,
29
- reset: b,
30
- handleTableChange: L,
31
- data: c,
30
+ setup(V, { expose: F }) {
31
+ const L = E.PRESENTED_IMAGE_SIMPLE, n = V, { b: d, e: N } = le("ap-list"), b = J(), {
32
+ formRef: k,
33
+ submit: D,
34
+ reset: z,
35
+ handleTableChange: R,
36
+ data: g,
32
37
  refresh: T,
33
- refreshByDelete: z,
38
+ refreshByDelete: $,
34
39
  tableProps: C
35
- } = te({
36
- async request(a) {
37
- var o;
38
- const e = await ((o = n.request) == null ? void 0 : o.call(n, a));
40
+ } = se({
41
+ async request(e) {
42
+ var r;
43
+ const a = await ((r = n.request) == null ? void 0 : r.call(n, e));
39
44
  return {
40
- data: (e == null ? void 0 : e.data) || [],
41
- total: (e == null ? void 0 : e.total) || 0
45
+ data: (a == null ? void 0 : a.data) || [],
46
+ total: (a == null ? void 0 : a.total) || 0
42
47
  };
43
48
  },
44
49
  defaultParams: n.params,
@@ -47,92 +52,137 @@ const fe = /* @__PURE__ */ M({
47
52
  defaultCurrent: n.pagination ? n.pagination.defaultCurrent : void 0,
48
53
  defaultPageSize: n.pagination ? n.pagination.defaultPageSize : void 0,
49
54
  formatParams: n.beforeSearchSubmit
50
- }), I = { form: y }, {
51
- pagination: P,
52
- dataSource: N,
53
- onChange: R
54
- } = x(n);
55
- function q(a, e) {
56
- if (t(r)) {
57
- R(a, e);
55
+ }), j = { form: k }, {
56
+ pagination: I,
57
+ dataSource: q,
58
+ onChange: A
59
+ } = ne(n);
60
+ function K(e, a) {
61
+ if (t(m)) {
62
+ A(e, a);
58
63
  return;
59
64
  }
60
- L(
61
- { current: a, pageSize: e },
65
+ R(
66
+ { current: e, pageSize: a },
62
67
  {},
63
68
  {},
64
69
  { currentDataSource: [], action: "paginate" }
65
70
  );
66
71
  }
67
- const d = l(() => t(r) ? t(N) : t(c).records), m = l(() => E(n.loading) ? t(c).loading : n.loading), O = l(() => {
68
- var a, e;
69
- return n.pagination === !1 ? !1 : ((a = n.pagination) == null ? void 0 : a.hideOnSinglePage) !== !0 ? !0 : t(r) ? (((e = n.dataSource) == null ? void 0 : e.length) || 0) > t(P).pageSize : t(c).total > t(C).pagination.pageSize;
70
- }), r = l(() => !E(n.dataSource));
71
- j(
72
- () => t(m),
73
- (a) => {
74
- var e;
75
- (e = n.onLoadingChange) == null || e.call(n, a);
72
+ const s = c(() => t(m) ? t(q) : t(g).records), S = c(() => O(n.loading) ? t(g).loading : n.loading), M = c(() => {
73
+ var e, a;
74
+ return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(m) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > t(I).pageSize : t(g).total > t(C).pagination.pageSize;
75
+ }), m = c(() => !O(n.dataSource));
76
+ Q(
77
+ () => t(S),
78
+ (e) => {
79
+ var a;
80
+ (a = n.onLoadingChange) == null || a.call(n, e);
76
81
  }
77
82
  );
78
- function _(a) {
79
- var e, o;
80
- (o = (e = h.value) == null ? void 0 : e.querySelector(a || ":first-child")) == null || o.scrollIntoView({ behavior: "smooth", block: "center" });
83
+ function W(e) {
84
+ var a, r;
85
+ (r = (a = b.value) == null ? void 0 : a.querySelector(e || ":first-child")) == null || r.scrollIntoView({ behavior: "smooth", block: "center" });
81
86
  }
82
- function $(a = !1) {
83
- var i;
84
- const e = (i = y.value) == null ? void 0 : i.apForm, o = a ? e == null ? void 0 : e.getFieldsValueTransformed : e == null ? void 0 : e.getFieldsValue;
85
- return (o == null ? void 0 : o()) || {};
87
+ function G(e = !1) {
88
+ var o;
89
+ const a = (o = k.value) == null ? void 0 : o.apForm, r = e ? a == null ? void 0 : a.getFieldsValueTransformed : a == null ? void 0 : a.getFieldsValue;
90
+ return (r == null ? void 0 : r()) || {};
86
91
  }
87
- return V({
88
- submit: () => v(),
89
- reset: () => b(),
92
+ return F({
93
+ submit: () => D(),
94
+ reset: () => z(),
90
95
  refresh: () => T(),
91
- refreshByDelete: (a) => z(a),
92
- scrollToFirstRow: _,
93
- getSearchFormValuesIfSetted: $
94
- }), (a, e) => (s(), A(t(X), {
95
- spinning: m.value,
96
- class: u(t(p)("spin"))
96
+ refreshByDelete: (e) => $(e),
97
+ scrollToFirstRow: W,
98
+ getSearchFormValuesIfSetted: G
99
+ }), (e, a) => (i(), y(t(x), {
100
+ spinning: S.value,
101
+ class: u(t(d)("spin"))
97
102
  }, {
98
- default: G(() => [
99
- U("div", {
100
- class: u(t(p)()),
101
- style: D(a.containerStyle)
103
+ default: f(() => [
104
+ X("div", {
105
+ class: u(t(d)()),
106
+ style: v(e.containerStyle)
102
107
  }, [
103
- f(a.$slots, "header", {
104
- formIns: I,
105
- submit: t(v),
106
- reset: t(b)
108
+ l(e.$slots, "header", {
109
+ formIns: j,
110
+ submit: t(D),
111
+ reset: t(z)
107
112
  }),
108
- d.value.length === 0 ? f(a.$slots, "empty", {
113
+ s.value.length === 0 ? l(e.$slots, "empty", {
109
114
  key: 0,
110
- loading: m.value
115
+ loading: S.value
111
116
  }, () => [
112
- k(t(B), { image: t(F) }, null, 8, ["image"])
113
- ]) : (s(), g("div", {
117
+ h(t(E), { image: t(L) }, null, 8, ["image"])
118
+ ]) : (i(), p("div", {
114
119
  key: 1,
115
120
  ref_key: "contentRef",
116
- ref: h,
117
- class: u(t(S)("content"))
121
+ ref: b,
122
+ style: v(e.contentStyle)
118
123
  }, [
119
- f(a.$slots, "renderContent", { dataSource: d.value }, () => [
120
- (s(!0), g(H, null, J(d.value, (o, i) => f(a.$slots, "renderItem", {
121
- item: o,
122
- index: i
124
+ e.virtual ? (i(), p(B, { key: 0 }, [
125
+ t(te)(e.virtual) ? (i(), y(t(re), {
126
+ key: 0,
127
+ class: u(t(d)("scroll-wrapper")),
128
+ items: s.value,
129
+ itemSize: e.virtual,
130
+ "key-field": n.rowKey || "id"
131
+ }, {
132
+ default: f(({ item: r, index: o }) => [
133
+ l(e.$slots, "renderItem", {
134
+ item: r,
135
+ index: o
136
+ })
137
+ ]),
138
+ _: 3
139
+ }, 8, ["class", "items", "itemSize", "key-field"])) : (i(), y(t(oe), {
140
+ key: 1,
141
+ items: s.value,
142
+ minItemSize: e.virtual.minItemSize,
143
+ class: u(t(d)("scroll-wrapper"))
144
+ }, {
145
+ default: f(({ item: r, index: o, active: U }) => {
146
+ var P, w;
147
+ return [
148
+ h(t(ie), {
149
+ item: r,
150
+ active: U,
151
+ dataIndex: o,
152
+ sizeDependencies: (w = (P = e.virtual).sizeDependencies) == null ? void 0 : w.call(P, r)
153
+ }, {
154
+ default: f(() => [
155
+ l(e.$slots, "renderItem", {
156
+ item: r,
157
+ index: o
158
+ })
159
+ ]),
160
+ _: 2
161
+ }, 1032, ["item", "active", "dataIndex", "sizeDependencies"])
162
+ ];
163
+ }),
164
+ _: 3
165
+ }, 8, ["items", "minItemSize", "class"]))
166
+ ], 64)) : l(e.$slots, "renderContent", {
167
+ key: 1,
168
+ dataSource: s.value
169
+ }, () => [
170
+ (i(!0), p(B, null, Y(s.value, (r, o) => l(e.$slots, "renderItem", {
171
+ item: r,
172
+ index: o
123
173
  })), 256))
124
174
  ])
125
- ], 2)),
126
- O.value ? (s(), g("div", {
175
+ ], 4)),
176
+ M.value ? (i(), p("div", {
127
177
  key: 2,
128
- class: u(t(S)("footer")),
129
- style: D(a.footerWarpperStyle)
178
+ class: u(t(N)("footer")),
179
+ style: v(e.footerWarpperStyle)
130
180
  }, [
131
- k(t(Y), K(
132
- r.value ? t(P) : t(Z)(t(C).pagination, ["showTotal"]),
133
- { onChange: q }
181
+ h(t(ee), Z(
182
+ m.value ? t(I) : t(ae)(t(C).pagination, ["showTotal"]),
183
+ { onChange: K }
134
184
  ), null, 16)
135
- ], 6)) : Q("", !0)
185
+ ], 6)) : _("", !0)
136
186
  ], 6)
137
187
  ]),
138
188
  _: 3
@@ -140,5 +190,5 @@ const fe = /* @__PURE__ */ M({
140
190
  }
141
191
  });
142
192
  export {
143
- fe as default
193
+ he as default
144
194
  };
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { StyleValue } from 'vue';
2
2
  import { RequestData } from '../ap-table';
3
3
  import { Recordable } from '../type';
4
4
  export type ApListProps<RecordType = any, ParamsType = Recordable> = {
@@ -62,11 +62,30 @@ export type ApListProps<RecordType = any, ParamsType = Recordable> = {
62
62
  /**
63
63
  * List容器的自定义样式
64
64
  */
65
- containerStyle?: CSSProperties;
65
+ containerStyle?: StyleValue;
66
+ /**
67
+ * List内容区域自定义样式
68
+ */
69
+ contentStyle?: StyleValue;
66
70
  /**
67
71
  * 底部分页器容器的样式
68
72
  */
69
- footerWarpperStyle?: CSSProperties;
73
+ footerWarpperStyle?: StyleValue;
74
+ /**
75
+ * 列表是否开启虚拟滚动
76
+ * @description 设置此属性后,将不会展示分页器,同样`renderContent`插槽将不再可用;
77
+ * 如果值为`number`类型,则表示每个元素的尺寸,在尺寸不固定的情况下,则可以设置`minItemSize`和`sizeDependencies`两个属性
78
+ * @default false
79
+ */
80
+ virtual?: number | {
81
+ minItemSize: number;
82
+ sizeDependencies?: (item: RecordType) => any[];
83
+ };
84
+ /**
85
+ * 列表数据的key
86
+ * @default "id"
87
+ */
88
+ rowKey?: string;
70
89
  };
71
90
  export type ApListExpose = {
72
91
  /**
@@ -4,9 +4,12 @@ export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open'
4
4
  onOk: (params: ContentRecord) => any | Promise<any>;
5
5
  getContainer: HTMLElement;
6
6
  content: any;
7
+ destroyOnClose: boolean;
7
8
  }>;
8
9
  export type CreateModalFuncReturn = {
9
10
  destroy: () => void;
10
11
  update: (newConfig: CreateModalFuncProps) => void;
12
+ open: () => void;
13
+ close: () => void;
11
14
  };
12
15
  export type CreateModalFunc = (props: CreateModalFuncProps) => CreateModalFuncReturn;
@@ -1,56 +1,66 @@
1
- import { render as c, defineComponent as C, createVNode as l, mergeProps as g, h as O } from "vue";
2
- import { Modal as k } from "@aplus-frontend/antdv";
3
- import { ConfigProvider as y, globalConfigCached as v } from "../../config-provider/config-provider.mjs";
4
- const b = (i) => {
5
- let p, n;
6
- function d() {
7
- p && p(!1), setTimeout(() => {
1
+ import { render as m, defineComponent as y, createVNode as f, mergeProps as k, h as v } from "vue";
2
+ import { Modal as x } from "@aplus-frontend/antdv";
3
+ import { ConfigProvider as P, globalConfigCached as L } from "../../config-provider/config-provider.mjs";
4
+ import { omit as b } from "lodash-unified";
5
+ const T = (p) => {
6
+ let n, t;
7
+ const {
8
+ destroyOnClose: d = !0
9
+ } = p;
10
+ function c() {
11
+ n && n(!1), setTimeout(() => {
8
12
  var e;
9
- c(null, t), (e = t.parentElement) == null || e.removeChild(t);
13
+ m(null, s), (e = s.parentElement) == null || e.removeChild(s);
10
14
  }, 500);
11
15
  }
12
- function h(e) {
13
- n && n(e);
16
+ function h() {
17
+ n && n(!0);
14
18
  }
15
- const m = /* @__PURE__ */ C({
19
+ function l() {
20
+ n && n(!1);
21
+ }
22
+ function u(e) {
23
+ t && t(e);
24
+ }
25
+ const C = /* @__PURE__ */ y({
16
26
  data() {
17
27
  return {
18
- open: !0,
19
- props: i
28
+ open: d,
29
+ props: p
20
30
  };
21
31
  },
22
32
  methods: {
23
33
  async handleCancel() {
24
- var e, o, r, s, a;
34
+ var e, o, r, a, i;
25
35
  if ((e = this.props) != null && e.onCancel) {
26
- const u = ((s = (r = (o = this.props) == null ? void 0 : o.content) == null ? void 0 : r.component) == null ? void 0 : s.exposed) ?? void 0;
27
- await ((a = this.props) == null ? void 0 : a.onCancel(u));
36
+ const O = ((a = (r = (o = this.props) == null ? void 0 : o.content) == null ? void 0 : r.component) == null ? void 0 : a.exposed) ?? void 0;
37
+ await ((i = this.props) == null ? void 0 : i.onCancel(O));
28
38
  }
29
- d();
39
+ d ? c() : l();
30
40
  },
31
41
  async handleOk() {
32
- var e, o, r, s;
42
+ var e, o, r, a;
33
43
  try {
34
- if (n({
44
+ if (t({
35
45
  confirmLoading: !0
36
46
  }), (e = this.props) != null && e.onOk) {
37
- const a = ((s = (r = (o = this.props) == null ? void 0 : o.content) == null ? void 0 : r.component) == null ? void 0 : s.exposed) ?? void 0;
38
- await this.props.onOk(a);
47
+ const i = ((a = (r = (o = this.props) == null ? void 0 : o.content) == null ? void 0 : r.component) == null ? void 0 : a.exposed) ?? void 0;
48
+ await this.props.onOk(i);
39
49
  }
40
- n({
50
+ t({
41
51
  confirmLoading: !1
42
- }), d();
52
+ }), d ? c() : l();
43
53
  } catch {
44
- n({
54
+ t({
45
55
  confirmLoading: !1
46
56
  });
47
57
  }
48
58
  }
49
59
  },
50
60
  created() {
51
- p = (e) => {
61
+ n = (e) => {
52
62
  this.open = e;
53
- }, n = (e) => {
63
+ }, t = (e) => {
54
64
  this.props = {
55
65
  ...this.props,
56
66
  ...e
@@ -58,11 +68,9 @@ const b = (i) => {
58
68
  };
59
69
  },
60
70
  render() {
61
- const {
62
- ...e
63
- } = this.props;
64
- return delete e.onCancel, delete e.onOk, l(y, v.value, {
65
- default: () => [l(k, g({
71
+ const e = b(this.props, ["onCancel", "onOk"]);
72
+ return f(P, L.value, {
73
+ default: () => [f(x, k({
66
74
  open: this.open,
67
75
  destroyOnClose: !0,
68
76
  onCancel: this.handleCancel,
@@ -75,12 +83,14 @@ const b = (i) => {
75
83
  })]
76
84
  });
77
85
  }
78
- }), f = i.getContainer || document.body, t = document.createElement("div");
79
- return f.appendChild(t), c(O(m), t), {
80
- destroy: d,
81
- update: h
86
+ }), g = p.getContainer || document.body, s = document.createElement("div");
87
+ return g.appendChild(s), m(v(C), s), {
88
+ destroy: c,
89
+ update: u,
90
+ open: h,
91
+ close: l
82
92
  };
83
93
  };
84
94
  export {
85
- b as createModal
95
+ T as createModal
86
96
  };