@aplus-frontend/ui 0.0.1-beta.33 → 0.0.1-beta.34
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/src/ap-action/interface.d.ts +2 -1
- package/es/src/ap-action/item/index.vue2.mjs +20 -20
- package/es/src/ap-table/constants.d.ts +5666 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +57 -0
- package/es/src/ap-table/interface.d.ts +11 -8
- package/es/src/ap-table/style/ap-table.css +14 -0
- package/es/src/ap-table/utils.d.ts +8 -0
- package/es/src/basic/help.vue.d.ts +4 -4
- package/es/src/basic/index.d.ts +8 -8
- package/es/src/pro-form/style/table-form.css +3 -0
- package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -6
- package/es/src/theme/antd-global-overwrite/admin/form.css +9 -1
- package/es/src/theme/antd-global-overwrite/admin/index.css +25 -7
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
- package/es/src/theme/antd-global-overwrite/aplus/form.css +36 -13
- package/es/src/theme/antd-global-overwrite/aplus/index.css +47 -18
- package/es/src/theme/ap-table/ap-table.css +14 -0
- package/es/src/theme/pro-form/table-form-inner.css +3 -0
- package/lib/src/ap-action/interface.d.ts +2 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +5666 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +57 -0
- package/lib/src/ap-table/interface.d.ts +11 -8
- package/lib/src/ap-table/style/ap-table.css +14 -0
- package/lib/src/ap-table/utils.d.ts +8 -0
- package/lib/src/basic/help.vue.d.ts +4 -4
- package/lib/src/basic/index.d.ts +8 -8
- package/lib/src/pro-form/style/table-form.css +3 -0
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -6
- package/lib/src/theme/antd-global-overwrite/admin/form.css +9 -1
- package/lib/src/theme/antd-global-overwrite/admin/index.css +25 -7
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +36 -13
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +47 -18
- package/lib/src/theme/ap-table/ap-table.css +14 -0
- package/lib/src/theme/pro-form/table-form-inner.css +3 -0
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { DropdownProps, ModalFuncProps, PopconfirmProps } from 'ant-design-vue';
|
|
2
|
+
import { VNode } from 'vue';
|
|
2
3
|
|
|
3
4
|
export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
|
|
4
5
|
export type ApActionItemProps = {
|
|
5
6
|
/**
|
|
6
7
|
* 文本
|
|
7
8
|
*/
|
|
8
|
-
text?: string;
|
|
9
|
+
text?: string | VNode;
|
|
9
10
|
/**
|
|
10
11
|
* 预定义文本颜色
|
|
11
12
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, ref as g, unref as r, computed as s, openBlock as n, createElementBlock as c, normalizeClass as C, createBlock as d, createCommentVNode as u, renderSlot as b, isVNode as v, resolveDynamicComponent as B, toDisplayString as A } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import x from "ant-design-vue/es/button/LoadingIcon";
|
|
4
4
|
import "../style/item.css";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
const
|
|
5
|
+
import { useNamespace as h } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const I = { key: 1 }, V = /* @__PURE__ */ y({
|
|
7
7
|
name: "ApActionItem",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -15,35 +15,35 @@ const S = /* @__PURE__ */ p({
|
|
|
15
15
|
onClick: {},
|
|
16
16
|
loading: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const e =
|
|
20
|
-
function
|
|
21
|
-
var
|
|
22
|
-
|
|
18
|
+
setup(f) {
|
|
19
|
+
const e = f, { b: m, m: t } = h("action-item"), l = g(!1);
|
|
20
|
+
function p(o) {
|
|
21
|
+
var i;
|
|
22
|
+
r(a) || e.disabled || ((i = e.onClick) == null || i.call(e, o), e.onAction && (l.value = !0, e.onAction(o).finally(() => l.value = !1)));
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const a = s(() => e.loading || r(l)), k = s(() => [
|
|
25
|
+
m(),
|
|
26
26
|
t(e.color),
|
|
27
27
|
e.disabled ? t("disabled") : null,
|
|
28
|
-
|
|
28
|
+
a.value ? t("loading") : null
|
|
29
29
|
].filter(Boolean));
|
|
30
|
-
return (o,
|
|
30
|
+
return (o, i) => o.visible ? (n(), c("span", {
|
|
31
31
|
key: 0,
|
|
32
|
-
onClick:
|
|
33
|
-
class: C(
|
|
32
|
+
onClick: p,
|
|
33
|
+
class: C(k.value)
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
a.value ? (n(), d(r(x), {
|
|
36
36
|
key: 0,
|
|
37
37
|
prefixCls: "btn",
|
|
38
38
|
existIcon: !1,
|
|
39
39
|
loading: ""
|
|
40
|
-
})) :
|
|
41
|
-
|
|
42
|
-
v(B(o.text || ""), 1)
|
|
40
|
+
})) : u("", !0),
|
|
41
|
+
b(o.$slots, "default", {}, () => [
|
|
42
|
+
v(o.text) ? (n(), d(B(o.text), { key: 0 })) : (n(), c("span", I, A(o.text || ""), 1))
|
|
43
43
|
])
|
|
44
|
-
], 2)) :
|
|
44
|
+
], 2)) : u("", !0);
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
V as default
|
|
49
49
|
};
|