cosey 0.3.5 → 0.3.7
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/components/components.d.ts +3 -1
- package/components/components.js +1 -0
- package/components/field/components/number-range/number-range.d.ts +16 -0
- package/components/field/components/number-range/number-range.js +1 -0
- package/components/field/components/number-range/number-range.vue.d.ts +4 -0
- package/components/field/components/number-range/number-range.vue.js +28 -0
- package/components/field/field.d.ts +3 -0
- package/components/field/field.js +36 -34
- package/components/form-list/index.d.ts +1 -1
- package/components/image-card/image-card.vue.d.ts +2 -2
- package/components/image-card/index.d.ts +6 -6
- package/components/index.d.ts +1 -0
- package/components/index.js +2 -0
- package/components/input-number-range/index.d.ts +39 -0
- package/components/input-number-range/index.js +8 -0
- package/components/input-number-range/input-number-range.d.ts +25 -0
- package/components/input-number-range/input-number-range.js +5 -0
- package/components/input-number-range/input-number-range.vue.d.ts +18 -0
- package/components/input-number-range/input-number-range.vue.js +166 -0
- package/components/input-number-range/style/index.d.ts +4 -0
- package/components/input-number-range/style/index.js +40 -0
- package/components/table/index.d.ts +45 -45
- package/components/table/table-column/table-column.vue.d.ts +5 -5
- package/components/table/table.d.ts +8 -8
- package/components/table/table.vue.d.ts +21 -21
- package/components/table/table.vue.js +1 -1
- package/components/transition-group/index.d.ts +3 -3
- package/components/transition-group/transition-group.vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ import { HorizontalTree } from './horizontal-tree';
|
|
|
22
22
|
import { Icon } from './icon';
|
|
23
23
|
import { IconifyIcon } from './iconify-icon';
|
|
24
24
|
import { ImageCard } from './image-card';
|
|
25
|
+
import { InputNumberRange } from './input-number-range';
|
|
25
26
|
import { LongText } from './long-text';
|
|
26
27
|
import { Mask } from './mask';
|
|
27
28
|
import { MediaCard } from './media-card';
|
|
@@ -73,6 +74,7 @@ declare module 'vue' {
|
|
|
73
74
|
CoIcon: typeof Icon;
|
|
74
75
|
CoIconifyIcon: typeof IconifyIcon;
|
|
75
76
|
CoImageCard: typeof ImageCard;
|
|
77
|
+
CoInputNumberRange: typeof InputNumberRange;
|
|
76
78
|
CoLongText: typeof LongText;
|
|
77
79
|
CoMask: typeof Mask;
|
|
78
80
|
CoMediaCard: typeof MediaCard;
|
|
@@ -97,4 +99,4 @@ declare module 'vue' {
|
|
|
97
99
|
CoVideoViewer: typeof VideoViewer;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
|
-
export { AudioCard, AudioViewer, Card, Close, Col, ConfigProvider, Container, ContextMenu, ContextMenuItem, ContextSubMenu, Copy, DndSort, DndSortItem, Editor, Field, FileCard, Form,
|
|
102
|
+
export { AudioCard, AudioViewer, Card, Close, Col, ConfigProvider, Container, ContextMenu, ContextMenuItem, ContextSubMenu, Copy, DndSort, DndSortItem, Editor, Field, FileCard, Form, FormDialog, FormDrawer, FormGroup, FormItem, FormList, FormQuery, Highlight, HorizontalTree, Icon, IconifyIcon, ImageCard, InputNumberRange, LongText, Mask, MediaCard, MediaCardGroup, MediaViewer, NumberFormat, OnlyChild, OptionalWrapper, Panel, Row, ScrollView, SnugMenu, SnugMenuItem, SvgIcon, Table, TableAction, Toggle, Transition, TransitionGroup, Upload, VideoCard, VideoViewer, };
|
package/components/components.js
CHANGED
|
@@ -22,6 +22,7 @@ export { HorizontalTree } from './horizontal-tree/index.js';
|
|
|
22
22
|
export { Icon } from './icon/index.js';
|
|
23
23
|
export { IconifyIcon } from './iconify-icon/index.js';
|
|
24
24
|
export { ImageCard } from './image-card/index.js';
|
|
25
|
+
export { InputNumberRange } from './input-number-range/index.js';
|
|
25
26
|
export { LongText } from './long-text/index.js';
|
|
26
27
|
export { Mask } from './mask/index.js';
|
|
27
28
|
export { MediaCard } from './media-card/index.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FieldComponentCommonProps } from '../common';
|
|
2
|
+
import { type InputNumberRangeSlots, type InputNumberRangeEmits, type InputNumberRangeExpose, type InputNumberRangeProps } from '../../../input-number-range';
|
|
3
|
+
export interface FieldNumberRangeProps extends FieldComponentCommonProps {
|
|
4
|
+
componentProps?: Partial<InputNumberRangeProps> & {
|
|
5
|
+
'onUpdate:modelValue'?: (value: number | undefined) => void;
|
|
6
|
+
onChange?: (currentValue: number | undefined, oldValue: number | undefined) => void;
|
|
7
|
+
[key: PropertyKey]: any;
|
|
8
|
+
};
|
|
9
|
+
componentSlots?: Partial<FieldNumberRangeSlots>;
|
|
10
|
+
}
|
|
11
|
+
export interface FieldNumberRangeSlots extends InputNumberRangeSlots {
|
|
12
|
+
}
|
|
13
|
+
export interface FieldNumberRangeEmits extends InputNumberRangeEmits {
|
|
14
|
+
}
|
|
15
|
+
export interface FieldNumberRangeExpose extends InputNumberRangeExpose {
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type SlotsType } from 'vue';
|
|
2
|
+
import { type FieldNumberRangeProps, type FieldNumberRangeSlots } from './number-range';
|
|
3
|
+
declare const _default: import("vue").DefineSetupFnComponent<FieldNumberRangeProps, {}, SlotsType<FieldNumberRangeSlots>, FieldNumberRangeProps & {}, import("vue").PublicProps>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent, h, mergeProps } from 'vue';
|
|
2
|
+
import stdin_default$1 from '../../../input-number-range/input-number-range.vue.js';
|
|
3
|
+
import { useLocale } from '../../../../hooks/useLocale.js';
|
|
4
|
+
import { addNullablePlaceholder } from '../../../../utils/vue.js';
|
|
5
|
+
|
|
6
|
+
var stdin_default = defineComponent((props, {
|
|
7
|
+
slots
|
|
8
|
+
}) => {
|
|
9
|
+
const {
|
|
10
|
+
t
|
|
11
|
+
} = useLocale();
|
|
12
|
+
return () => {
|
|
13
|
+
if (props.readonly) {
|
|
14
|
+
return addNullablePlaceholder(props.componentProps?.modelValue?.join(" - "));
|
|
15
|
+
}
|
|
16
|
+
return h(stdin_default$1, mergeProps({
|
|
17
|
+
startPlaceholder: t("co.common.pleaseInput"),
|
|
18
|
+
endPlaceholder: t("co.common.pleaseInput")
|
|
19
|
+
}, props.componentProps ?? {}), slots);
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
name: "FieldNumberRange",
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
props: ["componentProps", "componentSlots", "readonly"],
|
|
25
|
+
slots: {}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export { stdin_default as default };
|
|
@@ -15,6 +15,7 @@ import { type FieldMonthProps } from './components/month/month';
|
|
|
15
15
|
import { type FieldMonthRangeProps } from './components/month-range/month-range';
|
|
16
16
|
import { type FieldMonthsProps } from './components/months/months';
|
|
17
17
|
import { type FieldNumberProps } from './components/number/number';
|
|
18
|
+
import { type FieldNumberRangeProps } from './components/number-range/number-range';
|
|
18
19
|
import { type FieldPasswordProps } from './components/password/password';
|
|
19
20
|
import { type FieldRadioGroupProps } from './components/radio-group/radio-group';
|
|
20
21
|
import { type FieldRateProps } from './components/rate/rate';
|
|
@@ -52,6 +53,7 @@ export interface MapFieldTypeComponentProps {
|
|
|
52
53
|
monthrange: FieldMonthRangeProps;
|
|
53
54
|
months: FieldMonthsProps;
|
|
54
55
|
number: FieldNumberProps;
|
|
56
|
+
numberrange: FieldNumberRangeProps;
|
|
55
57
|
password: FieldPasswordProps;
|
|
56
58
|
radiogroup: FieldRadioGroupProps;
|
|
57
59
|
rate: FieldRateProps;
|
|
@@ -91,6 +93,7 @@ export declare const mapFieldTypeComponent: {
|
|
|
91
93
|
monthrange: import("vue").DefineSetupFnComponent<FieldMonthRangeProps, {}, import("vue").SlotsType<import("./components/date/date").FieldDateSlots>, FieldMonthRangeProps & {}, import("vue").PublicProps>;
|
|
92
94
|
months: import("vue").DefineSetupFnComponent<FieldMonthsProps, {}, import("vue").SlotsType<import("./components/date/date").FieldDateSlots>, FieldMonthsProps & {}, import("vue").PublicProps>;
|
|
93
95
|
number: import("vue").DefineSetupFnComponent<FieldNumberProps, {}, import("vue").SlotsType<import("./components/number/number").FieldNumberSlots>, FieldNumberProps & {}, import("vue").PublicProps>;
|
|
96
|
+
numberrange: import("vue").DefineSetupFnComponent<FieldNumberRangeProps, {}, import("vue").SlotsType<import("./components/number-range/number-range").FieldNumberRangeSlots>, FieldNumberRangeProps & {}, import("vue").PublicProps>;
|
|
94
97
|
password: import("vue").DefineSetupFnComponent<FieldInputProps, {}, import("vue").SlotsType<import("./components/input/input").FieldInputSlots>, FieldInputProps & {}, import("vue").PublicProps>;
|
|
95
98
|
radiogroup: import("vue").DefineSetupFnComponent<FieldRadioGroupProps, {}, import("vue").SlotsType<import("./components/radio-group/radio-group").FieldRadioGroupSlots>, FieldRadioGroupProps & {}, import("vue").PublicProps>;
|
|
96
99
|
rate: import("vue").DefineSetupFnComponent<FieldRateProps, {}, import("vue").SlotsType<import("./components/rate/rate").FieldRateSlots>, FieldRateProps & {}, import("vue").PublicProps>;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import stdin_default$
|
|
2
|
-
import stdin_default$
|
|
3
|
-
import stdin_default$
|
|
4
|
-
import stdin_default$
|
|
5
|
-
import stdin_default$
|
|
6
|
-
import stdin_default$
|
|
7
|
-
import stdin_default$
|
|
8
|
-
import stdin_default$
|
|
9
|
-
import stdin_default$
|
|
10
|
-
import stdin_default$
|
|
11
|
-
import stdin_default$
|
|
12
|
-
import stdin_default$
|
|
13
|
-
import stdin_default$
|
|
14
|
-
import stdin_default$
|
|
15
|
-
import stdin_default$
|
|
16
|
-
import stdin_default$
|
|
17
|
-
import stdin_default$
|
|
1
|
+
import stdin_default$A from './components/autocomplete/autocomplete.vue.js';
|
|
2
|
+
import stdin_default$z from './components/cascader/cascader.vue.js';
|
|
3
|
+
import stdin_default$y from './components/checkbox/checkbox.vue.js';
|
|
4
|
+
import stdin_default$x from './components/checkbox-group/checkbox-group.vue.js';
|
|
5
|
+
import stdin_default$w from './components/color/color.vue.js';
|
|
6
|
+
import stdin_default$v from './components/date/date.vue.js';
|
|
7
|
+
import stdin_default$u from './components/date-range/date-range.vue.js';
|
|
8
|
+
import stdin_default$s from './components/date-time/date-time.vue.js';
|
|
9
|
+
import stdin_default$r from './components/date-time-range/date-time-range.vue.js';
|
|
10
|
+
import stdin_default$t from './components/dates/dates.vue.js';
|
|
11
|
+
import stdin_default$q from './components/input/input.vue.js';
|
|
12
|
+
import stdin_default$p from './components/input-tag/input-tag.vue.js';
|
|
13
|
+
import stdin_default$o from './components/mention/mention.vue.js';
|
|
14
|
+
import stdin_default$n from './components/month/month.vue.js';
|
|
15
|
+
import stdin_default$m from './components/month-range/month-range.vue.js';
|
|
16
|
+
import stdin_default$l from './components/months/months.vue.js';
|
|
17
|
+
import stdin_default$k from './components/number/number.vue.js';
|
|
18
|
+
import stdin_default$j from './components/number-range/number-range.vue.js';
|
|
18
19
|
import stdin_default$i from './components/password/password.vue.js';
|
|
19
20
|
import stdin_default$h from './components/radio-group/radio-group.vue.js';
|
|
20
21
|
import stdin_default$g from './components/rate/rate.vue.js';
|
|
@@ -36,23 +37,24 @@ import stdin_default$1 from './components/year-range/year-range.vue.js';
|
|
|
36
37
|
import stdin_default from './components/years/years.vue.js';
|
|
37
38
|
|
|
38
39
|
const mapFieldTypeComponent = {
|
|
39
|
-
autocomplete: stdin_default$
|
|
40
|
-
cascader: stdin_default$
|
|
41
|
-
checkbox: stdin_default$
|
|
42
|
-
checkboxgroup: stdin_default$
|
|
43
|
-
color: stdin_default$
|
|
44
|
-
date: stdin_default$
|
|
45
|
-
daterange: stdin_default$
|
|
46
|
-
dates: stdin_default$
|
|
47
|
-
datetime: stdin_default$
|
|
48
|
-
datetimerange: stdin_default$
|
|
49
|
-
input: stdin_default$
|
|
50
|
-
inputtag: stdin_default$
|
|
51
|
-
mention: stdin_default$
|
|
52
|
-
month: stdin_default$
|
|
53
|
-
monthrange: stdin_default$
|
|
54
|
-
months: stdin_default$
|
|
55
|
-
number: stdin_default$
|
|
40
|
+
autocomplete: stdin_default$A,
|
|
41
|
+
cascader: stdin_default$z,
|
|
42
|
+
checkbox: stdin_default$y,
|
|
43
|
+
checkboxgroup: stdin_default$x,
|
|
44
|
+
color: stdin_default$w,
|
|
45
|
+
date: stdin_default$v,
|
|
46
|
+
daterange: stdin_default$u,
|
|
47
|
+
dates: stdin_default$t,
|
|
48
|
+
datetime: stdin_default$s,
|
|
49
|
+
datetimerange: stdin_default$r,
|
|
50
|
+
input: stdin_default$q,
|
|
51
|
+
inputtag: stdin_default$p,
|
|
52
|
+
mention: stdin_default$o,
|
|
53
|
+
month: stdin_default$n,
|
|
54
|
+
monthrange: stdin_default$m,
|
|
55
|
+
months: stdin_default$l,
|
|
56
|
+
number: stdin_default$k,
|
|
57
|
+
numberrange: stdin_default$j,
|
|
56
58
|
password: stdin_default$i,
|
|
57
59
|
radiogroup: stdin_default$h,
|
|
58
60
|
rate: stdin_default$g,
|
|
@@ -22,9 +22,9 @@ declare const _FormList: (<T extends import("./form-list").FormListRow = import(
|
|
|
22
22
|
placeholder?: string | undefined;
|
|
23
23
|
readonly required?: boolean | undefined;
|
|
24
24
|
readonly?: boolean | undefined;
|
|
25
|
+
readonly prop?: import("element-plus").FormItemProp | undefined;
|
|
25
26
|
readonly labelWidth?: (string | number) | undefined;
|
|
26
27
|
readonly labelPosition?: ("" | "left" | "right" | "top") | undefined;
|
|
27
|
-
readonly prop?: import("element-plus").FormItemProp | undefined;
|
|
28
28
|
readonly rules?: (import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | undefined;
|
|
29
29
|
readonly validateStatus?: ("" | "error" | "success" | "validating") | undefined;
|
|
30
30
|
readonly for?: string | undefined;
|
|
@@ -233,13 +233,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
233
233
|
}>, {
|
|
234
234
|
infinite: boolean;
|
|
235
235
|
size: "large" | "small" | "middle" | "mini" | undefined;
|
|
236
|
-
|
|
236
|
+
closeOnPressEscape: boolean;
|
|
237
237
|
hideOnClickModal: boolean;
|
|
238
238
|
fit: "" | "fill" | "contain" | "none" | "cover" | "scale-down";
|
|
239
|
+
lazy: boolean;
|
|
239
240
|
previewSrcList: string[];
|
|
240
241
|
previewTeleported: boolean;
|
|
241
242
|
initialIndex: number;
|
|
242
|
-
closeOnPressEscape: boolean;
|
|
243
243
|
zoomRate: number;
|
|
244
244
|
minScale: number;
|
|
245
245
|
maxScale: number;
|
|
@@ -125,13 +125,13 @@ declare const _ImageCard: {
|
|
|
125
125
|
}, import("vue").PublicProps, {
|
|
126
126
|
infinite: boolean;
|
|
127
127
|
size: "large" | "small" | "middle" | "mini" | undefined;
|
|
128
|
-
|
|
128
|
+
closeOnPressEscape: boolean;
|
|
129
129
|
hideOnClickModal: boolean;
|
|
130
130
|
fit: "" | "fill" | "contain" | "none" | "cover" | "scale-down";
|
|
131
|
+
lazy: boolean;
|
|
131
132
|
previewSrcList: string[];
|
|
132
133
|
previewTeleported: boolean;
|
|
133
134
|
initialIndex: number;
|
|
134
|
-
closeOnPressEscape: boolean;
|
|
135
135
|
zoomRate: number;
|
|
136
136
|
minScale: number;
|
|
137
137
|
maxScale: number;
|
|
@@ -262,13 +262,13 @@ declare const _ImageCard: {
|
|
|
262
262
|
}, {}, {}, {}, {
|
|
263
263
|
infinite: boolean;
|
|
264
264
|
size: "large" | "small" | "middle" | "mini" | undefined;
|
|
265
|
-
|
|
265
|
+
closeOnPressEscape: boolean;
|
|
266
266
|
hideOnClickModal: boolean;
|
|
267
267
|
fit: "" | "fill" | "contain" | "none" | "cover" | "scale-down";
|
|
268
|
+
lazy: boolean;
|
|
268
269
|
previewSrcList: string[];
|
|
269
270
|
previewTeleported: boolean;
|
|
270
271
|
initialIndex: number;
|
|
271
|
-
closeOnPressEscape: boolean;
|
|
272
272
|
zoomRate: number;
|
|
273
273
|
minScale: number;
|
|
274
274
|
maxScale: number;
|
|
@@ -402,13 +402,13 @@ declare const _ImageCard: {
|
|
|
402
402
|
}, string, {
|
|
403
403
|
infinite: boolean;
|
|
404
404
|
size: "large" | "small" | "middle" | "mini" | undefined;
|
|
405
|
-
|
|
405
|
+
closeOnPressEscape: boolean;
|
|
406
406
|
hideOnClickModal: boolean;
|
|
407
407
|
fit: "" | "fill" | "contain" | "none" | "cover" | "scale-down";
|
|
408
|
+
lazy: boolean;
|
|
408
409
|
previewSrcList: string[];
|
|
409
410
|
previewTeleported: boolean;
|
|
410
411
|
initialIndex: number;
|
|
411
|
-
closeOnPressEscape: boolean;
|
|
412
412
|
zoomRate: number;
|
|
413
413
|
minScale: number;
|
|
414
414
|
maxScale: number;
|
package/components/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './horizontal-tree';
|
|
|
23
23
|
export * from './icon';
|
|
24
24
|
export * from './iconify-icon';
|
|
25
25
|
export * from './image-card';
|
|
26
|
+
export * from './input-number-range';
|
|
26
27
|
export * from './long-text';
|
|
27
28
|
export * from './mask';
|
|
28
29
|
export * from './media-card';
|
package/components/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export { HorizontalTree } from './horizontal-tree/index.js';
|
|
|
22
22
|
export { Icon } from './icon/index.js';
|
|
23
23
|
export { IconifyIcon } from './iconify-icon/index.js';
|
|
24
24
|
export { ImageCard } from './image-card/index.js';
|
|
25
|
+
export { InputNumberRange } from './input-number-range/index.js';
|
|
25
26
|
export { LongText } from './long-text/index.js';
|
|
26
27
|
export { Mask } from './mask/index.js';
|
|
27
28
|
export { MediaCard } from './media-card/index.js';
|
|
@@ -71,6 +72,7 @@ export { defaultMapSizeColNumber, formQueryContextSymbol, formQueryProps } from
|
|
|
71
72
|
export { default as hljs } from 'highlight.js/lib/core';
|
|
72
73
|
export { addIconifyIcon, iconifyIconsSets } from './iconify-icon/iconify-icon.js';
|
|
73
74
|
export { imageProps } from './image-card/image-card.js';
|
|
75
|
+
export { defaultInputNumberRangeProps } from './input-number-range/input-number-range.js';
|
|
74
76
|
export { defaultLongTextProps } from './long-text/long-text.js';
|
|
75
77
|
export { defaultMediaCardBaseProps, mediaCardBaseProps } from './media-card/media-card.js';
|
|
76
78
|
export { defaultMediaViewerBaseProps, defaultMediaViewerProps } from './media-viewer/media-viewer.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export * from './input-number-range';
|
|
2
|
+
declare const _InputNumberRange: {
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./input-number-range").InputNumberRangeProps> & Readonly<{
|
|
4
|
+
onChange?: ((value: number[] | undefined) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: number[] | undefined) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
change: (value: number[] | undefined) => any;
|
|
8
|
+
"update:modelValue": (value: number[] | undefined) => any;
|
|
9
|
+
}, import("vue").PublicProps, {
|
|
10
|
+
validateEvent: boolean;
|
|
11
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<import("./input-number-range").InputNumberRangeProps> & Readonly<{
|
|
19
|
+
onChange?: ((value: number[] | undefined) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((value: number[] | undefined) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, {
|
|
22
|
+
validateEvent: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./input-number-range").InputNumberRangeProps> & Readonly<{
|
|
28
|
+
onChange?: ((value: number[] | undefined) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((value: number[] | undefined) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
31
|
+
change: (value: number[] | undefined) => any;
|
|
32
|
+
"update:modelValue": (value: number[] | undefined) => any;
|
|
33
|
+
}, string, {
|
|
34
|
+
validateEvent: boolean;
|
|
35
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
36
|
+
$slots: import("./input-number-range").InputNumberRangeSlots;
|
|
37
|
+
}) & import("vue").Plugin;
|
|
38
|
+
export { _InputNumberRange as InputNumberRange };
|
|
39
|
+
export default _InputNumberRange;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { withInstall } from '../utils.js';
|
|
2
|
+
import stdin_default$1 from './input-number-range.vue.js';
|
|
3
|
+
export { defaultInputNumberRangeProps } from './input-number-range.js';
|
|
4
|
+
|
|
5
|
+
const _InputNumberRange = withInstall(stdin_default$1);
|
|
6
|
+
var stdin_default = _InputNumberRange;
|
|
7
|
+
|
|
8
|
+
export { _InputNumberRange as InputNumberRange, stdin_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface InputNumberRangeProps {
|
|
2
|
+
modelValue?: number[];
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
stepStrictly?: boolean;
|
|
7
|
+
precision?: number;
|
|
8
|
+
startPlaceholder?: string;
|
|
9
|
+
endPlaceholder?: string;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
validateEvent?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const defaultInputNumberRangeProps: {
|
|
15
|
+
validateEvent: boolean;
|
|
16
|
+
};
|
|
17
|
+
export interface InputNumberRangeSlots {
|
|
18
|
+
default?: (props: Record<string, never>) => any;
|
|
19
|
+
}
|
|
20
|
+
export interface InputNumberRangeEmits {
|
|
21
|
+
(e: 'update:modelValue', value: number[] | undefined): void;
|
|
22
|
+
(e: 'change', value: number[] | undefined): void;
|
|
23
|
+
}
|
|
24
|
+
export interface InputNumberRangeExpose {
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type InputNumberRangeProps, type InputNumberRangeSlots } from './input-number-range';
|
|
2
|
+
type __VLS_Slots = InputNumberRangeSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<InputNumberRangeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
change: (value: number[] | undefined) => any;
|
|
5
|
+
"update:modelValue": (value: number[] | undefined) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<InputNumberRangeProps> & Readonly<{
|
|
7
|
+
onChange?: ((value: number[] | undefined) => any) | undefined;
|
|
8
|
+
"onUpdate:modelValue"?: ((value: number[] | undefined) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
validateEvent: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { defineComponent, mergeDefaults, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createVNode } from 'vue';
|
|
2
|
+
import { defaultInputNumberRangeProps } from './input-number-range.js';
|
|
3
|
+
import stdin_default$1 from './style/index.js';
|
|
4
|
+
import { useFormItem, CHANGE_EVENT, ElInputNumber } from 'element-plus';
|
|
5
|
+
import { debugWarn } from 'element-plus/es/utils/error.mjs';
|
|
6
|
+
import { isNullish } from '../../utils/is.js';
|
|
7
|
+
import { useComponentConfig } from '../config-provider/config-provider.js';
|
|
8
|
+
|
|
9
|
+
var stdin_default = /* @__PURE__ */defineComponent({
|
|
10
|
+
...{
|
|
11
|
+
name: "InputNumberRange"
|
|
12
|
+
},
|
|
13
|
+
__name: "input-number-range",
|
|
14
|
+
props: /* @__PURE__ */mergeDefaults({
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: Array,
|
|
17
|
+
required: false
|
|
18
|
+
},
|
|
19
|
+
min: {
|
|
20
|
+
type: Number,
|
|
21
|
+
required: false
|
|
22
|
+
},
|
|
23
|
+
max: {
|
|
24
|
+
type: Number,
|
|
25
|
+
required: false
|
|
26
|
+
},
|
|
27
|
+
step: {
|
|
28
|
+
type: Number,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
stepStrictly: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: false
|
|
34
|
+
},
|
|
35
|
+
precision: {
|
|
36
|
+
type: Number,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
startPlaceholder: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false
|
|
42
|
+
},
|
|
43
|
+
endPlaceholder: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
readonly: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
required: false
|
|
50
|
+
},
|
|
51
|
+
disabled: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
required: false
|
|
54
|
+
},
|
|
55
|
+
validateEvent: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false
|
|
58
|
+
}
|
|
59
|
+
}, defaultInputNumberRangeProps),
|
|
60
|
+
emits: ["update:modelValue", "change"],
|
|
61
|
+
setup(__props, {
|
|
62
|
+
expose: __expose,
|
|
63
|
+
emit: __emit
|
|
64
|
+
}) {
|
|
65
|
+
const props = __props;
|
|
66
|
+
const emit = __emit;
|
|
67
|
+
const {
|
|
68
|
+
prefixCls
|
|
69
|
+
} = useComponentConfig("input-number-range", props);
|
|
70
|
+
const {
|
|
71
|
+
hashId
|
|
72
|
+
} = stdin_default$1(prefixCls);
|
|
73
|
+
const {
|
|
74
|
+
formItem
|
|
75
|
+
} = useFormItem();
|
|
76
|
+
const start = ref(null);
|
|
77
|
+
const end = ref(null);
|
|
78
|
+
const innerValue = ref(props.modelValue);
|
|
79
|
+
watch([start, end], () => {
|
|
80
|
+
const startNil = isNullish(start.value);
|
|
81
|
+
const endNil = isNullish(end.value);
|
|
82
|
+
if (startNil && endNil || !startNil && !endNil) {
|
|
83
|
+
const value = startNil && endNil ? void 0 : [start.value, end.value];
|
|
84
|
+
if (value !== innerValue.value) {
|
|
85
|
+
innerValue.value = value;
|
|
86
|
+
emit("update:modelValue", value);
|
|
87
|
+
emit("change", value);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
watch(() => props.modelValue, () => {
|
|
92
|
+
if (props.validateEvent) {
|
|
93
|
+
formItem?.validate?.(CHANGE_EVENT).catch(err => debugWarn(err));
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
watch(() => props.modelValue, newValue => {
|
|
97
|
+
if (innerValue.value !== newValue) {
|
|
98
|
+
innerValue.value = newValue;
|
|
99
|
+
if (!newValue) {
|
|
100
|
+
start.value = null;
|
|
101
|
+
end.value = null;
|
|
102
|
+
} else {
|
|
103
|
+
let [startValue, endValue] = newValue.map(item => {
|
|
104
|
+
item = +item;
|
|
105
|
+
return Number.isNaN(item) ? null : item;
|
|
106
|
+
});
|
|
107
|
+
start.value = startValue;
|
|
108
|
+
end.value = endValue;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const isFocused = ref(false);
|
|
113
|
+
const onFocusIn = () => {
|
|
114
|
+
isFocused.value = true;
|
|
115
|
+
};
|
|
116
|
+
const onFocusOut = () => {
|
|
117
|
+
isFocused.value = false;
|
|
118
|
+
};
|
|
119
|
+
__expose();
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return openBlock(), createElementBlock("div", {
|
|
122
|
+
class: normalizeClass([unref(hashId), unref(prefixCls), {
|
|
123
|
+
"is-focus": isFocused.value
|
|
124
|
+
}, "el-input__wrapper"]),
|
|
125
|
+
onFocusin: onFocusIn,
|
|
126
|
+
onFocusout: onFocusOut
|
|
127
|
+
}, [createElementVNode("div", {
|
|
128
|
+
class: normalizeClass(`${unref(prefixCls)}-start`)
|
|
129
|
+
}, [createVNode(unref(ElInputNumber), {
|
|
130
|
+
modelValue: start.value,
|
|
131
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => start.value = $event),
|
|
132
|
+
min: _ctx.min,
|
|
133
|
+
max: _ctx.max,
|
|
134
|
+
step: _ctx.step,
|
|
135
|
+
"step-strictly": _ctx.stepStrictly,
|
|
136
|
+
precision: _ctx.precision,
|
|
137
|
+
controls: false,
|
|
138
|
+
readonly: _ctx.readonly,
|
|
139
|
+
disabled: _ctx.disabled,
|
|
140
|
+
placeholder: _ctx.startPlaceholder
|
|
141
|
+
}, null, 8, ["modelValue", "min", "max", "step", "step-strictly", "precision", "readonly", "disabled", "placeholder"])], 2
|
|
142
|
+
/* CLASS */), createElementVNode("div", {
|
|
143
|
+
class: normalizeClass(`${unref(prefixCls)}-separator`)
|
|
144
|
+
}, "-", 2
|
|
145
|
+
/* CLASS */), createElementVNode("div", {
|
|
146
|
+
class: normalizeClass(`${unref(prefixCls)}-end`)
|
|
147
|
+
}, [createVNode(unref(ElInputNumber), {
|
|
148
|
+
modelValue: end.value,
|
|
149
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => end.value = $event),
|
|
150
|
+
min: _ctx.min,
|
|
151
|
+
max: _ctx.max,
|
|
152
|
+
step: _ctx.step,
|
|
153
|
+
"step-strictly": _ctx.stepStrictly,
|
|
154
|
+
precision: _ctx.precision,
|
|
155
|
+
controls: false,
|
|
156
|
+
readonly: _ctx.readonly,
|
|
157
|
+
disabled: _ctx.disabled,
|
|
158
|
+
placeholder: _ctx.endPlaceholder
|
|
159
|
+
}, null, 8, ["modelValue", "min", "max", "step", "step-strictly", "precision", "readonly", "disabled", "placeholder"])], 2
|
|
160
|
+
/* CLASS */)], 34
|
|
161
|
+
/* CLASS, NEED_HYDRATION */);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
export { stdin_default as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { getSimpleStyleHook } from 'cosey/components';
|
|
2
|
+
|
|
3
|
+
var stdin_default = getSimpleStyleHook("InputNumberRange", (token) => {
|
|
4
|
+
const { componentCls } = token;
|
|
5
|
+
return {
|
|
6
|
+
[`${componentCls}`]: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
width: "100%",
|
|
9
|
+
paddingInline: 10,
|
|
10
|
+
verticalAlign: "middle",
|
|
11
|
+
"&:hover": {
|
|
12
|
+
boxShadow: `0 0 0 1px var(--el-border-color-hover) inset`
|
|
13
|
+
},
|
|
14
|
+
"&.is-focus": {
|
|
15
|
+
boxShadow: `0 0 0 1px ${token.colorPrimary} inset`
|
|
16
|
+
},
|
|
17
|
+
[`${componentCls}-start,${componentCls}-end`]: {
|
|
18
|
+
display: "flex",
|
|
19
|
+
flex: 1,
|
|
20
|
+
".el-input__wrapper": {
|
|
21
|
+
boxShadow: "none !important"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
[`${componentCls}-separator`]: {
|
|
25
|
+
flex: "none",
|
|
26
|
+
height: "100%",
|
|
27
|
+
paddingInline: token.paddingXS
|
|
28
|
+
},
|
|
29
|
+
".el-input-number": {
|
|
30
|
+
width: 0,
|
|
31
|
+
flex: 1,
|
|
32
|
+
"&.is-without-controls .el-input__wrapper": {
|
|
33
|
+
padding: 0
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export { stdin_default as default };
|
|
@@ -12,11 +12,11 @@ declare const _Table: {
|
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
14
|
columns: {
|
|
15
|
-
type: import("vue").PropType<import("
|
|
15
|
+
type: import("vue").PropType<import("..").TableColumnProps[]>;
|
|
16
16
|
default: () => never[];
|
|
17
17
|
};
|
|
18
18
|
actionColumn: {
|
|
19
|
-
type: import("vue").PropType<import("
|
|
19
|
+
type: import("vue").PropType<import("..").TableColumnProps>;
|
|
20
20
|
};
|
|
21
21
|
pagination: {
|
|
22
22
|
type: import("vue").PropType<boolean | import("element-plus").PaginationProps>;
|
|
@@ -28,7 +28,7 @@ declare const _Table: {
|
|
|
28
28
|
formProps: {
|
|
29
29
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
|
30
30
|
schemes: {
|
|
31
|
-
type: import("vue").PropType<import("
|
|
31
|
+
type: import("vue").PropType<import("..").TableQueryScheme[]>;
|
|
32
32
|
default: () => never[];
|
|
33
33
|
};
|
|
34
34
|
grid: {
|
|
@@ -206,19 +206,17 @@ declare const _Table: {
|
|
|
206
206
|
emptyText: StringConstructor;
|
|
207
207
|
sumText: StringConstructor;
|
|
208
208
|
cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
fit: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
211
213
|
lazy: BooleanConstructor;
|
|
212
214
|
indent: {
|
|
213
215
|
type: NumberConstructor;
|
|
214
216
|
default: number;
|
|
215
217
|
};
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
default: boolean;
|
|
219
|
-
};
|
|
220
|
-
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
221
|
-
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
218
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
219
|
+
defaultExpandAll: BooleanConstructor;
|
|
222
220
|
stripe: BooleanConstructor;
|
|
223
221
|
rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
|
|
224
222
|
showHeader: {
|
|
@@ -254,6 +252,8 @@ declare const _Table: {
|
|
|
254
252
|
};
|
|
255
253
|
};
|
|
256
254
|
flexible: BooleanConstructor;
|
|
255
|
+
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
256
|
+
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
257
257
|
appendFilterPanelTo: StringConstructor;
|
|
258
258
|
scrollbarTabindex: {
|
|
259
259
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -298,16 +298,16 @@ declare const _Table: {
|
|
|
298
298
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
299
299
|
tableLayout: "auto" | "fixed";
|
|
300
300
|
border: boolean;
|
|
301
|
-
columns: import("
|
|
301
|
+
columns: import("..").TableColumnProps[];
|
|
302
302
|
data: any[];
|
|
303
303
|
immediate: boolean;
|
|
304
304
|
className: string;
|
|
305
305
|
pagination: boolean | import("element-plus").PaginationProps;
|
|
306
|
-
|
|
307
|
-
defaultExpandAll: boolean;
|
|
306
|
+
fit: boolean;
|
|
308
307
|
lazy: boolean;
|
|
309
308
|
indent: number;
|
|
310
|
-
|
|
309
|
+
scrollbarAlwaysOn: boolean;
|
|
310
|
+
defaultExpandAll: boolean;
|
|
311
311
|
stripe: boolean;
|
|
312
312
|
showHeader: boolean;
|
|
313
313
|
showSummary: boolean;
|
|
@@ -335,11 +335,11 @@ declare const _Table: {
|
|
|
335
335
|
default: boolean;
|
|
336
336
|
};
|
|
337
337
|
columns: {
|
|
338
|
-
type: import("vue").PropType<import("
|
|
338
|
+
type: import("vue").PropType<import("..").TableColumnProps[]>;
|
|
339
339
|
default: () => never[];
|
|
340
340
|
};
|
|
341
341
|
actionColumn: {
|
|
342
|
-
type: import("vue").PropType<import("
|
|
342
|
+
type: import("vue").PropType<import("..").TableColumnProps>;
|
|
343
343
|
};
|
|
344
344
|
pagination: {
|
|
345
345
|
type: import("vue").PropType<boolean | import("element-plus").PaginationProps>;
|
|
@@ -351,7 +351,7 @@ declare const _Table: {
|
|
|
351
351
|
formProps: {
|
|
352
352
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
|
353
353
|
schemes: {
|
|
354
|
-
type: import("vue").PropType<import("
|
|
354
|
+
type: import("vue").PropType<import("..").TableQueryScheme[]>;
|
|
355
355
|
default: () => never[];
|
|
356
356
|
};
|
|
357
357
|
grid: {
|
|
@@ -529,19 +529,17 @@ declare const _Table: {
|
|
|
529
529
|
emptyText: StringConstructor;
|
|
530
530
|
sumText: StringConstructor;
|
|
531
531
|
cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
fit: {
|
|
533
|
+
type: BooleanConstructor;
|
|
534
|
+
default: boolean;
|
|
535
|
+
};
|
|
534
536
|
lazy: BooleanConstructor;
|
|
535
537
|
indent: {
|
|
536
538
|
type: NumberConstructor;
|
|
537
539
|
default: number;
|
|
538
540
|
};
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
default: boolean;
|
|
542
|
-
};
|
|
543
|
-
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
544
|
-
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
541
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
542
|
+
defaultExpandAll: BooleanConstructor;
|
|
545
543
|
stripe: BooleanConstructor;
|
|
546
544
|
rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
|
|
547
545
|
showHeader: {
|
|
@@ -577,6 +575,8 @@ declare const _Table: {
|
|
|
577
575
|
};
|
|
578
576
|
};
|
|
579
577
|
flexible: BooleanConstructor;
|
|
578
|
+
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
579
|
+
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
580
580
|
appendFilterPanelTo: StringConstructor;
|
|
581
581
|
scrollbarTabindex: {
|
|
582
582
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -621,16 +621,16 @@ declare const _Table: {
|
|
|
621
621
|
}, {}, {}, {}, {
|
|
622
622
|
tableLayout: "auto" | "fixed";
|
|
623
623
|
border: boolean;
|
|
624
|
-
columns: import("
|
|
624
|
+
columns: import("..").TableColumnProps[];
|
|
625
625
|
data: any[];
|
|
626
626
|
immediate: boolean;
|
|
627
627
|
className: string;
|
|
628
628
|
pagination: boolean | import("element-plus").PaginationProps;
|
|
629
|
-
|
|
630
|
-
defaultExpandAll: boolean;
|
|
629
|
+
fit: boolean;
|
|
631
630
|
lazy: boolean;
|
|
632
631
|
indent: number;
|
|
633
|
-
|
|
632
|
+
scrollbarAlwaysOn: boolean;
|
|
633
|
+
defaultExpandAll: boolean;
|
|
634
634
|
stripe: boolean;
|
|
635
635
|
showHeader: boolean;
|
|
636
636
|
showSummary: boolean;
|
|
@@ -655,11 +655,11 @@ declare const _Table: {
|
|
|
655
655
|
default: boolean;
|
|
656
656
|
};
|
|
657
657
|
columns: {
|
|
658
|
-
type: import("vue").PropType<import("
|
|
658
|
+
type: import("vue").PropType<import("..").TableColumnProps[]>;
|
|
659
659
|
default: () => never[];
|
|
660
660
|
};
|
|
661
661
|
actionColumn: {
|
|
662
|
-
type: import("vue").PropType<import("
|
|
662
|
+
type: import("vue").PropType<import("..").TableColumnProps>;
|
|
663
663
|
};
|
|
664
664
|
pagination: {
|
|
665
665
|
type: import("vue").PropType<boolean | import("element-plus").PaginationProps>;
|
|
@@ -669,7 +669,7 @@ declare const _Table: {
|
|
|
669
669
|
type: import("vue").PropType<(expose: import("./table").TableExpose) => void>;
|
|
670
670
|
};
|
|
671
671
|
formProps: {
|
|
672
|
-
type: import("vue").PropType<import("
|
|
672
|
+
type: import("vue").PropType<import("..").TableQueryProps>;
|
|
673
673
|
};
|
|
674
674
|
beforeFetch: {
|
|
675
675
|
type: import("vue").PropType<(params: Record<string, any>) => any>;
|
|
@@ -710,19 +710,17 @@ declare const _Table: {
|
|
|
710
710
|
emptyText: StringConstructor;
|
|
711
711
|
sumText: StringConstructor;
|
|
712
712
|
cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
|
|
713
|
-
|
|
714
|
-
|
|
713
|
+
fit: {
|
|
714
|
+
type: BooleanConstructor;
|
|
715
|
+
default: boolean;
|
|
716
|
+
};
|
|
715
717
|
lazy: BooleanConstructor;
|
|
716
718
|
indent: {
|
|
717
719
|
type: NumberConstructor;
|
|
718
720
|
default: number;
|
|
719
721
|
};
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
default: boolean;
|
|
723
|
-
};
|
|
724
|
-
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
725
|
-
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
722
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
723
|
+
defaultExpandAll: BooleanConstructor;
|
|
726
724
|
stripe: BooleanConstructor;
|
|
727
725
|
rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
|
|
728
726
|
showHeader: {
|
|
@@ -758,6 +756,8 @@ declare const _Table: {
|
|
|
758
756
|
};
|
|
759
757
|
};
|
|
760
758
|
flexible: BooleanConstructor;
|
|
759
|
+
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
760
|
+
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
761
761
|
appendFilterPanelTo: StringConstructor;
|
|
762
762
|
scrollbarTabindex: {
|
|
763
763
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -802,16 +802,16 @@ declare const _Table: {
|
|
|
802
802
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
803
803
|
tableLayout: "auto" | "fixed";
|
|
804
804
|
border: boolean;
|
|
805
|
-
columns: import("
|
|
805
|
+
columns: import("..").TableColumnProps[];
|
|
806
806
|
data: any[];
|
|
807
807
|
immediate: boolean;
|
|
808
808
|
className: string;
|
|
809
809
|
pagination: boolean | import("element-plus").PaginationProps;
|
|
810
|
-
|
|
811
|
-
defaultExpandAll: boolean;
|
|
810
|
+
fit: boolean;
|
|
812
811
|
lazy: boolean;
|
|
813
812
|
indent: number;
|
|
814
|
-
|
|
813
|
+
scrollbarAlwaysOn: boolean;
|
|
814
|
+
defaultExpandAll: boolean;
|
|
815
815
|
stripe: boolean;
|
|
816
816
|
showHeader: boolean;
|
|
817
817
|
showSummary: boolean;
|
|
@@ -10,6 +10,8 @@ declare const TableColumn: import("vue").DefineComponent<{
|
|
|
10
10
|
className?: string | undefined;
|
|
11
11
|
filterMethod?: import("element-plus/es/components/table/src/table-column/defaults.mjs").FilterMethods<any> | undefined;
|
|
12
12
|
prop?: string | undefined;
|
|
13
|
+
index?: number | ((index: number) => number) | undefined;
|
|
14
|
+
showOverflowTooltip?: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "popperOptions" | "showArrow" | "effect" | "showAfter" | "hideAfter">> | undefined;
|
|
13
15
|
labelClassName?: string | undefined;
|
|
14
16
|
property?: string | undefined;
|
|
15
17
|
renderHeader?: ((data: {
|
|
@@ -24,14 +26,12 @@ declare const TableColumn: import("vue").DefineComponent<{
|
|
|
24
26
|
resizable?: boolean | undefined;
|
|
25
27
|
columnKey?: string | undefined;
|
|
26
28
|
headerAlign?: string | undefined;
|
|
27
|
-
showOverflowTooltip?: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "popperOptions" | "showArrow" | "effect" | "showAfter" | "hideAfter">> | undefined;
|
|
28
29
|
selectable?: ((row: any, index: number) => boolean) | undefined;
|
|
29
30
|
reserveSelection?: boolean | undefined;
|
|
30
31
|
filteredValue?: string[] | undefined;
|
|
31
32
|
filterPlacement?: string | undefined;
|
|
32
33
|
filterMultiple?: boolean | undefined;
|
|
33
34
|
filterClassName?: string | undefined;
|
|
34
|
-
index?: number | ((index: number) => number) | undefined;
|
|
35
35
|
sortOrders?: (import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder | null)[] | undefined;
|
|
36
36
|
slots?: import("./table-column").TableColumnPropsSlots | undefined;
|
|
37
37
|
renderer?: import("./renderer").RendererType | undefined;
|
|
@@ -54,6 +54,8 @@ declare const TableColumn: import("vue").DefineComponent<{
|
|
|
54
54
|
className?: string | undefined;
|
|
55
55
|
filterMethod?: import("element-plus/es/components/table/src/table-column/defaults.mjs").FilterMethods<any> | undefined;
|
|
56
56
|
prop?: string | undefined;
|
|
57
|
+
index?: number | ((index: number) => number) | undefined;
|
|
58
|
+
showOverflowTooltip?: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "popperOptions" | "showArrow" | "effect" | "showAfter" | "hideAfter">> | undefined;
|
|
57
59
|
labelClassName?: string | undefined;
|
|
58
60
|
property?: string | undefined;
|
|
59
61
|
renderHeader?: ((data: {
|
|
@@ -68,14 +70,12 @@ declare const TableColumn: import("vue").DefineComponent<{
|
|
|
68
70
|
resizable?: boolean | undefined;
|
|
69
71
|
columnKey?: string | undefined;
|
|
70
72
|
headerAlign?: string | undefined;
|
|
71
|
-
showOverflowTooltip?: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "popperOptions" | "showArrow" | "effect" | "showAfter" | "hideAfter">> | undefined;
|
|
72
73
|
selectable?: ((row: any, index: number) => boolean) | undefined;
|
|
73
74
|
reserveSelection?: boolean | undefined;
|
|
74
75
|
filteredValue?: string[] | undefined;
|
|
75
76
|
filterPlacement?: string | undefined;
|
|
76
77
|
filterMultiple?: boolean | undefined;
|
|
77
78
|
filterClassName?: string | undefined;
|
|
78
|
-
index?: number | ((index: number) => number) | undefined;
|
|
79
79
|
sortOrders?: (import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder | null)[] | undefined;
|
|
80
80
|
slots?: import("./table-column").TableColumnPropsSlots | undefined;
|
|
81
81
|
renderer?: import("./renderer").RendererType | undefined;
|
|
@@ -93,9 +93,9 @@ declare const TableColumn: import("vue").DefineComponent<{
|
|
|
93
93
|
hidden: boolean;
|
|
94
94
|
type: string;
|
|
95
95
|
align: "left" | "right" | "center" | undefined;
|
|
96
|
+
showOverflowTooltip: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "popperOptions" | "showArrow" | "effect" | "showAfter" | "hideAfter">> | undefined;
|
|
96
97
|
sortable: string | boolean;
|
|
97
98
|
resizable: boolean;
|
|
98
|
-
showOverflowTooltip: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "popperOptions" | "showArrow" | "effect" | "showAfter" | "hideAfter">> | undefined;
|
|
99
99
|
reserveSelection: boolean;
|
|
100
100
|
filterMultiple: boolean;
|
|
101
101
|
sortOrders: (import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder | null)[];
|
|
@@ -79,19 +79,17 @@ export declare const tableProps: {
|
|
|
79
79
|
emptyText: StringConstructor;
|
|
80
80
|
sumText: StringConstructor;
|
|
81
81
|
cellClassName: PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
fit: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
84
86
|
lazy: BooleanConstructor;
|
|
85
87
|
indent: {
|
|
86
88
|
type: NumberConstructor;
|
|
87
89
|
default: number;
|
|
88
90
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
showOverflowTooltip: PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
94
|
-
tooltipFormatter: PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
91
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
92
|
+
defaultExpandAll: BooleanConstructor;
|
|
95
93
|
stripe: BooleanConstructor;
|
|
96
94
|
rowKey: PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
|
|
97
95
|
showHeader: {
|
|
@@ -127,6 +125,8 @@ export declare const tableProps: {
|
|
|
127
125
|
};
|
|
128
126
|
};
|
|
129
127
|
flexible: BooleanConstructor;
|
|
128
|
+
showOverflowTooltip: PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
129
|
+
tooltipFormatter: PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
130
130
|
appendFilterPanelTo: StringConstructor;
|
|
131
131
|
scrollbarTabindex: {
|
|
132
132
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -25,7 +25,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
25
25
|
type: import("vue").PropType<(expose: TableExpose) => void>;
|
|
26
26
|
};
|
|
27
27
|
formProps: {
|
|
28
|
-
type: import("vue").PropType<import("
|
|
28
|
+
type: import("vue").PropType<import("..").TableQueryProps>;
|
|
29
29
|
};
|
|
30
30
|
beforeFetch: {
|
|
31
31
|
type: import("vue").PropType<(params: Record<string, any>) => any>;
|
|
@@ -66,19 +66,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
66
66
|
emptyText: StringConstructor;
|
|
67
67
|
sumText: StringConstructor;
|
|
68
68
|
cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
fit: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
71
73
|
lazy: BooleanConstructor;
|
|
72
74
|
indent: {
|
|
73
75
|
type: NumberConstructor;
|
|
74
76
|
default: number;
|
|
75
77
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
default: boolean;
|
|
79
|
-
};
|
|
80
|
-
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
81
|
-
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
78
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
79
|
+
defaultExpandAll: BooleanConstructor;
|
|
82
80
|
stripe: BooleanConstructor;
|
|
83
81
|
rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
|
|
84
82
|
showHeader: {
|
|
@@ -114,6 +112,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
114
112
|
};
|
|
115
113
|
};
|
|
116
114
|
flexible: BooleanConstructor;
|
|
115
|
+
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
116
|
+
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
117
117
|
appendFilterPanelTo: StringConstructor;
|
|
118
118
|
scrollbarTabindex: {
|
|
119
119
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -178,7 +178,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
178
178
|
type: import("vue").PropType<(expose: TableExpose) => void>;
|
|
179
179
|
};
|
|
180
180
|
formProps: {
|
|
181
|
-
type: import("vue").PropType<import("
|
|
181
|
+
type: import("vue").PropType<import("..").TableQueryProps>;
|
|
182
182
|
};
|
|
183
183
|
beforeFetch: {
|
|
184
184
|
type: import("vue").PropType<(params: Record<string, any>) => any>;
|
|
@@ -219,19 +219,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
219
219
|
emptyText: StringConstructor;
|
|
220
220
|
sumText: StringConstructor;
|
|
221
221
|
cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
fit: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
224
226
|
lazy: BooleanConstructor;
|
|
225
227
|
indent: {
|
|
226
228
|
type: NumberConstructor;
|
|
227
229
|
default: number;
|
|
228
230
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
default: boolean;
|
|
232
|
-
};
|
|
233
|
-
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
234
|
-
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
231
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
232
|
+
defaultExpandAll: BooleanConstructor;
|
|
235
233
|
stripe: BooleanConstructor;
|
|
236
234
|
rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
|
|
237
235
|
showHeader: {
|
|
@@ -267,6 +265,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
267
265
|
};
|
|
268
266
|
};
|
|
269
267
|
flexible: BooleanConstructor;
|
|
268
|
+
showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
|
|
269
|
+
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
|
|
270
270
|
appendFilterPanelTo: StringConstructor;
|
|
271
271
|
scrollbarTabindex: {
|
|
272
272
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -285,11 +285,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
285
285
|
immediate: boolean;
|
|
286
286
|
className: string;
|
|
287
287
|
pagination: boolean | PaginationProps;
|
|
288
|
-
|
|
289
|
-
defaultExpandAll: boolean;
|
|
288
|
+
fit: boolean;
|
|
290
289
|
lazy: boolean;
|
|
291
290
|
indent: number;
|
|
292
|
-
|
|
291
|
+
scrollbarAlwaysOn: boolean;
|
|
292
|
+
defaultExpandAll: boolean;
|
|
293
293
|
stripe: boolean;
|
|
294
294
|
showHeader: boolean;
|
|
295
295
|
showSummary: boolean;
|
|
@@ -15,13 +15,13 @@ import stdin_default$7 from './table-footer/index.js';
|
|
|
15
15
|
import { defaultSummaryMethod } from './table-footer/utils.js';
|
|
16
16
|
import { uniqid } from '../../utils/string.js';
|
|
17
17
|
import { useComponentConfig, useConfig } from '../config-provider/config-provider.js';
|
|
18
|
-
import { isNullish, isObject, isFunction } from '../../utils/is.js';
|
|
19
18
|
import { flatColumns } from '../../utils/excel/index.js';
|
|
20
19
|
import { getVNodeText, createMergedExpose } from '../../utils/vue.js';
|
|
21
20
|
import { useFetch } from '../../hooks/useFetch.js';
|
|
22
21
|
import { useFullPage } from '../../hooks/useFullPage.js';
|
|
23
22
|
import { useLocale } from '../../hooks/useLocale.js';
|
|
24
23
|
import { addPxUnit } from '../../utils/css.js';
|
|
24
|
+
import { isNullish, isObject, isFunction } from '../../utils/is.js';
|
|
25
25
|
import { useResizeObserver } from '../../hooks/useResizeObserver.js';
|
|
26
26
|
import { walkTree } from '../../utils/tree.js';
|
|
27
27
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './transition-group';
|
|
2
2
|
declare const _TransitionGroup: {
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./transition-group").TransitionGroupProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
4
|
-
effect: "slide" | "flip" | "fade" | (string & {});
|
|
5
4
|
css: boolean;
|
|
5
|
+
effect: "slide" | "flip" | "fade" | (string & {});
|
|
6
6
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
7
7
|
P: {};
|
|
8
8
|
B: {};
|
|
@@ -11,15 +11,15 @@ declare const _TransitionGroup: {
|
|
|
11
11
|
M: {};
|
|
12
12
|
Defaults: {};
|
|
13
13
|
}, Readonly<import("./transition-group").TransitionGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
14
|
-
effect: "slide" | "flip" | "fade" | (string & {});
|
|
15
14
|
css: boolean;
|
|
15
|
+
effect: "slide" | "flip" | "fade" | (string & {});
|
|
16
16
|
}>;
|
|
17
17
|
__isFragment?: never;
|
|
18
18
|
__isTeleport?: never;
|
|
19
19
|
__isSuspense?: never;
|
|
20
20
|
} & import("vue").ComponentOptionsBase<Readonly<import("./transition-group").TransitionGroupProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
21
|
-
effect: "slide" | "flip" | "fade" | (string & {});
|
|
22
21
|
css: boolean;
|
|
22
|
+
effect: "slide" | "flip" | "fade" | (string & {});
|
|
23
23
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
24
24
|
$slots: import("./transition-group").TransitionGroupSlots;
|
|
25
25
|
}) & import("vue").Plugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type TransitionGroupProps, type TransitionGroupSlots } from './transition-group';
|
|
2
2
|
type __VLS_Slots = TransitionGroupSlots;
|
|
3
3
|
declare const __VLS_component: import("vue").DefineComponent<TransitionGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TransitionGroupProps> & Readonly<{}>, {
|
|
4
|
-
effect: "slide" | "flip" | "fade" | (string & {});
|
|
5
4
|
css: boolean;
|
|
5
|
+
effect: "slide" | "flip" | "fade" | (string & {});
|
|
6
6
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
8
|
export default _default;
|