@dazhicheng/ui 1.5.252 → 1.5.253
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/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
- package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/index.d.ts +12 -12
- package/dist/components/tt-table/src/Table.vue.d.ts +4 -4
- package/dist/hooks/basicDataCodes.d.ts +22 -0
- package/dist/hooks/basicDataCodes.js +167 -122
- package/dist/hooks/useBasicDataOptions.d.ts +1 -0
- package/dist/hooks/useBasicDataOptions.js +102 -67
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TtArea.vue3.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b814e001"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./DrawerHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ o(r, [["__scopeId", "data-v-9b698cc3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import o from "./index.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6dba01d4"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./loading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5d760747"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -75,8 +75,8 @@ declare function __VLS_template(): {
|
|
|
75
75
|
$refs: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
} & {
|
|
78
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods
|
|
79
|
-
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
78
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
79
|
+
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
|
|
80
80
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
81
81
|
}) | null;
|
|
82
82
|
table: HTMLTableElement;
|
|
@@ -570,8 +570,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
570
570
|
$refs: {
|
|
571
571
|
[x: string]: unknown;
|
|
572
572
|
} & {
|
|
573
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods
|
|
574
|
-
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
573
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
574
|
+
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
|
|
575
575
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
576
576
|
}) | null;
|
|
577
577
|
table: HTMLTableElement;
|
|
@@ -32,8 +32,8 @@ declare function __VLS_template(): {
|
|
|
32
32
|
empty: () => VNode;
|
|
33
33
|
};
|
|
34
34
|
refs: {
|
|
35
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods
|
|
36
|
-
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
35
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
36
|
+
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
|
|
37
37
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
38
38
|
}) | null;
|
|
39
39
|
table: HTMLTableElement;
|
|
@@ -234,8 +234,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
234
234
|
hasNextPage: boolean;
|
|
235
235
|
showCheckbox: boolean;
|
|
236
236
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
237
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods
|
|
238
|
-
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
237
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
238
|
+
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
|
|
239
239
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
240
240
|
}) | null;
|
|
241
241
|
table: HTMLTableElement;
|
|
@@ -412,15 +412,14 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
412
412
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
413
413
|
showPager: any;
|
|
414
414
|
showCheckbox: any;
|
|
415
|
-
showRadio: any;
|
|
416
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
417
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
418
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
419
415
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
420
416
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
421
417
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
422
418
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
423
419
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
420
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
421
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
422
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
424
423
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
425
424
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
426
425
|
emptyText: string;
|
|
@@ -437,6 +436,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
437
436
|
showRefresh: boolean;
|
|
438
437
|
columnsKey: string | (() => string);
|
|
439
438
|
showExpand: any;
|
|
439
|
+
showRadio: any;
|
|
440
440
|
showIndex: any;
|
|
441
441
|
isCellResize: any;
|
|
442
442
|
isColumnsDrag: any;
|
|
@@ -1044,15 +1044,14 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1044
1044
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
1045
1045
|
showPager: any;
|
|
1046
1046
|
showCheckbox: any;
|
|
1047
|
-
showRadio: any;
|
|
1048
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1049
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1050
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1051
1047
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
1052
1048
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
1053
1049
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
1054
1050
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1055
1051
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1052
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1053
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1054
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1056
1055
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
1057
1056
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
1058
1057
|
emptyText: string;
|
|
@@ -1069,6 +1068,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1069
1068
|
showRefresh: boolean;
|
|
1070
1069
|
columnsKey: string | (() => string);
|
|
1071
1070
|
showExpand: any;
|
|
1071
|
+
showRadio: any;
|
|
1072
1072
|
showIndex: any;
|
|
1073
1073
|
isCellResize: any;
|
|
1074
1074
|
isColumnsDrag: any;
|
|
@@ -1409,15 +1409,14 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1409
1409
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
1410
1410
|
showPager: any;
|
|
1411
1411
|
showCheckbox: any;
|
|
1412
|
-
showRadio: any;
|
|
1413
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1414
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1415
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1416
1412
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
1417
1413
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
1418
1414
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
1419
1415
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1420
1416
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1417
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1418
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1419
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1421
1420
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
1422
1421
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
1423
1422
|
emptyText: string;
|
|
@@ -1434,6 +1433,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1434
1433
|
showRefresh: boolean;
|
|
1435
1434
|
columnsKey: string | (() => string);
|
|
1436
1435
|
showExpand: any;
|
|
1436
|
+
showRadio: any;
|
|
1437
1437
|
showIndex: any;
|
|
1438
1438
|
isCellResize: any;
|
|
1439
1439
|
isColumnsDrag: any;
|
|
@@ -809,15 +809,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
809
809
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
810
810
|
showPager: any;
|
|
811
811
|
showCheckbox: any;
|
|
812
|
-
showRadio: any;
|
|
813
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
814
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
815
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
816
812
|
columns: import('vue').MaybeRef<VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
817
813
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
818
814
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
819
815
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
820
816
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
817
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
818
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
819
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
821
820
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
822
821
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
823
822
|
emptyText: string;
|
|
@@ -834,6 +833,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
834
833
|
showRefresh: boolean;
|
|
835
834
|
columnsKey: string | (() => string);
|
|
836
835
|
showExpand: any;
|
|
836
|
+
showRadio: any;
|
|
837
837
|
showIndex: any;
|
|
838
838
|
isCellResize: any;
|
|
839
839
|
isColumnsDrag: any;
|
|
@@ -91,6 +91,28 @@ export type BasicDataCodeRegistryItem = {
|
|
|
91
91
|
/** 拉取并归一化为 label/value 选项 */
|
|
92
92
|
fetchOptions: (ctx?: BasicDataFetchContext) => Promise<BasicDataOption[]>;
|
|
93
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* 地理层级(数字越大越细)。
|
|
96
|
+
* 更细层级的扁平字段已含上级 code/name,可去重派生上级,避免同页重复请求。
|
|
97
|
+
* 机场 → 城市/国家/区域/洲;城市 → 国家/区域/洲;国家 → 区域/洲;区域 → 洲
|
|
98
|
+
*/
|
|
99
|
+
export declare const GEO_LEVEL_CODES: readonly ["continent", "region", "country", "city", "airport"];
|
|
100
|
+
export type GeoLevelCode = (typeof GEO_LEVEL_CODES)[number];
|
|
101
|
+
/** @deprecated 使用 GEO_LEVEL_CODES;保留兼容「从机场可派生」语义 */
|
|
102
|
+
export declare const GEO_CODES_DERIVABLE_FROM_AIRPORT: readonly ["continent", "region", "country", "city"];
|
|
103
|
+
export declare function isGeoLevelCode(code: BasicDataCode): code is GeoLevelCode;
|
|
104
|
+
export declare function isGeoCodeDerivableFromAirport(code: BasicDataCode): boolean;
|
|
105
|
+
/** source 是否可派生 target(source 更细) */
|
|
106
|
+
export declare function canDeriveGeoLevel(source: BasicDataCode, target: BasicDataCode): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* 从任一地理层级 options 去重生成更粗层级 options。
|
|
109
|
+
* 扁平字段已含 continentCode / regionCode / countryCode / cityCode 等。
|
|
110
|
+
*/
|
|
111
|
+
export declare function deriveRegionLevelOptionsFromGeoSource(sourceOptions: BasicDataOption[], targetCode: BasicDataCode): BasicDataOption[];
|
|
112
|
+
/** @deprecated 使用 deriveRegionLevelOptionsFromGeoSource */
|
|
113
|
+
export declare function deriveRegionLevelOptionsFromAirports(airports: BasicDataOption[], code: BasicDataCode): BasicDataOption[];
|
|
114
|
+
/** 在候选 code 中取最细的地理层级(机场 > 城市 > 国家 > 区域 > 洲) */
|
|
115
|
+
export declare function resolveHighestGeoLevelCode(codes: Iterable<BasicDataCode>): GeoLevelCode | undefined;
|
|
94
116
|
/**
|
|
95
117
|
* code → 接口与默认展示配置。
|
|
96
118
|
* 后续扩展航线/舱位等,只需在此追加。
|