@sdata/web-vue 3.11.0 → 3.13.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/dist/sd.css +147 -15
- package/dist/sd.min.css +43 -1
- package/es/_components/picker/input-range.vue.d.ts +6 -7
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +63 -46
- package/es/_components/picker/input.vue.d.ts +5 -6
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +52 -35
- package/es/_hooks/use-readonly-tip.d.ts +11 -0
- package/es/_hooks/use-readonly-tip.js +66 -0
- package/es/auto-complete/auto-complete.d.ts +9 -0
- package/es/auto-complete/auto-complete.js +11 -1
- package/es/auto-complete/index.d.ts +15 -0
- package/es/button/button.vue.d.ts +16 -7
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +57 -31
- package/es/button/index.d.ts +11 -0
- package/es/button/interface.d.ts +2 -0
- package/es/card/card.d.ts +312 -0
- package/es/card/card.js +39 -7
- package/es/card/index.d.ts +616 -0
- package/es/card/style/index.css +23 -0
- package/es/card/style/index.scss +31 -0
- package/es/cascader/cascader.vue.d.ts +9 -8
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +149 -128
- package/es/cascader/types.d.ts +1 -0
- package/es/color-picker/color-picker.d.ts +9 -0
- package/es/color-picker/color-picker.js +33 -11
- package/es/color-picker/index.d.ts +15 -0
- package/es/config-provider/context.d.ts +9 -9
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/index.d.ts +3 -6
- package/es/date-picker/picker.vue.d.ts +2 -3
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/date-picker/range-picker.vue.d.ts +2 -3
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/empty/empty.js +1 -1
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-action.d.ts +7 -127
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/index.css +147 -15
- package/es/index.js +3 -3
- package/es/input/index.d.ts +6 -6
- package/es/input/input.d.ts +3 -3
- package/es/input/input.js +18 -6
- package/es/input-number/index.d.ts +9 -9
- package/es/input-number/input-number.d.ts +5 -5
- package/es/input-number/input-number.js +8 -8
- package/es/input-tag/index.d.ts +6 -6
- package/es/input-tag/input-tag.d.ts +3 -3
- package/es/input-tag/input-tag.js +16 -7
- package/es/locale/interface.d.ts +1 -0
- package/es/locale/lang/en-us.js +1 -0
- package/es/locale/lang/zh-cn.js +1 -0
- package/es/locale/lang/zh-tw.js +1 -0
- package/es/mention/index.d.ts +15 -0
- package/es/mention/mention.d.ts +9 -0
- package/es/mention/mention.js +12 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/pagination/pagination.js +1 -1
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rate/index.d.ts +6 -6
- package/es/rate/rate.d.ts +3 -3
- package/es/rate/rate.js +17 -7
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/scrollbar/style/index.css +57 -15
- package/es/scrollbar/style/index.scss +63 -15
- package/es/sd-vue.js +3 -3
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/index.d.ts +15 -0
- package/es/select/select.d.ts +9 -0
- package/es/select/select.js +28 -5
- package/es/style/normalize.scss +68 -0
- package/es/table/table-th.js +2 -2
- package/es/tabs/context.d.ts +2 -0
- package/es/tabs/index.d.ts +32 -0
- package/es/tabs/style/index.css +29 -0
- package/es/tabs/style/index.scss +38 -0
- package/es/tabs/tab-pane.vue.d.ts +4 -2
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +19 -3
- package/es/tabs/tabs.d.ts +19 -0
- package/es/tabs/tabs.js +23 -2
- package/es/textarea/index.d.ts +15 -0
- package/es/textarea/textarea.vue.d.ts +11 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +71 -46
- package/es/time-picker/index.d.ts +3 -6
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-picker.vue.d.ts +2 -3
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +8 -5
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tooltip/index.d.ts +8 -127
- package/es/tooltip/interface.d.ts +17 -0
- package/es/tooltip/tooltip.vue.d.ts +5 -88
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +8 -69
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +16 -10
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +156 -133
- package/es/typography/base.js +1 -1
- package/es/upload/upload-button.js +1 -1
- package/es/verification-code/index.d.ts +15 -6
- package/es/verification-code/verification-code.d.ts +9 -3
- package/es/verification-code/verification-code.js +4 -1
- package/json/vetur-attributes.json +48 -7
- package/json/vetur-tags.json +17 -5
- package/json/web-types.json +99 -10
- package/package.json +1 -1
- package/es/style/base.scss +0 -18
|
@@ -7,14 +7,17 @@ import icon_hover_default from "../_components/icon-hover.js";
|
|
|
7
7
|
import IconClose from "../icon/icon-close/index.js";
|
|
8
8
|
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
9
9
|
import { useCursor } from "../_hooks/use-cursor.js";
|
|
10
|
+
import { isReadonlyModificationKey, useReadonlyTip, useReadonlyTipText } from "../_hooks/use-readonly-tip.js";
|
|
10
11
|
import { INPUT_EVENTS } from "../_utils/constant.js";
|
|
11
12
|
import { omit } from "../_utils/omit.js";
|
|
12
13
|
import pick from "../_utils/pick.js";
|
|
14
|
+
import Tooltip from "../tooltip/index.js";
|
|
13
15
|
import { getSizeStyles } from "./utils.js";
|
|
14
|
-
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, toDisplayString, toRefs, unref, useAttrs, watch, withCtx } from "vue";
|
|
16
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, toDisplayString, toRef, toRefs, unref, useAttrs, watch, withCtx } from "vue";
|
|
15
17
|
//#region components/textarea/textarea.vue?vue&type=script&setup=true&lang.ts
|
|
16
18
|
var _hoisted_1 = [
|
|
17
19
|
"disabled",
|
|
20
|
+
"readonly",
|
|
18
21
|
"value",
|
|
19
22
|
"placeholder"
|
|
20
23
|
];
|
|
@@ -52,6 +55,14 @@ var textarea_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
52
55
|
default: false
|
|
53
56
|
},
|
|
54
57
|
/**
|
|
58
|
+
* @zh 是否为只读状态
|
|
59
|
+
* @en Whether it is read-only
|
|
60
|
+
*/
|
|
61
|
+
readonly: {
|
|
62
|
+
type: [Boolean, String],
|
|
63
|
+
default: false
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
55
66
|
* @zh 是否为错误状态
|
|
56
67
|
* @en Whether it is an error state
|
|
57
68
|
*/
|
|
@@ -127,6 +138,8 @@ var textarea_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
127
138
|
error
|
|
128
139
|
});
|
|
129
140
|
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
141
|
+
const { tipVisible, show: showReadonlyTip } = useReadonlyTip(toRef(props, "readonly"), mergedDisabled);
|
|
142
|
+
const readonlyTipText = useReadonlyTipText(toRef(props, "readonly"));
|
|
130
143
|
const textareaRef = ref();
|
|
131
144
|
const textareaStyle = ref();
|
|
132
145
|
const mirrorRef = ref();
|
|
@@ -155,7 +168,7 @@ var textarea_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
155
168
|
const isScroll = ref(false);
|
|
156
169
|
const focused = ref(false);
|
|
157
170
|
const showClearBtn = computed(() => {
|
|
158
|
-
return mergedAllowClear.value && !mergedDisabled.value && computedValue.value;
|
|
171
|
+
return mergedAllowClear.value && !mergedDisabled.value && !props.readonly && computedValue.value;
|
|
159
172
|
});
|
|
160
173
|
const isComposition = ref(false);
|
|
161
174
|
const compositionValue = ref("");
|
|
@@ -233,6 +246,9 @@ var textarea_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
233
246
|
emitChange("", ev);
|
|
234
247
|
emit("clear", ev);
|
|
235
248
|
};
|
|
249
|
+
const handleKeyDown = (e) => {
|
|
250
|
+
if (props.readonly && !mergedDisabled.value && isReadonlyModificationKey(e)) showReadonlyTip();
|
|
251
|
+
};
|
|
236
252
|
watch(() => modelValue.value, (value) => {
|
|
237
253
|
if (value !== computedValue.value) updateValue(value !== null && value !== void 0 ? value : "", false);
|
|
238
254
|
});
|
|
@@ -336,50 +352,59 @@ var textarea_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
336
352
|
blur
|
|
337
353
|
});
|
|
338
354
|
return (_ctx, _cache) => {
|
|
339
|
-
return openBlock(),
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
355
|
+
return openBlock(), createBlock(unref(Tooltip), {
|
|
356
|
+
"popup-visible": unref(tipVisible),
|
|
357
|
+
content: unref(readonlyTipText),
|
|
358
|
+
position: "top"
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(() => [createElementVNode("div", mergeProps(getWrapperAttrs(_ctx.$attrs), {
|
|
361
|
+
class: wrapperCls.value,
|
|
362
|
+
onMousedown: handleMousedown
|
|
363
|
+
}), [
|
|
364
|
+
__props.autoSize ? (openBlock(), createElementBlock("div", {
|
|
365
|
+
key: 0,
|
|
366
|
+
ref_key: "mirrorRef",
|
|
367
|
+
ref: mirrorRef,
|
|
368
|
+
class: normalizeClass(`${unref(prefixCls)}-mirror`),
|
|
369
|
+
style: normalizeStyle(mirrorStyle.value)
|
|
370
|
+
}, toDisplayString(`${computedValue.value}\n`), 7)) : createCommentVNode("", true),
|
|
371
|
+
createVNode(unref(resize_observer_default), { onResize: handleResize }, {
|
|
372
|
+
default: withCtx(() => [createElementVNode("textarea", mergeProps({
|
|
373
|
+
ref_key: "textareaRef",
|
|
374
|
+
ref: textareaRef
|
|
375
|
+
}, mergeTextareaAttrs.value, {
|
|
376
|
+
disabled: unref(mergedDisabled),
|
|
377
|
+
readonly: !!__props.readonly,
|
|
378
|
+
class: unref(prefixCls),
|
|
379
|
+
style: textareaStyle.value,
|
|
380
|
+
value: computedValue.value,
|
|
381
|
+
placeholder: __props.placeholder,
|
|
382
|
+
onKeydown: handleKeyDown,
|
|
383
|
+
onInput: handleInput,
|
|
384
|
+
onFocus: handleFocus,
|
|
385
|
+
onBlur: handleBlur,
|
|
386
|
+
onCompositionstart: handleComposition,
|
|
387
|
+
onCompositionupdate: handleComposition,
|
|
388
|
+
onCompositionend: handleComposition
|
|
389
|
+
}), null, 16, _hoisted_1)]),
|
|
390
|
+
_: 1
|
|
391
|
+
}),
|
|
392
|
+
renderSlot(_ctx.$slots, "suffix"),
|
|
393
|
+
computedMaxLength.value && __props.showWordLimit ? (openBlock(), createElementBlock("div", {
|
|
394
|
+
key: 1,
|
|
395
|
+
class: normalizeClass(`${unref(prefixCls)}-word-limit`)
|
|
396
|
+
}, toDisplayString(valueLength.value) + "/" + toDisplayString(computedMaxLength.value), 3)) : createCommentVNode("", true),
|
|
397
|
+
showClearBtn.value ? (openBlock(), createElementBlock("div", {
|
|
398
|
+
key: 2,
|
|
399
|
+
class: normalizeClass(`${unref(prefixCls)}-clear-btn`),
|
|
400
|
+
onClick: handleClear
|
|
401
|
+
}, [createVNode(icon_hover_default, null, {
|
|
402
|
+
default: withCtx(() => [createVNode(unref(IconClose))]),
|
|
403
|
+
_: 1
|
|
404
|
+
})], 2)) : createCommentVNode("", true)
|
|
405
|
+
], 16)]),
|
|
406
|
+
_: 3
|
|
407
|
+
}, 8, ["popup-visible", "content"]);
|
|
383
408
|
};
|
|
384
409
|
}
|
|
385
410
|
}));
|
|
@@ -21,7 +21,7 @@ declare const TimePicker: {
|
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
readonly: {
|
|
24
|
-
type: BooleanConstructor;
|
|
24
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
25
25
|
};
|
|
26
26
|
error: {
|
|
27
27
|
type: BooleanConstructor;
|
|
@@ -99,7 +99,6 @@ declare const TimePicker: {
|
|
|
99
99
|
}, import("vue").PublicProps, {
|
|
100
100
|
type: "time" | "time-range";
|
|
101
101
|
error: boolean;
|
|
102
|
-
readonly: boolean;
|
|
103
102
|
popupVisible: boolean;
|
|
104
103
|
defaultPopupVisible: boolean;
|
|
105
104
|
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
@@ -136,7 +135,7 @@ declare const TimePicker: {
|
|
|
136
135
|
default: boolean;
|
|
137
136
|
};
|
|
138
137
|
readonly: {
|
|
139
|
-
type: BooleanConstructor;
|
|
138
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
140
139
|
};
|
|
141
140
|
error: {
|
|
142
141
|
type: BooleanConstructor;
|
|
@@ -207,7 +206,6 @@ declare const TimePicker: {
|
|
|
207
206
|
}>, {}, {}, {}, {}, {
|
|
208
207
|
type: "time" | "time-range";
|
|
209
208
|
error: boolean;
|
|
210
|
-
readonly: boolean;
|
|
211
209
|
popupVisible: boolean;
|
|
212
210
|
defaultPopupVisible: boolean;
|
|
213
211
|
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
@@ -241,7 +239,7 @@ declare const TimePicker: {
|
|
|
241
239
|
default: boolean;
|
|
242
240
|
};
|
|
243
241
|
readonly: {
|
|
244
|
-
type: BooleanConstructor;
|
|
242
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
245
243
|
};
|
|
246
244
|
error: {
|
|
247
245
|
type: BooleanConstructor;
|
|
@@ -319,7 +317,6 @@ declare const TimePicker: {
|
|
|
319
317
|
}, string, {
|
|
320
318
|
type: "time" | "time-range";
|
|
321
319
|
error: boolean;
|
|
322
|
-
readonly: boolean;
|
|
323
320
|
popupVisible: boolean;
|
|
324
321
|
defaultPopupVisible: boolean;
|
|
325
322
|
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isUndefined } from "../_utils/is.js";
|
|
4
|
-
import Button from "../button/index.js";
|
|
5
4
|
import { useI18n } from "../locale/index.js";
|
|
5
|
+
import Button from "../button/index.js";
|
|
6
6
|
import { dayjs } from "../_utils/date.js";
|
|
7
7
|
import useTimeFormat from "./hooks/use-time-format.js";
|
|
8
8
|
import useIsDisabledTime from "./hooks/use-is-disabled-time.js";
|
|
@@ -28,7 +28,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
30
|
readonly: {
|
|
31
|
-
type: BooleanConstructor;
|
|
31
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
32
32
|
};
|
|
33
33
|
error: {
|
|
34
34
|
type: BooleanConstructor;
|
|
@@ -115,7 +115,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
115
115
|
default: boolean;
|
|
116
116
|
};
|
|
117
117
|
readonly: {
|
|
118
|
-
type: BooleanConstructor;
|
|
118
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
119
119
|
};
|
|
120
120
|
error: {
|
|
121
121
|
type: BooleanConstructor;
|
|
@@ -186,7 +186,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
186
186
|
}>, {
|
|
187
187
|
type: "time" | "time-range";
|
|
188
188
|
error: boolean;
|
|
189
|
-
readonly: boolean;
|
|
190
189
|
popupVisible: boolean;
|
|
191
190
|
defaultPopupVisible: boolean;
|
|
192
191
|
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
@@ -3,15 +3,17 @@ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helper
|
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isArray, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
6
|
+
import { useI18n } from "../locale/index.js";
|
|
7
|
+
import Trigger from "../trigger/index.js";
|
|
6
8
|
import useState from "../_hooks/use-state.js";
|
|
7
9
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
8
|
-
import Trigger from "../trigger/index.js";
|
|
9
|
-
import { useI18n } from "../locale/index.js";
|
|
10
10
|
import { dayjs, getDateValue, getSortedDayjsArray, isValueChange } from "../_utils/date.js";
|
|
11
|
+
import input_default from "../_components/picker/input.js";
|
|
11
12
|
import { getFormattedValue, isValidInputValue, isValidRangeValue } from "./utils/index.js";
|
|
12
13
|
import useTimeFormat from "./hooks/use-time-format.js";
|
|
13
14
|
import IconClockCircle from "../icon/icon-clock-circle/index.js";
|
|
14
15
|
import useIsDisabledTime from "./hooks/use-is-disabled-time.js";
|
|
16
|
+
import input_range_default from "../_components/picker/input-range.js";
|
|
15
17
|
import useTimeState from "./hooks/use-time-state.js";
|
|
16
18
|
import { computed, createBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, openBlock, reactive, ref, renderSlot, resolveDynamicComponent, toRefs, unref, watch, withCtx } from "vue";
|
|
17
19
|
//#region components/time-picker/time-picker.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -66,7 +68,7 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
66
68
|
* @zh 是否为只读模式
|
|
67
69
|
* @en Whether it is read-only mode
|
|
68
70
|
* */
|
|
69
|
-
readonly: { type: Boolean },
|
|
71
|
+
readonly: { type: [Boolean, String] },
|
|
70
72
|
/**
|
|
71
73
|
* @zh 是否为错误状态
|
|
72
74
|
* @en Whether it is an error state
|
|
@@ -199,6 +201,7 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
199
201
|
const { mergedDisabled, eventHandlers } = useFormItem({ disabled });
|
|
200
202
|
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
201
203
|
const isRange = computed(() => type.value === "time-range");
|
|
204
|
+
const InputComponent = computed(() => isRange.value ? input_range_default : input_default);
|
|
202
205
|
const prefixCls = getPrefixCls("timepicker");
|
|
203
206
|
const refInput = ref();
|
|
204
207
|
const { format: computedFormat, use12Hours: computedUse12Hours } = useTimeFormat(reactive({
|
|
@@ -367,7 +370,7 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
367
370
|
"auto-fit-transform-origin": "",
|
|
368
371
|
"click-to-close": false,
|
|
369
372
|
position: __props.position,
|
|
370
|
-
disabled: unref(mergedDisabled) || __props.readonly,
|
|
373
|
+
disabled: unref(mergedDisabled) || !!__props.readonly,
|
|
371
374
|
"popup-offset": 4,
|
|
372
375
|
"popup-visible": unref(panelVisible),
|
|
373
376
|
"prevent-focus": true,
|
|
@@ -406,7 +409,7 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
406
409
|
"hide-disabled-options",
|
|
407
410
|
"hide-footer"
|
|
408
411
|
]))], 2)]),
|
|
409
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(
|
|
412
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(InputComponent.value), mergeProps(_objectSpread2(_objectSpread2({}, _ctx.$attrs), inputProps.value), {
|
|
410
413
|
ref_key: "refInput",
|
|
411
414
|
ref: refInput,
|
|
412
415
|
"input-value": unref(inputValue),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import { useResizeObserver } from "../_hooks/use-resize-observer.js";
|
|
3
4
|
import Button from "../button/index.js";
|
|
4
5
|
import Spin from "../spin/index.js";
|
|
5
|
-
import { useResizeObserver } from "../_hooks/use-resize-observer.js";
|
|
6
6
|
import IconDown from "../icon/icon-down/index.js";
|
|
7
7
|
import Link from "../link/index.js";
|
|
8
8
|
import JsonForm from "../json-form/index.js";
|
package/es/tooltip/index.d.ts
CHANGED
|
@@ -2,47 +2,7 @@ import type { App } from 'vue';
|
|
|
2
2
|
import type { SDOptions } from '../_utils/types';
|
|
3
3
|
import _Tooltip from './tooltip.vue';
|
|
4
4
|
declare const Tooltip: {
|
|
5
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("
|
|
6
|
-
popupVisible: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: undefined;
|
|
9
|
-
};
|
|
10
|
-
defaultPopupVisible: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
disabled: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
content: StringConstructor;
|
|
19
|
-
position: {
|
|
20
|
-
type: import("vue").PropType<import("../index.ts").TriggerPosition>;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
mini: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
backgroundColor: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
};
|
|
30
|
-
contentClass: {
|
|
31
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
32
|
-
};
|
|
33
|
-
contentStyle: {
|
|
34
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
35
|
-
};
|
|
36
|
-
arrowClass: {
|
|
37
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
38
|
-
};
|
|
39
|
-
arrowStyle: {
|
|
40
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
41
|
-
};
|
|
42
|
-
popupContainer: {
|
|
43
|
-
type: import("vue").PropType<string | HTMLElement>;
|
|
44
|
-
};
|
|
45
|
-
}>> & Readonly<{
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./interface").TooltipProps> & Readonly<{
|
|
46
6
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
47
7
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
48
8
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -52,109 +12,29 @@ declare const Tooltip: {
|
|
|
52
12
|
mini: boolean;
|
|
53
13
|
popupVisible: boolean;
|
|
54
14
|
defaultPopupVisible: boolean;
|
|
55
|
-
position: "
|
|
15
|
+
position: import("../index.ts").TriggerPosition;
|
|
56
16
|
disabled: boolean;
|
|
57
|
-
},
|
|
17
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
58
18
|
P: {};
|
|
59
19
|
B: {};
|
|
60
20
|
D: {};
|
|
61
21
|
C: {};
|
|
62
22
|
M: {};
|
|
63
23
|
Defaults: {};
|
|
64
|
-
}, Readonly<import("
|
|
65
|
-
popupVisible: {
|
|
66
|
-
type: BooleanConstructor;
|
|
67
|
-
default: undefined;
|
|
68
|
-
};
|
|
69
|
-
defaultPopupVisible: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
disabled: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
content: StringConstructor;
|
|
78
|
-
position: {
|
|
79
|
-
type: import("vue").PropType<import("../index.ts").TriggerPosition>;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
mini: {
|
|
83
|
-
type: BooleanConstructor;
|
|
84
|
-
default: boolean;
|
|
85
|
-
};
|
|
86
|
-
backgroundColor: {
|
|
87
|
-
type: StringConstructor;
|
|
88
|
-
};
|
|
89
|
-
contentClass: {
|
|
90
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
91
|
-
};
|
|
92
|
-
contentStyle: {
|
|
93
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
94
|
-
};
|
|
95
|
-
arrowClass: {
|
|
96
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
97
|
-
};
|
|
98
|
-
arrowStyle: {
|
|
99
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
100
|
-
};
|
|
101
|
-
popupContainer: {
|
|
102
|
-
type: import("vue").PropType<string | HTMLElement>;
|
|
103
|
-
};
|
|
104
|
-
}>> & Readonly<{
|
|
24
|
+
}, Readonly<import("./interface").TooltipProps> & Readonly<{
|
|
105
25
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
106
26
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
107
27
|
}>, {}, {}, {}, {}, {
|
|
108
28
|
mini: boolean;
|
|
109
29
|
popupVisible: boolean;
|
|
110
30
|
defaultPopupVisible: boolean;
|
|
111
|
-
position: "
|
|
31
|
+
position: import("../index.ts").TriggerPosition;
|
|
112
32
|
disabled: boolean;
|
|
113
33
|
}>;
|
|
114
34
|
__isFragment?: never;
|
|
115
35
|
__isTeleport?: never;
|
|
116
36
|
__isSuspense?: never;
|
|
117
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("
|
|
118
|
-
popupVisible: {
|
|
119
|
-
type: BooleanConstructor;
|
|
120
|
-
default: undefined;
|
|
121
|
-
};
|
|
122
|
-
defaultPopupVisible: {
|
|
123
|
-
type: BooleanConstructor;
|
|
124
|
-
default: boolean;
|
|
125
|
-
};
|
|
126
|
-
disabled: {
|
|
127
|
-
type: BooleanConstructor;
|
|
128
|
-
default: boolean;
|
|
129
|
-
};
|
|
130
|
-
content: StringConstructor;
|
|
131
|
-
position: {
|
|
132
|
-
type: import("vue").PropType<import("../index.ts").TriggerPosition>;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
135
|
-
mini: {
|
|
136
|
-
type: BooleanConstructor;
|
|
137
|
-
default: boolean;
|
|
138
|
-
};
|
|
139
|
-
backgroundColor: {
|
|
140
|
-
type: StringConstructor;
|
|
141
|
-
};
|
|
142
|
-
contentClass: {
|
|
143
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
144
|
-
};
|
|
145
|
-
contentStyle: {
|
|
146
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
147
|
-
};
|
|
148
|
-
arrowClass: {
|
|
149
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
150
|
-
};
|
|
151
|
-
arrowStyle: {
|
|
152
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
153
|
-
};
|
|
154
|
-
popupContainer: {
|
|
155
|
-
type: import("vue").PropType<string | HTMLElement>;
|
|
156
|
-
};
|
|
157
|
-
}>> & Readonly<{
|
|
37
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./interface").TooltipProps> & Readonly<{
|
|
158
38
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
159
39
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
160
40
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -164,7 +44,7 @@ declare const Tooltip: {
|
|
|
164
44
|
mini: boolean;
|
|
165
45
|
popupVisible: boolean;
|
|
166
46
|
defaultPopupVisible: boolean;
|
|
167
|
-
position: "
|
|
47
|
+
position: import("../index.ts").TriggerPosition;
|
|
168
48
|
disabled: boolean;
|
|
169
49
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
170
50
|
$slots: {
|
|
@@ -176,4 +56,5 @@ declare const Tooltip: {
|
|
|
176
56
|
install: (app: App, options?: SDOptions) => void;
|
|
177
57
|
};
|
|
178
58
|
export type TooltipInstance = InstanceType<typeof _Tooltip>;
|
|
59
|
+
export type { TooltipProps } from './interface';
|
|
179
60
|
export default Tooltip;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
import type { TriggerPosition } from '../_utils/constant';
|
|
3
|
+
import type { ClassName } from '../_utils/types';
|
|
4
|
+
export interface TooltipProps {
|
|
5
|
+
popupVisible?: boolean;
|
|
6
|
+
defaultPopupVisible?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
content?: string;
|
|
9
|
+
position?: TriggerPosition;
|
|
10
|
+
mini?: boolean;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
contentClass?: ClassName;
|
|
13
|
+
contentStyle?: CSSProperties;
|
|
14
|
+
arrowClass?: ClassName;
|
|
15
|
+
arrowStyle?: CSSProperties;
|
|
16
|
+
popupContainer?: string | HTMLElement;
|
|
17
|
+
}
|
|
@@ -1,106 +1,23 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { CSSProperties } from 'vue';
|
|
3
|
-
import { TriggerPosition } from '../_utils/constant';
|
|
4
|
-
import { ClassName } from '../_utils/types';
|
|
1
|
+
import type { TooltipProps } from './interface';
|
|
5
2
|
declare var __VLS_10: {}, __VLS_13: {};
|
|
6
3
|
type __VLS_Slots = {} & {
|
|
7
4
|
default?: (props: typeof __VLS_10) => any;
|
|
8
5
|
} & {
|
|
9
6
|
content?: (props: typeof __VLS_13) => any;
|
|
10
7
|
};
|
|
11
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").
|
|
12
|
-
popupVisible: {
|
|
13
|
-
type: BooleanConstructor;
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
|
-
defaultPopupVisible: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
disabled: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
content: StringConstructor;
|
|
25
|
-
position: {
|
|
26
|
-
type: PropType<TriggerPosition>;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
mini: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
backgroundColor: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
};
|
|
36
|
-
contentClass: {
|
|
37
|
-
type: PropType<ClassName>;
|
|
38
|
-
};
|
|
39
|
-
contentStyle: {
|
|
40
|
-
type: PropType<CSSProperties>;
|
|
41
|
-
};
|
|
42
|
-
arrowClass: {
|
|
43
|
-
type: PropType<ClassName>;
|
|
44
|
-
};
|
|
45
|
-
arrowStyle: {
|
|
46
|
-
type: PropType<CSSProperties>;
|
|
47
|
-
};
|
|
48
|
-
popupContainer: {
|
|
49
|
-
type: PropType<string | HTMLElement>;
|
|
50
|
-
};
|
|
51
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
9
|
"update:popupVisible": (_visible: boolean) => any;
|
|
53
10
|
popupVisibleChange: (_visible: boolean) => any;
|
|
54
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
55
|
-
popupVisible: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: undefined;
|
|
58
|
-
};
|
|
59
|
-
defaultPopupVisible: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
disabled: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
content: StringConstructor;
|
|
68
|
-
position: {
|
|
69
|
-
type: PropType<TriggerPosition>;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
mini: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
backgroundColor: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
};
|
|
79
|
-
contentClass: {
|
|
80
|
-
type: PropType<ClassName>;
|
|
81
|
-
};
|
|
82
|
-
contentStyle: {
|
|
83
|
-
type: PropType<CSSProperties>;
|
|
84
|
-
};
|
|
85
|
-
arrowClass: {
|
|
86
|
-
type: PropType<ClassName>;
|
|
87
|
-
};
|
|
88
|
-
arrowStyle: {
|
|
89
|
-
type: PropType<CSSProperties>;
|
|
90
|
-
};
|
|
91
|
-
popupContainer: {
|
|
92
|
-
type: PropType<string | HTMLElement>;
|
|
93
|
-
};
|
|
94
|
-
}>> & Readonly<{
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
95
12
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
96
13
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
97
14
|
}>, {
|
|
98
15
|
mini: boolean;
|
|
99
16
|
popupVisible: boolean;
|
|
100
17
|
defaultPopupVisible: boolean;
|
|
101
|
-
position: "
|
|
18
|
+
position: import("..").TriggerPosition;
|
|
102
19
|
disabled: boolean;
|
|
103
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
104
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
105
22
|
declare const _default: typeof __VLS_export;
|
|
106
23
|
export default _default;
|