@ailife-dev-vue/uiplus 0.1.17-snapshot → 0.1.18-snapshot
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/index.css +1 -1
- package/dist/index.d.ts +61 -22
- package/dist/index.mjs +13323 -13118
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1947,6 +1947,21 @@ export declare type StatisticChartDataSource = 'avg' | 'sum' | 'maxMin';
|
|
|
1947
1947
|
/** 统计维度模式:最近 N 天 / 天周月年(互斥) */
|
|
1948
1948
|
export declare type StatisticChartDimensionMode = 'recent' | 'calendar';
|
|
1949
1949
|
|
|
1950
|
+
/**
|
|
1951
|
+
* 业务:解析画布 i18n 对象 `{ key, zh_CN, en_US, type }`(兼容 zh/en)。
|
|
1952
|
+
* 优先 key→文案表,否则按当前语言取双语字段。
|
|
1953
|
+
*/
|
|
1954
|
+
export declare type StatisticChartI18nText = {
|
|
1955
|
+
key?: string;
|
|
1956
|
+
zh?: string;
|
|
1957
|
+
en?: string;
|
|
1958
|
+
zh_CN?: string;
|
|
1959
|
+
en_US?: string;
|
|
1960
|
+
'zh-CN'?: string;
|
|
1961
|
+
'en-US'?: string;
|
|
1962
|
+
type?: string;
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1950
1965
|
export declare type StatisticChartProps = ExtractPropTypes<typeof statisticChartProps>;
|
|
1951
1966
|
|
|
1952
1967
|
declare const statisticChartProps: {
|
|
@@ -1967,10 +1982,16 @@ declare const statisticChartProps: {
|
|
|
1967
1982
|
type: PropType<StatisticChartDataSource>;
|
|
1968
1983
|
default: string;
|
|
1969
1984
|
};
|
|
1970
|
-
|
|
1971
|
-
|
|
1985
|
+
/** 参考范围标题;画布 i18n 对象 */
|
|
1986
|
+
referenceRangesTitle: {
|
|
1987
|
+
type: PropType<StatisticChartI18nText | null>;
|
|
1972
1988
|
default: null;
|
|
1973
1989
|
};
|
|
1990
|
+
/** 参考范围分段列表;空则不展示参考范围区 */
|
|
1991
|
+
referenceRanges: {
|
|
1992
|
+
type: PropType<StatisticChartReferenceRangeItem[]>;
|
|
1993
|
+
default: () => never[];
|
|
1994
|
+
};
|
|
1974
1995
|
statsFollowTab: {
|
|
1975
1996
|
type: BooleanConstructor;
|
|
1976
1997
|
default: boolean;
|
|
@@ -1999,19 +2020,22 @@ declare const statisticChartProps: {
|
|
|
1999
2020
|
|
|
2000
2021
|
export declare type StatisticChartRecentTab = 'last7Days' | 'last30Days';
|
|
2001
2022
|
|
|
2002
|
-
|
|
2003
|
-
/** 区域标题;L2 i18n key */
|
|
2004
|
-
title: string;
|
|
2005
|
-
ranges: StatisticChartReferenceRangeItem[];
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2023
|
+
/** 参考范围分段:画布 i18n 对象 + 浅/暗色(字段名对齐宿主 schema) */
|
|
2008
2024
|
export declare interface StatisticChartReferenceRangeItem {
|
|
2009
|
-
/**
|
|
2010
|
-
|
|
2011
|
-
|
|
2025
|
+
/**
|
|
2026
|
+
* 色条上方段名(如「正常」)。
|
|
2027
|
+
* 宿主 schema 字段名为 `range`(与示例 JSON 一致)。
|
|
2028
|
+
*/
|
|
2029
|
+
range: StatisticChartI18nText;
|
|
2030
|
+
/**
|
|
2031
|
+
* 色条下方范围文案(如「15~20」)。
|
|
2032
|
+
* 宿主 schema 字段名为 `description`。
|
|
2033
|
+
*/
|
|
2034
|
+
description: StatisticChartI18nText;
|
|
2035
|
+
/** 浅色主题色条颜色 */
|
|
2012
2036
|
color: string;
|
|
2013
|
-
/**
|
|
2014
|
-
|
|
2037
|
+
/** 暗黑主题色条颜色;缺省回退 color */
|
|
2038
|
+
darkColor?: string;
|
|
2015
2039
|
}
|
|
2016
2040
|
|
|
2017
2041
|
/** 数据统计展示指标 */
|
|
@@ -6232,10 +6256,14 @@ export declare const UpStatisticChart: {
|
|
|
6232
6256
|
type: PropType<StatisticChartDataSource>;
|
|
6233
6257
|
default: string;
|
|
6234
6258
|
};
|
|
6235
|
-
|
|
6236
|
-
type: PropType<
|
|
6259
|
+
referenceRangesTitle: {
|
|
6260
|
+
type: PropType<StatisticChartI18nText | null>;
|
|
6237
6261
|
default: null;
|
|
6238
6262
|
};
|
|
6263
|
+
referenceRanges: {
|
|
6264
|
+
type: PropType<StatisticChartReferenceRangeItem[]>;
|
|
6265
|
+
default: () => never[];
|
|
6266
|
+
};
|
|
6239
6267
|
statsFollowTab: {
|
|
6240
6268
|
type: BooleanConstructor;
|
|
6241
6269
|
default: boolean;
|
|
@@ -6265,7 +6293,8 @@ export declare const UpStatisticChart: {
|
|
|
6265
6293
|
unit: string;
|
|
6266
6294
|
chartType: StatisticChartType;
|
|
6267
6295
|
chartDataSource: StatisticChartDataSource;
|
|
6268
|
-
|
|
6296
|
+
referenceRangesTitle: StatisticChartI18nText | null;
|
|
6297
|
+
referenceRanges: StatisticChartReferenceRangeItem[];
|
|
6269
6298
|
statsFollowTab: boolean;
|
|
6270
6299
|
statMetrics: StatisticChartStatMetric[];
|
|
6271
6300
|
dimensionMode: StatisticChartDimensionMode;
|
|
@@ -6298,10 +6327,14 @@ export declare const UpStatisticChart: {
|
|
|
6298
6327
|
type: PropType<StatisticChartDataSource>;
|
|
6299
6328
|
default: string;
|
|
6300
6329
|
};
|
|
6301
|
-
|
|
6302
|
-
type: PropType<
|
|
6330
|
+
referenceRangesTitle: {
|
|
6331
|
+
type: PropType<StatisticChartI18nText | null>;
|
|
6303
6332
|
default: null;
|
|
6304
6333
|
};
|
|
6334
|
+
referenceRanges: {
|
|
6335
|
+
type: PropType<StatisticChartReferenceRangeItem[]>;
|
|
6336
|
+
default: () => never[];
|
|
6337
|
+
};
|
|
6305
6338
|
statsFollowTab: {
|
|
6306
6339
|
type: BooleanConstructor;
|
|
6307
6340
|
default: boolean;
|
|
@@ -6331,7 +6364,8 @@ export declare const UpStatisticChart: {
|
|
|
6331
6364
|
unit: string;
|
|
6332
6365
|
chartType: StatisticChartType;
|
|
6333
6366
|
chartDataSource: StatisticChartDataSource;
|
|
6334
|
-
|
|
6367
|
+
referenceRangesTitle: StatisticChartI18nText | null;
|
|
6368
|
+
referenceRanges: StatisticChartReferenceRangeItem[];
|
|
6335
6369
|
statsFollowTab: boolean;
|
|
6336
6370
|
statMetrics: StatisticChartStatMetric[];
|
|
6337
6371
|
dimensionMode: StatisticChartDimensionMode;
|
|
@@ -6359,10 +6393,14 @@ chartDataSource: {
|
|
|
6359
6393
|
type: PropType<StatisticChartDataSource>;
|
|
6360
6394
|
default: string;
|
|
6361
6395
|
};
|
|
6362
|
-
|
|
6363
|
-
type: PropType<
|
|
6396
|
+
referenceRangesTitle: {
|
|
6397
|
+
type: PropType<StatisticChartI18nText | null>;
|
|
6364
6398
|
default: null;
|
|
6365
6399
|
};
|
|
6400
|
+
referenceRanges: {
|
|
6401
|
+
type: PropType<StatisticChartReferenceRangeItem[]>;
|
|
6402
|
+
default: () => never[];
|
|
6403
|
+
};
|
|
6366
6404
|
statsFollowTab: {
|
|
6367
6405
|
type: BooleanConstructor;
|
|
6368
6406
|
default: boolean;
|
|
@@ -6392,7 +6430,8 @@ subscribes: ProductSubscribe[];
|
|
|
6392
6430
|
unit: string;
|
|
6393
6431
|
chartType: StatisticChartType;
|
|
6394
6432
|
chartDataSource: StatisticChartDataSource;
|
|
6395
|
-
|
|
6433
|
+
referenceRangesTitle: StatisticChartI18nText | null;
|
|
6434
|
+
referenceRanges: StatisticChartReferenceRangeItem[];
|
|
6396
6435
|
statsFollowTab: boolean;
|
|
6397
6436
|
statMetrics: StatisticChartStatMetric[];
|
|
6398
6437
|
dimensionMode: StatisticChartDimensionMode;
|