@aplus-frontend/ui 0.1.3 → 0.1.5
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 +60 -59
- package/es/src/ap-action/style/item-dropdown.css +1 -0
- package/es/src/ap-download/interface.d.ts +4 -1
- package/es/src/ap-field/interface.d.ts +4 -0
- package/es/src/ap-field/select/index.vue.mjs +56 -51
- package/es/src/ap-field/text/index.vue.d.ts +5 -5
- package/es/src/ap-modal/type.d.ts +2 -2
- package/es/src/ap-modal/utils/createModal.mjs +35 -27
- package/es/src/ap-table/constants.d.ts +22 -10
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +32 -0
- package/es/src/business/ap-batch-action/ApBatchAction.vue.mjs +4 -0
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +46 -0
- package/es/src/business/ap-batch-action/index.css +24 -0
- package/es/src/business/ap-batch-action/interface.d.ts +0 -0
- package/es/src/business/index.d.ts +46 -0
- package/es/src/business/index.mjs +14 -11
- package/es/src/editable-table/utils.mjs +1 -1
- package/es/src/index.mjs +176 -175
- package/es/src/locale/lang/en.mjs +5 -0
- package/es/src/locale/lang/zh-cn.mjs +5 -0
- package/es/src/theme/ap-action/item-dropdown.css +1 -0
- package/es/src/theme/ap-batch-action/ap-batch-action.css +24 -0
- package/es/src/theme/css-var/index.mjs +17 -5
- package/lib/index.js +1 -1
- package/lib/src/ap-action/style/item-dropdown.css +1 -0
- package/lib/src/ap-download/interface.d.ts +4 -1
- package/lib/src/ap-field/interface.d.ts +4 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +5 -5
- package/lib/src/ap-modal/type.d.ts +2 -2
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/constants.d.ts +22 -10
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +32 -0
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.js +1 -0
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -0
- package/lib/src/business/ap-batch-action/index.css +24 -0
- package/lib/src/business/ap-batch-action/interface.d.ts +0 -0
- package/lib/src/business/index.d.ts +46 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-action/item-dropdown.css +1 -0
- package/lib/src/theme/ap-batch-action/ap-batch-action.css +24 -0
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +3 -3
|
@@ -11312,6 +11312,9 @@ export declare const apTableRenderItemMap: {
|
|
|
11312
11312
|
type: PropType<"filter" | "request">;
|
|
11313
11313
|
default: string;
|
|
11314
11314
|
};
|
|
11315
|
+
refetchOnFocus: {
|
|
11316
|
+
type: PropType<boolean>;
|
|
11317
|
+
};
|
|
11315
11318
|
}>> & {
|
|
11316
11319
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11317
11320
|
}, {
|
|
@@ -11578,6 +11581,9 @@ export declare const apTableRenderItemMap: {
|
|
|
11578
11581
|
type: PropType<"filter" | "request">;
|
|
11579
11582
|
default: string;
|
|
11580
11583
|
};
|
|
11584
|
+
refetchOnFocus: {
|
|
11585
|
+
type: PropType<boolean>;
|
|
11586
|
+
};
|
|
11581
11587
|
}>> & {
|
|
11582
11588
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11583
11589
|
}, {
|
|
@@ -11863,6 +11869,9 @@ export declare const apTableRenderItemMap: {
|
|
|
11863
11869
|
type: PropType<"filter" | "request">;
|
|
11864
11870
|
default: string;
|
|
11865
11871
|
};
|
|
11872
|
+
refetchOnFocus: {
|
|
11873
|
+
type: PropType<boolean>;
|
|
11874
|
+
};
|
|
11866
11875
|
}>> & {
|
|
11867
11876
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11868
11877
|
}, {
|
|
@@ -12149,6 +12158,9 @@ export declare const apTableRenderItemMap: {
|
|
|
12149
12158
|
type: PropType<"filter" | "request">;
|
|
12150
12159
|
default: string;
|
|
12151
12160
|
};
|
|
12161
|
+
refetchOnFocus: {
|
|
12162
|
+
type: PropType<boolean>;
|
|
12163
|
+
};
|
|
12152
12164
|
}>> & {
|
|
12153
12165
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
12154
12166
|
}, {
|
|
@@ -14390,17 +14402,17 @@ export declare const apTableRenderItemMap: {
|
|
|
14390
14402
|
emptyText: string;
|
|
14391
14403
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
14392
14404
|
$slots: Readonly<{
|
|
14393
|
-
addonAfter
|
|
14394
|
-
addonBefore
|
|
14395
|
-
prefix
|
|
14396
|
-
suffix
|
|
14397
|
-
clearIcon
|
|
14405
|
+
addonAfter?: any;
|
|
14406
|
+
addonBefore?: any;
|
|
14407
|
+
prefix?: any;
|
|
14408
|
+
suffix?: any;
|
|
14409
|
+
clearIcon?: any;
|
|
14398
14410
|
}> & {
|
|
14399
|
-
addonAfter
|
|
14400
|
-
addonBefore
|
|
14401
|
-
prefix
|
|
14402
|
-
suffix
|
|
14403
|
-
clearIcon
|
|
14411
|
+
addonAfter?: any;
|
|
14412
|
+
addonBefore?: any;
|
|
14413
|
+
prefix?: any;
|
|
14414
|
+
suffix?: any;
|
|
14415
|
+
clearIcon?: any;
|
|
14404
14416
|
};
|
|
14405
14417
|
}) & {
|
|
14406
14418
|
Password: typeof ApFieldPassword;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* 选中行的Key列表
|
|
5
|
+
*/
|
|
6
|
+
selectedRowKeys?: any[];
|
|
7
|
+
/**
|
|
8
|
+
* 清空
|
|
9
|
+
*/
|
|
10
|
+
clearAll?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
prefix?(_: {}): any;
|
|
14
|
+
suffix?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Props>>>, {}, {}>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToOption<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as m, computed as u, openBlock as f, createElementBlock as h, normalizeClass as _, unref as t, renderSlot as r, createElementVNode as s, createTextVNode as n, toDisplayString as c, createVNode as A, withCtx as B } from "vue";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import { Button as v } from "ant-design-vue";
|
|
4
|
+
import "../../config-provider/index.mjs";
|
|
5
|
+
import { useNamespace as y } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useLocale as C } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
const k = { class: "selected-desc" }, x = { class: "selected-desc-conut" }, N = { class: "selected-desc-clean" }, K = /* @__PURE__ */ m({
|
|
8
|
+
__name: "ApBatchAction",
|
|
9
|
+
props: {
|
|
10
|
+
selectedRowKeys: {},
|
|
11
|
+
clearAll: { type: Function }
|
|
12
|
+
},
|
|
13
|
+
setup(p) {
|
|
14
|
+
const { b: i } = y("ap-batch-action"), { t: o } = C(), l = p, d = u(() => {
|
|
15
|
+
var e;
|
|
16
|
+
return ((e = l.selectedRowKeys) == null ? void 0 : e.length) || 0;
|
|
17
|
+
});
|
|
18
|
+
return (e, a) => (f(), h("div", {
|
|
19
|
+
class: _([t(i)()])
|
|
20
|
+
}, [
|
|
21
|
+
r(e.$slots, "prefix"),
|
|
22
|
+
s("div", k, [
|
|
23
|
+
s("div", x, [
|
|
24
|
+
n(c(t(o)("ap.apBatchAction.selected")) + " ", 1),
|
|
25
|
+
s("span", null, c(d.value), 1),
|
|
26
|
+
n(" " + c(t(o)("ap.apBatchAction.piecesOfData")), 1)
|
|
27
|
+
]),
|
|
28
|
+
s("div", N, [
|
|
29
|
+
A(t(v), {
|
|
30
|
+
type: "link",
|
|
31
|
+
onClick: a[0] || (a[0] = (w) => l.clearAll && l.clearAll())
|
|
32
|
+
}, {
|
|
33
|
+
default: B(() => [
|
|
34
|
+
n(c(t(o)("ap.apBatchAction.empty")), 1)
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
})
|
|
38
|
+
])
|
|
39
|
+
]),
|
|
40
|
+
r(e.$slots, "suffix")
|
|
41
|
+
], 2));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
K as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.aplus-ap-batch-action {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
}
|
|
6
|
+
.aplus-ap-batch-action .selected-desc {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
margin-right: 16px;
|
|
10
|
+
}
|
|
11
|
+
.aplus-ap-batch-action .selected-desc-conut {
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
color: var(--ap-batch-action-color-font, #8896b0);
|
|
14
|
+
}
|
|
15
|
+
.aplus-ap-batch-action .selected-desc-conut span {
|
|
16
|
+
color: var(--ap-batch-action-color-active, #0070ff);
|
|
17
|
+
font-weight: bold;
|
|
18
|
+
}
|
|
19
|
+
.aplus-ap-batch-action .selected-desc-clean {
|
|
20
|
+
margin-left: 8px;
|
|
21
|
+
}
|
|
22
|
+
.aplus-ap-batch-action .selected-desc-clean > * {
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
File without changes
|
|
@@ -1179,3 +1179,49 @@ export declare const ApInputRadio: DefineComponent<{
|
|
|
1179
1179
|
stringMode: boolean;
|
|
1180
1180
|
controls: boolean;
|
|
1181
1181
|
}, {}>;
|
|
1182
|
+
export declare const ApBatchAction: {
|
|
1183
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
1184
|
+
selectedRowKeys: {
|
|
1185
|
+
type: PropType<any[]>;
|
|
1186
|
+
};
|
|
1187
|
+
clearAll: {
|
|
1188
|
+
type: PropType<() => void>;
|
|
1189
|
+
};
|
|
1190
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
1191
|
+
selectedRowKeys: {
|
|
1192
|
+
type: PropType<any[]>;
|
|
1193
|
+
};
|
|
1194
|
+
clearAll: {
|
|
1195
|
+
type: PropType<() => void>;
|
|
1196
|
+
};
|
|
1197
|
+
}>>, {}, true, {}, {}, {
|
|
1198
|
+
P: {};
|
|
1199
|
+
B: {};
|
|
1200
|
+
D: {};
|
|
1201
|
+
C: {};
|
|
1202
|
+
M: {};
|
|
1203
|
+
Defaults: {};
|
|
1204
|
+
}, Readonly< ExtractPropTypes<{
|
|
1205
|
+
selectedRowKeys: {
|
|
1206
|
+
type: PropType<any[]>;
|
|
1207
|
+
};
|
|
1208
|
+
clearAll: {
|
|
1209
|
+
type: PropType<() => void>;
|
|
1210
|
+
};
|
|
1211
|
+
}>>, {}, {}, {}, {}, {}>;
|
|
1212
|
+
__isFragment?: never;
|
|
1213
|
+
__isTeleport?: never;
|
|
1214
|
+
__isSuspense?: never;
|
|
1215
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
1216
|
+
selectedRowKeys: {
|
|
1217
|
+
type: PropType<any[]>;
|
|
1218
|
+
};
|
|
1219
|
+
clearAll: {
|
|
1220
|
+
type: PropType<() => void>;
|
|
1221
|
+
};
|
|
1222
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1223
|
+
$slots: {
|
|
1224
|
+
prefix?(_: {}): any;
|
|
1225
|
+
suffix?(_: {}): any;
|
|
1226
|
+
};
|
|
1227
|
+
});
|
|
@@ -7,22 +7,25 @@ import "./ap-status/ApStatusGroup.vue.mjs";
|
|
|
7
7
|
import "./ap-select-layout/select-layout.vue.mjs";
|
|
8
8
|
import "./ap-export-group/ApExportGroup.vue.mjs";
|
|
9
9
|
import "./ap-input-radio/ApInputRadio.vue.mjs";
|
|
10
|
+
import "./ap-batch-action/ApBatchAction.vue.mjs";
|
|
10
11
|
import t from "./title/ApTitle.vue2.mjs";
|
|
11
12
|
import m from "./expandAlert/ApExpandAlert.vue2.mjs";
|
|
12
13
|
import p from "./ap-label/ApLabel.vue2.mjs";
|
|
13
14
|
import r from "./ap-status/ApStatus.vue2.mjs";
|
|
14
15
|
import i from "./ap-status/ApStatusGroup.vue2.mjs";
|
|
15
16
|
import n from "./ap-select-layout/select-layout.vue2.mjs";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
17
|
+
import c from "./ap-export-group/ApExportGroup.vue2.mjs";
|
|
18
|
+
import s from "./ap-input-radio/ApInputRadio.vue2.mjs";
|
|
19
|
+
import f from "./ap-batch-action/ApBatchAction.vue2.mjs";
|
|
20
|
+
const R = o(t), T = m, g = o(p), j = o(r), k = o(i), q = o(n), v = o(c), z = s, C = f;
|
|
19
21
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
C as ApBatchAction,
|
|
23
|
+
T as ApExpandAlert,
|
|
24
|
+
v as ApExportGroup,
|
|
25
|
+
z as ApInputRadio,
|
|
26
|
+
g as ApLabel,
|
|
27
|
+
q as ApSelectLayout,
|
|
28
|
+
j as ApStatus,
|
|
29
|
+
k as ApStatusGroup,
|
|
30
|
+
R as ApTitle
|
|
28
31
|
};
|