twcpt 0.0.4 → 0.0.6
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/j-tw-date-picker/index.d.ts +3 -3
- package/dist/components/j-tw-dialog/index.d.ts +1 -2
- package/dist/components/j-tw-form-item/index.d.ts +2 -2
- package/dist/components/j-tw-input/index.d.ts +17 -5
- package/dist/components/j-tw-input/types.d.ts +1 -0
- package/dist/components/j-tw-select/index.d.ts +4451 -0
- package/dist/components/j-tw-select/types.d.ts +87 -0
- package/dist/components/j-tw-table/index.d.ts +1 -1
- package/dist/components/j-tw-tree-select-input/index.d.ts +5384 -0
- package/dist/components/j-tw-tree-select-input/types.d.ts +65 -0
- package/dist/global.d.ts +20 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +3 -3
- package/dist/twcpt.es.js +2544 -2021
- package/package.json +1 -1
|
@@ -1182,13 +1182,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1182
1182
|
popperOptions: Record<string, any>;
|
|
1183
1183
|
placeholder: string;
|
|
1184
1184
|
modelValue: [string, string] | [Date, Date] | [number, number];
|
|
1185
|
+
clearable: boolean;
|
|
1186
|
+
validateEvent: boolean;
|
|
1187
|
+
bgGrey: boolean;
|
|
1185
1188
|
format: string;
|
|
1186
1189
|
valueFormat: string;
|
|
1187
1190
|
startPlaceholder: string;
|
|
1188
1191
|
endPlaceholder: string;
|
|
1189
1192
|
disable: boolean;
|
|
1190
1193
|
readonly: boolean;
|
|
1191
|
-
clearable: boolean;
|
|
1192
1194
|
disabledDate: (date: Date) => boolean;
|
|
1193
1195
|
minDate: string | number | Date;
|
|
1194
1196
|
maxDate: string | number | Date;
|
|
@@ -1200,10 +1202,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1200
1202
|
text: string;
|
|
1201
1203
|
value: [Date, Date] | (() => [Date, Date]);
|
|
1202
1204
|
}[];
|
|
1203
|
-
bgGrey: boolean;
|
|
1204
1205
|
dense: boolean;
|
|
1205
1206
|
showShortcuts: boolean;
|
|
1206
|
-
validateEvent: boolean;
|
|
1207
1207
|
}, {}, {
|
|
1208
1208
|
ElDatePicker: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
1209
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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nextTick, PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef,
|
|
1
|
+
import { nextTick, PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentInternalInstance, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CreateComponentPublicInstanceWithMixins, ObjectPlugin, CSSProperties, StyleValue } from 'vue';
|
|
2
2
|
import { JTWDialogPositionType, JTWDialogSizeType, JTWDialogFooterModeType } from './types';
|
|
3
3
|
import { JTWBtnSizeType, JTWBtnTypeType, JTWBtnTooltipConfig } from '../..';
|
|
4
4
|
import { ComponentSize, ButtonType, ButtonNativeType, ButtonProps, UseTooltipProps, PopperInstance, TooltipContentInstance, PopperEffect, Placement, Options, TooltipTriggerType } from 'element-plus';
|
|
@@ -68,7 +68,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
68
68
|
loading: Ref<boolean, boolean>;
|
|
69
69
|
cancelText: Ref<string, string>;
|
|
70
70
|
confirmText: Ref<string, string>;
|
|
71
|
-
resolvedComponent: ComputedRef<(new () => ComponentPublicInstance) | null>;
|
|
72
71
|
transitionName: ComputedRef<"j-tw-dialog-slide-right" | "j-tw-dialog-fade">;
|
|
73
72
|
sizeClass: ComputedRef<string>;
|
|
74
73
|
computedComponentBind: ComputedRef<{
|
|
@@ -71,7 +71,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
71
71
|
labelPosition: "left" | "right" | "top" | "";
|
|
72
72
|
inlineMessage: boolean;
|
|
73
73
|
showMessage: boolean;
|
|
74
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "
|
|
74
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "validateState" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
75
75
|
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
76
76
|
validateMessage: Ref<string, string>;
|
|
77
77
|
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
@@ -158,7 +158,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
158
158
|
labelPosition: "left" | "right" | "top" | "";
|
|
159
159
|
inlineMessage: boolean;
|
|
160
160
|
showMessage: boolean;
|
|
161
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "
|
|
161
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "validateState" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
162
162
|
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
163
163
|
validateMessage: Ref<string, string>;
|
|
164
164
|
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { DefineComponent, Ref, ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ShallowRef, ComputedRef, ComponentOptionsMixin, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps, CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, Ref, ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ShallowRef, ComputedRef, ComponentOptionsMixin, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps, CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
2
2
|
import { ComponentSize, InputModelModifiers, InputType, InputAutoSize, InputProps } from 'element-plus';
|
|
3
3
|
import { IconPropType, SFCWithInstall } from 'element-plus/es/utils/index.mjs';
|
|
4
4
|
import { OnCleanup } from '@vue/reactivity';
|
|
5
|
-
declare const _default: DefineComponent<{
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
bgGrey: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {
|
|
6
11
|
elInputRef: Ref<({
|
|
7
12
|
$: ComponentInternalInstance;
|
|
8
13
|
$data: {};
|
|
@@ -159,7 +164,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
159
164
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
160
165
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
161
166
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
162
|
-
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "
|
|
167
|
+
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "autocomplete" | "clearIcon" | "validateEvent" | "tabindex" | "inputStyle" | "rows" | "autosize" | "textareaStyle" | "resizeTextarea" | "modelModifiers" | "wordLimitPosition" | "isComposing"> & ShallowUnwrapRef<{
|
|
163
168
|
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
164
169
|
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
165
170
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -341,7 +346,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
341
346
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
342
347
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
343
348
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
344
|
-
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "
|
|
349
|
+
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "autocomplete" | "clearIcon" | "validateEvent" | "tabindex" | "inputStyle" | "rows" | "autosize" | "textareaStyle" | "resizeTextarea" | "modelModifiers" | "wordLimitPosition" | "isComposing"> & ShallowUnwrapRef<{
|
|
345
350
|
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
346
351
|
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
347
352
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -368,7 +373,14 @@ declare const _default: DefineComponent<{}, {
|
|
|
368
373
|
append?: (props: {}) => any;
|
|
369
374
|
};
|
|
370
375
|
}) | null>;
|
|
371
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
376
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
377
|
+
bgGrey: {
|
|
378
|
+
type: BooleanConstructor;
|
|
379
|
+
default: boolean;
|
|
380
|
+
};
|
|
381
|
+
}>> & Readonly<{}>, {
|
|
382
|
+
bgGrey: boolean;
|
|
383
|
+
}, {}, {
|
|
372
384
|
ElInput: SFCWithInstall<{
|
|
373
385
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< InputProps> & Readonly<{
|
|
374
386
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|