@aplus-frontend/ui 0.1.9 → 0.1.10
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-field/interface.d.ts +4 -0
- package/es/src/ap-field/select/index.vue.d.ts +6 -0
- package/es/src/ap-field/select/index.vue.mjs +36 -31
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +6 -2
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +33 -23
- package/es/src/ap-table/ap-table.vue.mjs +158 -147
- package/es/src/ap-table/constants.d.ts +26 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +4 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +63 -63
- package/es/src/ap-table/interface.d.ts +13 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +53 -48
- package/es/src/business/ap-export-group/interface.d.ts +4 -0
- package/es/src/business/ap-label/ApLabel.vue2.mjs +18 -17
- package/es/src/business/ap-label/ApLabelGroup.d.ts +22 -4
- package/es/src/business/ap-label/ApLabelGroup.mjs +17 -23
- package/es/src/business/ap-label/constans.d.ts +10 -2
- package/es/src/business/ap-label/constans.mjs +8 -0
- package/es/src/business/ap-label/interface.d.ts +13 -8
- package/es/src/business/index.d.ts +35 -5
- package/es/src/theme/antd-global-overwrite/admin/button.css +3 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +3 -0
- package/es/src/theme/antd-global-overwrite/aplus/button.css +3 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +3 -0
- package/lib/src/ap-field/interface.d.ts +4 -0
- package/lib/src/ap-field/select/index.vue.d.ts +6 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +6 -2
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +26 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +4 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +4 -0
- package/lib/src/business/ap-label/ApLabel.vue2.js +1 -1
- package/lib/src/business/ap-label/ApLabelGroup.d.ts +22 -4
- package/lib/src/business/ap-label/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +10 -2
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +13 -8
- package/lib/src/business/index.d.ts +35 -5
- package/lib/src/theme/antd-global-overwrite/admin/button.css +3 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +3 -0
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +3 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +3 -0
- package/package.json +3 -3
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { ApLabelGroupItemProps } from './interface';
|
|
3
3
|
export declare const ApLabelGroupProps: () => {
|
|
4
4
|
value: {
|
|
5
5
|
type: PropType<string | number | undefined>;
|
|
6
6
|
default: undefined;
|
|
7
7
|
};
|
|
8
|
+
tagValue: {
|
|
9
|
+
type: PropType<string | number | undefined>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
8
12
|
columns: {
|
|
9
|
-
type: PropType<Array<
|
|
13
|
+
type: PropType<Array<ApLabelGroupItemProps<any>>>;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
record: {
|
|
17
|
+
type: PropType<any>;
|
|
10
18
|
default: null;
|
|
11
19
|
};
|
|
12
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({value:{type:String,default:void 0},columns:{type:Array,default:null}});exports.ApLabelGroupProps=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({value:{type:String,default:void 0},tagValue:{type:String,default:void 0},columns:{type:Array,default:null},record:{type:Object,default:null}});exports.ApLabelGroupProps=e;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BadgeProps } from 'ant-design-vue';
|
|
2
2
|
import { TooltipPlacement } from 'ant-design-vue/es/Tooltip';
|
|
3
3
|
import { TagProps } from 'ant-design-vue/es/Tag';
|
|
4
|
+
import { VNode, VNodeChild } from 'vue';
|
|
5
|
+
type Recordable = Record<string, any>;
|
|
4
6
|
export type ApLabelProps = BadgeProps & Partial<{
|
|
5
7
|
helpMessage: string;
|
|
6
8
|
placement: TooltipPlacement;
|
|
@@ -9,16 +11,19 @@ export type ApLabelProps = BadgeProps & Partial<{
|
|
|
9
11
|
iconSize: number;
|
|
10
12
|
show: boolean;
|
|
11
13
|
}>;
|
|
12
|
-
type tagConfigKey = TagProps & {
|
|
14
|
+
export type tagConfigKey = TagProps & {
|
|
15
|
+
value: number | string | undefined | null;
|
|
13
16
|
text: string;
|
|
14
17
|
};
|
|
15
|
-
export type
|
|
16
|
-
value?: string | number | undefined;
|
|
17
|
-
tagConfig?: tagConfigKey;
|
|
18
|
-
customRender?: (
|
|
18
|
+
export type ApLabelGroupItemProps<T extends Recordable = Recordable> = ApLabelProps & {
|
|
19
|
+
value?: string | number | null | undefined;
|
|
20
|
+
tagConfig?: Array<tagConfigKey> | null | undefined;
|
|
21
|
+
customRender?: (record?: T) => VNodeChild | VNode | string;
|
|
19
22
|
};
|
|
20
|
-
export type ApLabelGroupProps = {
|
|
21
|
-
value: string | number | undefined;
|
|
22
|
-
|
|
23
|
+
export type ApLabelGroupProps<T extends Recordable = Recordable> = {
|
|
24
|
+
value: string | number | null | undefined;
|
|
25
|
+
tagValue?: string | number | null | undefined;
|
|
26
|
+
columns: Array<ApLabelGroupItemProps<T>> | null;
|
|
27
|
+
record?: T;
|
|
23
28
|
};
|
|
24
29
|
export {};
|
|
@@ -6,10 +6,10 @@ import { ApSelectItem } from './ap-select-layout/interface';
|
|
|
6
6
|
import { ValueType } from 'ant-design-vue/es/input-number/src/utils/MiniDecimal';
|
|
7
7
|
import { ApInputRadioOptions } from './ap-input-radio/interface';
|
|
8
8
|
import { KeyboardEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
9
|
-
import {
|
|
9
|
+
import { ApLabelGroupItemProps } from './ap-label/interface';
|
|
10
10
|
export type { ApTitleProps } from './title/interface';
|
|
11
11
|
export type { ApExpandAlertProps } from './expandAlert/interface';
|
|
12
|
-
export type { ApLabelProps, ApLabelGroupProps,
|
|
12
|
+
export type { ApLabelProps, ApLabelGroupProps, ApLabelGroupItemProps } from './ap-label/interface';
|
|
13
13
|
export type { ApStatusProps, ApStatusGroupProps, ApStatusGroupItemProps } from './ap-status/interface';
|
|
14
14
|
export type { ApSelectItem, ApSelectLayoutProps } from './ap-select-layout/interface';
|
|
15
15
|
export type { ApInputRadioProps } from './ap-input-radio/interface';
|
|
@@ -961,6 +961,9 @@ export declare const ApExportGroup: {
|
|
|
961
961
|
getRequestParams: {
|
|
962
962
|
type: PropType<() => Record<string, any>>;
|
|
963
963
|
};
|
|
964
|
+
getInitialParams: {
|
|
965
|
+
type: PropType<() => Record<string, any>>;
|
|
966
|
+
};
|
|
964
967
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
965
968
|
selectedRowKeys: {
|
|
966
969
|
type: PropType<any[]>;
|
|
@@ -983,6 +986,9 @@ export declare const ApExportGroup: {
|
|
|
983
986
|
getRequestParams: {
|
|
984
987
|
type: PropType<() => Record<string, any>>;
|
|
985
988
|
};
|
|
989
|
+
getInitialParams: {
|
|
990
|
+
type: PropType<() => Record<string, any>>;
|
|
991
|
+
};
|
|
986
992
|
}>>, {}, true, {}, {}, {
|
|
987
993
|
P: {};
|
|
988
994
|
B: {};
|
|
@@ -1012,6 +1018,9 @@ export declare const ApExportGroup: {
|
|
|
1012
1018
|
getRequestParams: {
|
|
1013
1019
|
type: PropType<() => Record<string, any>>;
|
|
1014
1020
|
};
|
|
1021
|
+
getInitialParams: {
|
|
1022
|
+
type: PropType<() => Record<string, any>>;
|
|
1023
|
+
};
|
|
1015
1024
|
}>>, {}, {}, {}, {}, {}>;
|
|
1016
1025
|
__isFragment?: never;
|
|
1017
1026
|
__isTeleport?: never;
|
|
@@ -1038,6 +1047,9 @@ export declare const ApExportGroup: {
|
|
|
1038
1047
|
getRequestParams: {
|
|
1039
1048
|
type: PropType<() => Record<string, any>>;
|
|
1040
1049
|
};
|
|
1050
|
+
getInitialParams: {
|
|
1051
|
+
type: PropType<() => Record<string, any>>;
|
|
1052
|
+
};
|
|
1041
1053
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & ( VNodeProps & ( AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
1042
1054
|
$props: {
|
|
1043
1055
|
onClick?: () => void;
|
|
@@ -1241,8 +1253,16 @@ export declare const ApLabelGroup: DefineComponent<{
|
|
|
1241
1253
|
type: PropType<string | number | undefined>;
|
|
1242
1254
|
default: undefined;
|
|
1243
1255
|
};
|
|
1256
|
+
tagValue: {
|
|
1257
|
+
type: PropType<string | number | undefined>;
|
|
1258
|
+
default: undefined;
|
|
1259
|
+
};
|
|
1244
1260
|
columns: {
|
|
1245
|
-
type: PropType<Array<
|
|
1261
|
+
type: PropType<Array< ApLabelGroupItemProps<any>>>;
|
|
1262
|
+
default: null;
|
|
1263
|
+
};
|
|
1264
|
+
record: {
|
|
1265
|
+
type: PropType<any>;
|
|
1246
1266
|
default: null;
|
|
1247
1267
|
};
|
|
1248
1268
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -1250,11 +1270,21 @@ export declare const ApLabelGroup: DefineComponent<{
|
|
|
1250
1270
|
type: PropType<string | number | undefined>;
|
|
1251
1271
|
default: undefined;
|
|
1252
1272
|
};
|
|
1273
|
+
tagValue: {
|
|
1274
|
+
type: PropType<string | number | undefined>;
|
|
1275
|
+
default: undefined;
|
|
1276
|
+
};
|
|
1253
1277
|
columns: {
|
|
1254
|
-
type: PropType<Array<
|
|
1278
|
+
type: PropType<Array< ApLabelGroupItemProps<any>>>;
|
|
1279
|
+
default: null;
|
|
1280
|
+
};
|
|
1281
|
+
record: {
|
|
1282
|
+
type: PropType<any>;
|
|
1255
1283
|
default: null;
|
|
1256
1284
|
};
|
|
1257
1285
|
}>>, {
|
|
1258
1286
|
value: string | number | undefined;
|
|
1259
|
-
columns:
|
|
1287
|
+
columns: ApLabelGroupItemProps<any>[];
|
|
1288
|
+
record: any;
|
|
1289
|
+
tagValue: string | number | undefined;
|
|
1260
1290
|
}, {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"mime": "^4.0.3",
|
|
61
61
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
62
62
|
"sortablejs": "^1.15.2",
|
|
63
|
-
"@aplus-frontend/
|
|
64
|
-
"@aplus-frontend/
|
|
63
|
+
"@aplus-frontend/utils": "1.0.29",
|
|
64
|
+
"@aplus-frontend/hooks": "1.0.7"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@aplus-frontend/icon": "^1.0.21",
|