@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.
- package/es/index.mjs +156 -154
- package/es/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
- package/es/src/ap-drawer/ApDrawer.vue.mjs +91 -0
- package/es/src/ap-drawer/ApDrawer.vue2.mjs +4 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +25 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +4 -0
- package/es/src/ap-drawer/index.d.ts +3 -7
- package/es/src/ap-drawer/index.mjs +10 -5
- package/es/src/ap-drawer/interface.d.ts +4 -0
- package/es/src/ap-drawer/style/css.d.ts +0 -1
- package/es/src/ap-drawer/style/css.js +1 -1
- package/es/src/ap-drawer/style/index.d.ts +0 -1
- package/es/src/ap-drawer/style/index.js +1 -1
- package/es/src/ap-drawer/utils/createDrawer.mjs +36 -31
- package/es/src/index.mjs +285 -282
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
- package/lib/src/ap-drawer/ApDrawer.vue.js +1 -0
- package/lib/src/ap-drawer/ApDrawer.vue2.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
- package/lib/src/ap-drawer/index.d.ts +3 -7
- package/lib/src/ap-drawer/index.js +1 -1
- package/lib/src/ap-drawer/interface.d.ts +4 -0
- package/lib/src/ap-drawer/style/css.cjs +1 -1
- package/lib/src/ap-drawer/style/css.d.ts +0 -1
- package/lib/src/ap-drawer/style/index.cjs +1 -1
- package/lib/src/ap-drawer/style/index.d.ts +0 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +7 -4
- package/theme/ap-drawer/ap-drawer.css +75 -0
- package/theme/ap-drawer/ap-drawer.less +42 -0
- package/theme/ap-grid/index.css +4 -4
- package/theme/ap-grid/index.less +4 -4
- package/theme/index.css +33 -4
- package/theme/index.less +1 -0
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import { render as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
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:
|
|
11
|
+
destroyOnClose: m = !0
|
|
9
12
|
} = l;
|
|
10
|
-
function
|
|
13
|
+
function f() {
|
|
11
14
|
o && o(!1), setTimeout(() => {
|
|
12
15
|
var e;
|
|
13
|
-
|
|
16
|
+
b(null, t), (e = t.parentElement) == null || e.removeChild(t);
|
|
14
17
|
}, 500);
|
|
15
18
|
}
|
|
16
|
-
function
|
|
19
|
+
function P() {
|
|
17
20
|
o && o(!0);
|
|
18
21
|
}
|
|
19
|
-
function
|
|
22
|
+
function h() {
|
|
20
23
|
o && o(!1);
|
|
21
24
|
}
|
|
22
25
|
function w(e) {
|
|
23
26
|
c && c(e);
|
|
24
27
|
}
|
|
25
|
-
const
|
|
28
|
+
const y = /* @__PURE__ */ O({
|
|
26
29
|
data() {
|
|
27
30
|
return {
|
|
28
|
-
open:
|
|
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,
|
|
47
|
+
var e, n, r, s, i;
|
|
45
48
|
if ((e = this.props) != null && e.onClose) {
|
|
46
|
-
const
|
|
47
|
-
await ((
|
|
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
|
-
|
|
52
|
+
m ? f() : h();
|
|
50
53
|
}
|
|
51
54
|
},
|
|
52
55
|
render() {
|
|
53
|
-
var s,
|
|
54
|
-
const e =
|
|
55
|
-
return
|
|
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,
|
|
58
|
-
return [
|
|
60
|
+
var C, a, g, d, x;
|
|
61
|
+
return [u(N, V({
|
|
59
62
|
open: this.open,
|
|
60
63
|
onClose: this.handleClose,
|
|
61
|
-
extra: (
|
|
62
|
-
|
|
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
|
|
66
|
-
return [(
|
|
70
|
+
var v;
|
|
71
|
+
return [(v = this.props) == null ? void 0 : v.content];
|
|
67
72
|
}
|
|
68
73
|
})];
|
|
69
74
|
}
|
|
70
75
|
});
|
|
71
76
|
}
|
|
72
|
-
}),
|
|
73
|
-
return
|
|
74
|
-
destroy:
|
|
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:
|
|
77
|
-
close:
|
|
81
|
+
open: P,
|
|
82
|
+
close: h
|
|
78
83
|
};
|
|
79
84
|
};
|
|
80
85
|
export {
|
|
81
|
-
|
|
86
|
+
G as createDrawer
|
|
82
87
|
};
|