@yh-ui/components 0.1.55 → 1.0.1
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/affix/index.d.ts +11 -6
- package/dist/affix/src/affix.d.ts +10 -0
- package/dist/affix/src/affix.vue.d.ts +2 -2
- package/dist/ai-action-group/index.d.ts +5 -0
- package/dist/ai-action-group/src/ai-action-group.d.ts +3 -0
- package/dist/ai-agent-card/index.d.ts +7 -0
- package/dist/ai-agent-card/src/ai-agent-card.d.ts +10 -0
- package/dist/ai-artifacts/index.d.ts +8 -0
- package/dist/ai-artifacts/src/ai-artifacts.d.ts +11 -1
- package/dist/ai-attachments/index.d.ts +5 -0
- package/dist/ai-attachments/src/ai-attachments.d.ts +12 -1
- package/dist/ai-bubble/index.d.ts +12 -0
- package/dist/ai-bubble/src/ai-bubble.d.ts +8 -1
- package/dist/ai-bubble/src/ai-bubble.vue +24 -20
- package/dist/ai-bubble-list/index.d.ts +3 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.d.ts +14 -1
- package/dist/ai-chat/index.d.ts +5 -0
- package/dist/ai-chat/src/ai-chat.d.ts +9 -0
- package/dist/ai-code-block/index.d.ts +4 -0
- package/dist/ai-code-block/src/ai-code-block.d.ts +4 -0
- package/dist/ai-code-editor/index.d.ts +5 -0
- package/dist/ai-code-editor/src/ai-code-editor.d.ts +2 -0
- package/dist/ai-code-runner/index.d.ts +5 -0
- package/dist/ai-code-runner/src/ai-code-runner.d.ts +2 -0
- package/dist/ai-conversations/index.d.ts +5 -0
- package/dist/ai-conversations/src/ai-conversations.d.ts +16 -1
- package/dist/ai-editor-sender/index.d.ts +9 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +15 -0
- package/dist/ai-file-card/index.d.ts +8 -0
- package/dist/ai-file-card/src/ai-file-card.d.ts +5 -1
- package/dist/ai-mention/index.d.ts +9 -0
- package/dist/ai-mention/src/ai-mention.d.ts +3 -0
- package/dist/ai-mermaid/index.d.ts +5 -0
- package/dist/ai-mermaid/src/ai-mermaid.d.ts +6 -1
- package/dist/ai-mermaid/src/ai-mermaid.vue +6 -1
- package/dist/ai-prompts/index.d.ts +5 -0
- package/dist/ai-prompts/src/ai-prompts.d.ts +10 -0
- package/dist/ai-provider/index.d.ts +10 -0
- package/dist/ai-provider/src/ai-provider.d.ts +28 -0
- package/dist/ai-sender/index.d.ts +6 -0
- package/dist/ai-sender/src/ai-sender.d.ts +11 -1
- package/dist/ai-sources/index.d.ts +6 -0
- package/dist/ai-sources/src/ai-sources.d.ts +5 -1
- package/dist/ai-thinking/index.d.ts +5 -0
- package/dist/ai-thinking/src/ai-thinking.d.ts +3 -0
- package/dist/ai-thought-chain/index.d.ts +6 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.d.ts +3 -0
- package/dist/ai-voice-trigger/index.d.ts +5 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.d.ts +4 -0
- package/dist/ai-welcome/index.d.ts +5 -0
- package/dist/ai-welcome/src/ai-welcome.d.ts +6 -0
- package/dist/alert/index.d.ts +6 -0
- package/dist/alert/src/alert.d.ts +5 -0
- package/dist/alert/src/alert.vue +1 -1
- package/dist/autocomplete/index.d.ts +8 -0
- package/dist/avatar/index.cjs +15 -0
- package/dist/avatar/index.d.ts +19 -9
- package/dist/avatar/index.mjs +1 -0
- package/dist/back-top/index.d.ts +4 -0
- package/dist/back-top/src/back-top.d.ts +3 -0
- package/dist/badge/index.d.ts +4 -0
- package/dist/breadcrumb/index.d.ts +6 -0
- package/dist/breadcrumb/src/breadcrumb.d.ts +6 -0
- package/dist/button/index.d.ts +9 -0
- package/dist/calendar/index.d.ts +16 -1230
- package/dist/calendar/src/calendar.d.ts +16 -0
- package/dist/calendar/src/calendar.vue.d.ts +2 -415
- package/dist/card/index.d.ts +4 -0
- package/dist/carousel/index.d.ts +9 -0
- package/dist/carousel/src/carousel-item.d.ts +3 -0
- package/dist/carousel/src/carousel.d.ts +23 -0
- package/dist/cascader/index.d.ts +9 -7
- package/dist/cascader/src/cascader.d.ts +2 -2
- package/dist/cascader/src/cascader.vue +82 -30
- package/dist/cascader/src/cascader.vue.d.ts +1 -1
- package/dist/category-nav/index.d.ts +4 -0
- package/dist/category-nav/src/category-nav.d.ts +15 -0
- package/dist/checkbox/index.d.ts +10 -0
- package/dist/col/index.d.ts +34 -180
- package/dist/col/src/col.d.ts +14 -30
- package/dist/col/src/col.vue.d.ts +15 -90
- package/dist/color-picker/index.d.ts +11 -1
- package/dist/color-picker/src/color-picker.d.ts +8 -0
- package/dist/color-picker/src/color-picker.vue +6 -0
- package/dist/color-picker/src/color-picker.vue.d.ts +6 -1
- package/dist/config-provider/index.d.ts +3 -0
- package/dist/config-provider/src/config-provider.d.ts +3 -0
- package/dist/container/index.d.ts +15 -0
- package/dist/container/src/container.d.ts +12 -0
- package/dist/countdown/index.d.ts +9 -0
- package/dist/coupon-card/index.d.ts +3 -0
- package/dist/coupon-card/src/coupon-card.d.ts +10 -0
- package/dist/date-picker/index.d.ts +8 -0
- package/dist/date-picker/src/date-picker.d.ts +9 -0
- package/dist/descriptions/index.d.ts +6 -0
- package/dist/descriptions/src/descriptions.d.ts +9 -0
- package/dist/dialog/index.d.ts +12 -6
- package/dist/dialog/src/dialog.d.ts +13 -0
- package/dist/dialog/src/dialog.vue.d.ts +2 -2
- package/dist/divider/index.d.ts +2 -0
- package/dist/drawer/index.d.ts +8 -3
- package/dist/drawer/src/drawer.d.ts +11 -0
- package/dist/drawer/src/drawer.vue.d.ts +1 -1
- package/dist/dropdown/index.d.ts +11 -0
- package/dist/dropdown/src/dropdown.d.ts +10 -0
- package/dist/empty/index.cjs +15 -0
- package/dist/empty/index.d.ts +6 -0
- package/dist/empty/index.mjs +1 -0
- package/dist/filter-bar/index.d.ts +9 -0
- package/dist/filter-bar/src/filter-bar.d.ts +12 -0
- package/dist/form/index.d.ts +11 -0
- package/dist/gantt-chart/index.d.ts +8 -6
- package/dist/gantt-chart/src/gantt-chart.d.ts +1 -4
- package/dist/gantt-chart/src/gantt-chart.vue +43 -33
- package/dist/grid/index.d.ts +6 -0
- package/dist/grid/src/grid.d.ts +3 -0
- package/dist/icon/index.d.ts +5 -0
- package/dist/image/index.d.ts +18 -1
- package/dist/image/src/image-viewer.d.ts +11 -0
- package/dist/image/src/image-viewer.vue +56 -9
- package/dist/image/src/image-viewer.vue.d.ts +9 -1
- package/dist/image/src/image.d.ts +4 -0
- package/dist/image/src/image.vue +1 -1
- package/dist/image-magnifier/index.d.ts +6 -0
- package/dist/image-magnifier/src/image-magnifier.d.ts +15 -0
- package/dist/image-magnifier/src/image-magnifier.vue +9 -5
- package/dist/infinite-scroll/index.d.ts +5 -0
- package/dist/infinite-scroll/src/infinite-scroll.d.ts +10 -0
- package/dist/infinite-scroll/src/infinite-scroll.vue +37 -25
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +0 -2
- package/dist/input/index.d.ts +10 -0
- package/dist/input-number/index.d.ts +7 -0
- package/dist/input-tag/index.d.ts +7 -0
- package/dist/loading/index.d.ts +2 -0
- package/dist/loading/src/service.cjs +5 -1
- package/dist/loading/src/service.mjs +3 -1
- package/dist/lucky-draw/index.d.ts +4 -0
- package/dist/lucky-draw/src/lucky-draw.d.ts +6 -0
- package/dist/markdown-it.d.ts +2 -1
- package/dist/marquee/index.d.ts +12 -6
- package/dist/marquee/src/marquee.d.ts +8 -0
- package/dist/marquee/src/marquee.vue +16 -6
- package/dist/marquee/src/marquee.vue.d.ts +2 -5
- package/dist/mention/index.d.ts +9 -0
- package/dist/menu/index.d.ts +14 -0
- package/dist/menu/src/menu.d.ts +9 -0
- package/dist/message/index.d.ts +11 -0
- package/dist/message/src/message.d.ts +40 -32
- package/dist/message/src/message.vue.d.ts +1 -1
- package/dist/message-box/index.d.ts +7 -0
- package/dist/notification/index.d.ts +11 -0
- package/dist/notification/src/notification.d.ts +37 -33
- package/dist/notification/src/notification.vue.d.ts +1 -1
- package/dist/pagination/index.d.ts +6 -0
- package/dist/pagination/src/pagination.d.ts +3 -0
- package/dist/popconfirm/index.d.ts +5 -0
- package/dist/popconfirm/src/popconfirm.d.ts +11 -1
- package/dist/popover/index.d.ts +6 -0
- package/dist/popover/src/popover.d.ts +9 -1
- package/dist/price/index.d.ts +1 -0
- package/dist/price/src/price.d.ts +7 -0
- package/dist/product-card/index.d.ts +7 -3
- package/dist/product-card/src/product-card.cjs +1 -36
- package/dist/product-card/src/product-card.d.ts +5 -35
- package/dist/product-card/src/product-card.mjs +1 -36
- package/dist/product-card/src/product-card.vue +8 -14
- package/dist/product-card/src/product-card.vue.d.ts +1 -1
- package/dist/progress/index.d.ts +5 -0
- package/dist/progress/src/progress.d.ts +5 -0
- package/dist/radio/index.d.ts +14 -0
- package/dist/rate/index.d.ts +11 -6
- package/dist/rate/src/rate.d.ts +10 -1
- package/dist/rate/src/rate.vue.d.ts +3 -3
- package/dist/result/index.d.ts +4 -0
- package/dist/row/index.d.ts +18 -12
- package/dist/row/src/row.d.ts +13 -8
- package/dist/row/src/row.vue.d.ts +6 -6
- package/dist/scrollbar/index.d.ts +10 -20
- package/dist/scrollbar/src/scrollbar.d.ts +16 -4
- package/dist/scrollbar/src/scrollbar.vue.d.ts +2 -8
- package/dist/select/index.d.ts +15 -3
- package/dist/select/src/select.d.ts +4 -1
- package/dist/select/src/select.vue +1 -1
- package/dist/select/src/select.vue.d.ts +1 -1
- package/dist/skeleton/index.d.ts +6 -0
- package/dist/skeleton/src/skeleton.d.ts +4 -0
- package/dist/sku-selector/index.d.ts +5 -0
- package/dist/sku-selector/src/sku-selector.cjs +1 -14
- package/dist/sku-selector/src/sku-selector.d.ts +15 -17
- package/dist/sku-selector/src/sku-selector.mjs +1 -14
- package/dist/sku-selector/src/sku-selector.vue +6 -11
- package/dist/slider/index.d.ts +20 -3
- package/dist/slider/src/slider.d.ts +15 -0
- package/dist/slider/src/slider.vue +5 -0
- package/dist/slider/src/slider.vue.d.ts +5 -1
- package/dist/smart-address/index.d.ts +11 -6
- package/dist/smart-address/src/smart-address.cjs +0 -19
- package/dist/smart-address/src/smart-address.d.ts +13 -20
- package/dist/smart-address/src/smart-address.mjs +0 -19
- package/dist/smart-address/src/smart-address.vue.d.ts +3 -3
- package/dist/space/index.cjs +15 -0
- package/dist/space/index.d.ts +22 -12
- package/dist/space/index.mjs +1 -0
- package/dist/spin/index.d.ts +16 -10
- package/dist/spin/src/spin.cjs +5 -1
- package/dist/spin/src/spin.d.ts +13 -1
- package/dist/spin/src/spin.mjs +4 -0
- package/dist/spin/src/spin.vue +2 -2
- package/dist/spin/src/spin.vue.d.ts +4 -5
- package/dist/steps/index.d.ts +13 -0
- package/dist/steps/src/step.d.ts +6 -0
- package/dist/steps/src/steps.d.ts +3 -0
- package/dist/submit-bar/index.d.ts +3 -0
- package/dist/submit-bar/src/submit-bar.d.ts +7 -0
- package/dist/switch/index.d.ts +5 -0
- package/dist/switch/src/switch.d.ts +11 -1
- package/dist/table/index.d.ts +14 -4
- package/dist/tabs/index.d.ts +11 -0
- package/dist/tabs/src/tab-pane.d.ts +3 -0
- package/dist/tabs/src/tabs.d.ts +12 -0
- package/dist/tag/index.d.ts +7 -0
- package/dist/time-picker/index.d.ts +13 -3
- package/dist/time-picker/src/time-picker.d.ts +2 -2
- package/dist/time-picker/src/time-picker.vue +1 -1
- package/dist/time-picker/src/time-picker.vue.d.ts +1 -1
- package/dist/time-select/index.d.ts +10 -3
- package/dist/time-select/src/time-select.d.ts +2 -2
- package/dist/time-select/src/time-select.vue +79 -35
- package/dist/time-select/src/time-select.vue.d.ts +1 -1
- package/dist/tooltip/index.d.ts +7 -0
- package/dist/tooltip/src/tooltip.d.ts +11 -1
- package/dist/transfer/index.d.ts +6 -4
- package/dist/transfer/src/transfer-panel.vue +78 -27
- package/dist/transfer/src/transfer-panel.vue.d.ts +1 -1
- package/dist/transfer/src/transfer.d.ts +4 -4
- package/dist/transfer/src/transfer.vue +82 -26
- package/dist/transfer/src/transfer.vue.d.ts +2 -2
- package/dist/tree/index.d.ts +7 -0
- package/dist/tree-select/index.d.ts +8 -0
- package/dist/typography/index.d.ts +11 -0
- package/dist/upload/index.d.ts +10 -0
- package/dist/upload/src/upload.d.ts +19 -0
- package/dist/viewerjs.d.ts +2 -1
- package/dist/waterfall/index.d.ts +6 -0
- package/dist/waterfall/src/waterfall.d.ts +25 -7
- package/dist/watermark/index.d.ts +11 -54
- package/dist/watermark/src/watermark.d.ts +16 -9
- package/dist/watermark/src/watermark.vue +27 -5
- package/dist/watermark/src/watermark.vue.d.ts +3 -27
- package/package.json +6 -5
|
@@ -3,7 +3,10 @@ import { ref, computed, watch, onMounted, onBeforeUnmount, shallowRef, nextTick
|
|
|
3
3
|
import { useNamespace, useLocale } from "@yh-ui/hooks";
|
|
4
4
|
import { useComponentTheme } from "@yh-ui/theme";
|
|
5
5
|
import { YhSpin } from "../../spin";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
infiniteScrollProps,
|
|
8
|
+
infiniteScrollEmits
|
|
9
|
+
} from "./infinite-scroll";
|
|
7
10
|
defineOptions({
|
|
8
11
|
name: "YhInfiniteScroll"
|
|
9
12
|
});
|
|
@@ -11,7 +14,10 @@ const props = defineProps(infiniteScrollProps);
|
|
|
11
14
|
const emit = defineEmits(infiniteScrollEmits);
|
|
12
15
|
const ns = useNamespace("infinite-scroll");
|
|
13
16
|
const { t } = useLocale();
|
|
14
|
-
const { themeStyle } = useComponentTheme(
|
|
17
|
+
const { themeStyle } = useComponentTheme(
|
|
18
|
+
"infinite-scroll",
|
|
19
|
+
computed(() => props.themeOverrides)
|
|
20
|
+
);
|
|
15
21
|
const rootRef = ref();
|
|
16
22
|
const placeholderRef = ref();
|
|
17
23
|
const scrollContainer = shallowRef();
|
|
@@ -121,32 +127,38 @@ onBeforeUnmount(() => {
|
|
|
121
127
|
scrollContainer.value.removeEventListener("scroll", handleScroll);
|
|
122
128
|
}
|
|
123
129
|
});
|
|
124
|
-
watch(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
observer
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
});
|
|
136
|
-
watch(() => props.useObserver, () => {
|
|
137
|
-
if (props.useObserver) {
|
|
138
|
-
if (scrollContainer.value) {
|
|
139
|
-
scrollContainer.value.removeEventListener("scroll", handleScroll);
|
|
130
|
+
watch(
|
|
131
|
+
() => props.loading,
|
|
132
|
+
(val, oldVal) => {
|
|
133
|
+
if (oldVal && !val && props.immediateCheck) {
|
|
134
|
+
nextTick(() => {
|
|
135
|
+
if (props.useObserver && observer && placeholderRef.value) {
|
|
136
|
+
observer.unobserve(placeholderRef.value);
|
|
137
|
+
observer.observe(placeholderRef.value);
|
|
138
|
+
} else {
|
|
139
|
+
checkLoad();
|
|
140
|
+
}
|
|
141
|
+
});
|
|
140
142
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
watch(
|
|
146
|
+
() => props.useObserver,
|
|
147
|
+
() => {
|
|
148
|
+
if (props.useObserver) {
|
|
149
|
+
if (scrollContainer.value) {
|
|
150
|
+
scrollContainer.value.removeEventListener("scroll", handleScroll);
|
|
151
|
+
}
|
|
152
|
+
setupObserver();
|
|
153
|
+
} else {
|
|
154
|
+
if (observer) {
|
|
155
|
+
observer.disconnect();
|
|
156
|
+
observer = null;
|
|
157
|
+
}
|
|
158
|
+
setupScrollListener();
|
|
146
159
|
}
|
|
147
|
-
setupScrollListener();
|
|
148
160
|
}
|
|
149
|
-
|
|
161
|
+
);
|
|
150
162
|
defineExpose({
|
|
151
163
|
/** 手动检查是否需要加载 */
|
|
152
164
|
check: checkLoad,
|
|
@@ -66,9 +66,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
66
66
|
readonly default: undefined;
|
|
67
67
|
};
|
|
68
68
|
}>, {
|
|
69
|
-
/** 手动检查是否需要加载 */
|
|
70
69
|
check: () => void;
|
|
71
|
-
/** 重试加载 */
|
|
72
70
|
retry: () => void;
|
|
73
71
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
72
|
load: () => void;
|
package/dist/input/index.d.ts
CHANGED
|
@@ -180,3 +180,13 @@ export declare const YhInput: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
180
180
|
export default YhInput;
|
|
181
181
|
export * from './src/input';
|
|
182
182
|
export type InputInstance = InstanceType<typeof Input>;
|
|
183
|
+
export type YhInputInstance = InputInstance;
|
|
184
|
+
export type YhInputProps = import('./src/input').InputProps;
|
|
185
|
+
export type YhInputEmits = import('./src/input').InputEmits;
|
|
186
|
+
export type YhInputSlots = import('./src/input').InputSlots;
|
|
187
|
+
export type YhInputExpose = import('./src/input').InputExpose;
|
|
188
|
+
export type YhInputType = import('./src/input').InputType;
|
|
189
|
+
export type YhInputSize = import('./src/input').InputSize;
|
|
190
|
+
export type YhInputVariant = import('./src/input').InputVariant;
|
|
191
|
+
export type YhInputStatus = import('./src/input').InputStatus;
|
|
192
|
+
export type YhInputCountConfig = import('./src/input').InputCountConfig;
|
|
@@ -115,3 +115,10 @@ export declare const YhInputNumber: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
115
115
|
export default YhInputNumber;
|
|
116
116
|
export * from './src/input-number';
|
|
117
117
|
export type InputNumberInstance = InstanceType<typeof InputNumber>;
|
|
118
|
+
export type YhInputNumberInstance = InputNumberInstance;
|
|
119
|
+
export type YhInputNumberProps = import('./src/input-number').InputNumberProps;
|
|
120
|
+
export type YhInputNumberEmits = import('./src/input-number').InputNumberEmits;
|
|
121
|
+
export type YhInputNumberSlots = import('./src/input-number').InputNumberSlots;
|
|
122
|
+
export type YhInputNumberExpose = import('./src/input-number').InputNumberExpose;
|
|
123
|
+
export type YhInputNumberSize = import('./src/input-number').InputNumberSize;
|
|
124
|
+
export type YhInputNumberControlsPosition = import('./src/input-number').ControlsPosition;
|
|
@@ -157,3 +157,10 @@ export declare const YhInputTag: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
157
157
|
export default YhInputTag;
|
|
158
158
|
export * from './src/input-tag';
|
|
159
159
|
export type InputTagInstance = InstanceType<typeof InputTag>;
|
|
160
|
+
export type YhInputTagInstance = InputTagInstance;
|
|
161
|
+
export type YhInputTagProps = import('./src/input-tag').InputTagProps;
|
|
162
|
+
export type YhInputTagEmits = import('./src/input-tag').InputTagEmits;
|
|
163
|
+
export type YhInputTagSlots = import('./src/input-tag').InputTagSlots;
|
|
164
|
+
export type YhInputTagExpose = import('./src/input-tag').InputTagExpose;
|
|
165
|
+
export type YhInputTagSize = import('./src/input-tag').InputTagSize;
|
|
166
|
+
export type YhInputTagType = import('./src/input-tag').InputTagType;
|
package/dist/loading/index.d.ts
CHANGED
|
@@ -9,3 +9,5 @@ export default YhLoading;
|
|
|
9
9
|
export * from './src/service';
|
|
10
10
|
export * from './src/directive';
|
|
11
11
|
import './src/loading.css';
|
|
12
|
+
export type YhLoadingOptions = import('./src/service').LoadingOptions;
|
|
13
|
+
export type YhLoadingInstance = import('./src/service').LoadingInstance;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Loading = void 0;
|
|
7
7
|
var _vue = require("vue");
|
|
8
|
+
var _hooks = require("@yh-ui/hooks");
|
|
8
9
|
var _theme = require("@yh-ui/theme");
|
|
9
10
|
var _spin = require("../../spin/index.cjs");
|
|
10
11
|
const createLoading = (options = {}, appContext) => {
|
|
@@ -21,6 +22,9 @@ const createLoading = (options = {}, appContext) => {
|
|
|
21
22
|
});
|
|
22
23
|
const component = {
|
|
23
24
|
setup() {
|
|
25
|
+
const {
|
|
26
|
+
t
|
|
27
|
+
} = (0, _hooks.useLocale)();
|
|
24
28
|
const {
|
|
25
29
|
themeStyle
|
|
26
30
|
} = (0, _theme.useComponentTheme)("loading", (0, _vue.computed)(() => resolvedOptions.themeOverrides));
|
|
@@ -41,7 +45,7 @@ const createLoading = (options = {}, appContext) => {
|
|
|
41
45
|
}, [resolvedOptions.spinner ? typeof resolvedOptions.spinner === "string" ? (0, _vue.h)("i", {
|
|
42
46
|
class: resolvedOptions.spinner
|
|
43
47
|
}) : (0, _vue.isVNode)(resolvedOptions.spinner) ? resolvedOptions.spinner : (0, _vue.h)(resolvedOptions.spinner) : (0, _vue.h)(_spin.YhSpin, {
|
|
44
|
-
tip: resolvedOptions.text,
|
|
48
|
+
tip: resolvedOptions.text ?? t("loading.text"),
|
|
45
49
|
size: resolvedOptions.fullscreen ? "large" : "default",
|
|
46
50
|
vertical: true,
|
|
47
51
|
color: resolvedOptions.color,
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
Transition,
|
|
8
8
|
computed
|
|
9
9
|
} from "vue";
|
|
10
|
+
import { useLocale } from "@yh-ui/hooks";
|
|
10
11
|
import { useComponentTheme } from "@yh-ui/theme";
|
|
11
12
|
import { YhSpin } from "../../spin/index.mjs";
|
|
12
13
|
const createLoading = (options = {}, appContext) => {
|
|
@@ -23,6 +24,7 @@ const createLoading = (options = {}, appContext) => {
|
|
|
23
24
|
});
|
|
24
25
|
const component = {
|
|
25
26
|
setup() {
|
|
27
|
+
const { t } = useLocale();
|
|
26
28
|
const { themeStyle } = useComponentTheme(
|
|
27
29
|
"loading",
|
|
28
30
|
computed(() => resolvedOptions.themeOverrides)
|
|
@@ -47,7 +49,7 @@ const createLoading = (options = {}, appContext) => {
|
|
|
47
49
|
[
|
|
48
50
|
h("div", { class: "yh-loading-spinner" }, [
|
|
49
51
|
resolvedOptions.spinner ? typeof resolvedOptions.spinner === "string" ? h("i", { class: resolvedOptions.spinner }) : isVNode(resolvedOptions.spinner) ? resolvedOptions.spinner : h(resolvedOptions.spinner) : h(YhSpin, {
|
|
50
|
-
tip: resolvedOptions.text,
|
|
52
|
+
tip: resolvedOptions.text ?? t("loading.text"),
|
|
51
53
|
size: resolvedOptions.fullscreen ? "large" : "default",
|
|
52
54
|
vertical: true,
|
|
53
55
|
color: resolvedOptions.color,
|
|
@@ -207,3 +207,7 @@ export * from './src/lucky-draw';
|
|
|
207
207
|
export type LuckyDrawInstance = InstanceType<typeof LuckyDraw>;
|
|
208
208
|
export type YhLuckyDrawInstance = LuckyDrawInstance;
|
|
209
209
|
export type YhLuckyDrawProps = import('./src/lucky-draw').LuckyDrawProps;
|
|
210
|
+
export type YhLuckyDrawEmits = import('./src/lucky-draw').LuckyDrawEmits;
|
|
211
|
+
export type YhLuckyDrawSlots = import('./src/lucky-draw').LuckyDrawSlots;
|
|
212
|
+
export type YhLuckyPrize = import('./src/lucky-draw').LuckyPrize;
|
|
213
|
+
export type YhLuckyDrawType = import('./src/lucky-draw').LuckyDrawType;
|
|
@@ -67,3 +67,9 @@ export declare const luckyDrawEmits: {
|
|
|
67
67
|
click: (e: MouseEvent) => boolean;
|
|
68
68
|
};
|
|
69
69
|
export type LuckyDrawEmits = typeof luckyDrawEmits;
|
|
70
|
+
export interface LuckyDrawSlots {
|
|
71
|
+
prize?: (props: {
|
|
72
|
+
prize: LuckyPrize;
|
|
73
|
+
}) => unknown;
|
|
74
|
+
action?: () => unknown;
|
|
75
|
+
}
|
package/dist/markdown-it.d.ts
CHANGED
package/dist/marquee/index.d.ts
CHANGED
|
@@ -74,8 +74,8 @@ export declare const YhMarquee: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
74
74
|
onCycleComplete?: (() => any) | undefined;
|
|
75
75
|
}>, {
|
|
76
76
|
calculateClones: () => Promise<void>;
|
|
77
|
-
containerRef: import("vue").Ref<HTMLElement | null
|
|
78
|
-
contentRef: import("vue").Ref<HTMLElement | null
|
|
77
|
+
containerRef: import("vue").Ref<HTMLElement | null>;
|
|
78
|
+
contentRef: import("vue").Ref<HTMLElement | null>;
|
|
79
79
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
80
80
|
cycleComplete: () => void;
|
|
81
81
|
}, import("vue").PublicProps, {
|
|
@@ -177,8 +177,8 @@ export declare const YhMarquee: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
177
177
|
onCycleComplete?: (() => any) | undefined;
|
|
178
178
|
}>, {
|
|
179
179
|
calculateClones: () => Promise<void>;
|
|
180
|
-
containerRef: import("vue").Ref<HTMLElement | null
|
|
181
|
-
contentRef: import("vue").Ref<HTMLElement | null
|
|
180
|
+
containerRef: import("vue").Ref<HTMLElement | null>;
|
|
181
|
+
contentRef: import("vue").Ref<HTMLElement | null>;
|
|
182
182
|
}, {}, {}, {}, {
|
|
183
183
|
readonly reverse: boolean;
|
|
184
184
|
readonly play: boolean;
|
|
@@ -275,8 +275,8 @@ export declare const YhMarquee: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
275
275
|
onCycleComplete?: (() => any) | undefined;
|
|
276
276
|
}>, {
|
|
277
277
|
calculateClones: () => Promise<void>;
|
|
278
|
-
containerRef: import("vue").Ref<HTMLElement | null
|
|
279
|
-
contentRef: import("vue").Ref<HTMLElement | null
|
|
278
|
+
containerRef: import("vue").Ref<HTMLElement | null>;
|
|
279
|
+
contentRef: import("vue").Ref<HTMLElement | null>;
|
|
280
280
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
281
281
|
cycleComplete: () => void;
|
|
282
282
|
}, string, {
|
|
@@ -307,3 +307,9 @@ export declare const YhMarquee: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
307
307
|
export default YhMarquee;
|
|
308
308
|
export * from './src/marquee';
|
|
309
309
|
export type MarqueeInstance = InstanceType<typeof Marquee>;
|
|
310
|
+
export type YhMarqueeInstance = MarqueeInstance;
|
|
311
|
+
export type YhMarqueeProps = import('./src/marquee').MarqueeProps;
|
|
312
|
+
export type YhMarqueeEmits = import('./src/marquee').MarqueeEmits;
|
|
313
|
+
export type YhMarqueeSlots = import('./src/marquee').MarqueeSlots;
|
|
314
|
+
export type YhMarqueeExpose = import('./src/marquee').MarqueeExpose;
|
|
315
|
+
export type YhMarqueeDirection = import('./src/marquee').MarqueeDirection;
|
|
@@ -95,3 +95,11 @@ export declare const marqueeEmits: {
|
|
|
95
95
|
cycleComplete: () => boolean;
|
|
96
96
|
};
|
|
97
97
|
export type MarqueeEmits = typeof marqueeEmits;
|
|
98
|
+
export interface MarqueeSlots {
|
|
99
|
+
default?: () => unknown;
|
|
100
|
+
}
|
|
101
|
+
export interface MarqueeExpose {
|
|
102
|
+
calculateClones: () => Promise<void>;
|
|
103
|
+
containerRef: import('vue').Ref<HTMLElement | null>;
|
|
104
|
+
contentRef: import('vue').Ref<HTMLElement | null>;
|
|
105
|
+
}
|
|
@@ -9,7 +9,10 @@ defineOptions({
|
|
|
9
9
|
const props = defineProps(marqueeProps);
|
|
10
10
|
const emit = defineEmits(marqueeEmits);
|
|
11
11
|
const ns = useNamespace("marquee");
|
|
12
|
-
const { themeStyle } = useComponentTheme(
|
|
12
|
+
const { themeStyle } = useComponentTheme(
|
|
13
|
+
"marquee",
|
|
14
|
+
computed(() => props.themeOverrides)
|
|
15
|
+
);
|
|
13
16
|
const containerRef = ref(null);
|
|
14
17
|
const contentRef = ref(null);
|
|
15
18
|
const cloneCount = ref(1);
|
|
@@ -72,9 +75,12 @@ onMounted(() => {
|
|
|
72
75
|
calculateClones();
|
|
73
76
|
isReady.value = true;
|
|
74
77
|
if (props.pauseOnHidden && typeof IntersectionObserver !== "undefined" && containerRef.value) {
|
|
75
|
-
const observer = new IntersectionObserver(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
const observer = new IntersectionObserver(
|
|
79
|
+
(entries) => {
|
|
80
|
+
isHidden.value = !entries[0].isIntersecting;
|
|
81
|
+
},
|
|
82
|
+
{ threshold: 0 }
|
|
83
|
+
);
|
|
78
84
|
observer.observe(containerRef.value);
|
|
79
85
|
onUnmounted(() => observer.disconnect());
|
|
80
86
|
}
|
|
@@ -90,11 +96,15 @@ defineExpose({
|
|
|
90
96
|
</script>
|
|
91
97
|
|
|
92
98
|
<template>
|
|
93
|
-
<div
|
|
99
|
+
<div
|
|
100
|
+
ref="containerRef"
|
|
101
|
+
:class="[ns.b(), ns.m(direction), {
|
|
94
102
|
[ns.m('pause-on-hover')]: pauseOnHover,
|
|
95
103
|
[ns.m('pause-on-click')]: pauseOnClick,
|
|
96
104
|
[ns.m('gradient')]: gradient
|
|
97
|
-
}]"
|
|
105
|
+
}]"
|
|
106
|
+
:style="[themeStyle, marqueeStyle, overlayStyle]"
|
|
107
|
+
>
|
|
98
108
|
<div :class="ns.e('content')" @animationiteration="handleAnimationIteration">
|
|
99
109
|
<div ref="contentRef" :class="ns.e('item')">
|
|
100
110
|
<slot />
|
|
@@ -75,12 +75,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
75
75
|
readonly default: undefined;
|
|
76
76
|
};
|
|
77
77
|
}>, {
|
|
78
|
-
/** 手动重新计算克隆数量(通常在动态改变内容高度/宽度时调用) */
|
|
79
78
|
calculateClones: () => Promise<void>;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/** 内容 DOM 引用 */
|
|
83
|
-
contentRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
79
|
+
containerRef: import("vue").Ref<HTMLElement | null>;
|
|
80
|
+
contentRef: import("vue").Ref<HTMLElement | null>;
|
|
84
81
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
85
82
|
cycleComplete: () => void;
|
|
86
83
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
package/dist/mention/index.d.ts
CHANGED
|
@@ -187,3 +187,12 @@ export declare const YhMention: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
187
187
|
export default YhMention;
|
|
188
188
|
export * from './src/mention';
|
|
189
189
|
export type MentionInstance = InstanceType<typeof Mention>;
|
|
190
|
+
export type YhMentionInstance = MentionInstance;
|
|
191
|
+
export type YhMentionProps = import('./src/mention').MentionProps;
|
|
192
|
+
export type YhMentionEmits = import('./src/mention').MentionEmits;
|
|
193
|
+
export type YhMentionSlots = import('./src/mention').MentionSlots;
|
|
194
|
+
export type YhMentionExpose = import('./src/mention').MentionExpose;
|
|
195
|
+
export type YhMentionOption = import('./src/mention').MentionOption;
|
|
196
|
+
export type YhMentionTriggerPosition = import('./src/mention').MentionTriggerPosition;
|
|
197
|
+
export type YhMentionPlacement = import('./src/mention').MentionPlacement;
|
|
198
|
+
export type YhMentionSize = import('./src/mention').MentionSize;
|
package/dist/menu/index.d.ts
CHANGED
|
@@ -898,3 +898,17 @@ export type MenuInstance = InstanceType<typeof Menu>;
|
|
|
898
898
|
export type MenuItemInstance = InstanceType<typeof MenuItem>;
|
|
899
899
|
export type MenuItemGroupInstance = InstanceType<typeof MenuItemGroup>;
|
|
900
900
|
export type SubMenuInstance = InstanceType<typeof SubMenu>;
|
|
901
|
+
export type YhMenuInstance = MenuInstance;
|
|
902
|
+
export type YhMenuItemInstance = MenuItemInstance;
|
|
903
|
+
export type YhMenuItemGroupInstance = MenuItemGroupInstance;
|
|
904
|
+
export type YhSubMenuInstance = SubMenuInstance;
|
|
905
|
+
export type YhMenuProps = import('./src/menu').MenuProps;
|
|
906
|
+
export type YhMenuEmits = import('./src/menu').MenuEmits;
|
|
907
|
+
export type YhMenuSlots = import('./src/menu').MenuSlots;
|
|
908
|
+
export type YhMenuExpose = import('./src/menu').MenuExpose;
|
|
909
|
+
export type YhMenuMode = import('./src/menu').MenuMode;
|
|
910
|
+
export type YhMenuTrigger = import('./src/menu').MenuTrigger;
|
|
911
|
+
export type YhMenuItemData = import('./src/menu').MenuItemData;
|
|
912
|
+
export type YhMenuItemProps = import('./src/menu').MenuItemProps;
|
|
913
|
+
export type YhMenuItemGroupProps = import('./src/menu').MenuItemGroupProps;
|
|
914
|
+
export type YhSubMenuProps = import('./src/menu').SubMenuProps;
|
package/dist/menu/src/menu.d.ts
CHANGED
|
@@ -223,6 +223,9 @@ export declare const menuEmits: {
|
|
|
223
223
|
};
|
|
224
224
|
export type MenuProps = ExtractPropTypes<typeof menuProps>;
|
|
225
225
|
export type MenuEmits = typeof menuEmits;
|
|
226
|
+
export interface MenuSlots {
|
|
227
|
+
default?: () => unknown;
|
|
228
|
+
}
|
|
226
229
|
export declare const menuItemProps: {
|
|
227
230
|
/** 唯一标识 */
|
|
228
231
|
readonly index: {
|
|
@@ -292,6 +295,12 @@ export declare const subMenuProps: {
|
|
|
292
295
|
};
|
|
293
296
|
};
|
|
294
297
|
export type SubMenuProps = ExtractPropTypes<typeof subMenuProps>;
|
|
298
|
+
export interface MenuExpose {
|
|
299
|
+
open: (index: string) => void;
|
|
300
|
+
close: (index: string) => void;
|
|
301
|
+
activeIndex: Ref<string>;
|
|
302
|
+
openedMenus: Ref<string[]>;
|
|
303
|
+
}
|
|
295
304
|
export interface MenuContext {
|
|
296
305
|
mode: Ref<MenuMode>;
|
|
297
306
|
activeIndex: Ref<string>;
|
package/dist/message/index.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
export declare const YhMessage: import(".").MessageFn;
|
|
2
2
|
export default YhMessage;
|
|
3
3
|
export * from './src/message';
|
|
4
|
+
export type YhMessageProps = import('./src/message').MessageProps;
|
|
5
|
+
export type YhMessageEmits = import('./src/message').MessageEmits;
|
|
6
|
+
export type YhMessageSlots = import('./src/message').MessageSlots;
|
|
7
|
+
export type YhMessageExpose = import('./src/message').MessageExpose;
|
|
8
|
+
export type YhMessageInstance = import('./src/message').MessageInstance;
|
|
9
|
+
export type YhMessageOptions = import('./src/message').MessageOptions;
|
|
10
|
+
export type YhMessageHandler = import('./src/message').MessageHandler;
|
|
11
|
+
export type YhMessageContext = import('./src/message').MessageContext;
|
|
12
|
+
export type YhMessageFn = import('./src/message').MessageFn;
|
|
13
|
+
export type YhMessageType = import('./src/message').MessageType;
|
|
14
|
+
export type YhMessagePlacement = import('./src/message').MessagePlacement;
|
|
@@ -1,123 +1,131 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Message Types & Props
|
|
3
|
-
* @description
|
|
3
|
+
* @description 娑堟伅鎻愮ず缁勪欢绫诲瀷瀹氫箟
|
|
4
4
|
*/
|
|
5
|
-
import type { VNode, ComponentPublicInstance } from 'vue';
|
|
5
|
+
import type { VNode, ComponentPublicInstance, Ref } from 'vue';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 娑堟伅绫诲瀷
|
|
8
8
|
*/
|
|
9
9
|
export declare const messageTypes: readonly ["success", "warning", "info", "error"];
|
|
10
10
|
export type MessageType = (typeof messageTypes)[number];
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* 娑堟伅浣嶇疆
|
|
13
13
|
*/
|
|
14
14
|
export declare const messagePlacements: readonly ["top", "top-left", "top-right", "bottom", "bottom-left", "bottom-right"];
|
|
15
15
|
export type MessagePlacement = (typeof messagePlacements)[number];
|
|
16
16
|
/**
|
|
17
|
-
* Message Props
|
|
17
|
+
* Message Props 瀹氫箟
|
|
18
18
|
*/
|
|
19
19
|
export interface MessageProps {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description 娑堟伅鍐呭
|
|
22
22
|
*/
|
|
23
23
|
message?: string | VNode;
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description 娑堟伅绫诲瀷
|
|
26
26
|
* @default 'info'
|
|
27
27
|
*/
|
|
28
28
|
type?: MessageType;
|
|
29
29
|
/**
|
|
30
|
-
* @description
|
|
30
|
+
* @description 鑷畾涔夊浘鏍?
|
|
31
31
|
*/
|
|
32
32
|
icon?: string | VNode;
|
|
33
33
|
/**
|
|
34
|
-
* @description
|
|
34
|
+
* @description 鏄惁鏄剧ず鍏抽棴鎸夐挳
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
37
37
|
showClose?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
* @description
|
|
39
|
+
* @description 鏄剧ず鏃堕棿锛堟绉掞級銆傝涓?0 鍒欎笉浼氳嚜鍔ㄥ叧闂?
|
|
40
40
|
* @default 3000
|
|
41
41
|
*/
|
|
42
42
|
duration?: number;
|
|
43
43
|
/**
|
|
44
|
-
* @description
|
|
44
|
+
* @description 璺濈椤堕儴鐨勫亸绉婚噺锛坧x锛?
|
|
45
45
|
* @default 20
|
|
46
46
|
*/
|
|
47
47
|
offset?: number;
|
|
48
48
|
/**
|
|
49
|
-
* @description
|
|
49
|
+
* @description 娑堟伅鐨勫敮涓€鏍囪瘑
|
|
50
50
|
*/
|
|
51
51
|
id?: string;
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
53
|
+
* @description 鏄惁灏?message 浣滀负 HTML 鐗囨澶勭悊
|
|
54
54
|
* @default false
|
|
55
55
|
*/
|
|
56
56
|
dangerouslyUseHTMLString?: boolean;
|
|
57
57
|
/**
|
|
58
|
-
* @description
|
|
58
|
+
* @description 鏄惁灞呬腑鏄剧ず
|
|
59
59
|
* @default false
|
|
60
60
|
*/
|
|
61
61
|
center?: boolean;
|
|
62
62
|
/**
|
|
63
|
-
* @description
|
|
63
|
+
* @description 鍏抽棴鏃剁殑鍥炶皟鍑芥暟
|
|
64
64
|
*/
|
|
65
65
|
onClose?: () => void;
|
|
66
66
|
/**
|
|
67
|
-
* @description z-index
|
|
67
|
+
* @description z-index 灞傜骇
|
|
68
68
|
*/
|
|
69
69
|
zIndex?: number;
|
|
70
70
|
/**
|
|
71
|
-
* @description
|
|
71
|
+
* @description 鑷畾涔夌被鍚?
|
|
72
72
|
*/
|
|
73
73
|
customClass?: string;
|
|
74
74
|
/**
|
|
75
|
-
* @description
|
|
75
|
+
* @description 鏄惁鏀寔鍒嗙粍鍚堝苟锛堢浉鍚屽唴瀹圭殑娑堟伅鍙樉绀轰竴娆★級
|
|
76
76
|
* @default false
|
|
77
77
|
*/
|
|
78
78
|
grouping?: boolean;
|
|
79
79
|
/**
|
|
80
|
-
* @description
|
|
80
|
+
* @description 閲嶅娆℃暟
|
|
81
81
|
*/
|
|
82
82
|
repeatNum?: number;
|
|
83
83
|
/**
|
|
84
|
-
* @description
|
|
84
|
+
* @description 娑堟伅灞曠ず浣嶇疆
|
|
85
85
|
* @default 'top'
|
|
86
86
|
*/
|
|
87
87
|
placement?: MessagePlacement;
|
|
88
88
|
/**
|
|
89
|
-
* @description
|
|
89
|
+
* @description 涓婚瑕嗙洊鍙橀噺
|
|
90
90
|
*/
|
|
91
91
|
themeOverrides?: import('@yh-ui/theme').ComponentThemeVars;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* Message Emits
|
|
94
|
+
* Message Emits 瀹氫箟
|
|
95
95
|
*/
|
|
96
96
|
export interface MessageEmits {
|
|
97
97
|
(e: 'destroy'): void;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Message Slots
|
|
100
|
+
* Message Slots 瀹氫箟
|
|
101
101
|
*/
|
|
102
102
|
export interface MessageSlots {
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* 娑堟伅鍐呭
|
|
105
105
|
*/
|
|
106
106
|
default?: () => void;
|
|
107
|
+
/**
|
|
108
|
+
* 鑷畾涔夊浘鏍?
|
|
109
|
+
*/
|
|
110
|
+
icon?: () => void;
|
|
107
111
|
}
|
|
108
112
|
/**
|
|
109
|
-
* Message
|
|
113
|
+
* Message 暴露实例
|
|
110
114
|
*/
|
|
111
|
-
export
|
|
112
|
-
visible: boolean
|
|
115
|
+
export interface MessageExpose {
|
|
116
|
+
visible: Ref<boolean>;
|
|
113
117
|
close: () => void;
|
|
114
|
-
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Message 瀹炰緥绫诲瀷
|
|
121
|
+
*/
|
|
122
|
+
export type MessageInstance = ComponentPublicInstance<MessageExpose>;
|
|
115
123
|
/**
|
|
116
|
-
* Message
|
|
124
|
+
* Message 閰嶇疆閫夐」
|
|
117
125
|
*/
|
|
118
126
|
export type MessageOptions = Partial<MessageProps>;
|
|
119
127
|
/**
|
|
120
|
-
* Message
|
|
128
|
+
* Message 澶勭悊鍑芥暟
|
|
121
129
|
*/
|
|
122
130
|
export interface MessageHandler {
|
|
123
131
|
close: () => void;
|
|
@@ -125,7 +133,7 @@ export interface MessageHandler {
|
|
|
125
133
|
closed?: boolean;
|
|
126
134
|
}
|
|
127
135
|
/**
|
|
128
|
-
* Message
|
|
136
|
+
* Message 涓婁笅鏂囷紙鐢ㄤ簬瀹炰緥绠$悊锛?
|
|
129
137
|
*/
|
|
130
138
|
export interface MessageContext {
|
|
131
139
|
id: string;
|
|
@@ -134,7 +142,7 @@ export interface MessageContext {
|
|
|
134
142
|
vnode: import('vue').VNode;
|
|
135
143
|
}
|
|
136
144
|
/**
|
|
137
|
-
* Message
|
|
145
|
+
* Message 鏂规硶绫诲瀷
|
|
138
146
|
*/
|
|
139
147
|
export type MessageFn = {
|
|
140
148
|
(options: MessageOptions | string): MessageHandler;
|
|
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
default?: (props: typeof __VLS_11) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<MessageProps, {
|
|
9
|
-
visible: import("vue").Ref<boolean
|
|
9
|
+
visible: import("vue").Ref<boolean>;
|
|
10
10
|
close: () => void;
|
|
11
11
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
12
|
destroy: () => any;
|
|
@@ -2,3 +2,10 @@ import './src/message-box.css';
|
|
|
2
2
|
export declare const YhMessageBox: import("@yh-ui/utils").SFCWithInstall<import(".").MessageBoxHandler>;
|
|
3
3
|
export default YhMessageBox;
|
|
4
4
|
export * from './src/message-box';
|
|
5
|
+
export type YhMessageBoxType = import('./src/message-box').MessageBoxType;
|
|
6
|
+
export type YhMessageBoxData = import('./src/message-box').MessageBoxData;
|
|
7
|
+
export type YhMessageBoxAction = import('./src/message-box').MessageBoxAction;
|
|
8
|
+
export type YhMessageBoxState = import('./src/message-box').MessageBoxState;
|
|
9
|
+
export type YhMessageBoxInstance = import('./src/message-box').MessageBoxInstance;
|
|
10
|
+
export type YhMessageBoxOptions = import('./src/message-box').MessageBoxOptions;
|
|
11
|
+
export type YhMessageBoxHandler = import('./src/message-box').MessageBoxHandler;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
export declare const YhNotification: import(".").NotificationFn;
|
|
2
2
|
export default YhNotification;
|
|
3
3
|
export * from './src/notification';
|
|
4
|
+
export type YhNotificationProps = import('./src/notification').NotificationProps;
|
|
5
|
+
export type YhNotificationEmits = import('./src/notification').NotificationEmits;
|
|
6
|
+
export type YhNotificationSlots = import('./src/notification').NotificationSlots;
|
|
7
|
+
export type YhNotificationExpose = import('./src/notification').NotificationExpose;
|
|
8
|
+
export type YhNotificationInstance = import('./src/notification').NotificationInstance;
|
|
9
|
+
export type YhNotificationOptions = import('./src/notification').NotificationOptions;
|
|
10
|
+
export type YhNotificationHandler = import('./src/notification').NotificationHandler;
|
|
11
|
+
export type YhNotificationContext = import('./src/notification').NotificationContext;
|
|
12
|
+
export type YhNotificationFn = import('./src/notification').NotificationFn;
|
|
13
|
+
export type YhNotificationType = import('./src/notification').NotificationType;
|
|
14
|
+
export type YhNotificationPosition = import('./src/notification').NotificationPosition;
|