bw-pro-table 0.0.3 → 0.0.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/dist/types/types.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export type FilterValue = (string | number)[] | null;
|
|
|
51
51
|
/** 行 Key 类型 */
|
|
52
52
|
export type Key = string | number;
|
|
53
53
|
/** 支持的 valueType 预设值 */
|
|
54
|
-
export type ValueType = 'text' | 'number' | 'date' | 'tag' | 'image' | 'link' | 'progress' | 'avatar' | 'action' | 'index' | 'currency' | 'boolean';
|
|
54
|
+
export type ValueType = 'text' | 'number' | 'date' | 'dateTime' | 'tag' | 'image' | 'link' | 'progress' | 'avatar' | 'action' | 'index' | 'currency' | 'boolean';
|
|
55
55
|
/** valueEnum 映射定义 */
|
|
56
56
|
export interface ValueEnumItem {
|
|
57
57
|
text: string;
|
|
@@ -78,6 +78,8 @@ export interface ProColumnType<RecordType = any> extends Omit<TableColumnType<Re
|
|
|
78
78
|
valueEnum?: ValueEnumMap;
|
|
79
79
|
/** 日期格式(valueType='date' 时生效) */
|
|
80
80
|
dateFormat?: string;
|
|
81
|
+
/** 日期时间格式(valueType='dateTime' 时生效,默认 'YYYY-MM-DD HH:mm:ss') */
|
|
82
|
+
dateTimeFormat?: string;
|
|
81
83
|
/** 小数精度(valueType='number'/'currency' 时生效) */
|
|
82
84
|
precision?: number;
|
|
83
85
|
/** 货币前缀符号 */
|