sard-uniapp 1.14.0 → 1.14.2
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/CHANGELOG.md +18 -0
- package/components/accordion/variables.scss +2 -1
- package/components/action-sheet/variables.scss +2 -1
- package/components/alert/variables.scss +2 -1
- package/components/avatar/variables.scss +2 -1
- package/components/back-top/variables.scss +2 -1
- package/components/badge/variables.scss +2 -1
- package/components/button/variables.scss +2 -1
- package/components/calendar/calendar.vue +16 -17
- package/components/calendar/variables.scss +2 -1
- package/components/calendar-input/calendar-input.vue +35 -31
- package/components/calendar-input/common.d.ts +3 -0
- package/components/card/variables.scss +2 -1
- package/components/cascader/variables.scss +2 -1
- package/components/cascader-input/cascader-input.vue +32 -28
- package/components/cascader-input/common.d.ts +3 -0
- package/components/check-icon/variables.scss +2 -1
- package/components/checkbox/variables.scss +2 -1
- package/components/checkbox-input/checkbox-input.vue +60 -56
- package/components/checkbox-input/common.d.ts +3 -0
- package/components/checkbox-input/variables.scss +2 -1
- package/components/collapse/variables.scss +2 -1
- package/components/datetime-picker-input/common.d.ts +3 -0
- package/components/datetime-picker-input/datetime-picker-input.vue +29 -25
- package/components/datetime-range-picker/variables.scss +2 -1
- package/components/datetime-range-picker-input/common.d.ts +3 -0
- package/components/datetime-range-picker-input/datetime-range-picker-input.vue +30 -26
- package/components/dialog/common.d.ts +2 -0
- package/components/dialog/dialog.vue +11 -2
- package/components/dialog/variables.scss +2 -1
- package/components/dialog-agent/dialog-agent.vue +2 -0
- package/components/divider/variables.scss +2 -1
- package/components/dropdown/variables.scss +2 -1
- package/components/empty/variables.scss +2 -1
- package/components/fab/variables.scss +2 -1
- package/components/floating-bubble/variables.scss +2 -1
- package/components/floating-panel/variables.scss +2 -1
- package/components/form/variables.scss +2 -1
- package/components/grid/variables.scss +2 -1
- package/components/indexes/variables.scss +2 -1
- package/components/input/common.d.ts +1 -0
- package/components/input/index.scss +1 -0
- package/components/input/input.vue +6 -3
- package/components/input/variables.scss +2 -1
- package/components/keyboard/variables.scss +2 -1
- package/components/list/variables.scss +2 -1
- package/components/load-more/variables.scss +2 -1
- package/components/loading/variables.scss +2 -1
- package/components/menu/variables.scss +2 -1
- package/components/navbar/variables.scss +2 -1
- package/components/notice-bar/variables.scss +2 -1
- package/components/notify/variables.scss +2 -1
- package/components/overlay/variables.scss +2 -1
- package/components/pagination/variables.scss +2 -1
- package/components/password-input/variables.scss +2 -1
- package/components/picker/variables.scss +2 -1
- package/components/picker-input/common.d.ts +3 -0
- package/components/picker-input/picker-input.vue +26 -22
- package/components/popout/variables.scss +2 -1
- package/components/popout-input/popout-input.d.ts +10 -1
- package/components/popout-input/popout-input.vue +5 -3
- package/components/popout-input/variables.scss +2 -1
- package/components/popover/variables.scss +2 -1
- package/components/popup/popup.vue +32 -18
- package/components/popup/variables.scss +2 -1
- package/components/progress-bar/variables.scss +2 -1
- package/components/progress-circle/variables.scss +2 -1
- package/components/pull-down-refresh/variables.scss +2 -1
- package/components/qrcode/variables.scss +1 -1
- package/components/radio/variables.scss +2 -1
- package/components/radio-input/common.d.ts +3 -0
- package/components/radio-input/radio-input.vue +59 -58
- package/components/radio-input/variables.scss +2 -1
- package/components/rate/variables.scss +2 -1
- package/components/result/variables.scss +2 -1
- package/components/search/variables.scss +2 -1
- package/components/share-sheet/variables.scss +2 -1
- package/components/sidebar/variables.scss +2 -1
- package/components/signature/variables.scss +2 -1
- package/components/skeleton/variables.scss +2 -1
- package/components/slider/variables.scss +2 -1
- package/components/space/common.d.ts +3 -0
- package/components/space/common.js +7 -0
- package/components/space/space.vue +4 -1
- package/components/space/variables.scss +2 -1
- package/components/stepper/variables.scss +2 -1
- package/components/steps/variables.scss +2 -1
- package/components/style/mixins/theme-dark.scss +4 -2
- package/components/style/variables.scss +2 -1
- package/components/swiper-dot/variables.scss +2 -1
- package/components/switch/variables.scss +2 -1
- package/components/tabbar/variables.scss +2 -1
- package/components/table/variables.scss +2 -1
- package/components/tabs/variables.scss +2 -1
- package/components/tag/variables.scss +2 -1
- package/components/timeline/variables.scss +2 -1
- package/components/toast/variables.scss +2 -1
- package/components/tree/variables.scss +2 -1
- package/components/upload/variables.scss +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.14.2](https://github.com/sutras/sard-uniapp/compare/v1.14.1...v1.14.2) (2025-05-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 使 *-input 弹出式输入框组件只有一个根节点 ([91fe1c0](https://github.com/sutras/sard-uniapp/commit/91fe1c0af91cf0aef3f3e7429483613a743e0520))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.14.1](https://github.com/sutras/sard-uniapp/compare/v1.14.0...v1.14.1) (2025-05-13)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 修复 popup 组件 transform+fixed 渲染问题 ([5d0bf10](https://github.com/sutras/sard-uniapp/commit/5d0bf106df39e9c48c84bd7f76c71bb9306070c9))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
# [1.14.0](https://github.com/sutras/sard-uniapp/compare/v1.13.3...v1.14.0) (2025-05-12)
|
|
2
20
|
|
|
3
21
|
|
|
@@ -78,24 +78,23 @@
|
|
|
78
78
|
/>
|
|
79
79
|
</scroll-view>
|
|
80
80
|
</view>
|
|
81
|
+
<sar-popout
|
|
82
|
+
v-if="!severalMonths"
|
|
83
|
+
v-model:visible="pickerVisible"
|
|
84
|
+
type="compact"
|
|
85
|
+
@confirm="onPickerConfirm"
|
|
86
|
+
>
|
|
87
|
+
<template #visible="{ already }">
|
|
88
|
+
<sar-datetime-picker
|
|
89
|
+
v-if="already"
|
|
90
|
+
type="yM"
|
|
91
|
+
v-model="pickerValue"
|
|
92
|
+
:min="minDate"
|
|
93
|
+
:max="maxDate"
|
|
94
|
+
/>
|
|
95
|
+
</template>
|
|
96
|
+
</sar-popout>
|
|
81
97
|
</view>
|
|
82
|
-
|
|
83
|
-
<sar-popout
|
|
84
|
-
v-if="!severalMonths"
|
|
85
|
-
v-model:visible="pickerVisible"
|
|
86
|
-
type="compact"
|
|
87
|
-
@confirm="onPickerConfirm"
|
|
88
|
-
>
|
|
89
|
-
<template #visible="{ already }">
|
|
90
|
-
<sar-datetime-picker
|
|
91
|
-
v-if="already"
|
|
92
|
-
type="yM"
|
|
93
|
-
v-model="pickerValue"
|
|
94
|
-
:min="minDate"
|
|
95
|
-
:max="maxDate"
|
|
96
|
-
/>
|
|
97
|
-
</template>
|
|
98
|
-
</sar-popout>
|
|
99
98
|
</template>
|
|
100
99
|
|
|
101
100
|
<script>
|
|
@@ -5,40 +5,42 @@
|
|
|
5
5
|
:readonly="readonly"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
:clearable="clearable"
|
|
8
|
-
@clear="onClear"
|
|
9
|
-
@click="onInputClick"
|
|
10
|
-
/>
|
|
11
|
-
|
|
12
|
-
<sar-popout
|
|
13
8
|
:root-class="rootClass"
|
|
14
9
|
:root-style="rootStyle"
|
|
15
|
-
|
|
16
|
-
@
|
|
17
|
-
:title="title ?? placeholder"
|
|
18
|
-
:show-confirm="showConfirm"
|
|
19
|
-
:confirm-disabled="confirmDisabled"
|
|
20
|
-
@confirm="onConfirm"
|
|
10
|
+
@clear="onClear"
|
|
11
|
+
@click="onInputClick"
|
|
21
12
|
>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
13
|
+
<sar-popout
|
|
14
|
+
:visible="innerVisible"
|
|
15
|
+
:title="title ?? placeholder"
|
|
16
|
+
:show-confirm="showConfirm"
|
|
17
|
+
:confirm-disabled="confirmDisabled"
|
|
18
|
+
:root-class="popoutClass"
|
|
19
|
+
:root-style="popoutStyle"
|
|
20
|
+
@update:visible="onVisible"
|
|
21
|
+
@confirm="onConfirm"
|
|
22
|
+
>
|
|
23
|
+
<template #visible="{ already }">
|
|
24
|
+
<sar-calendar
|
|
25
|
+
v-if="already"
|
|
26
|
+
:model-value="popoutValue"
|
|
27
|
+
@change="onChange"
|
|
28
|
+
:type="type"
|
|
29
|
+
:min="min"
|
|
30
|
+
:max="max"
|
|
31
|
+
:current-date="currentDate"
|
|
32
|
+
:disabled-date="disabledDate"
|
|
33
|
+
:max-days="maxDays"
|
|
34
|
+
:over-max-days="overMaxDays"
|
|
35
|
+
:week-starts-on="weekStartsOn"
|
|
36
|
+
:formatter="formatter"
|
|
37
|
+
:allow-same-day="allowSameDay"
|
|
38
|
+
:several-months="severalMonths"
|
|
39
|
+
:value-format="valueFormat"
|
|
40
|
+
/>
|
|
41
|
+
</template>
|
|
42
|
+
</sar-popout>
|
|
43
|
+
</sar-popout-input>
|
|
42
44
|
</template>
|
|
43
45
|
|
|
44
46
|
<script>
|
|
@@ -72,6 +74,8 @@ export default _defineComponent({
|
|
|
72
74
|
showConfirm: { type: Boolean, required: false },
|
|
73
75
|
outletFormat: { type: String, required: false },
|
|
74
76
|
validateEvent: { type: Boolean, required: false },
|
|
77
|
+
popoutClass: { type: String, required: false },
|
|
78
|
+
popoutStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
75
79
|
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
76
80
|
rootClass: { type: String, required: false },
|
|
77
81
|
type: { type: String, required: false },
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type CalendarProps } from '../calendar/common';
|
|
2
2
|
import { type PopoutInputProps } from '../popout-input/common';
|
|
3
|
+
import { type StyleValue } from 'vue';
|
|
3
4
|
export interface CalendarInputProps extends CalendarProps, Omit<PopoutInputProps, 'modelValue' | 'loading'> {
|
|
4
5
|
visible?: boolean;
|
|
5
6
|
title?: string;
|
|
6
7
|
showConfirm?: boolean;
|
|
7
8
|
outletFormat?: string;
|
|
8
9
|
validateEvent?: boolean;
|
|
10
|
+
popoutClass?: string;
|
|
11
|
+
popoutStyle?: StyleValue;
|
|
9
12
|
}
|
|
10
13
|
export declare const defaultCalendarInputProps: () => {
|
|
11
14
|
type: CalendarProps["type"];
|
|
@@ -5,38 +5,40 @@
|
|
|
5
5
|
:readonly="readonly"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
:clearable="clearable"
|
|
8
|
-
@clear="onClear"
|
|
9
|
-
@click="onInputClick"
|
|
10
8
|
:loading="loading"
|
|
11
|
-
/>
|
|
12
|
-
|
|
13
|
-
<sar-popout
|
|
14
9
|
:root-class="rootClass"
|
|
15
10
|
:root-style="rootStyle"
|
|
16
|
-
|
|
17
|
-
@
|
|
18
|
-
:title="title ?? placeholder"
|
|
19
|
-
:show-confirm="showConfirm"
|
|
20
|
-
@confirm="onConfirm"
|
|
11
|
+
@clear="onClear"
|
|
12
|
+
@click="onInputClick"
|
|
21
13
|
>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
14
|
+
<sar-popout
|
|
15
|
+
:visible="innerVisible"
|
|
16
|
+
:title="title ?? placeholder"
|
|
17
|
+
:show-confirm="showConfirm"
|
|
18
|
+
:root-class="popoutClass"
|
|
19
|
+
:root-style="popoutStyle"
|
|
20
|
+
@confirm="onConfirm"
|
|
21
|
+
@update:visible="onVisible"
|
|
22
|
+
>
|
|
23
|
+
<template #visible="{ already }">
|
|
24
|
+
<sar-cascader
|
|
25
|
+
v-if="already"
|
|
26
|
+
:model-value="popoutValue"
|
|
27
|
+
:options="options"
|
|
28
|
+
:field-keys="fieldKeys"
|
|
29
|
+
:hint-text="hintText"
|
|
30
|
+
:change-on-select="changeOnSelect"
|
|
31
|
+
:label-render="labelRender"
|
|
32
|
+
@select="(option, tabIndex) => $emit('select', option, tabIndex)"
|
|
33
|
+
@change="onChange"
|
|
34
|
+
>
|
|
35
|
+
<template #top="{ tabIndex }">
|
|
36
|
+
<slot name="top" :tab-index="tabIndex"></slot>
|
|
37
|
+
</template>
|
|
38
|
+
</sar-cascader>
|
|
39
|
+
</template>
|
|
40
|
+
</sar-popout>
|
|
41
|
+
</sar-popout-input>
|
|
40
42
|
</template>
|
|
41
43
|
|
|
42
44
|
<script>
|
|
@@ -72,6 +74,8 @@ export default _defineComponent({
|
|
|
72
74
|
title: { type: String, required: false },
|
|
73
75
|
showConfirm: { type: Boolean, required: false },
|
|
74
76
|
validateEvent: { type: Boolean, required: false },
|
|
77
|
+
popoutClass: { type: String, required: false },
|
|
78
|
+
popoutStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
75
79
|
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
76
80
|
rootClass: { type: String, required: false },
|
|
77
81
|
modelValue: { type: [String, Number], required: false },
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { type CascaderProps, type CascaderOption } from '../cascader/common';
|
|
2
2
|
import { type PopoutInputProps } from '../popout-input/common';
|
|
3
|
+
import { type StyleValue } from 'vue';
|
|
3
4
|
export interface CascaderInputProps extends CascaderProps, Omit<PopoutInputProps, 'modelValue'> {
|
|
4
5
|
visible?: boolean;
|
|
5
6
|
title?: string;
|
|
6
7
|
showConfirm?: boolean;
|
|
7
8
|
validateEvent?: boolean;
|
|
9
|
+
popoutClass?: string;
|
|
10
|
+
popoutStyle?: StyleValue;
|
|
8
11
|
}
|
|
9
12
|
export declare const defaultCascaderInputProps: {
|
|
10
13
|
showConfirm: boolean;
|
|
@@ -6,66 +6,68 @@
|
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
:clearable="clearable"
|
|
8
8
|
multiline
|
|
9
|
-
@clear="onClear"
|
|
10
|
-
@click="onInputClick"
|
|
11
|
-
/>
|
|
12
|
-
|
|
13
|
-
<sar-popout
|
|
14
9
|
:root-class="rootClass"
|
|
15
10
|
:root-style="rootStyle"
|
|
16
|
-
|
|
17
|
-
@
|
|
18
|
-
:title="title ?? placeholder"
|
|
19
|
-
@confirm="onConfirm"
|
|
11
|
+
@clear="onClear"
|
|
12
|
+
@click="onInputClick"
|
|
20
13
|
>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
:
|
|
36
|
-
:
|
|
37
|
-
:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
@change="onChange"
|
|
14
|
+
<sar-popout
|
|
15
|
+
:visible="innerVisible"
|
|
16
|
+
:title="title ?? placeholder"
|
|
17
|
+
:root-class="popoutClass"
|
|
18
|
+
:root-style="popoutStyle"
|
|
19
|
+
@update:visible="onVisible"
|
|
20
|
+
@confirm="onConfirm"
|
|
21
|
+
>
|
|
22
|
+
<template #visible="{ already }">
|
|
23
|
+
<view v-if="already" :class="containerClass">
|
|
24
|
+
<scroll-view
|
|
25
|
+
:class="bem.e('scroll')"
|
|
26
|
+
scroll-y
|
|
27
|
+
trap-scroll
|
|
28
|
+
:upper-threshold="0"
|
|
29
|
+
:lower-threshold="0"
|
|
30
|
+
:throttle="false"
|
|
31
|
+
@scroll="onScroll"
|
|
32
|
+
@scrolltoupper="onScrolltoupper"
|
|
33
|
+
@scrolltolower="onScrolltolower"
|
|
42
34
|
>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
>
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
35
|
+
<sar-checkbox-group
|
|
36
|
+
:size="size"
|
|
37
|
+
:type="type"
|
|
38
|
+
:checkedColor="checkedColor"
|
|
39
|
+
:direction="direction"
|
|
40
|
+
:validate-event="false"
|
|
41
|
+
:model-value="popoutValue"
|
|
42
|
+
@change="onChange"
|
|
43
|
+
>
|
|
44
|
+
<template #custom="{ toggle }">
|
|
45
|
+
<sar-list inlaid>
|
|
46
|
+
<sar-list-item
|
|
47
|
+
v-for="option in options"
|
|
48
|
+
:key="getMayPrimitiveOption(option, fieldKeys.value)"
|
|
49
|
+
:title="getMayPrimitiveOption(option, fieldKeys.label)"
|
|
50
|
+
hover
|
|
51
|
+
@click="
|
|
52
|
+
toggle(getMayPrimitiveOption(option, fieldKeys.value))
|
|
53
|
+
"
|
|
54
|
+
>
|
|
55
|
+
<template #value>
|
|
56
|
+
<sar-checkbox
|
|
57
|
+
readonly
|
|
58
|
+
:value="getMayPrimitiveOption(option, fieldKeys.value)"
|
|
59
|
+
:validate-event="false"
|
|
60
|
+
/>
|
|
61
|
+
</template>
|
|
62
|
+
</sar-list-item>
|
|
63
|
+
</sar-list>
|
|
64
|
+
</template>
|
|
65
|
+
</sar-checkbox-group>
|
|
66
|
+
</scroll-view>
|
|
67
|
+
</view>
|
|
68
|
+
</template>
|
|
69
|
+
</sar-popout>
|
|
70
|
+
</sar-popout-input>
|
|
69
71
|
</template>
|
|
70
72
|
|
|
71
73
|
<script>
|
|
@@ -110,6 +112,8 @@ export default _defineComponent({
|
|
|
110
112
|
props: _mergeDefaults({
|
|
111
113
|
visible: { type: Boolean, required: false },
|
|
112
114
|
title: { type: String, required: false },
|
|
115
|
+
popoutClass: { type: String, required: false },
|
|
116
|
+
popoutStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
113
117
|
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
114
118
|
rootClass: { type: String, required: false },
|
|
115
119
|
modelValue: { type: Array, required: false },
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type CheckboxGroupOption, type CheckboxGroupProps } from '../checkbox/common';
|
|
2
2
|
import { type PopoutInputProps } from '../popout-input/common';
|
|
3
|
+
import { type StyleValue } from 'vue';
|
|
3
4
|
export type CheckboxInputOption = CheckboxGroupOption;
|
|
4
5
|
export interface CheckboxInputProps extends CheckboxGroupProps, Omit<PopoutInputProps, 'modelValue'> {
|
|
5
6
|
visible?: boolean;
|
|
6
7
|
title?: string;
|
|
8
|
+
popoutClass?: string;
|
|
9
|
+
popoutStyle?: StyleValue;
|
|
7
10
|
}
|
|
8
11
|
export declare const defaultCheckboxInputProps: () => {
|
|
9
12
|
options: () => never[];
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type DatetimePickerProps } from '../datetime-picker/common';
|
|
2
2
|
import { type PopoutInputProps } from '../popout-input/common';
|
|
3
|
+
import { type StyleValue } from 'vue';
|
|
3
4
|
export interface DatetimePickerInputProps extends DatetimePickerProps, Omit<PopoutInputProps, 'modelValue' | 'loading'> {
|
|
4
5
|
visible?: boolean;
|
|
5
6
|
title?: string;
|
|
6
7
|
outletFormat?: string;
|
|
7
8
|
valueFormat?: string;
|
|
8
9
|
validateEvent?: boolean;
|
|
10
|
+
popoutClass?: string;
|
|
11
|
+
popoutStyle?: StyleValue;
|
|
9
12
|
}
|
|
10
13
|
export declare const defaultDatetimePickerInputProps: () => {
|
|
11
14
|
validateEvent: boolean;
|
|
@@ -5,34 +5,36 @@
|
|
|
5
5
|
:readonly="readonly"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
:clearable="clearable"
|
|
8
|
-
@clear="onClear"
|
|
9
|
-
@click="onInputClick"
|
|
10
|
-
/>
|
|
11
|
-
|
|
12
|
-
<sar-popout
|
|
13
8
|
:root-class="rootClass"
|
|
14
9
|
:root-style="rootStyle"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@update:visible="onVisible"
|
|
18
|
-
:title="title ?? placeholder"
|
|
19
|
-
@confirm="onConfirm"
|
|
20
|
-
@enter="onEnter"
|
|
10
|
+
@clear="onClear"
|
|
11
|
+
@click="onInputClick"
|
|
21
12
|
>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
<sar-popout
|
|
14
|
+
keep-render
|
|
15
|
+
:visible="innerVisible"
|
|
16
|
+
:title="title ?? placeholder"
|
|
17
|
+
:root-class="popoutClass"
|
|
18
|
+
:root-style="popoutStyle"
|
|
19
|
+
@update:visible="onVisible"
|
|
20
|
+
@confirm="onConfirm"
|
|
21
|
+
@enter="onEnter"
|
|
22
|
+
>
|
|
23
|
+
<template #visible="{ already }">
|
|
24
|
+
<sar-datetime-picker
|
|
25
|
+
v-if="already"
|
|
26
|
+
:model-value="popoutValue"
|
|
27
|
+
@change="onChange"
|
|
28
|
+
:type="type"
|
|
29
|
+
:min="min"
|
|
30
|
+
:max="max"
|
|
31
|
+
:filter="filter"
|
|
32
|
+
:formatter="formatter"
|
|
33
|
+
:value-format="valueFormat"
|
|
34
|
+
/>
|
|
35
|
+
</template>
|
|
36
|
+
</sar-popout>
|
|
37
|
+
</sar-popout-input>
|
|
36
38
|
</template>
|
|
37
39
|
|
|
38
40
|
<script>
|
|
@@ -71,6 +73,8 @@ export default _defineComponent({
|
|
|
71
73
|
outletFormat: { type: String, required: false },
|
|
72
74
|
valueFormat: { type: String, required: false },
|
|
73
75
|
validateEvent: { type: Boolean, required: false },
|
|
76
|
+
popoutClass: { type: String, required: false },
|
|
77
|
+
popoutStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
74
78
|
rootStyle: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
|
|
75
79
|
rootClass: { type: String, required: false },
|
|
76
80
|
type: { type: String, required: false },
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type DatetimeRangePickerProps } from '../datetime-range-picker/common';
|
|
2
2
|
import { type PopoutInputProps } from '../popout-input/common';
|
|
3
|
+
import { type StyleValue } from 'vue';
|
|
3
4
|
export interface DatetimeRangePickerInputProps extends DatetimeRangePickerProps, Omit<PopoutInputProps, 'modelValue' | 'loading'> {
|
|
4
5
|
visible?: boolean;
|
|
5
6
|
title?: string;
|
|
6
7
|
outletFormat?: string;
|
|
7
8
|
valueFormat?: string;
|
|
8
9
|
validateEvent?: boolean;
|
|
10
|
+
popoutClass?: string;
|
|
11
|
+
popoutStyle?: StyleValue;
|
|
9
12
|
}
|
|
10
13
|
export declare const defaultDatetimeRangePickerInputProps: () => {
|
|
11
14
|
validateEvent: boolean;
|