@aplus-frontend/ui 0.0.1-beta.32 → 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-custom-column/custom-column.vue.mjs +17 -14
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/interface.d.ts +10 -0
- package/es/src/ap-table/components/style/pagination.css +12 -0
- 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 +155 -0
- package/es/src/ap-table/style/ap-table.css +14 -0
- package/es/src/ap-table/utils.d.ts +8 -0
- package/es/src/base-button/index.d.ts +137 -0
- package/es/src/basic/help.vue.d.ts +4 -4
- package/es/src/basic/index.d.ts +278 -0
- package/es/src/button/index.d.ts +51 -0
- package/es/src/config-provider/config-provider-props.d.ts +1 -1
- package/es/src/config-provider/config-provider.d.ts +11 -11
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +691 -0
- package/es/src/container/index.d.ts +178 -0
- package/es/src/count-down/index.d.ts +150 -0
- package/es/src/cropper/index.d.ts +369 -0
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/index.d.ts +214 -0
- package/es/src/dropdown/index.d.ts +113 -0
- package/es/src/icon/index.d.ts +208 -0
- package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
- package/es/src/icon-picker/index.d.ts +190 -0
- package/es/src/locale/lang/en.mjs +6 -0
- package/es/src/locale/lang/zh-cn.mjs +6 -0
- package/es/src/modal/basic.vue.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/index.d.ts +963 -0
- package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-form/style/table-form.css +3 -0
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +176 -0
- package/es/src/strength-meter/index.d.ts +89 -0
- package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -6
- package/es/src/theme/antd-global-overwrite/admin/form.css +25 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +82 -20
- package/es/src/theme/antd-global-overwrite/admin/modal.css +2 -5
- package/es/src/theme/antd-global-overwrite/admin/steps.css +20 -9
- package/es/src/theme/antd-global-overwrite/admin/table.css +19 -0
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
- package/es/src/theme/antd-global-overwrite/aplus/form.css +40 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +76 -16
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +3 -6
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +21 -4
- package/es/src/theme/ap-table/ap-table-pagination.css +12 -0
- package/es/src/theme/ap-table/ap-table.css +14 -0
- package/es/src/theme/pro-form/table-form-inner.css +3 -0
- package/es/src/transition/index.d.ts +369 -0
- package/es/src/utils/config-provider-preset.d.ts +12 -12
- 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-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/interface.d.ts +10 -0
- package/lib/src/ap-table/components/style/pagination.css +12 -0
- 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 +155 -0
- package/lib/src/ap-table/style/ap-table.css +14 -0
- package/lib/src/ap-table/utils.d.ts +8 -0
- package/lib/src/base-button/index.d.ts +137 -0
- package/lib/src/basic/help.vue.d.ts +4 -4
- package/lib/src/basic/index.d.ts +278 -0
- package/lib/src/button/index.d.ts +51 -0
- package/lib/src/config-provider/config-provider-props.d.ts +1 -1
- package/lib/src/config-provider/config-provider.d.ts +11 -11
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +691 -0
- package/lib/src/container/index.d.ts +178 -0
- package/lib/src/count-down/index.d.ts +150 -0
- package/lib/src/cropper/index.d.ts +369 -0
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/index.d.ts +214 -0
- package/lib/src/dropdown/index.d.ts +113 -0
- package/lib/src/icon/index.d.ts +208 -0
- package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
- package/lib/src/icon-picker/index.d.ts +190 -0
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/index.d.ts +963 -0
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-form/style/table-form.css +3 -0
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +176 -0
- package/lib/src/strength-meter/index.d.ts +89 -0
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -6
- package/lib/src/theme/antd-global-overwrite/admin/form.css +25 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +82 -20
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +2 -5
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +20 -9
- package/lib/src/theme/antd-global-overwrite/admin/table.css +19 -0
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +40 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +76 -16
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +3 -6
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +21 -4
- package/lib/src/theme/ap-table/ap-table-pagination.css +12 -0
- package/lib/src/theme/ap-table/ap-table.css +14 -0
- package/lib/src/theme/pro-form/table-form-inner.css +3 -0
- package/lib/src/transition/index.d.ts +369 -0
- package/lib/src/utils/config-provider-preset.d.ts +12 -12
- 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
|
};
|
|
@@ -16,24 +16,24 @@ const F = /* @__PURE__ */ D({
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:columns"],
|
|
18
18
|
setup(p, { emit: d }) {
|
|
19
|
-
const f = I("uiMode"), { b: C, e:
|
|
19
|
+
const f = I("uiMode"), { b: C, e: h } = O(
|
|
20
20
|
f.value === "aplus" ? "custom-column" : "custom-column-admin"
|
|
21
|
-
), { baseContainerSelector:
|
|
21
|
+
), { baseContainerSelector: r, columns: M, fullContentSelector: _ } = p, g = d, v = (e) => {
|
|
22
22
|
g("update:columns", e);
|
|
23
|
-
},
|
|
23
|
+
}, c = m(!1), l = m(0), S = () => {
|
|
24
24
|
var e, s;
|
|
25
|
-
if (
|
|
26
|
-
const
|
|
27
|
-
|
|
25
|
+
if (r) {
|
|
26
|
+
const a = document.querySelector(r), u = document.querySelector(
|
|
27
|
+
_
|
|
28
28
|
);
|
|
29
|
-
|
|
30
|
-
(e =
|
|
31
|
-
((s =
|
|
29
|
+
a ? l.value = Math.max(
|
|
30
|
+
(e = a == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : e.top,
|
|
31
|
+
((s = u == null ? void 0 : u.getBoundingClientRect()) == null ? void 0 : s.top) || 0
|
|
32
32
|
) : l.value = 0;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
c.value = !0;
|
|
35
35
|
}, i = () => {
|
|
36
|
-
|
|
36
|
+
c.value = !1;
|
|
37
37
|
}, y = x(() => window.innerHeight - l.value - 57 - 40);
|
|
38
38
|
return (e, s) => (H(), w("div", {
|
|
39
39
|
class: B(t(C)())
|
|
@@ -43,7 +43,10 @@ const F = /* @__PURE__ */ D({
|
|
|
43
43
|
E("自定义表格")
|
|
44
44
|
]),
|
|
45
45
|
default: n(() => [
|
|
46
|
-
o(t(T), {
|
|
46
|
+
o(t(T), {
|
|
47
|
+
style: { minWidth: "auto" },
|
|
48
|
+
onClick: S
|
|
49
|
+
}, {
|
|
47
50
|
icon: n(() => [
|
|
48
51
|
o(t(k))
|
|
49
52
|
]),
|
|
@@ -53,14 +56,14 @@ const F = /* @__PURE__ */ D({
|
|
|
53
56
|
_: 1
|
|
54
57
|
}),
|
|
55
58
|
o(t(A), {
|
|
56
|
-
open:
|
|
59
|
+
open: c.value,
|
|
57
60
|
width: 280,
|
|
58
61
|
title: "自定义表格",
|
|
59
62
|
closable: !1,
|
|
60
63
|
contentWrapperStyle: { top: `${l.value}px` },
|
|
61
64
|
bodyStyle: { overflow: "hidden", padding: "20px" },
|
|
62
65
|
mask: !0,
|
|
63
|
-
"root-class-name": t(
|
|
66
|
+
"root-class-name": t(h)("drawer"),
|
|
64
67
|
onClose: i
|
|
65
68
|
}, {
|
|
66
69
|
extra: n(() => [
|
|
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
34
34
|
}>>> & {
|
|
35
35
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
type: "number" | "text" | "color" | "
|
|
37
|
+
type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
|
|
38
38
|
mode: FieldMode;
|
|
39
39
|
bordered: boolean;
|
|
40
40
|
allowClear: boolean;
|
|
@@ -23,7 +23,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
23
23
|
}>>> & {
|
|
24
24
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
type: "number" | "text" | "color" | "
|
|
26
|
+
type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
|
|
27
27
|
mode: FieldMode;
|
|
28
28
|
bordered: boolean;
|
|
29
29
|
lazy: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ApTablePaginationProps = {
|
|
2
|
+
/** dataSource的总数量 */
|
|
3
|
+
total?: number;
|
|
4
|
+
/** 当前页码 */
|
|
5
|
+
current?: number;
|
|
6
|
+
'onUpdate:current'?: (current: number) => void;
|
|
7
|
+
/** 当前pagesize */
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
'onUpdate:pageSize'?: (pageSize: number) => void;
|
|
10
|
+
};
|