@aplus-frontend/ui 0.6.0-beta.20 → 0.6.0-beta.21

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 (43) hide show
  1. package/es/index.mjs +156 -154
  2. package/es/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
  3. package/es/src/ap-drawer/ApDrawer.vue.mjs +91 -0
  4. package/es/src/ap-drawer/ApDrawer.vue2.mjs +4 -0
  5. package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
  6. package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +25 -0
  7. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +4 -0
  8. package/es/src/ap-drawer/index.d.ts +3 -7
  9. package/es/src/ap-drawer/index.mjs +10 -5
  10. package/es/src/ap-drawer/interface.d.ts +4 -0
  11. package/es/src/ap-drawer/style/css.d.ts +0 -1
  12. package/es/src/ap-drawer/style/css.js +1 -1
  13. package/es/src/ap-drawer/style/index.d.ts +0 -1
  14. package/es/src/ap-drawer/style/index.js +1 -1
  15. package/es/src/ap-drawer/utils/createDrawer.mjs +36 -31
  16. package/es/src/index.mjs +285 -282
  17. package/es/src/version.d.ts +1 -1
  18. package/es/src/version.mjs +1 -1
  19. package/lib/index.js +1 -1
  20. package/lib/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
  21. package/lib/src/ap-drawer/ApDrawer.vue.js +1 -0
  22. package/lib/src/ap-drawer/ApDrawer.vue2.js +1 -0
  23. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
  24. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  25. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  26. package/lib/src/ap-drawer/index.d.ts +3 -7
  27. package/lib/src/ap-drawer/index.js +1 -1
  28. package/lib/src/ap-drawer/interface.d.ts +4 -0
  29. package/lib/src/ap-drawer/style/css.cjs +1 -1
  30. package/lib/src/ap-drawer/style/css.d.ts +0 -1
  31. package/lib/src/ap-drawer/style/index.cjs +1 -1
  32. package/lib/src/ap-drawer/style/index.d.ts +0 -1
  33. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  34. package/lib/src/index.js +1 -1
  35. package/lib/src/version.d.ts +1 -1
  36. package/lib/src/version.js +1 -1
  37. package/package.json +7 -4
  38. package/theme/ap-drawer/ap-drawer.css +75 -0
  39. package/theme/ap-drawer/ap-drawer.less +42 -0
  40. package/theme/ap-grid/index.css +4 -4
  41. package/theme/ap-grid/index.less +4 -4
  42. package/theme/index.css +33 -4
  43. package/theme/index.less +1 -0
@@ -1,31 +1,34 @@
1
- import { render as x, defineComponent as D, createVNode as v, mergeProps as O, h as V } from "vue";
2
- import { Drawer as E } from "@aplus-frontend/antdv";
3
- import { ConfigProvider as U, globalConfigCached as A } from "../../config-provider/config-provider.mjs";
4
- import { omit as N } from "lodash-unified";
5
- const z = (l) => {
1
+ import { render as b, defineComponent as O, createVNode as u, mergeProps as V, h as D } from "vue";
2
+ import "../ApDrawer.vue2.mjs";
3
+ import "../components/ApDrawerClose.vue2.mjs";
4
+ import { ConfigProvider as E, globalConfigCached as U } from "../../config-provider/config-provider.mjs";
5
+ import { omit as A } from "lodash-unified";
6
+ import N from "../ApDrawer.vue.mjs";
7
+ import T from "../components/ApDrawerClose.vue.mjs";
8
+ const G = (l) => {
6
9
  let o, c;
7
10
  const {
8
- destroyOnClose: f = !0
11
+ destroyOnClose: m = !0
9
12
  } = l;
10
- function h() {
13
+ function f() {
11
14
  o && o(!1), setTimeout(() => {
12
15
  var e;
13
- x(null, t), (e = t.parentElement) == null || e.removeChild(t);
16
+ b(null, t), (e = t.parentElement) == null || e.removeChild(t);
14
17
  }, 500);
15
18
  }
16
- function b() {
19
+ function P() {
17
20
  o && o(!0);
18
21
  }
19
- function m() {
22
+ function h() {
20
23
  o && o(!1);
21
24
  }
22
25
  function w(e) {
23
26
  c && c(e);
24
27
  }
25
- const P = /* @__PURE__ */ D({
28
+ const y = /* @__PURE__ */ O({
26
29
  data() {
27
30
  return {
28
- open: f,
31
+ open: m,
29
32
  props: l
30
33
  };
31
34
  },
@@ -41,42 +44,44 @@ const z = (l) => {
41
44
  },
42
45
  methods: {
43
46
  async handleClose() {
44
- var e, n, r, s, p;
47
+ var e, n, r, s, i;
45
48
  if ((e = this.props) != null && e.onClose) {
46
- const i = ((s = (r = (n = this.props) == null ? void 0 : n.content) == null ? void 0 : r.component) == null ? void 0 : s.exposed) ?? void 0;
47
- await ((p = this.props) == null ? void 0 : p.onClose(i));
49
+ const p = ((s = (r = (n = this.props) == null ? void 0 : n.content) == null ? void 0 : r.component) == null ? void 0 : s.exposed) ?? void 0;
50
+ await ((i = this.props) == null ? void 0 : i.onClose(p));
48
51
  }
49
- f ? h() : m();
52
+ m ? f() : h();
50
53
  }
51
54
  },
52
55
  render() {
53
- var s, p, i;
54
- const e = N(this.props, ["onClose", "extra", "footer", "visible", "onUpdate:visible", "afterVisibleChange", "onAfterVisibleOChange", "open", "onUpdate:open", "getContainer"]), n = ((i = (p = (s = this.props) == null ? void 0 : s.content) == null ? void 0 : p.component) == null ? void 0 : i.exposed) ?? void 0, r = () => f ? h() : m();
55
- return v(U, A.value, {
56
+ var s, i, p;
57
+ const e = A(this.props, ["onClose", "extra", "footer", "visible", "onUpdate:visible", "afterVisibleChange", "onAfterVisibleOChange", "open", "onUpdate:open", "getContainer"]), n = ((p = (i = (s = this.props) == null ? void 0 : s.content) == null ? void 0 : i.component) == null ? void 0 : p.exposed) ?? void 0, r = () => m ? f() : h();
58
+ return u(E, U.value, {
56
59
  default: () => {
57
- var a, u, d, C;
58
- return [v(E, O({
60
+ var C, a, g, d, x;
61
+ return [u(N, V({
59
62
  open: this.open,
60
63
  onClose: this.handleClose,
61
- extra: (u = (a = this.props) == null ? void 0 : a.extra) == null ? void 0 : u.call(a, n, r),
62
- footer: (C = (d = this.props) == null ? void 0 : d.footer) == null ? void 0 : C.call(d, n, r)
64
+ extra: (C = this.props) != null && C.extra ? (g = (a = this.props) == null ? void 0 : a.extra) == null ? void 0 : g.call(a, n, r) : u(T, {
65
+ onClose: () => this.handleClose()
66
+ }, null),
67
+ footer: (x = (d = this.props) == null ? void 0 : d.footer) == null ? void 0 : x.call(d, n, r)
63
68
  }, e), {
64
69
  default: () => {
65
- var g;
66
- return [(g = this.props) == null ? void 0 : g.content];
70
+ var v;
71
+ return [(v = this.props) == null ? void 0 : v.content];
67
72
  }
68
73
  })];
69
74
  }
70
75
  });
71
76
  }
72
- }), y = l.getContainer || document.body, t = document.createElement("div");
73
- return y.appendChild(t), x(V(P), t), {
74
- destroy: h,
77
+ }), _ = l.getContainer || document.body, t = document.createElement("div");
78
+ return _.appendChild(t), b(D(y), t), {
79
+ destroy: f,
75
80
  update: w,
76
- open: b,
77
- close: m
81
+ open: P,
82
+ close: h
78
83
  };
79
84
  };
80
85
  export {
81
- z as createDrawer
86
+ G as createDrawer
82
87
  };