straw-ui-vue 0.1.52 → 0.1.54
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/st-cascade/types/st-cascade.d.ts +1 -1
- package/dist/components/st-date-picker/desktop/types/st-date-picker-desktop.d.ts +1 -7
- package/dist/components/st-date-picker/desktop/types/st-date-picker-panel.d.ts +82 -82
- package/dist/components/st-date-picker/desktop/types/st-datetime-picker-panel.d.ts +104 -104
- package/dist/components/st-date-picker/desktop/usePickerShell.d.ts +1 -2
- package/dist/components/st-date-picker/phone/types/st-date-picker-phone.d.ts +1 -5
- package/dist/components/st-date-picker/phone/types/st-datetime-picker-phone.d.ts +1 -1
- package/dist/components/st-date-picker/phone/types/st-time-picker-phone.d.ts +1 -1
- package/dist/components/st-date-picker/time-range.d.ts +38 -0
- package/dist/components/st-drawer/types/st-drawer-group.d.ts +1 -4
- package/dist/components/st-input/types/st-input-group-text.d.ts +1 -5
- package/dist/components/st-scrollbar/desktop/types/st-scrollbar-desktop-group.d.ts +1 -5
- package/dist/components/st-scrollbar/desktop/types/st-scrollbar-desktop.d.ts +1 -6
- package/dist/components/st-scrollbar/phone/types/st-scrollbar-phone-group.d.ts +29 -29
- package/dist/components/st-scrollbar/phone/types/st-scrollbar-phone.d.ts +1 -6
- package/dist/components/st-scrollbar/types/st-scrollbar.d.ts +3 -16
- package/dist/components/st-table/types/st-table-context.d.ts +3 -4
- package/dist/components/st-table/types/st-table-group.d.ts +1 -2
- package/dist/components/st-tabs/types/st-tabs-panel.d.ts +2 -10
- package/dist/components/st-tree/types/st-tree-group-node.d.ts +0 -1
- package/dist/components/st-tree/useTreeState.d.ts +1 -1
- package/dist/straw-ui.js +2175 -2123
- package/dist/types/config.d.ts +2 -12
- package/dist/utils.js +1 -1
- package/dist/variables.css +51 -51
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StCascadeDesktopEmits, StCascadeDesktopProps, StCascadeDesktopSlots, } from '../desktop/types/st-cascade-desktop.d.ts';
|
|
2
|
-
import type { StCascadePhoneEmits, StCascadePhoneProps, StCascadePhoneSlots } from '../phone/types/st-cascade-phone.d.ts';
|
|
2
|
+
import type { StCascadePhoneEmits, StCascadePhoneProps, StCascadePhoneSlots, } from '../phone/types/st-cascade-phone.d.ts';
|
|
3
3
|
import type { DeviceType } from '../../../types/device.d.ts';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
2
|
import type { StSize } from '../../../types/size.d.ts';
|
|
3
|
-
import type {
|
|
4
|
-
StPickerClassNames,
|
|
5
|
-
StPickerDateConstraintProps,
|
|
6
|
-
StPickerRangeValue,
|
|
7
|
-
StPickerShortcut,
|
|
8
|
-
StPickerValue,
|
|
9
|
-
} from '../../types/st-picker-shared.d.ts';
|
|
3
|
+
import type { StPickerClassNames, StPickerDateConstraintProps, StPickerRangeValue, StPickerShortcut, StPickerValue, } from '../../types/st-picker-shared.d.ts';
|
|
10
4
|
|
|
11
5
|
/** StDatePickerDesktop 桌面端属性 */
|
|
12
6
|
export interface StDatePickerDesktopProps extends StPickerDateConstraintProps, StPickerClassNames {
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
-
import type { StPickerCellSize } from '../../types/st-picker-atoms.d.ts';
|
|
3
|
-
import type {
|
|
4
|
-
StPickerClassNames,
|
|
5
|
-
StPickerDateConstraintProps,
|
|
6
|
-
StPickerPanelEmits,
|
|
7
|
-
StPickerRangeValue,
|
|
8
|
-
StPickerShortcut,
|
|
9
|
-
StPickerValue,
|
|
10
|
-
} from '../../types/st-picker-shared.d.ts';
|
|
11
|
-
|
|
12
|
-
/** StDatePickerPanel 日历面板属性 */
|
|
13
|
-
export interface StDatePickerPanelProps
|
|
14
|
-
extends Omit<StPickerDateConstraintProps, 'minDate' | 'maxDate'>, StPickerClassNames {
|
|
15
|
-
/** 可选最早日期 */
|
|
16
|
-
minDate?: Date | null;
|
|
17
|
-
/** 可选最晚日期 */
|
|
18
|
-
maxDate?: Date | null;
|
|
19
|
-
/** 区间模式:双月并排,两段式选择 */
|
|
20
|
-
range?: boolean;
|
|
21
|
-
/** 单点选中值 */
|
|
22
|
-
value?: Date | null;
|
|
23
|
-
/** 区间选中值 */
|
|
24
|
-
rangeValue?: [Date | null, Date | null];
|
|
25
|
-
/** 日期格小圆点标记 */
|
|
26
|
-
marks?: ((date: Date) => boolean) | Date[];
|
|
27
|
-
/** 快捷预设,非空时置顶第一行 */
|
|
28
|
-
shortcuts?: StPickerShortcut[];
|
|
29
|
-
/** 是否显示底部工具条 */
|
|
30
|
-
showFooter?: boolean;
|
|
31
|
-
/** 底部是否显示清除 */
|
|
32
|
-
showClear?: boolean;
|
|
33
|
-
/** 清除按钮文本 */
|
|
34
|
-
clearText?: string;
|
|
35
|
-
/** 单元格尺寸档 */
|
|
36
|
-
cellSize?: StPickerCellSize;
|
|
37
|
-
/** 是否接管键盘导航 */
|
|
38
|
-
keyboard?: boolean;
|
|
39
|
-
/** 类名 */
|
|
40
|
-
class?: ClassValue;
|
|
41
|
-
/** 样式 */
|
|
42
|
-
style?: StyleValue;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** StDatePickerPanel 事件 */
|
|
46
|
-
export interface StDatePickerPanelEmits extends StPickerPanelEmits {
|
|
47
|
-
/** 区间半成型时的镜像值,供触发器回显,不写回绑定值 */
|
|
48
|
-
rangePreview: [range: [Date | null, Date | null]];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/** 列内自定义行的作用域参数:区间下每列一份 */
|
|
52
|
-
export interface StDatePickerPanelTimeSlotProps {
|
|
53
|
-
/** 列序,0 为开始端、1 为结束端 */
|
|
54
|
-
index: number;
|
|
55
|
-
/** 端位 */
|
|
56
|
-
side: 'end' | 'single' | 'start';
|
|
57
|
-
/** 该端当前日期,未选为 null */
|
|
58
|
-
date: Date | null;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/** StDatePickerPanel 插槽 */
|
|
62
|
-
export interface StDatePickerPanelSlots {
|
|
63
|
-
/** 底部提示区 */
|
|
64
|
-
hint?: () => VNodeChild;
|
|
65
|
-
/** 每列头部之前的自定义行,DateTimePicker 用它塞时刻触发器与子浮层 */
|
|
66
|
-
time?: (props: StDatePickerPanelTimeSlotProps) => VNodeChild;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/** StDatePickerPanel 暴露方法 */
|
|
70
|
-
export interface StDatePickerPanelExpose {
|
|
71
|
-
/** 按当前绑定值复位日历与区间草稿,复位时机由外层壳决定 */
|
|
72
|
-
resetDraft: () => void;
|
|
73
|
-
/** 按当前选中值重新定位视图,浮层打开时调用 */
|
|
74
|
-
locateSelection: () => void;
|
|
75
|
-
/** 切换视图层级 */
|
|
76
|
-
goLevel: (level: 'day' | 'month' | 'year') => void;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** 区间预设取值 */
|
|
80
|
-
export type StPickerShortcutRange = StPickerRangeValue | StPickerValue;
|
|
81
|
-
|
|
82
|
-
export {};
|
|
1
|
+
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import type { StPickerCellSize } from '../../types/st-picker-atoms.d.ts';
|
|
3
|
+
import type {
|
|
4
|
+
StPickerClassNames,
|
|
5
|
+
StPickerDateConstraintProps,
|
|
6
|
+
StPickerPanelEmits,
|
|
7
|
+
StPickerRangeValue,
|
|
8
|
+
StPickerShortcut,
|
|
9
|
+
StPickerValue,
|
|
10
|
+
} from '../../types/st-picker-shared.d.ts';
|
|
11
|
+
|
|
12
|
+
/** StDatePickerPanel 日历面板属性 */
|
|
13
|
+
export interface StDatePickerPanelProps
|
|
14
|
+
extends Omit<StPickerDateConstraintProps, 'minDate' | 'maxDate'>, StPickerClassNames {
|
|
15
|
+
/** 可选最早日期 */
|
|
16
|
+
minDate?: Date | null;
|
|
17
|
+
/** 可选最晚日期 */
|
|
18
|
+
maxDate?: Date | null;
|
|
19
|
+
/** 区间模式:双月并排,两段式选择 */
|
|
20
|
+
range?: boolean;
|
|
21
|
+
/** 单点选中值 */
|
|
22
|
+
value?: Date | null;
|
|
23
|
+
/** 区间选中值 */
|
|
24
|
+
rangeValue?: [Date | null, Date | null];
|
|
25
|
+
/** 日期格小圆点标记 */
|
|
26
|
+
marks?: ((date: Date) => boolean) | Date[];
|
|
27
|
+
/** 快捷预设,非空时置顶第一行 */
|
|
28
|
+
shortcuts?: StPickerShortcut[];
|
|
29
|
+
/** 是否显示底部工具条 */
|
|
30
|
+
showFooter?: boolean;
|
|
31
|
+
/** 底部是否显示清除 */
|
|
32
|
+
showClear?: boolean;
|
|
33
|
+
/** 清除按钮文本 */
|
|
34
|
+
clearText?: string;
|
|
35
|
+
/** 单元格尺寸档 */
|
|
36
|
+
cellSize?: StPickerCellSize;
|
|
37
|
+
/** 是否接管键盘导航 */
|
|
38
|
+
keyboard?: boolean;
|
|
39
|
+
/** 类名 */
|
|
40
|
+
class?: ClassValue;
|
|
41
|
+
/** 样式 */
|
|
42
|
+
style?: StyleValue;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** StDatePickerPanel 事件 */
|
|
46
|
+
export interface StDatePickerPanelEmits extends StPickerPanelEmits {
|
|
47
|
+
/** 区间半成型时的镜像值,供触发器回显,不写回绑定值 */
|
|
48
|
+
rangePreview: [range: [Date | null, Date | null]];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** 列内自定义行的作用域参数:区间下每列一份 */
|
|
52
|
+
export interface StDatePickerPanelTimeSlotProps {
|
|
53
|
+
/** 列序,0 为开始端、1 为结束端 */
|
|
54
|
+
index: number;
|
|
55
|
+
/** 端位 */
|
|
56
|
+
side: 'end' | 'single' | 'start';
|
|
57
|
+
/** 该端当前日期,未选为 null */
|
|
58
|
+
date: Date | null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** StDatePickerPanel 插槽 */
|
|
62
|
+
export interface StDatePickerPanelSlots {
|
|
63
|
+
/** 底部提示区 */
|
|
64
|
+
hint?: () => VNodeChild;
|
|
65
|
+
/** 每列头部之前的自定义行,DateTimePicker 用它塞时刻触发器与子浮层 */
|
|
66
|
+
time?: (props: StDatePickerPanelTimeSlotProps) => VNodeChild;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** StDatePickerPanel 暴露方法 */
|
|
70
|
+
export interface StDatePickerPanelExpose {
|
|
71
|
+
/** 按当前绑定值复位日历与区间草稿,复位时机由外层壳决定 */
|
|
72
|
+
resetDraft: () => void;
|
|
73
|
+
/** 按当前选中值重新定位视图,浮层打开时调用 */
|
|
74
|
+
locateSelection: () => void;
|
|
75
|
+
/** 切换视图层级 */
|
|
76
|
+
goLevel: (level: 'day' | 'month' | 'year') => void;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** 区间预设取值 */
|
|
80
|
+
export type StPickerShortcutRange = StPickerRangeValue | StPickerValue;
|
|
81
|
+
|
|
82
|
+
export {};
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
StPickerClassNames,
|
|
4
|
-
StPickerDateConstraintProps,
|
|
5
|
-
StPickerRangeValue,
|
|
6
|
-
StPickerShortcut,
|
|
7
|
-
StPickerValue,
|
|
8
|
-
} from '../../types/st-picker-shared.d.ts';
|
|
9
|
-
|
|
10
|
-
/** 视图段:日期为常驻日历,时刻为点开的 TimePicker 弹层 */
|
|
11
|
-
export type StDatetimeTab = 'date' | 'time';
|
|
12
|
-
|
|
13
|
-
/** StDateTimePickerPanel 组合面板属性 */
|
|
14
|
-
export interface StDateTimePickerPanelProps
|
|
15
|
-
extends Omit<StPickerDateConstraintProps, 'minDate' | 'maxDate'>, StPickerClassNames {
|
|
16
|
-
/** 可选最早日期 */
|
|
17
|
-
minDate?: Date | null;
|
|
18
|
-
/** 可选最晚日期 */
|
|
19
|
-
maxDate?: Date | null;
|
|
20
|
-
/** 区间模式:与 DatePicker 共用一份两段式选择状态,每列顶部由 #time 插槽长出时刻行 */
|
|
21
|
-
range?: boolean;
|
|
22
|
-
/** 单点值(含时分秒) */
|
|
23
|
-
value?: Date | null;
|
|
24
|
-
/** 区间两端值 */
|
|
25
|
-
rangeValue?: [Date | null, Date | null];
|
|
26
|
-
/** 可见时间列 */
|
|
27
|
-
showHour?: boolean;
|
|
28
|
-
showMinute?: boolean;
|
|
29
|
-
showSecond?: boolean;
|
|
30
|
-
/** 各列步长 */
|
|
31
|
-
hourStep?: number;
|
|
32
|
-
minuteStep?: number;
|
|
33
|
-
secondStep?: number;
|
|
34
|
-
/** 最早 / 最晚时刻 */
|
|
35
|
-
minTime?: string | null;
|
|
36
|
-
maxTime?: string | null;
|
|
37
|
-
/** 随日期联动的业务禁用时刻 */
|
|
38
|
-
disabledTime?: (date: Date | null | undefined) => {
|
|
39
|
-
hours?: () => number[];
|
|
40
|
-
minutes?: (hour: number) => number[];
|
|
41
|
-
seconds?: (hour: number, minute: number) => number[];
|
|
42
|
-
};
|
|
43
|
-
/** 日期标记 */
|
|
44
|
-
marks?: ((date: Date) => boolean) | Date[];
|
|
45
|
-
/** 快捷预设,置顶一行 */
|
|
46
|
-
shortcuts?: StPickerShortcut[];
|
|
47
|
-
/** 日期显示格式 */
|
|
48
|
-
format?: string;
|
|
49
|
-
/** 时刻显示格式 */
|
|
50
|
-
timeFormat?: string;
|
|
51
|
-
/** 端标签文本 */
|
|
52
|
-
startText?: string;
|
|
53
|
-
endText?: string;
|
|
54
|
-
/** 段标签文本 */
|
|
55
|
-
dateText?: string;
|
|
56
|
-
timeText?: string;
|
|
57
|
-
/** 底部是否显示清除 */
|
|
58
|
-
showClear?: boolean;
|
|
59
|
-
/** 确定按钮文本 */
|
|
60
|
-
confirmText?: string;
|
|
61
|
-
/** 单元格尺寸档 */
|
|
62
|
-
cellSize?: 'pc' | 'compact';
|
|
63
|
-
/** 时间列尺寸档 */
|
|
64
|
-
timeSize?: 'pc' | 'compact';
|
|
65
|
-
/** 是否显示底部工具条 */
|
|
66
|
-
showFooter?: boolean;
|
|
67
|
-
/** 是否禁用 */
|
|
68
|
-
disabled?: boolean;
|
|
69
|
-
/** 类名 */
|
|
70
|
-
class?: ClassValue;
|
|
71
|
-
/** 样式 */
|
|
72
|
-
style?: StyleValue;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** StDateTimePickerPanel 事件 */
|
|
76
|
-
export interface StDateTimePickerPanelEmits {
|
|
77
|
-
/** 确定并回传组合值 */
|
|
78
|
-
confirm: [date: Date | null];
|
|
79
|
-
/** 区间两端组合值 */
|
|
80
|
-
confirmRange: [range: [Date | null, Date | null]];
|
|
81
|
-
/** 清空草稿 */
|
|
82
|
-
clear: [];
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/** StDateTimePickerPanel 插槽 */
|
|
86
|
-
export interface StDateTimePickerPanelSlots {
|
|
87
|
-
/** 底部提示区 */
|
|
88
|
-
hint?: () => VNodeChild;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** StDateTimePickerPanel 暴露方法 */
|
|
92
|
-
export interface StDateTimePickerPanelExpose {
|
|
93
|
-
/** 浮层打开时定位日历选中项 */
|
|
94
|
-
locate: () => void;
|
|
95
|
-
/** 丢弃草稿回到已确定值 */
|
|
96
|
-
resetDraft: () => void;
|
|
97
|
-
/** 切到某侧视图段:time 点开该侧时刻弹层,date 收起 */
|
|
98
|
-
setTab: (index: number, tab: StDatetimeTab) => void;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/** 组合面板预设取值 */
|
|
102
|
-
export type StDatetimeShortcutValue = StPickerValue | StPickerRangeValue;
|
|
103
|
-
|
|
104
|
-
export {};
|
|
1
|
+
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import type {
|
|
3
|
+
StPickerClassNames,
|
|
4
|
+
StPickerDateConstraintProps,
|
|
5
|
+
StPickerRangeValue,
|
|
6
|
+
StPickerShortcut,
|
|
7
|
+
StPickerValue,
|
|
8
|
+
} from '../../types/st-picker-shared.d.ts';
|
|
9
|
+
|
|
10
|
+
/** 视图段:日期为常驻日历,时刻为点开的 TimePicker 弹层 */
|
|
11
|
+
export type StDatetimeTab = 'date' | 'time';
|
|
12
|
+
|
|
13
|
+
/** StDateTimePickerPanel 组合面板属性 */
|
|
14
|
+
export interface StDateTimePickerPanelProps
|
|
15
|
+
extends Omit<StPickerDateConstraintProps, 'minDate' | 'maxDate'>, StPickerClassNames {
|
|
16
|
+
/** 可选最早日期 */
|
|
17
|
+
minDate?: Date | null;
|
|
18
|
+
/** 可选最晚日期 */
|
|
19
|
+
maxDate?: Date | null;
|
|
20
|
+
/** 区间模式:与 DatePicker 共用一份两段式选择状态,每列顶部由 #time 插槽长出时刻行 */
|
|
21
|
+
range?: boolean;
|
|
22
|
+
/** 单点值(含时分秒) */
|
|
23
|
+
value?: Date | null;
|
|
24
|
+
/** 区间两端值 */
|
|
25
|
+
rangeValue?: [Date | null, Date | null];
|
|
26
|
+
/** 可见时间列 */
|
|
27
|
+
showHour?: boolean;
|
|
28
|
+
showMinute?: boolean;
|
|
29
|
+
showSecond?: boolean;
|
|
30
|
+
/** 各列步长 */
|
|
31
|
+
hourStep?: number;
|
|
32
|
+
minuteStep?: number;
|
|
33
|
+
secondStep?: number;
|
|
34
|
+
/** 最早 / 最晚时刻 */
|
|
35
|
+
minTime?: string | null;
|
|
36
|
+
maxTime?: string | null;
|
|
37
|
+
/** 随日期联动的业务禁用时刻 */
|
|
38
|
+
disabledTime?: (date: Date | null | undefined) => {
|
|
39
|
+
hours?: () => number[];
|
|
40
|
+
minutes?: (hour: number) => number[];
|
|
41
|
+
seconds?: (hour: number, minute: number) => number[];
|
|
42
|
+
};
|
|
43
|
+
/** 日期标记 */
|
|
44
|
+
marks?: ((date: Date) => boolean) | Date[];
|
|
45
|
+
/** 快捷预设,置顶一行 */
|
|
46
|
+
shortcuts?: StPickerShortcut[];
|
|
47
|
+
/** 日期显示格式 */
|
|
48
|
+
format?: string;
|
|
49
|
+
/** 时刻显示格式 */
|
|
50
|
+
timeFormat?: string;
|
|
51
|
+
/** 端标签文本 */
|
|
52
|
+
startText?: string;
|
|
53
|
+
endText?: string;
|
|
54
|
+
/** 段标签文本 */
|
|
55
|
+
dateText?: string;
|
|
56
|
+
timeText?: string;
|
|
57
|
+
/** 底部是否显示清除 */
|
|
58
|
+
showClear?: boolean;
|
|
59
|
+
/** 确定按钮文本 */
|
|
60
|
+
confirmText?: string;
|
|
61
|
+
/** 单元格尺寸档 */
|
|
62
|
+
cellSize?: 'pc' | 'compact';
|
|
63
|
+
/** 时间列尺寸档 */
|
|
64
|
+
timeSize?: 'pc' | 'compact';
|
|
65
|
+
/** 是否显示底部工具条 */
|
|
66
|
+
showFooter?: boolean;
|
|
67
|
+
/** 是否禁用 */
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
/** 类名 */
|
|
70
|
+
class?: ClassValue;
|
|
71
|
+
/** 样式 */
|
|
72
|
+
style?: StyleValue;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** StDateTimePickerPanel 事件 */
|
|
76
|
+
export interface StDateTimePickerPanelEmits {
|
|
77
|
+
/** 确定并回传组合值 */
|
|
78
|
+
confirm: [date: Date | null];
|
|
79
|
+
/** 区间两端组合值 */
|
|
80
|
+
confirmRange: [range: [Date | null, Date | null]];
|
|
81
|
+
/** 清空草稿 */
|
|
82
|
+
clear: [];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** StDateTimePickerPanel 插槽 */
|
|
86
|
+
export interface StDateTimePickerPanelSlots {
|
|
87
|
+
/** 底部提示区 */
|
|
88
|
+
hint?: () => VNodeChild;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** StDateTimePickerPanel 暴露方法 */
|
|
92
|
+
export interface StDateTimePickerPanelExpose {
|
|
93
|
+
/** 浮层打开时定位日历选中项 */
|
|
94
|
+
locate: () => void;
|
|
95
|
+
/** 丢弃草稿回到已确定值 */
|
|
96
|
+
resetDraft: () => void;
|
|
97
|
+
/** 切到某侧视图段:time 点开该侧时刻弹层,date 收起 */
|
|
98
|
+
setTab: (index: number, tab: StDatetimeTab) => void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** 组合面板预设取值 */
|
|
102
|
+
export type StDatetimeShortcutValue = StPickerValue | StPickerRangeValue;
|
|
103
|
+
|
|
104
|
+
export {};
|
|
@@ -28,12 +28,11 @@ export interface UsePickerShellOptions<T> {
|
|
|
28
28
|
/**
|
|
29
29
|
* 桌面端选择器的浮层外壳状态
|
|
30
30
|
*
|
|
31
|
-
* 三件 desktop
|
|
31
|
+
* 三件 desktop 预封装在可见态、触发器回显镜像与显隐钩子顺序上完全一致,
|
|
32
32
|
* 差异只在面板定位与落值口径,那部分留在各件里。
|
|
33
33
|
* */
|
|
34
34
|
export declare function usePickerShell<T = Date>(options: UsePickerShellOptions<T>): {
|
|
35
35
|
visible: import('vue').Ref<boolean, boolean>;
|
|
36
|
-
error: import('vue').Ref<boolean, boolean>;
|
|
37
36
|
displayText: import('vue').ComputedRef<string>;
|
|
38
37
|
hasValue: import('vue').ComputedRef<boolean>;
|
|
39
38
|
clearableVisible: import('vue').ComputedRef<boolean>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type { StDatePickerDesktopProps } from '../../desktop/types/st-date-picker-desktop.d.ts';
|
|
1
|
+
import type { StDatePickerDesktopEmits, StDatePickerDesktopExpose, StDatePickerDesktopProps } from '../../desktop/types/st-date-picker-desktop.d.ts';
|
|
2
2
|
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
3
|
-
import type {
|
|
4
|
-
StDatePickerDesktopEmits,
|
|
5
|
-
StDatePickerDesktopExpose,
|
|
6
|
-
} from '../../desktop/types/st-date-picker-desktop.d.ts';
|
|
7
3
|
|
|
8
4
|
/**
|
|
9
5
|
* StDatePickerPhone 手机端属性
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
2
|
import type { StPickerShortcut } from '../../types/st-picker-shared.d.ts';
|
|
3
|
-
import type { StDateTimePickerDesktopEmits, StDateTimePickerDesktopExpose, StDateTimePickerDesktopProps } from '../../desktop/types/st-datetime-picker-desktop.d.ts';
|
|
3
|
+
import type { StDateTimePickerDesktopEmits, StDateTimePickerDesktopExpose, StDateTimePickerDesktopProps, } from '../../desktop/types/st-datetime-picker-desktop.d.ts';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* StDateTimePickerPhone 手机端属性
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
-
import type { StTimePickerDesktopEmits, StTimePickerDesktopExpose, StTimePickerDesktopProps } from '../../desktop/types/st-time-picker-desktop.d.ts';
|
|
2
|
+
import type { StTimePickerDesktopEmits, StTimePickerDesktopExpose, StTimePickerDesktopProps, } from '../../desktop/types/st-time-picker-desktop.d.ts';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* StTimePickerPhone 手机端属性
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useTimeColumns } from './usePickerTime.ts';
|
|
2
|
+
import { StPickerTimeParts } from './types/st-picker-shared.d.ts';
|
|
3
|
+
/** 可选时刻网格:三列步长值与逐列可用性判定 */
|
|
4
|
+
export interface TimeGrid {
|
|
5
|
+
hours: number[];
|
|
6
|
+
minutes: number[];
|
|
7
|
+
seconds: number[];
|
|
8
|
+
isHourDisabled: (hour: number) => boolean;
|
|
9
|
+
isMinuteDisabled: (hour: number, minute: number) => boolean;
|
|
10
|
+
isSecondDisabled: (hour: number, minute: number, second: number) => boolean;
|
|
11
|
+
}
|
|
12
|
+
/** useTimeColumns 的返回实例 */
|
|
13
|
+
export type TimeColumnSource = ReturnType<typeof useTimeColumns>;
|
|
14
|
+
/**
|
|
15
|
+
* 由列实例生成搜索网格
|
|
16
|
+
* 隐藏列沿用给定时刻的对应单位,隐藏的秒列归零,避免从外部值带出不可见的秒
|
|
17
|
+
* */
|
|
18
|
+
export declare function timeGridOf(source: TimeColumnSource, from: StPickerTimeParts, showHour: boolean, showMinute: boolean, showSecond: boolean, date: Date | null | undefined): TimeGrid;
|
|
19
|
+
/**
|
|
20
|
+
* 严格晚于 from 的最早可选时刻
|
|
21
|
+
* 分钟可见时从下一分钟边界起找,避免自动抬升留下秒级残值
|
|
22
|
+
* */
|
|
23
|
+
export declare function nextGridTime(grid: TimeGrid, from: StPickerTimeParts, preferMinute: boolean): StPickerTimeParts | null;
|
|
24
|
+
/**
|
|
25
|
+
* 严格早于 from 的最晚可选时刻
|
|
26
|
+
* 与 nextGridTime 对称,分钟可见时从上一分钟边界起找
|
|
27
|
+
* */
|
|
28
|
+
export declare function previousGridTime(grid: TimeGrid, from: StPickerTimeParts, preferMinute: boolean): StPickerTimeParts | null;
|
|
29
|
+
/**
|
|
30
|
+
* 取较晚的时刻字面串,用于结束端的下界
|
|
31
|
+
* 上界缺省或非法时返回给定时刻
|
|
32
|
+
* */
|
|
33
|
+
export declare function laterTimeText(parts: StPickerTimeParts, bound: string | null | undefined): string;
|
|
34
|
+
/**
|
|
35
|
+
* 取较早的时刻字面串,用于开始端的上界
|
|
36
|
+
* 上界缺省或非法时返回给定时刻
|
|
37
|
+
* */
|
|
38
|
+
export declare function earlierTimeText(parts: StPickerTimeParts, bound: string | null | undefined): string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { VNodeChild } from 'vue';
|
|
2
2
|
import type { DeviceType } from '../../../types/device.d.ts';
|
|
3
|
-
import type {
|
|
4
|
-
StDrawerDesktopGroupEmits,
|
|
5
|
-
StDrawerDesktopGroupProps,
|
|
6
|
-
} from '../desktop/types/st-drawer-desktop-group.d.ts';
|
|
3
|
+
import type { StDrawerDesktopGroupEmits, StDrawerDesktopGroupProps, } from '../desktop/types/st-drawer-desktop-group.d.ts';
|
|
7
4
|
import type { StDrawerPhoneGroupEmits, StDrawerPhoneGroupProps } from '../phone/types/st-drawer-phone-group.d.ts';
|
|
8
5
|
|
|
9
6
|
/**
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
StInputGroupAddonEmits,
|
|
3
|
-
StInputGroupAddonProps,
|
|
4
|
-
StInputGroupAddonSlots,
|
|
5
|
-
} from './st-input-group-addon.d.ts';
|
|
1
|
+
import type { StInputGroupAddonEmits, StInputGroupAddonProps, StInputGroupAddonSlots, } from './st-input-group-addon.d.ts';
|
|
6
2
|
|
|
7
3
|
/** StInputGroupText 组件属性接口 */
|
|
8
4
|
export type StInputGroupTextProps = StInputGroupAddonProps;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { VNodeChild } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
StScrollbarGroupBaseEmits,
|
|
4
|
-
StScrollbarGroupBaseProps,
|
|
5
|
-
StScrollbarGroupBaseSlots,
|
|
6
|
-
} from '../../types/st-scrollbar-group.d.ts';
|
|
2
|
+
import type { StScrollbarGroupBaseEmits, StScrollbarGroupBaseProps, StScrollbarGroupBaseSlots, } from '../../types/st-scrollbar-group.d.ts';
|
|
7
3
|
|
|
8
4
|
/** 桌面端滚动包容层组件属性 */
|
|
9
5
|
export interface StScrollbarDesktopGroupProps extends StScrollbarGroupBaseProps {}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
StScrollbarBaseEmits,
|
|
3
|
-
StScrollbarBaseExpose,
|
|
4
|
-
StScrollbarBaseProps,
|
|
5
|
-
StScrollbarBaseSlots,
|
|
6
|
-
} from '../../types/st-scrollbar.d.ts';
|
|
1
|
+
import type { StScrollbarBaseEmits, StScrollbarBaseExpose, StScrollbarBaseProps, StScrollbarBaseSlots, } from '../../types/st-scrollbar.d.ts';
|
|
7
2
|
|
|
8
3
|
/** 桌面端滚动条属性 */
|
|
9
4
|
export interface StScrollbarDesktopProps extends StScrollbarBaseProps {}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { VNodeChild } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
StScrollbarGroupBaseEmits,
|
|
4
|
-
StScrollbarGroupBaseProps,
|
|
5
|
-
StScrollbarGroupBaseSlots,
|
|
6
|
-
} from '../../types/st-scrollbar-group.d.ts';
|
|
7
|
-
|
|
8
|
-
/** 手机端滚动包容层组件属性 */
|
|
9
|
-
export interface StScrollbarPhoneGroupProps extends StScrollbarGroupBaseProps {}
|
|
10
|
-
/** 手机端滚动包容层组件插槽 */
|
|
11
|
-
export interface StScrollbarPhoneGroupSlots extends StScrollbarGroupBaseSlots {
|
|
12
|
-
/** 默认插槽 */
|
|
13
|
-
default?: () => VNodeChild;
|
|
14
|
-
}
|
|
15
|
-
/** 手机端滚动包容层组件事件 */
|
|
16
|
-
export interface StScrollbarPhoneGroupEmits extends StScrollbarGroupBaseEmits {
|
|
17
|
-
/** 下拉刷新事件,参数为完成回调 */
|
|
18
|
-
pullDown: [done: () => void];
|
|
19
|
-
/** 上拉加载事件,参数为完成回调 */
|
|
20
|
-
pullUp: [done: () => void];
|
|
21
|
-
/** 左拉刷新事件,参数为完成回调 */
|
|
22
|
-
pullLeft: [done: () => void];
|
|
23
|
-
/** 右拉加载事件,参数为完成回调 */
|
|
24
|
-
pullRight: [done: () => void];
|
|
25
|
-
/** 统一事件转发,用于 forwardEmit 向父组件传递所有事件 */
|
|
26
|
-
event: [name: string, ...args: any[]];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export {};
|
|
1
|
+
import type { VNodeChild } from 'vue';
|
|
2
|
+
import type {
|
|
3
|
+
StScrollbarGroupBaseEmits,
|
|
4
|
+
StScrollbarGroupBaseProps,
|
|
5
|
+
StScrollbarGroupBaseSlots,
|
|
6
|
+
} from '../../types/st-scrollbar-group.d.ts';
|
|
7
|
+
|
|
8
|
+
/** 手机端滚动包容层组件属性 */
|
|
9
|
+
export interface StScrollbarPhoneGroupProps extends StScrollbarGroupBaseProps {}
|
|
10
|
+
/** 手机端滚动包容层组件插槽 */
|
|
11
|
+
export interface StScrollbarPhoneGroupSlots extends StScrollbarGroupBaseSlots {
|
|
12
|
+
/** 默认插槽 */
|
|
13
|
+
default?: () => VNodeChild;
|
|
14
|
+
}
|
|
15
|
+
/** 手机端滚动包容层组件事件 */
|
|
16
|
+
export interface StScrollbarPhoneGroupEmits extends StScrollbarGroupBaseEmits {
|
|
17
|
+
/** 下拉刷新事件,参数为完成回调 */
|
|
18
|
+
pullDown: [done: () => void];
|
|
19
|
+
/** 上拉加载事件,参数为完成回调 */
|
|
20
|
+
pullUp: [done: () => void];
|
|
21
|
+
/** 左拉刷新事件,参数为完成回调 */
|
|
22
|
+
pullLeft: [done: () => void];
|
|
23
|
+
/** 右拉加载事件,参数为完成回调 */
|
|
24
|
+
pullRight: [done: () => void];
|
|
25
|
+
/** 统一事件转发,用于 forwardEmit 向父组件传递所有事件 */
|
|
26
|
+
event: [name: string, ...args: any[]];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
StScrollbarBaseEmits,
|
|
4
|
-
StScrollbarBaseExpose,
|
|
5
|
-
StScrollbarBaseProps,
|
|
6
|
-
StScrollbarBaseSlots,
|
|
7
|
-
} from '../../types/st-scrollbar.d.ts';
|
|
2
|
+
import type { StScrollbarBaseEmits, StScrollbarBaseExpose, StScrollbarBaseProps, StScrollbarBaseSlots, } from '../../types/st-scrollbar.d.ts';
|
|
8
3
|
import type { StScrollbarPullActionSlotScope } from './st-scrollbar-phone-group-pull-action.d.ts';
|
|
9
4
|
|
|
10
5
|
/** 手机端滚动条属性 */
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
2
|
import type { DeviceType } from '../../../types/device.d.ts';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
StScrollbarDesktopProps,
|
|
7
|
-
StScrollbarDesktopSlots,
|
|
8
|
-
} from '../desktop/types/st-scrollbar-desktop.d.ts';
|
|
9
|
-
import type {
|
|
10
|
-
StScrollbarPhoneEmits,
|
|
11
|
-
StScrollbarPhoneExpose,
|
|
12
|
-
StScrollbarPhoneProps,
|
|
13
|
-
StScrollbarPhoneSlots,
|
|
14
|
-
} from '../phone/types/st-scrollbar-phone.d.ts';
|
|
15
|
-
import type {
|
|
16
|
-
StScrollbarVirtualScrollToIndexOptions,
|
|
17
|
-
StScrollbarVirtualScrollToOffsetOptions,
|
|
18
|
-
} from './st-scrollbar-group-virtual.d.ts';
|
|
3
|
+
import type { StScrollbarDesktopEmits, StScrollbarDesktopExpose, StScrollbarDesktopProps, StScrollbarDesktopSlots, } from '../desktop/types/st-scrollbar-desktop.d.ts';
|
|
4
|
+
import type { StScrollbarPhoneEmits, StScrollbarPhoneExpose, StScrollbarPhoneProps, StScrollbarPhoneSlots, } from '../phone/types/st-scrollbar-phone.d.ts';
|
|
5
|
+
import type { StScrollbarVirtualScrollToIndexOptions, StScrollbarVirtualScrollToOffsetOptions, } from './st-scrollbar-group-virtual.d.ts';
|
|
19
6
|
|
|
20
7
|
/** 滚动方向类型:垂直或水平 */
|
|
21
8
|
export type StScrollbarDirection = 'vertical' | 'horizontal';
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type { VNodeChild } from 'vue';
|
|
1
|
+
import type { ComputedRef, Ref, VNodeChild } from 'vue';
|
|
3
2
|
import type {
|
|
4
3
|
StColumnConfig,
|
|
5
4
|
StDragConfig,
|
|
6
5
|
StRadioConfig,
|
|
7
6
|
StSortConfig,
|
|
7
|
+
StTableCellScope,
|
|
8
8
|
StTableColumn,
|
|
9
9
|
StTableDropPosition,
|
|
10
10
|
StTableHeaderCellScope,
|
|
11
11
|
StTableKey,
|
|
12
|
+
StTableRow,
|
|
12
13
|
StTableSortOrder,
|
|
13
14
|
StTableSortState,
|
|
14
|
-
StTableRow,
|
|
15
|
-
StTableCellScope,
|
|
16
15
|
StTableSpan,
|
|
17
16
|
StTreeConfig,
|
|
18
17
|
} from './st-table.d.ts';
|