@sdata/web-vue 2.2.1 → 2.6.0
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/README.md +1 -1
- package/dist/sd.css +117 -191
- package/dist/sd.min.css +1 -1
- package/es/_components/picker/input-range.vue.d.ts +2 -2
- package/es/_components/transition/expand-transition.vue.d.ts +2 -2
- package/es/_hooks/use-responsive.d.ts +2 -2
- package/es/_hooks/use-theme-mode.d.ts +3 -0
- package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
- package/es/_utils/date.d.ts +10 -9
- package/es/_utils/date.js +23 -7
- package/es/_utils/responsive-observe.d.ts +5 -4
- package/es/_utils/responsive-observe.js +2 -1
- package/es/alert/index.d.ts +3 -3
- package/es/anchor/anchor.vue.d.ts +52 -2
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +75 -15
- package/es/anchor/index.d.ts +78 -3
- package/es/avatar/index.d.ts +20 -20
- package/es/border-beam/border-beam.js +5 -0
- package/es/border-beam/border-beam.vue.d.ts +52 -0
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
- package/es/border-beam/index.d.ts +106 -0
- package/es/border-beam/index.js +10 -0
- package/es/border-beam/pulseDriver.d.ts +2 -0
- package/es/border-beam/pulseDriver.js +74 -0
- package/es/border-beam/style/css.js +2 -0
- package/es/border-beam/style/index.css +21 -0
- package/es/border-beam/style/index.d.ts +2 -0
- package/es/border-beam/style/index.js +2 -0
- package/es/border-beam/style/index.scss +12 -0
- package/es/border-beam/style/token.scss +12 -0
- package/es/border-beam/styles.d.ts +42 -0
- package/es/border-beam/styles.js +3545 -0
- package/es/border-beam/types.d.ts +27 -0
- package/es/button/button.vue.d.ts +16 -3
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +39 -9
- package/es/button/index.d.ts +43 -24
- package/es/button/interface.d.ts +1 -0
- package/es/calendar/components/cell.vue.d.ts +26 -26
- package/es/calendar/components/index.vue.d.ts +1 -1
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/calendar/index.d.ts +5 -5
- package/es/carousel/index.d.ts +3 -3
- package/es/cascader/cascader.vue.d.ts +8 -8
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/collapse/collapse-item.d.ts +5 -5
- package/es/collapse/index.d.ts +3 -3
- package/es/components.d.ts +1 -0
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +10 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/index.d.ts +36 -21
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/date-picker/hooks/use-cell-class-name.d.ts +1 -0
- package/es/date-picker/hooks/use-cell-class-name.js +3 -2
- package/es/date-picker/hooks/use-header-value.d.ts +2 -0
- package/es/date-picker/hooks/use-header-value.js +23 -19
- package/es/date-picker/hooks/use-picker-state.d.ts +2 -0
- package/es/date-picker/hooks/use-picker-state.js +3 -3
- package/es/date-picker/hooks/use-range-header-value.d.ts +2 -0
- package/es/date-picker/hooks/use-range-header-value.js +5 -1
- package/es/date-picker/hooks/use-range-picker-state.d.ts +2 -0
- package/es/date-picker/hooks/use-range-picker-state.js +3 -3
- package/es/date-picker/hooks/use-value-format.d.ts +5 -3
- package/es/date-picker/hooks/use-value-format.js +10 -8
- package/es/date-picker/index.d.ts +1373 -12
- package/es/date-picker/interface.d.ts +7 -0
- package/es/date-picker/panels/body.vue.d.ts +24 -6
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +13 -12
- package/es/date-picker/panels/date/index.vue.d.ts +26 -8
- package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +18 -9
- package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +13 -20
- package/es/date-picker/panels/month/index.vue.d.ts +13 -8
- package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/date-picker/panels/quarter/index.vue.d.ts +13 -8
- package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +2 -6
- package/es/date-picker/panels/week/index.vue.d.ts +13 -1
- package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/date-picker/panels/year/index.vue.d.ts +13 -8
- package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +25 -15
- package/es/date-picker/picker-panel.vue.d.ts +56 -14
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +36 -19
- package/es/date-picker/picker.vue.d.ts +951 -3
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +91 -29
- package/es/date-picker/range-picker-panel.vue.d.ts +77 -15
- package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +52 -28
- package/es/date-picker/range-picker.vue.d.ts +1348 -4
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +114 -34
- package/es/descriptions/index.d.ts +24 -24
- package/es/drawer/drawer.vue.d.ts +5 -5
- package/es/drawer/index.d.ts +15 -15
- package/es/dropdown/dropdown-button.vue.d.ts +4 -4
- package/es/dropdown/index.d.ts +15 -15
- package/es/ellipsis/ellipsis.vue.d.ts +7 -7
- package/es/ellipsis/performant-ellipsis.vue.d.ts +5 -5
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
- package/es/icon/icon-menu/icon-menu.js +5 -0
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-menu/index.js +9 -0
- package/es/image/preview-toolbar.vue.d.ts +2 -3
- package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +2 -3
- package/es/image/preview.vue.d.ts +2 -2
- package/es/index.css +117 -191
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -2
- package/es/index.scss +1 -0
- package/es/input/index.d.ts +7 -7
- package/es/input/input-password.vue.d.ts +3 -3
- package/es/json-form/index.d.ts +9 -9
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form.vue.d.ts +3 -3
- package/es/layout/content.vue.d.ts +2 -2
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/context.d.ts +12 -9
- package/es/layout/context.js +11 -3
- package/es/layout/footer.vue.d.ts +2 -2
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/header.vue.d.ts +3 -30
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
- package/es/layout/hooks/use-has-sider.d.ts +2 -0
- package/es/layout/hooks/use-has-sider.js +38 -0
- package/es/layout/index.d.ts +91 -380
- package/es/layout/index.js +2 -2
- package/es/layout/interface.d.ts +12 -46
- package/es/layout/layout.vue.d.ts +4 -2
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
- package/es/layout/sider.vue.d.ts +47 -183
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +191 -370
- package/es/layout/style/index.css +112 -190
- package/es/layout/style/index.scss +127 -239
- package/es/layout/style/token.scss +46 -26
- package/es/link/index.d.ts +6 -6
- package/es/list/index.d.ts +18 -18
- package/es/locale/interface.d.ts +2 -0
- package/es/locale/lang/ar-eg.js +46 -0
- package/es/locale/lang/de-de.js +46 -0
- package/es/locale/lang/es-es.js +46 -0
- package/es/locale/lang/fr-fr.js +46 -0
- package/es/locale/lang/id-id.js +46 -0
- package/es/locale/lang/it-it.js +46 -0
- package/es/locale/lang/km-kh.js +46 -0
- package/es/locale/lang/ko-kr.js +46 -0
- package/es/locale/lang/ms-my.js +46 -0
- package/es/locale/lang/pt-pt.js +46 -0
- package/es/locale/lang/th-th.js +46 -0
- package/es/locale/lang/vi-vn.js +46 -0
- package/es/mention/mention.js +2 -0
- package/es/menu/base-menu.vue.d.ts +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
- package/es/menu/item.d.ts +1 -1
- package/es/menu/menu.d.ts +12 -12
- package/es/menu/menu.js +3 -3
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/modal/index.d.ts +22 -20
- package/es/modal/index.js +47 -11
- package/es/modal/interface.d.ts +5 -0
- package/es/modal/modal.vue.d.ts +4 -4
- package/es/popconfirm/index.d.ts +12 -12
- package/es/popover/index.d.ts +12 -12
- package/es/progress/index.d.ts +6 -6
- package/es/qr-code/index.d.ts +3 -3
- package/es/radio/radio.d.ts +3 -3
- package/es/resize-box/resize-box.vue.d.ts +4 -4
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
- package/es/result/index.d.ts +3 -3
- package/es/scrollbar/style/index.css +1 -1
- package/es/scrollbar/style/index.scss +4 -1
- package/es/sd-vue.js +3 -1
- package/es/select/select.d.ts +17 -17
- package/es/slider/index.d.ts +3 -3
- package/es/split/split.vue.d.ts +4 -4
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/steps/index.d.ts +6 -6
- package/es/tabs/index.d.ts +6 -6
- package/es/tag/index.d.ts +6 -6
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +6 -6
- package/es/time-picker/time-picker.vue.d.ts +2 -2
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/timeline.d.ts +1 -1
- package/es/tooltip/index.d.ts +3 -3
- package/es/tour/index.d.ts +3 -3
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +6 -21
- package/es/tree/expand-transition.vue.d.ts +2 -2
- package/es/tree/node-switcher.vue.d.ts +1 -12
- package/es/tree/node-switcher.vue_vue_type_script_lang.js +1 -5
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
- package/es/tree-select/tree-select.vue.d.ts +9 -9
- package/es/trigger/trigger.js +2 -1
- package/es/verification-code/verification-code.js +17 -7
- package/json/vetur-attributes.json +76 -156
- package/json/vetur-tags.json +26 -44
- package/json/web-types.json +150 -304
- package/package.json +5 -5
- package/es/_components/render-function.d.ts +0 -14
- package/es/_components/render-function.js +0 -14
- package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
- package/es/layout/utils.d.ts +0 -1
- package/es/layout/utils.js +0 -11
|
@@ -10,7 +10,7 @@ import useState from "../_hooks/use-state.js";
|
|
|
10
10
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
11
11
|
import Trigger from "../trigger/index.js";
|
|
12
12
|
import { useI18n } from "../locale/index.js";
|
|
13
|
-
import {
|
|
13
|
+
import { getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
14
14
|
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
15
15
|
import IconCalendar from "../icon/icon-calendar/index.js";
|
|
16
16
|
import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
|
|
@@ -24,9 +24,12 @@ import useRangeHeaderValue from "./hooks/use-range-header-value.js";
|
|
|
24
24
|
import useRangePickerState from "./hooks/use-range-picker-state.js";
|
|
25
25
|
import useRangeTimePickerValue from "./hooks/use-range-time-picker-value.js";
|
|
26
26
|
import range_picker_panel_default from "./range-picker-panel.js";
|
|
27
|
-
import { computed, createBlock, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, nextTick, normalizeProps, onUnmounted, openBlock, reactive, ref, renderSlot, toDisplayString, toRefs, unref, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
27
|
+
import { computed, createBlock, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, nextTick, normalizeProps, onUnmounted, openBlock, reactive, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRefs, unref, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
28
28
|
//#region components/date-picker/range-picker.vue?vue&type=script&setup=true&lang.ts
|
|
29
|
-
var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
29
|
+
var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
30
|
+
name: "RangePicker",
|
|
31
|
+
inheritAttrs: false
|
|
32
|
+
}), {}, {
|
|
30
33
|
__name: "range-picker",
|
|
31
34
|
props: {
|
|
32
35
|
/**
|
|
@@ -97,6 +100,14 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
97
100
|
* */
|
|
98
101
|
timePickerProps: { type: Object },
|
|
99
102
|
/**
|
|
103
|
+
* @zh 原生输入框属性
|
|
104
|
+
* @en Native input attributes
|
|
105
|
+
*/
|
|
106
|
+
inputProps: {
|
|
107
|
+
type: Array,
|
|
108
|
+
default: () => []
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
100
111
|
* @zh 提示文案
|
|
101
112
|
* @en Prompt copy
|
|
102
113
|
* */
|
|
@@ -125,6 +136,22 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
125
136
|
type: Boolean,
|
|
126
137
|
default: true
|
|
127
138
|
},
|
|
139
|
+
/**
|
|
140
|
+
* @zh 是否固定时间
|
|
141
|
+
* @en Is it a fixed time?
|
|
142
|
+
*/
|
|
143
|
+
fixedTime: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: false
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* @zh 当重新选择范围的时候,会清空之前的范围重新进行选择
|
|
149
|
+
* @en When reselecting the range, the previous range will be cleared for next selection
|
|
150
|
+
*/
|
|
151
|
+
clearRangeOnReselect: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: false
|
|
154
|
+
},
|
|
128
155
|
popupContainer: { type: [String, Object] },
|
|
129
156
|
locale: { type: Object },
|
|
130
157
|
hideTrigger: { type: Boolean },
|
|
@@ -154,12 +181,27 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
154
181
|
defaultPopupVisible: { type: Boolean },
|
|
155
182
|
triggerProps: { type: Object },
|
|
156
183
|
unmountOnClose: { type: Boolean },
|
|
184
|
+
/**
|
|
185
|
+
* @zh 面板隐藏不在当前时间范围的灰色日期
|
|
186
|
+
* @en Hide gray dates that are not in the current time range in the panel
|
|
187
|
+
*/
|
|
188
|
+
hideNotInViewDates: { type: Boolean },
|
|
157
189
|
previewShortcut: {
|
|
158
190
|
type: Boolean,
|
|
159
191
|
default: true
|
|
160
192
|
},
|
|
161
193
|
showConfirmBtn: { type: Boolean },
|
|
162
194
|
/**
|
|
195
|
+
* @zh 设置时区偏移,如果需要 utc 时间则设置为 0。
|
|
196
|
+
* @en Set the timezone offset. Set to 0 for UTC time.
|
|
197
|
+
*/
|
|
198
|
+
utcOffset: { type: Number },
|
|
199
|
+
/**
|
|
200
|
+
* @zh 设置时区,如果设置了 `utcOffset`,则以 `utcOffset` 为准。
|
|
201
|
+
* @en Set timezone. If `utcOffset` is set, `utcOffset` takes precedence.
|
|
202
|
+
*/
|
|
203
|
+
timezone: { type: String },
|
|
204
|
+
/**
|
|
163
205
|
* @zh 是否禁止键盘输入日期
|
|
164
206
|
* @en Whether input is disabled with the keyboard.
|
|
165
207
|
* @version 2.43.0
|
|
@@ -192,8 +234,15 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
192
234
|
setup(__props, { emit: __emit }) {
|
|
193
235
|
const props = __props;
|
|
194
236
|
const emit = __emit;
|
|
237
|
+
/**
|
|
238
|
+
* @zh 自定义渲染面板
|
|
239
|
+
* @en Customize panel rendering
|
|
240
|
+
* @slot panelRender
|
|
241
|
+
* @binding {Component} component
|
|
242
|
+
* @binding {object} props
|
|
243
|
+
*/
|
|
195
244
|
const slots = useSlots();
|
|
196
|
-
const { mode, showTime, format, modelValue, defaultValue, popupVisible, defaultPopupVisible, placeholder, timePickerProps, disabled, disabledDate, disabledTime, locale, pickerValue, defaultPickerValue, valueFormat, size, error, dayStartOfWeek, shortcuts, shortcutsPosition, exchangeTime, previewShortcut, showConfirmBtn, allowClear, abbreviation } = toRefs(props);
|
|
245
|
+
const { mode, showTime, format, modelValue, defaultValue, popupVisible, defaultPopupVisible, placeholder, timePickerProps, disabled, disabledDate, disabledTime, locale, pickerValue, defaultPickerValue, valueFormat, size, error, dayStartOfWeek, shortcuts, shortcutsPosition, exchangeTime, fixedTime, previewShortcut, showConfirmBtn, allowClear, abbreviation, utcOffset, timezone, clearRangeOnReselect } = toRefs(props);
|
|
197
246
|
const { mergedValue: mergedDayStartOfWeek } = useConfigProviderProp(dayStartOfWeek, {
|
|
198
247
|
propNames: ["dayStartOfWeek", "day-start-of-week"],
|
|
199
248
|
getGlobalValue: (configProviderCtx) => {
|
|
@@ -289,7 +338,9 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
289
338
|
const { value: selectedValue, setValue: setSelectedValue } = useRangePickerState(reactive({
|
|
290
339
|
modelValue,
|
|
291
340
|
defaultValue,
|
|
292
|
-
format: parseValueFormat
|
|
341
|
+
format: parseValueFormat,
|
|
342
|
+
utcOffset,
|
|
343
|
+
timezone
|
|
293
344
|
}));
|
|
294
345
|
const [processValue, setProcessValue] = useState();
|
|
295
346
|
const [previewValue, setPreviewValue] = useState();
|
|
@@ -302,10 +353,6 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
302
353
|
return (_ref = (_previewValue$value = previewValue.value) !== null && _previewValue$value !== void 0 ? _previewValue$value : processValue.value) !== null && _ref !== void 0 ? _ref : selectedValue.value;
|
|
303
354
|
});
|
|
304
355
|
const [inputValue, setInputValue] = useState();
|
|
305
|
-
const displayInputValue = computed(() => {
|
|
306
|
-
var _inputValue$value;
|
|
307
|
-
return (_inputValue$value = inputValue.value) === null || _inputValue$value === void 0 ? void 0 : _inputValue$value.map((item) => item !== null && item !== void 0 ? item : "");
|
|
308
|
-
});
|
|
309
356
|
const startHeaderMode = ref();
|
|
310
357
|
const endHeaderMode = ref();
|
|
311
358
|
const [panelVisible, setLocalPanelVisible] = useMergeState(defaultPopupVisible.value, reactive({ value: popupVisible }));
|
|
@@ -324,10 +371,13 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
324
371
|
defaultValue: defaultPickerValue,
|
|
325
372
|
selectedValue: panelValue,
|
|
326
373
|
format: parseValueFormat,
|
|
374
|
+
utcOffset,
|
|
375
|
+
timezone,
|
|
327
376
|
onChange: (newVal) => {
|
|
328
|
-
const returnValue = getReturnRangeValue(newVal, returnValueFormat.value);
|
|
329
|
-
const
|
|
330
|
-
|
|
377
|
+
const returnValue = getReturnRangeValue(newVal, returnValueFormat.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value);
|
|
378
|
+
const localValue = newVal.map((item) => toLocal(item, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value));
|
|
379
|
+
const formattedValue = getFormattedValue(localValue, parseValueFormat.value);
|
|
380
|
+
emit("picker-value-change", returnValue, getDateValue(localValue), formattedValue);
|
|
331
381
|
emit("update:pickerValue", returnValue);
|
|
332
382
|
}
|
|
333
383
|
}));
|
|
@@ -351,7 +401,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
351
401
|
setHeaderValue([startHeaderValue.value, newEndValue]);
|
|
352
402
|
endHeaderMode.value = void 0;
|
|
353
403
|
}
|
|
354
|
-
const footerValue = ref([panelValue.value[0] || getNow(), panelValue.value[1] || getNow()]);
|
|
404
|
+
const footerValue = ref([panelValue.value[0] || getNow(utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value), panelValue.value[1] || getNow(utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value)]);
|
|
355
405
|
watch(panelValue, () => {
|
|
356
406
|
const [value0, value1] = panelValue.value;
|
|
357
407
|
footerValue.value[0] = value0 || footerValue.value[0];
|
|
@@ -392,9 +442,10 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
392
442
|
}
|
|
393
443
|
});
|
|
394
444
|
function emitChange(value, emitOk) {
|
|
395
|
-
const
|
|
396
|
-
const
|
|
397
|
-
const
|
|
445
|
+
const localValue = value === null || value === void 0 ? void 0 : value.map((item) => item ? toLocal(item, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0);
|
|
446
|
+
const returnValue = value ? getReturnRangeValue(value, returnValueFormat.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0;
|
|
447
|
+
const formattedValue = getFormattedValue(localValue, parseValueFormat.value);
|
|
448
|
+
const dateValue = getDateValue(localValue);
|
|
398
449
|
if (isValueChange(value, selectedValue.value)) {
|
|
399
450
|
var _eventHandlers$value, _eventHandlers$value$;
|
|
400
451
|
emit("update:modelValue", returnValue);
|
|
@@ -406,8 +457,8 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
406
457
|
}
|
|
407
458
|
}
|
|
408
459
|
function getSortedDayjsArrayByExchangeTimeOrNot(newValue) {
|
|
409
|
-
let sortedValue = getSortedDayjsArray(newValue);
|
|
410
|
-
if (hasTime.value && !mergedExchangeTime.value) sortedValue = [getMergedOpValue(sortedValue[0], newValue[0]), getMergedOpValue(sortedValue[1], newValue[1])];
|
|
460
|
+
let sortedValue = getSortedDayjsArray(newValue, fixedTime.value);
|
|
461
|
+
if (hasTime.value && !mergedExchangeTime.value && !fixedTime.value) sortedValue = [getMergedOpValue(sortedValue[0], newValue[0]), getMergedOpValue(sortedValue[1], newValue[1])];
|
|
411
462
|
return sortedValue;
|
|
412
463
|
}
|
|
413
464
|
function confirm(value, showPanel, emitOk) {
|
|
@@ -424,9 +475,10 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
424
475
|
if (isBoolean(showPanel)) setPanelVisible(showPanel);
|
|
425
476
|
}
|
|
426
477
|
function emitSelectEvent(value) {
|
|
427
|
-
const
|
|
428
|
-
const
|
|
429
|
-
const
|
|
478
|
+
const localValue = value.map((item) => item ? toLocal(item, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0);
|
|
479
|
+
const returnValue = getReturnRangeValue(value, returnValueFormat.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value);
|
|
480
|
+
const formattedValue = getFormattedValue(localValue, parseValueFormat.value);
|
|
481
|
+
const dateValue = getDateValue(localValue);
|
|
430
482
|
emitRangeEvent("select", returnValue !== null && returnValue !== void 0 ? returnValue : [], dateValue !== null && dateValue !== void 0 ? dateValue : [], formattedValue !== null && formattedValue !== void 0 ? formattedValue : []);
|
|
431
483
|
}
|
|
432
484
|
function select(value, options) {
|
|
@@ -452,7 +504,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
452
504
|
}
|
|
453
505
|
function getMergedOpValue(date, time) {
|
|
454
506
|
if (!hasTime.value) return date;
|
|
455
|
-
return mergeValueWithTime(getNow(), date, time);
|
|
507
|
+
return mergeValueWithTime(getNow(utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value), date, time);
|
|
456
508
|
}
|
|
457
509
|
function onPanelVisibleChange(visible) {
|
|
458
510
|
setPanelVisible(visible);
|
|
@@ -467,7 +519,8 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
467
519
|
}
|
|
468
520
|
function getValueToModify(isTime = false) {
|
|
469
521
|
if (isNextDisabled.value) return [...selectedValue.value];
|
|
470
|
-
if (processValue.value) return isTime || !isCompleteRangeValue(processValue.value) ? [...processValue.value] : [];
|
|
522
|
+
if (processValue.value) return isTime || !isCompleteRangeValue(processValue.value) || !clearRangeOnReselect.value ? [...processValue.value] : [];
|
|
523
|
+
if (!isTime && !clearRangeOnReselect.value) return [...selectedValue.value];
|
|
471
524
|
return isTime ? [...selectedValue.value] : [];
|
|
472
525
|
}
|
|
473
526
|
function onPanelCellClick(date) {
|
|
@@ -534,7 +587,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
534
587
|
newInputValue[focusedIndex.value] = targetValue;
|
|
535
588
|
setInputValue(newInputValue);
|
|
536
589
|
if (!isValidInputValue(targetValue, computedFormat.value)) return;
|
|
537
|
-
const targetValueDayjs =
|
|
590
|
+
const targetValueDayjs = getDayjsValue(targetValue, computedFormat.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value);
|
|
538
591
|
if (isDisabledDate(targetValueDayjs, focusedIndex.value === 0 ? "start" : "end")) return;
|
|
539
592
|
const newValue = isArray(panelValue.value) ? [...panelValue.value] : [];
|
|
540
593
|
newValue[focusedIndex.value] = targetValueDayjs;
|
|
@@ -563,24 +616,26 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
563
616
|
});
|
|
564
617
|
const rangePanelProps = computed(() => _objectSpread2(_objectSpread2({}, pick(props, [
|
|
565
618
|
"mode",
|
|
619
|
+
"showTime",
|
|
620
|
+
"shortcuts",
|
|
621
|
+
"shortcutsPosition",
|
|
622
|
+
"dayStartOfWeek",
|
|
566
623
|
"disabledDate",
|
|
567
624
|
"disabledTime",
|
|
568
625
|
"hideTrigger",
|
|
569
|
-
"
|
|
626
|
+
"abbreviation",
|
|
627
|
+
"hideNotInViewDates",
|
|
628
|
+
"utcOffset",
|
|
629
|
+
"timezone"
|
|
570
630
|
])), {}, {
|
|
571
|
-
shortcuts: mergedShortcuts.value,
|
|
572
|
-
shortcutsPosition: mergedShortcutsPosition.value,
|
|
573
|
-
dayStartOfWeek: mergedDayStartOfWeek.value,
|
|
574
|
-
abbreviation: mergedAbbreviation.value,
|
|
575
631
|
prefixCls,
|
|
632
|
+
now: getNow(utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value),
|
|
576
633
|
format: parseValueFormat.value,
|
|
577
634
|
value: panelValue.value,
|
|
578
635
|
showConfirmBtn: needConfirm.value,
|
|
579
636
|
confirmBtnDisabled: confirmBtnDisabled.value,
|
|
580
637
|
timePickerValue: timePickerValue.value,
|
|
581
638
|
timePickerProps: computedTimePickerProps.value,
|
|
582
|
-
extra: slots.extra,
|
|
583
|
-
dateRender: slots.cell,
|
|
584
639
|
startHeaderProps,
|
|
585
640
|
endHeaderProps,
|
|
586
641
|
footerValue: footerValue.value,
|
|
@@ -616,7 +671,18 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
616
671
|
"popup-container": __props.popupContainer,
|
|
617
672
|
onPopupVisibleChange: onPanelVisibleChange
|
|
618
673
|
}), {
|
|
619
|
-
content: withCtx(() => [
|
|
674
|
+
content: withCtx(() => [renderSlot(_ctx.$slots, "panelRender", {
|
|
675
|
+
component: range_picker_panel_default,
|
|
676
|
+
props: rangePanelProps.value
|
|
677
|
+
}, () => [(openBlock(), createBlock(resolveDynamicComponent(range_picker_panel_default), normalizeProps(guardReactiveProps(rangePanelProps.value)), createSlots({ _: 2 }, [_ctx.$slots.extra ? {
|
|
678
|
+
name: "extra",
|
|
679
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "extra")]),
|
|
680
|
+
key: "0"
|
|
681
|
+
} : void 0, _ctx.$slots.cell ? {
|
|
682
|
+
name: "cell",
|
|
683
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
|
|
684
|
+
key: "1"
|
|
685
|
+
} : void 0]), 1040))])]),
|
|
620
686
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(input_range_default, mergeProps({
|
|
621
687
|
ref_key: "refInput",
|
|
622
688
|
ref: refInput
|
|
@@ -631,7 +697,8 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
631
697
|
readonly: __props.readonly || __props.disabledInput,
|
|
632
698
|
"allow-clear": unref(mergedAllowClear) && !__props.readonly,
|
|
633
699
|
placeholder: computedPlaceholder.value,
|
|
634
|
-
"input-
|
|
700
|
+
"input-props": __props.inputProps,
|
|
701
|
+
"input-value": unref(inputValue),
|
|
635
702
|
value: panelValue.value,
|
|
636
703
|
format: unref(computedFormat),
|
|
637
704
|
onClear: onInputClear,
|
|
@@ -655,6 +722,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
655
722
|
"readonly",
|
|
656
723
|
"allow-clear",
|
|
657
724
|
"placeholder",
|
|
725
|
+
"input-props",
|
|
658
726
|
"input-value",
|
|
659
727
|
"value",
|
|
660
728
|
"format"
|
|
@@ -666,7 +734,19 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
666
734
|
"disabled",
|
|
667
735
|
"popup-visible",
|
|
668
736
|
"popup-container"
|
|
669
|
-
])) : (
|
|
737
|
+
])) : renderSlot(_ctx.$slots, "panelRender", {
|
|
738
|
+
key: 1,
|
|
739
|
+
component: range_picker_panel_default,
|
|
740
|
+
props: rangePanelProps.value
|
|
741
|
+
}, () => [(openBlock(), createBlock(resolveDynamicComponent(range_picker_panel_default), normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, rangePanelProps.value), _ctx.$attrs))), createSlots({ _: 2 }, [_ctx.$slots.extra ? {
|
|
742
|
+
name: "extra",
|
|
743
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "extra")]),
|
|
744
|
+
key: "0"
|
|
745
|
+
} : void 0, _ctx.$slots.cell ? {
|
|
746
|
+
name: "cell",
|
|
747
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
|
|
748
|
+
key: "1"
|
|
749
|
+
} : void 0]), 1040))]);
|
|
670
750
|
};
|
|
671
751
|
}
|
|
672
752
|
}));
|
|
@@ -9,7 +9,7 @@ declare const Descriptions: {
|
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
11
|
column: {
|
|
12
|
-
type: import("vue").PropType<number | import("
|
|
12
|
+
type: import("vue").PropType<number | import("../index.ts").ResponsiveValue>;
|
|
13
13
|
default: number;
|
|
14
14
|
};
|
|
15
15
|
title: StringConstructor;
|
|
@@ -18,14 +18,14 @@ declare const Descriptions: {
|
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
20
|
align: {
|
|
21
|
-
type: import("vue").PropType<import("../_utils/constant").TextAlign | {
|
|
22
|
-
label?: import("../_utils/constant").TextAlign;
|
|
23
|
-
value?: import("../_utils/constant").TextAlign;
|
|
21
|
+
type: import("vue").PropType<import("../_utils/constant.ts").TextAlign | {
|
|
22
|
+
label?: import("../_utils/constant.ts").TextAlign;
|
|
23
|
+
value?: import("../_utils/constant.ts").TextAlign;
|
|
24
24
|
}>;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
size: {
|
|
28
|
-
type: import("vue").PropType<import("
|
|
28
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
29
29
|
};
|
|
30
30
|
bordered: {
|
|
31
31
|
type: BooleanConstructor;
|
|
@@ -43,13 +43,13 @@ declare const Descriptions: {
|
|
|
43
43
|
};
|
|
44
44
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
45
45
|
data: import("./interface").DescData[];
|
|
46
|
-
column: number | import("
|
|
46
|
+
column: number | import("../index.ts").ResponsiveValue;
|
|
47
47
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
48
48
|
bordered: boolean;
|
|
49
49
|
tableLayout: "fixed" | "auto";
|
|
50
50
|
align: "left" | "right" | "center" | {
|
|
51
|
-
label?: import("../_utils/constant").TextAlign;
|
|
52
|
-
value?: import("../_utils/constant").TextAlign;
|
|
51
|
+
label?: import("../_utils/constant.ts").TextAlign;
|
|
52
|
+
value?: import("../_utils/constant.ts").TextAlign;
|
|
53
53
|
};
|
|
54
54
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
55
55
|
P: {};
|
|
@@ -64,7 +64,7 @@ declare const Descriptions: {
|
|
|
64
64
|
default: () => never[];
|
|
65
65
|
};
|
|
66
66
|
column: {
|
|
67
|
-
type: import("vue").PropType<number | import("
|
|
67
|
+
type: import("vue").PropType<number | import("../index.ts").ResponsiveValue>;
|
|
68
68
|
default: number;
|
|
69
69
|
};
|
|
70
70
|
title: StringConstructor;
|
|
@@ -73,14 +73,14 @@ declare const Descriptions: {
|
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
75
|
align: {
|
|
76
|
-
type: import("vue").PropType<import("../_utils/constant").TextAlign | {
|
|
77
|
-
label?: import("../_utils/constant").TextAlign;
|
|
78
|
-
value?: import("../_utils/constant").TextAlign;
|
|
76
|
+
type: import("vue").PropType<import("../_utils/constant.ts").TextAlign | {
|
|
77
|
+
label?: import("../_utils/constant.ts").TextAlign;
|
|
78
|
+
value?: import("../_utils/constant.ts").TextAlign;
|
|
79
79
|
}>;
|
|
80
80
|
default: string;
|
|
81
81
|
};
|
|
82
82
|
size: {
|
|
83
|
-
type: import("vue").PropType<import("
|
|
83
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
84
84
|
};
|
|
85
85
|
bordered: {
|
|
86
86
|
type: BooleanConstructor;
|
|
@@ -98,13 +98,13 @@ declare const Descriptions: {
|
|
|
98
98
|
};
|
|
99
99
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
100
100
|
data: import("./interface").DescData[];
|
|
101
|
-
column: number | import("
|
|
101
|
+
column: number | import("../index.ts").ResponsiveValue;
|
|
102
102
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
103
103
|
bordered: boolean;
|
|
104
104
|
tableLayout: "fixed" | "auto";
|
|
105
105
|
align: "left" | "right" | "center" | {
|
|
106
|
-
label?: import("../_utils/constant").TextAlign;
|
|
107
|
-
value?: import("../_utils/constant").TextAlign;
|
|
106
|
+
label?: import("../_utils/constant.ts").TextAlign;
|
|
107
|
+
value?: import("../_utils/constant.ts").TextAlign;
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
__isFragment?: never;
|
|
@@ -116,7 +116,7 @@ declare const Descriptions: {
|
|
|
116
116
|
default: () => never[];
|
|
117
117
|
};
|
|
118
118
|
column: {
|
|
119
|
-
type: import("vue").PropType<number | import("
|
|
119
|
+
type: import("vue").PropType<number | import("../index.ts").ResponsiveValue>;
|
|
120
120
|
default: number;
|
|
121
121
|
};
|
|
122
122
|
title: StringConstructor;
|
|
@@ -125,14 +125,14 @@ declare const Descriptions: {
|
|
|
125
125
|
default: string;
|
|
126
126
|
};
|
|
127
127
|
align: {
|
|
128
|
-
type: import("vue").PropType<import("../_utils/constant").TextAlign | {
|
|
129
|
-
label?: import("../_utils/constant").TextAlign;
|
|
130
|
-
value?: import("../_utils/constant").TextAlign;
|
|
128
|
+
type: import("vue").PropType<import("../_utils/constant.ts").TextAlign | {
|
|
129
|
+
label?: import("../_utils/constant.ts").TextAlign;
|
|
130
|
+
value?: import("../_utils/constant.ts").TextAlign;
|
|
131
131
|
}>;
|
|
132
132
|
default: string;
|
|
133
133
|
};
|
|
134
134
|
size: {
|
|
135
|
-
type: import("vue").PropType<import("
|
|
135
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
136
136
|
};
|
|
137
137
|
bordered: {
|
|
138
138
|
type: BooleanConstructor;
|
|
@@ -150,13 +150,13 @@ declare const Descriptions: {
|
|
|
150
150
|
};
|
|
151
151
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
152
152
|
data: import("./interface").DescData[];
|
|
153
|
-
column: number | import("
|
|
153
|
+
column: number | import("../index.ts").ResponsiveValue;
|
|
154
154
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
155
155
|
bordered: boolean;
|
|
156
156
|
tableLayout: "fixed" | "auto";
|
|
157
157
|
align: "left" | "right" | "center" | {
|
|
158
|
-
label?: import("../_utils/constant").TextAlign;
|
|
159
|
-
value?: import("../_utils/constant").TextAlign;
|
|
158
|
+
label?: import("../_utils/constant.ts").TextAlign;
|
|
159
|
+
value?: import("../_utils/constant.ts").TextAlign;
|
|
160
160
|
};
|
|
161
161
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
162
162
|
DescriptionsItem: {
|
|
@@ -2,15 +2,15 @@ import type { CSSProperties, PropType, StyleValue } from 'vue';
|
|
|
2
2
|
import type { EllipsisTooltipProps } from '../ellipsis';
|
|
3
3
|
import { ButtonProps } from '../button';
|
|
4
4
|
import { type DrawerPlacements } from './utils';
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_28: {}, __VLS_36: {}, __VLS_49: {}, __VLS_51: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
header?: (props: typeof
|
|
7
|
+
header?: (props: typeof __VLS_28) => any;
|
|
8
8
|
} & {
|
|
9
|
-
title?: (props: typeof
|
|
9
|
+
title?: (props: typeof __VLS_36) => any;
|
|
10
10
|
} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_49) => any;
|
|
12
12
|
} & {
|
|
13
|
-
footer?: (props: typeof
|
|
13
|
+
footer?: (props: typeof __VLS_51) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
16
|
visible: {
|
package/es/drawer/index.d.ts
CHANGED
|
@@ -13,13 +13,13 @@ declare const Drawer: {
|
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
placement: {
|
|
16
|
-
type: import("vue").PropType<import("./utils").DrawerPlacements>;
|
|
16
|
+
type: import("vue").PropType<import("./utils.ts").DrawerPlacements>;
|
|
17
17
|
default: string;
|
|
18
18
|
validator: (value: any) => boolean;
|
|
19
19
|
};
|
|
20
20
|
title: StringConstructor;
|
|
21
21
|
titleEllipsisTooltip: {
|
|
22
|
-
type: import("vue").PropType<boolean | import("
|
|
22
|
+
type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
25
|
mask: {
|
|
@@ -41,10 +41,10 @@ declare const Drawer: {
|
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
43
|
okButtonProps: {
|
|
44
|
-
type: import("vue").PropType<import("
|
|
44
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
45
45
|
};
|
|
46
46
|
cancelButtonProps: {
|
|
47
|
-
type: import("vue").PropType<import("
|
|
47
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
48
48
|
};
|
|
49
49
|
unmountOnClose: BooleanConstructor;
|
|
50
50
|
width: {
|
|
@@ -123,7 +123,7 @@ declare const Drawer: {
|
|
|
123
123
|
closable: boolean;
|
|
124
124
|
width: string | number;
|
|
125
125
|
placement: "top" | "bottom" | "left" | "right";
|
|
126
|
-
titleEllipsisTooltip: boolean | import("
|
|
126
|
+
titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
|
|
127
127
|
maskClosable: boolean;
|
|
128
128
|
okLoading: boolean;
|
|
129
129
|
escToClose: boolean;
|
|
@@ -145,13 +145,13 @@ declare const Drawer: {
|
|
|
145
145
|
default: boolean;
|
|
146
146
|
};
|
|
147
147
|
placement: {
|
|
148
|
-
type: import("vue").PropType<import("./utils").DrawerPlacements>;
|
|
148
|
+
type: import("vue").PropType<import("./utils.ts").DrawerPlacements>;
|
|
149
149
|
default: string;
|
|
150
150
|
validator: (value: any) => boolean;
|
|
151
151
|
};
|
|
152
152
|
title: StringConstructor;
|
|
153
153
|
titleEllipsisTooltip: {
|
|
154
|
-
type: import("vue").PropType<boolean | import("
|
|
154
|
+
type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
|
|
155
155
|
default: boolean;
|
|
156
156
|
};
|
|
157
157
|
mask: {
|
|
@@ -173,10 +173,10 @@ declare const Drawer: {
|
|
|
173
173
|
default: boolean;
|
|
174
174
|
};
|
|
175
175
|
okButtonProps: {
|
|
176
|
-
type: import("vue").PropType<import("
|
|
176
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
177
177
|
};
|
|
178
178
|
cancelButtonProps: {
|
|
179
|
-
type: import("vue").PropType<import("
|
|
179
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
180
180
|
};
|
|
181
181
|
unmountOnClose: BooleanConstructor;
|
|
182
182
|
width: {
|
|
@@ -247,7 +247,7 @@ declare const Drawer: {
|
|
|
247
247
|
closable: boolean;
|
|
248
248
|
width: string | number;
|
|
249
249
|
placement: "top" | "bottom" | "left" | "right";
|
|
250
|
-
titleEllipsisTooltip: boolean | import("
|
|
250
|
+
titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
|
|
251
251
|
maskClosable: boolean;
|
|
252
252
|
okLoading: boolean;
|
|
253
253
|
escToClose: boolean;
|
|
@@ -266,13 +266,13 @@ declare const Drawer: {
|
|
|
266
266
|
default: boolean;
|
|
267
267
|
};
|
|
268
268
|
placement: {
|
|
269
|
-
type: import("vue").PropType<import("./utils").DrawerPlacements>;
|
|
269
|
+
type: import("vue").PropType<import("./utils.ts").DrawerPlacements>;
|
|
270
270
|
default: string;
|
|
271
271
|
validator: (value: any) => boolean;
|
|
272
272
|
};
|
|
273
273
|
title: StringConstructor;
|
|
274
274
|
titleEllipsisTooltip: {
|
|
275
|
-
type: import("vue").PropType<boolean | import("
|
|
275
|
+
type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
|
|
276
276
|
default: boolean;
|
|
277
277
|
};
|
|
278
278
|
mask: {
|
|
@@ -294,10 +294,10 @@ declare const Drawer: {
|
|
|
294
294
|
default: boolean;
|
|
295
295
|
};
|
|
296
296
|
okButtonProps: {
|
|
297
|
-
type: import("vue").PropType<import("
|
|
297
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
298
298
|
};
|
|
299
299
|
cancelButtonProps: {
|
|
300
|
-
type: import("vue").PropType<import("
|
|
300
|
+
type: import("vue").PropType<import("../index.ts").ButtonProps>;
|
|
301
301
|
};
|
|
302
302
|
unmountOnClose: BooleanConstructor;
|
|
303
303
|
width: {
|
|
@@ -376,7 +376,7 @@ declare const Drawer: {
|
|
|
376
376
|
closable: boolean;
|
|
377
377
|
width: string | number;
|
|
378
378
|
placement: "top" | "bottom" | "left" | "right";
|
|
379
|
-
titleEllipsisTooltip: boolean | import("
|
|
379
|
+
titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
|
|
380
380
|
maskClosable: boolean;
|
|
381
381
|
okLoading: boolean;
|
|
382
382
|
escToClose: boolean;
|
|
@@ -2,15 +2,15 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { TriggerEvent } from '../_utils/constant';
|
|
3
3
|
import { ButtonProps } from '../button';
|
|
4
4
|
type DropdownPosition = 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br';
|
|
5
|
-
declare var __VLS_16: {},
|
|
5
|
+
declare var __VLS_16: {}, __VLS_33: {
|
|
6
6
|
popupVisible: boolean;
|
|
7
|
-
},
|
|
7
|
+
}, __VLS_41: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_16) => any;
|
|
10
10
|
} & {
|
|
11
|
-
icon?: (props: typeof
|
|
11
|
+
icon?: (props: typeof __VLS_33) => any;
|
|
12
12
|
} & {
|
|
13
|
-
content?: (props: typeof
|
|
13
|
+
content?: (props: typeof __VLS_41) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
16
|
popupVisible: {
|