twcpt 0.0.3 → 0.0.4
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/charts.cjs.js +1 -1
- package/dist/charts.d.ts +0 -7
- package/dist/charts.es.js +1 -9
- package/dist/components/j-tw-btn/index.d.ts +10 -10
- package/dist/components/j-tw-checkbox/index.d.ts +230 -0
- package/dist/components/j-tw-checkbox/types.d.ts +35 -0
- package/dist/components/j-tw-checkbox-group/index.d.ts +309 -0
- package/dist/components/j-tw-checkbox-group/types.d.ts +38 -0
- package/dist/components/j-tw-confirm-dialog/index.d.ts +704 -0
- package/dist/components/j-tw-confirm-dialog/jwConfirmDialog.d.ts +2 -0
- package/dist/components/j-tw-confirm-dialog/types.d.ts +79 -0
- package/dist/components/j-tw-date-picker/index.d.ts +63 -8
- package/dist/components/j-tw-date-picker/types.d.ts +15 -0
- package/dist/components/j-tw-dialog/index.d.ts +793 -0
- package/dist/components/j-tw-dialog/jwDialog.d.ts +38 -0
- package/dist/components/j-tw-dialog/types.d.ts +122 -0
- package/dist/components/j-tw-form/index.d.ts +368 -0
- package/dist/components/j-tw-form/types.d.ts +18 -0
- package/dist/components/j-tw-form-item/index.d.ts +248 -0
- package/dist/components/j-tw-form-item/types.d.ts +21 -0
- package/dist/components/j-tw-form-label/index.d.ts +66 -0
- package/dist/components/j-tw-input/index.d.ts +537 -0
- package/dist/components/j-tw-input/types.d.ts +76 -0
- package/dist/components/j-tw-messages/MessageItem.d.ts +84 -0
- package/dist/components/j-tw-messages/index.d.ts +110 -0
- package/dist/components/j-tw-messages/jwMessages.d.ts +2 -0
- package/dist/components/j-tw-messages/state.d.ts +23 -0
- package/dist/components/j-tw-messages/types.d.ts +31 -0
- package/dist/components/j-tw-radio/index.d.ts +168 -0
- package/dist/components/j-tw-radio/types.d.ts +29 -0
- package/dist/components/j-tw-radio-group/index.d.ts +244 -0
- package/dist/components/j-tw-radio-group/types.d.ts +37 -0
- package/dist/components/j-tw-status-img/index.d.ts +36 -0
- package/dist/components/j-tw-status-img/types.d.ts +3 -0
- package/dist/components/j-tw-table/index.d.ts +480 -0
- package/dist/components/j-tw-table/types.d.ts +157 -0
- package/dist/components/j-tw-tree-select/TreeNode.d.ts +124 -0
- package/dist/components/j-tw-tree-select/index.d.ts +292 -0
- package/dist/components/j-tw-tree-select/types.d.ts +110 -0
- package/dist/components/j-tw-tree-select-btn/TreeNode.d.ts +107 -0
- package/dist/components/j-tw-tree-select-btn/index.d.ts +171 -22
- package/dist/components/j-tw-tree-select-btn/types.d.ts +5 -0
- package/dist/global.d.ts +109 -49
- package/dist/index.css +1 -1
- package/dist/index.d.ts +37 -4
- package/dist/shims-svg.d.ts +4 -0
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +9 -5
- package/dist/twcpt.es.js +3552 -1666
- package/dist/types.d.ts +1 -1
- package/dist/utils/useBizRequest.d.ts +12 -0
- package/package.json +1 -3
- package/dist/charts-BRqaKjiE.js +0 -879
- package/dist/charts-lTMiYKQB.cjs +0 -1
- package/dist/components/j-ch-bar/index.d.ts +0 -50
- package/dist/components/j-ch-bar/types.d.ts +0 -42
- package/dist/components/j-ch-bar-line/index.d.ts +0 -49
- package/dist/components/j-ch-bar-line/types.d.ts +0 -42
- package/dist/components/j-ch-bubble/index.d.ts +0 -54
- package/dist/components/j-ch-bubble/types.d.ts +0 -51
- package/dist/components/j-ch-line/index.d.ts +0 -57
- package/dist/components/j-ch-line/types.d.ts +0 -42
- package/dist/components/j-ch-pie-doughnut/index.d.ts +0 -60
- package/dist/components/j-ch-pie-doughnut/types.d.ts +0 -55
- package/dist/components/j-ch-radar/index.d.ts +0 -49
- package/dist/components/j-ch-radar/types.d.ts +0 -42
- package/dist/utils/chart.d.ts +0 -28
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** 确认对话框图标类型常量 */
|
|
3
|
+
export declare const JTWConfirmDialogIcon: {
|
|
4
|
+
readonly WARN: "warn";
|
|
5
|
+
readonly INFO: "info";
|
|
6
|
+
readonly SUCCESS: "success";
|
|
7
|
+
readonly ERROR: "error";
|
|
8
|
+
};
|
|
9
|
+
/** 确认对话框图标类型 */
|
|
10
|
+
export type JTWConfirmDialogIconType = (typeof JTWConfirmDialogIcon)[keyof typeof JTWConfirmDialogIcon];
|
|
11
|
+
/**
|
|
12
|
+
* @description jwConfirmDialog 调用选项
|
|
13
|
+
*/
|
|
14
|
+
export interface JTWConfirmDialogOptions {
|
|
15
|
+
/**
|
|
16
|
+
* 提示内容
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
/**
|
|
20
|
+
* 图标类型
|
|
21
|
+
* @default 'warn'
|
|
22
|
+
*/
|
|
23
|
+
icon?: JTWConfirmDialogIconType;
|
|
24
|
+
/**
|
|
25
|
+
* 确认按钮文字
|
|
26
|
+
* @default '确定'
|
|
27
|
+
*/
|
|
28
|
+
confirmText?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 取消按钮文字
|
|
31
|
+
* @default '取消'
|
|
32
|
+
*/
|
|
33
|
+
cancelText?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @description JTWConfirmDialog 组件 Props
|
|
37
|
+
*/
|
|
38
|
+
export interface JTWConfirmDialogProps {
|
|
39
|
+
/**
|
|
40
|
+
* 是否显示
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
visible: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 提示内容
|
|
46
|
+
*/
|
|
47
|
+
message: string;
|
|
48
|
+
/**
|
|
49
|
+
* 图标类型
|
|
50
|
+
* @default 'warn'
|
|
51
|
+
*/
|
|
52
|
+
icon?: JTWConfirmDialogIconType;
|
|
53
|
+
/**
|
|
54
|
+
* 确认按钮文字
|
|
55
|
+
* @default '确定'
|
|
56
|
+
*/
|
|
57
|
+
confirmText?: string;
|
|
58
|
+
/**
|
|
59
|
+
* 取消按钮文字
|
|
60
|
+
* @default '取消'
|
|
61
|
+
*/
|
|
62
|
+
cancelText?: string;
|
|
63
|
+
}
|
|
64
|
+
/** JTWConfirmDialog Emits 接口 */
|
|
65
|
+
export interface JTWConfirmDialogEmits {
|
|
66
|
+
(e: 'confirm'): void;
|
|
67
|
+
(e: 'cancel'): void;
|
|
68
|
+
}
|
|
69
|
+
/** JTWConfirmDialog 组件类型定义 */
|
|
70
|
+
export type JTWConfirmDialogComponent = DefineComponent<JTWConfirmDialogProps>;
|
|
71
|
+
/** JTWConfirmDialog 实例类型 */
|
|
72
|
+
export type JTWConfirmDialogInstance = InstanceType<JTWConfirmDialogComponent>;
|
|
73
|
+
/** JTWConfirmDialog 模板 Props(用于全局类型声明) */
|
|
74
|
+
export interface JTWConfirmDialogTemplateProps extends JTWConfirmDialogProps {
|
|
75
|
+
onConfirm?: () => void;
|
|
76
|
+
onCancel?: () => void;
|
|
77
|
+
class?: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
78
|
+
style?: string | Record<string, string>;
|
|
79
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, CSSProperties, StyleValue, Component, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, GlobalComponents, GlobalDirectives, WritableComputedRef } from 'vue';
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, CSSProperties, StyleValue, Component, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, GlobalComponents, GlobalDirectives, WritableComputedRef, ComputedRef } from 'vue';
|
|
2
2
|
import { EpPropFinalized, EpPropMergeType, SFCWithInstall } from 'element-plus/es/utils/index.mjs';
|
|
3
3
|
import { DatePickerType, Placement, GetDisabledHours, GetDisabledMinutes, GetDisabledSeconds, SingleOrRange, Options, ModelValueType } from 'element-plus';
|
|
4
4
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
@@ -81,6 +81,26 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
81
81
|
}>>;
|
|
82
82
|
default: undefined;
|
|
83
83
|
};
|
|
84
|
+
validateEvent: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
popperOptions: {
|
|
89
|
+
type: ObjectConstructor;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
bgGrey: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
dense: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
showShortcuts: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
84
104
|
}>, {
|
|
85
105
|
datePickerRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
86
106
|
elDatePickerRef: Ref< CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -1026,7 +1046,17 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1026
1046
|
readonly unlinkPanels: boolean;
|
|
1027
1047
|
readonly isRange: boolean;
|
|
1028
1048
|
}> | null>;
|
|
1029
|
-
internalValue: WritableComputedRef<[
|
|
1049
|
+
internalValue: WritableComputedRef<[string, string] | [Date, Date] | [number, number] | undefined, [string, string] | [Date, Date] | [number, number] | undefined>;
|
|
1050
|
+
computedPopperOptions: ComputedRef<{
|
|
1051
|
+
modifiers: any[];
|
|
1052
|
+
}>;
|
|
1053
|
+
computedShortcuts: ComputedRef<{
|
|
1054
|
+
text: string;
|
|
1055
|
+
value: [Date, Date] | (() => [Date, Date]);
|
|
1056
|
+
}[] | {
|
|
1057
|
+
text: string;
|
|
1058
|
+
value: () => Date[];
|
|
1059
|
+
}[] | undefined>;
|
|
1030
1060
|
handleChange: (value: [Date, Date] | [string, string] | [number, number] | undefined) => void;
|
|
1031
1061
|
handleBlur: (event: FocusEvent) => void;
|
|
1032
1062
|
handleFocus: (event: FocusEvent) => void;
|
|
@@ -1119,19 +1149,40 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1119
1149
|
}>>;
|
|
1120
1150
|
default: undefined;
|
|
1121
1151
|
};
|
|
1152
|
+
validateEvent: {
|
|
1153
|
+
type: BooleanConstructor;
|
|
1154
|
+
default: boolean;
|
|
1155
|
+
};
|
|
1156
|
+
popperOptions: {
|
|
1157
|
+
type: ObjectConstructor;
|
|
1158
|
+
default: undefined;
|
|
1159
|
+
};
|
|
1160
|
+
bgGrey: {
|
|
1161
|
+
type: BooleanConstructor;
|
|
1162
|
+
default: boolean;
|
|
1163
|
+
};
|
|
1164
|
+
dense: {
|
|
1165
|
+
type: BooleanConstructor;
|
|
1166
|
+
default: boolean;
|
|
1167
|
+
};
|
|
1168
|
+
showShortcuts: {
|
|
1169
|
+
type: BooleanConstructor;
|
|
1170
|
+
default: boolean;
|
|
1171
|
+
};
|
|
1122
1172
|
}>> & Readonly<{
|
|
1173
|
+
onFocus?: ((_event: FocusEvent) => any) | undefined;
|
|
1123
1174
|
onClear?: (() => any) | undefined;
|
|
1175
|
+
"onUpdate:modelValue"?: ((_value: [string, string] | [Date, Date] | [number, number] | undefined) => any) | undefined;
|
|
1124
1176
|
onBlur?: ((_event: FocusEvent) => any) | undefined;
|
|
1125
|
-
|
|
1126
|
-
onChange?: ((_value: [number, number] | [string, string] | [Date, Date] | undefined) => any) | undefined;
|
|
1127
|
-
"onUpdate:modelValue"?: ((_value: [number, number] | [string, string] | [Date, Date] | undefined) => any) | undefined;
|
|
1177
|
+
onChange?: ((_value: [string, string] | [Date, Date] | [number, number] | undefined) => any) | undefined;
|
|
1128
1178
|
"onVisible-change"?: ((_visible: boolean) => any) | undefined;
|
|
1129
1179
|
}>, {
|
|
1130
|
-
format: string;
|
|
1131
1180
|
popperClass: string;
|
|
1132
|
-
placement: "top" | "
|
|
1181
|
+
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
1182
|
+
popperOptions: Record<string, any>;
|
|
1133
1183
|
placeholder: string;
|
|
1134
|
-
modelValue: [
|
|
1184
|
+
modelValue: [string, string] | [Date, Date] | [number, number];
|
|
1185
|
+
format: string;
|
|
1135
1186
|
valueFormat: string;
|
|
1136
1187
|
startPlaceholder: string;
|
|
1137
1188
|
endPlaceholder: string;
|
|
@@ -1149,6 +1200,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1149
1200
|
text: string;
|
|
1150
1201
|
value: [Date, Date] | (() => [Date, Date]);
|
|
1151
1202
|
}[];
|
|
1203
|
+
bgGrey: boolean;
|
|
1204
|
+
dense: boolean;
|
|
1205
|
+
showShortcuts: boolean;
|
|
1206
|
+
validateEvent: boolean;
|
|
1152
1207
|
}, {}, {
|
|
1153
1208
|
ElDatePicker: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
1154
1209
|
readonly type: EpPropFinalized<(new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => DatePickerType) | (((new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => DatePickerType)) | null)[], unknown, unknown, "date", boolean>;
|
|
@@ -95,6 +95,21 @@ export interface JTWDatePickerProps {
|
|
|
95
95
|
text: string;
|
|
96
96
|
value: [Date, Date] | (() => [Date, Date]);
|
|
97
97
|
}>;
|
|
98
|
+
/**
|
|
99
|
+
* 是否使用灰色背景
|
|
100
|
+
* @default false
|
|
101
|
+
*/
|
|
102
|
+
bgGrey?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* 紧凑模式(用于 table 过滤,高度 32px;否则为 34px 用于 form)
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
dense?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* 是否显示快捷选项
|
|
110
|
+
* @default false
|
|
111
|
+
*/
|
|
112
|
+
showShortcuts?: boolean;
|
|
98
113
|
}
|
|
99
114
|
/** JTWDatePicker Emits 接口 */
|
|
100
115
|
export interface JTWDatePickerEmits {
|