@w-run/wdesign-ui 0.0.0-stage → 1.1.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 +255 -2
- package/dist/index.d.ts +1013 -0
- package/dist/parts/WdAffix.js +159 -0
- package/dist/parts/WdAiMessage.js +277 -0
- package/dist/parts/WdAlert.js +92 -0
- package/dist/parts/WdAnchor.js +159 -0
- package/dist/parts/WdAudioPlayer.js +1024 -0
- package/dist/parts/WdAvatar.js +6 -0
- package/dist/parts/WdAvatarGroup.js +46 -0
- package/dist/parts/WdBacktop.js +120 -0
- package/dist/parts/WdBadge.js +61 -0
- package/dist/parts/WdBento.js +40 -0
- package/dist/parts/WdBentoItem.js +43 -0
- package/dist/parts/WdBottomSheet.js +263 -0
- package/dist/parts/WdBreadcrumb.js +64 -0
- package/dist/parts/WdButton.js +94 -0
- package/dist/parts/WdCalendar.js +11 -0
- package/dist/parts/WdCard.js +113 -0
- package/dist/parts/WdCarousel.js +365 -0
- package/dist/parts/WdCascader.js +386 -0
- package/dist/parts/WdCheckbox.js +81 -0
- package/dist/parts/WdCollapse.js +135 -0
- package/dist/parts/WdColorPicker.js +592 -0
- package/dist/parts/WdCommand.js +357 -0
- package/dist/parts/WdContainer.js +37 -0
- package/dist/parts/WdCountdown.js +163 -0
- package/dist/parts/WdDanmaku.js +6 -0
- package/dist/parts/WdDatePicker.js +169 -0
- package/dist/parts/WdDateTimePicker.js +162 -0
- package/dist/parts/WdDescriptions.js +146 -0
- package/dist/parts/WdDivider.js +64 -0
- package/dist/parts/WdDrawer.js +176 -0
- package/dist/parts/WdDropdown.js +140 -0
- package/dist/parts/WdEmpty.js +79 -0
- package/dist/parts/WdExplorer.js +336 -0
- package/dist/parts/WdFileList.js +177 -0
- package/dist/parts/WdForm.js +111 -0
- package/dist/parts/WdFormItem.js +156 -0
- package/dist/parts/WdGrid.js +40 -0
- package/dist/parts/WdGroup.js +68 -0
- package/dist/parts/WdImagePreview.js +274 -0
- package/dist/parts/WdInput.js +10 -0
- package/dist/parts/WdInputNumber.js +253 -0
- package/dist/parts/WdListItem.js +60 -0
- package/dist/parts/WdLoading.js +128 -0
- package/dist/parts/WdMarkdown.js +172 -0
- package/dist/parts/WdMarquee.js +80 -0
- package/dist/parts/WdMasonry.js +40 -0
- package/dist/parts/WdMediaCard.js +302 -0
- package/dist/parts/WdMentions.js +277 -0
- package/dist/parts/WdModal.js +149 -0
- package/dist/parts/WdNav.js +311 -0
- package/dist/parts/WdNotification.js +112 -0
- package/dist/parts/WdOtp.js +107 -0
- package/dist/parts/WdPagination.js +252 -0
- package/dist/parts/WdPopconfirm.js +214 -0
- package/dist/parts/WdPopover.js +203 -0
- package/dist/parts/WdPostItem.js +84 -0
- package/dist/parts/WdProgress.js +48 -0
- package/dist/parts/WdProgressRing.js +101 -0
- package/dist/parts/WdPullRefresh.js +167 -0
- package/dist/parts/WdQRCode.js +1909 -0
- package/dist/parts/WdRadioGroup.js +95 -0
- package/dist/parts/WdRate.js +128 -0
- package/dist/parts/WdResult.js +86 -0
- package/dist/parts/WdScrollbar.js +186 -0
- package/dist/parts/WdSegmented.js +11 -0
- package/dist/parts/WdSelect.js +465 -0
- package/dist/parts/WdSkeleton.js +69 -0
- package/dist/parts/WdSlider.js +100 -0
- package/dist/parts/WdSortableList.js +291 -0
- package/dist/parts/WdSpace.js +46 -0
- package/dist/parts/WdSparkline.js +148 -0
- package/dist/parts/WdSpinner.js +6 -0
- package/dist/parts/WdSplitter.js +183 -0
- package/dist/parts/WdStatBar.js +202 -0
- package/dist/parts/WdStatistic.js +131 -0
- package/dist/parts/WdSteps.js +110 -0
- package/dist/parts/WdSwitch.js +63 -0
- package/dist/parts/WdTabBar.js +84 -0
- package/dist/parts/WdTable.js +589 -0
- package/dist/parts/WdTabs.js +219 -0
- package/dist/parts/WdTag.js +6 -0
- package/dist/parts/WdTagInput.js +181 -0
- package/dist/parts/WdTimePicker.js +12 -0
- package/dist/parts/WdTimeline.js +145 -0
- package/dist/parts/WdTooltip.js +108 -0
- package/dist/parts/WdTour.js +264 -0
- package/dist/parts/WdTransfer.js +446 -0
- package/dist/parts/WdTree.js +322 -0
- package/dist/parts/WdUpload.js +309 -0
- package/dist/parts/WdVideoPlayer.js +1006 -0
- package/dist/parts/WdVirtualList.js +169 -0
- package/dist/parts/WdWatermark.js +150 -0
- package/dist/parts/chunk-3LVE72ZK.js +361 -0
- package/dist/parts/chunk-5HYOQ52I.js +101 -0
- package/dist/parts/chunk-7M3MUL3B.js +275 -0
- package/dist/parts/chunk-AOTJ63HN.js +15 -0
- package/dist/parts/chunk-AXEF2U2A.js +41 -0
- package/dist/parts/chunk-CY3QOSFP.js +645 -0
- package/dist/parts/chunk-G7NN4A6J.js +40 -0
- package/dist/parts/chunk-HAKYCUAR.js +9 -0
- package/dist/parts/chunk-JDE4AHBR.js +160 -0
- package/dist/parts/chunk-LT3NTWIT.js +117 -0
- package/dist/parts/chunk-OGHYFT7B.js +387 -0
- package/dist/parts/chunk-Q34U2HES.js +261 -0
- package/dist/parts/chunk-RLSVPJHM.js +10 -0
- package/dist/parts/chunk-U2CDKD2T.js +30 -0
- package/dist/parts/chunk-UYUNYHZD.js +40 -0
- package/dist/parts/chunk-VUJL2HGD.js +23 -0
- package/dist/parts/chunk-WCFG5KNT.js +51 -0
- package/dist/parts/chunk-WDDAALPI.js +42 -0
- package/dist/parts/chunk-WFXLDBP2.js +149 -0
- package/dist/style/affix.css +566 -0
- package/dist/style/ai-msg.css +746 -0
- package/dist/style/alert.css +636 -0
- package/dist/style/anchor.css +630 -0
- package/dist/style/audio.css +1954 -0
- package/dist/style/avatar.css +651 -0
- package/dist/style/backtop.css +625 -0
- package/dist/style/badge.css +632 -0
- package/dist/style/bento.css +763 -0
- package/dist/style/bottom-sheet.css +776 -0
- package/dist/style/breadcrumb.css +629 -0
- package/dist/style/button.css +829 -0
- package/dist/style/calendar.css +1512 -0
- package/dist/style/card.css +748 -0
- package/dist/style/carousel.css +670 -0
- package/dist/style/cascader.css +862 -0
- package/dist/style/checkbox.css +706 -0
- package/dist/style/chevron.css +575 -0
- package/dist/style/collapse.css +648 -0
- package/dist/style/colorpicker.css +876 -0
- package/dist/style/command.css +760 -0
- package/dist/style/container.css +550 -0
- package/dist/style/countdown.css +722 -0
- package/dist/style/danmaku.css +644 -0
- package/dist/style/datepicker.css +683 -0
- package/dist/style/datetime-picker.css +714 -0
- package/dist/style/descriptions.css +712 -0
- package/dist/style/divider.css +604 -0
- package/dist/style/dot.css +585 -0
- package/dist/style/drawer.css +743 -0
- package/dist/style/dropdown.css +645 -0
- package/dist/style/empty.css +657 -0
- package/dist/style/explorer.css +944 -0
- package/dist/style/file-list.css +664 -0
- package/dist/style/flip.css +600 -0
- package/dist/style/form.css +638 -0
- package/dist/style/grid.css +618 -0
- package/dist/style/group.css +1022 -0
- package/dist/style/icon-btn.css +641 -0
- package/dist/style/image-preview.css +725 -0
- package/dist/style/input-number.css +680 -0
- package/dist/style/input.css +682 -0
- package/dist/style/list.css +630 -0
- package/dist/style/loading.css +667 -0
- package/dist/style/markdown.css +884 -0
- package/dist/style/marquee.css +678 -0
- package/dist/style/masonry.css +614 -0
- package/dist/style/media-card.css +1229 -0
- package/dist/style/mentions.css +690 -0
- package/dist/style/modal.css +775 -0
- package/dist/style/nav.css +1046 -0
- package/dist/style/notification.css +601 -0
- package/dist/style/otp.css +699 -0
- package/dist/style/pagination.css +680 -0
- package/dist/style/popconfirm.css +645 -0
- package/dist/style/popover.css +740 -0
- package/dist/style/post-item.css +676 -0
- package/dist/style/progress-ring.css +640 -0
- package/dist/style/progress.css +576 -0
- package/dist/style/pull-refresh.css +637 -0
- package/dist/style/qrcode.css +613 -0
- package/dist/style/radio.css +705 -0
- package/dist/style/rate.css +637 -0
- package/dist/style/result.css +597 -0
- package/dist/style/scroll-reveal.css +613 -0
- package/dist/style/scrollbar.css +644 -0
- package/dist/style/segmented-picker.css +679 -0
- package/dist/style/segmented.css +894 -0
- package/dist/style/select.css +937 -0
- package/dist/style/skeleton.css +590 -0
- package/dist/style/slider.css +642 -0
- package/dist/style/sortable.css +714 -0
- package/dist/style/space.css +568 -0
- package/dist/style/sparkline.css +606 -0
- package/dist/style/spinner.css +586 -0
- package/dist/style/splitter.css +711 -0
- package/dist/style/stat-bar.css +767 -0
- package/dist/style/statistic.css +589 -0
- package/dist/style/steps.css +724 -0
- package/dist/style/switch.css +676 -0
- package/dist/style/tab-bar.css +647 -0
- package/dist/style/table.css +1229 -0
- package/dist/style/tabs.css +756 -0
- package/dist/style/tag-input.css +710 -0
- package/dist/style/tag.css +682 -0
- package/dist/style/time-picker.css +749 -0
- package/dist/style/timeline.css +1082 -0
- package/dist/style/toast.css +598 -0
- package/dist/style/tooltip.css +604 -0
- package/dist/style/tour.css +683 -0
- package/dist/style/transfer.css +858 -0
- package/dist/style/tree.css +786 -0
- package/dist/style/typography.css +947 -0
- package/dist/style/upload.css +758 -0
- package/dist/style/vlist.css +591 -0
- package/dist/style/vplayer.css +1588 -0
- package/dist/style/watermark.css +570 -0
- package/dist/wdesign-ui.css +21093 -0
- package/dist/wdesign-ui.esm.js +20265 -0
- package/package.json +134 -4
- package/tokens.json +385 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useFocusTrap
|
|
3
|
+
} from "./chunk-LT3NTWIT.js";
|
|
4
|
+
import "./chunk-5HYOQ52I.js";
|
|
5
|
+
import {
|
|
6
|
+
useAnchoredPosition
|
|
7
|
+
} from "./chunk-WFXLDBP2.js";
|
|
8
|
+
|
|
9
|
+
// .lib-build/WdTour.ts
|
|
10
|
+
import { defineComponent as _defineComponent } from "vue";
|
|
11
|
+
import { createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, mergeProps as _mergeProps, Teleport as _Teleport, createBlock as _createBlock } from "vue";
|
|
12
|
+
import { ref, computed, watch, onMounted, onUnmounted, nextTick } from "vue";
|
|
13
|
+
var _hoisted_1 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "wd-tour__veil"
|
|
16
|
+
};
|
|
17
|
+
var _hoisted_2 = ["aria-label"];
|
|
18
|
+
var _hoisted_3 = { class: "wd-tour__head" };
|
|
19
|
+
var _hoisted_4 = { class: "wd-tour__count" };
|
|
20
|
+
var _hoisted_5 = { class: "wd-tour__title" };
|
|
21
|
+
var _hoisted_6 = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "wd-tour__desc"
|
|
24
|
+
};
|
|
25
|
+
var _hoisted_7 = { class: "wd-tour__foot" };
|
|
26
|
+
var WdTour_default = /* @__PURE__ */ _defineComponent({
|
|
27
|
+
...{ name: "WdTour" },
|
|
28
|
+
__name: "WdTour",
|
|
29
|
+
props: {
|
|
30
|
+
modelValue: { type: Boolean, required: false, default: false },
|
|
31
|
+
steps: { type: Array, required: true },
|
|
32
|
+
startAt: { type: Number, required: false, default: 0 },
|
|
33
|
+
maskOpacity: { type: Number, required: false, default: 0.45 },
|
|
34
|
+
nextText: { type: String, required: false, default: "\u4E0B\u4E00\u6B65" },
|
|
35
|
+
prevText: { type: String, required: false, default: "\u4E0A\u4E00\u6B65" },
|
|
36
|
+
doneText: { type: String, required: false, default: "\u77E5\u9053\u4E86" },
|
|
37
|
+
skipText: { type: String, required: false, default: "\u8DF3\u8FC7" }
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:modelValue", "change", "finish", "skip"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
const emit = __emit;
|
|
43
|
+
const idx = ref(props.startAt);
|
|
44
|
+
const rootEl = ref(null);
|
|
45
|
+
const panelEl = ref(null);
|
|
46
|
+
const anchorEl = ref(null);
|
|
47
|
+
const current = computed(() => props.steps[idx.value]);
|
|
48
|
+
const isLast = computed(() => idx.value >= props.steps.length - 1);
|
|
49
|
+
const isFirst = computed(() => idx.value <= 0);
|
|
50
|
+
const hole = ref(null);
|
|
51
|
+
function resolveTarget(step) {
|
|
52
|
+
if (!step) return null;
|
|
53
|
+
const t = step.target;
|
|
54
|
+
if (typeof t === "string") return document.querySelector(t);
|
|
55
|
+
if (typeof t === "function") return t();
|
|
56
|
+
return t;
|
|
57
|
+
}
|
|
58
|
+
function measure() {
|
|
59
|
+
const el = resolveTarget(current.value);
|
|
60
|
+
anchorEl.value = el;
|
|
61
|
+
if (!el) {
|
|
62
|
+
hole.value = null;
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const r = el.getBoundingClientRect();
|
|
66
|
+
const pad = 6;
|
|
67
|
+
hole.value = {
|
|
68
|
+
top: r.top + window.scrollY - pad,
|
|
69
|
+
left: r.left + window.scrollX - pad,
|
|
70
|
+
width: r.width + pad * 2,
|
|
71
|
+
height: r.height + pad * 2
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
async function go(i) {
|
|
75
|
+
if (i < 0 || i >= props.steps.length) return;
|
|
76
|
+
idx.value = i;
|
|
77
|
+
emit("change", i);
|
|
78
|
+
await nextTick();
|
|
79
|
+
const el = resolveTarget(current.value);
|
|
80
|
+
if (el) {
|
|
81
|
+
el.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
82
|
+
await new Promise((r) => setTimeout(r, 260));
|
|
83
|
+
}
|
|
84
|
+
measure();
|
|
85
|
+
panelEl.value?.focus();
|
|
86
|
+
}
|
|
87
|
+
function next() {
|
|
88
|
+
if (isLast.value) {
|
|
89
|
+
finish();
|
|
90
|
+
} else {
|
|
91
|
+
go(idx.value + 1);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function prev() {
|
|
95
|
+
if (!isFirst.value) go(idx.value - 1);
|
|
96
|
+
}
|
|
97
|
+
function finish() {
|
|
98
|
+
emit("update:modelValue", false);
|
|
99
|
+
emit("finish");
|
|
100
|
+
}
|
|
101
|
+
function skip() {
|
|
102
|
+
emit("update:modelValue", false);
|
|
103
|
+
emit("skip", idx.value);
|
|
104
|
+
}
|
|
105
|
+
const { pos } = useAnchoredPosition(
|
|
106
|
+
computed(() => props.modelValue && !!anchorEl.value),
|
|
107
|
+
anchorEl,
|
|
108
|
+
panelEl,
|
|
109
|
+
{ placement: current.value?.placement || "bottom", offset: 12 }
|
|
110
|
+
);
|
|
111
|
+
const openRef = computed(() => props.modelValue);
|
|
112
|
+
useFocusTrap(openRef, panelEl, () => {
|
|
113
|
+
skip();
|
|
114
|
+
return true;
|
|
115
|
+
});
|
|
116
|
+
function onKey(e) {
|
|
117
|
+
if (!props.modelValue) return;
|
|
118
|
+
if (e.key === "ArrowRight") {
|
|
119
|
+
e.preventDefault();
|
|
120
|
+
next();
|
|
121
|
+
} else if (e.key === "ArrowLeft") {
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
prev();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function onResize() {
|
|
127
|
+
if (props.modelValue) measure();
|
|
128
|
+
}
|
|
129
|
+
watch(() => props.modelValue, async (v) => {
|
|
130
|
+
if (v) {
|
|
131
|
+
idx.value = props.startAt;
|
|
132
|
+
await nextTick();
|
|
133
|
+
await go(props.startAt);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
watch(() => props.steps, () => {
|
|
137
|
+
if (props.modelValue) measure();
|
|
138
|
+
}, { deep: true });
|
|
139
|
+
onMounted(() => {
|
|
140
|
+
window.addEventListener("keydown", onKey);
|
|
141
|
+
window.addEventListener("resize", onResize);
|
|
142
|
+
window.addEventListener("scroll", onResize, true);
|
|
143
|
+
});
|
|
144
|
+
onUnmounted(() => {
|
|
145
|
+
window.removeEventListener("keydown", onKey);
|
|
146
|
+
window.removeEventListener("resize", onResize);
|
|
147
|
+
window.removeEventListener("scroll", onResize, true);
|
|
148
|
+
});
|
|
149
|
+
return (_ctx, _cache) => {
|
|
150
|
+
return _openBlock(), _createBlock(_Teleport, { to: "body" }, [
|
|
151
|
+
__props.modelValue ? (_openBlock(), _createElementBlock(
|
|
152
|
+
"div",
|
|
153
|
+
_mergeProps({
|
|
154
|
+
key: 0,
|
|
155
|
+
ref_key: "rootEl",
|
|
156
|
+
ref: rootEl
|
|
157
|
+
}, _ctx.$attrs, {
|
|
158
|
+
class: "wd-tour",
|
|
159
|
+
style: { "--mask-a": __props.maskOpacity }
|
|
160
|
+
}),
|
|
161
|
+
[
|
|
162
|
+
_createCommentVNode("\n \u906E\u7F69\u7528\u300C\u6316\u6D1E\u300D\u800C\u4E0D\u662F\u76D6\u4E00\u5C42\u7CCA\u4F4F\uFF1A\n box-shadow: 0 0 0 9999px \u5E26\u900F\u660E\u5EA6\uFF0C\u4E2D\u95F4\u7684\u6D1E\u662F\u5143\u7D20\u672C\u8EAB\u7684\u5F62\u72B6\u3002\n \u6BD4 clip-path \u517C\u5BB9\u6027\u597D\uFF0C\u4E5F\u4E0D\u7528\u989D\u5916\u7B97 path\u3002\n "),
|
|
163
|
+
hole.value ? (_openBlock(), _createElementBlock(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
key: 0,
|
|
167
|
+
class: "wd-tour__hole",
|
|
168
|
+
style: _normalizeStyle({
|
|
169
|
+
top: hole.value.top + "px",
|
|
170
|
+
left: hole.value.left + "px",
|
|
171
|
+
width: hole.value.width + "px",
|
|
172
|
+
height: hole.value.height + "px"
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
null,
|
|
176
|
+
4
|
|
177
|
+
/* STYLE */
|
|
178
|
+
)) : (_openBlock(), _createElementBlock("div", _hoisted_1)),
|
|
179
|
+
_createElementVNode("div", {
|
|
180
|
+
ref_key: "panelEl",
|
|
181
|
+
ref: panelEl,
|
|
182
|
+
class: "wd-tour__panel",
|
|
183
|
+
role: "dialog",
|
|
184
|
+
"aria-modal": "true",
|
|
185
|
+
"aria-label": current.value?.title || "\u5F15\u5BFC",
|
|
186
|
+
tabindex: "-1",
|
|
187
|
+
style: _normalizeStyle(anchorEl.value && hole.value ? { top: _unref(pos).top + "px", left: _unref(pos).left + "px" } : { top: "50%", left: "50%", transform: "translate(-50%, -50%)" })
|
|
188
|
+
}, [
|
|
189
|
+
_createElementVNode("div", _hoisted_3, [
|
|
190
|
+
_createElementVNode(
|
|
191
|
+
"span",
|
|
192
|
+
_hoisted_4,
|
|
193
|
+
_toDisplayString(idx.value + 1) + " / " + _toDisplayString(__props.steps.length),
|
|
194
|
+
1
|
|
195
|
+
/* TEXT */
|
|
196
|
+
),
|
|
197
|
+
__props.skipText && current.value?.closable !== false ? (_openBlock(), _createElementBlock(
|
|
198
|
+
"button",
|
|
199
|
+
{
|
|
200
|
+
key: 0,
|
|
201
|
+
type: "button",
|
|
202
|
+
class: "wd-tour__skip",
|
|
203
|
+
onClick: skip
|
|
204
|
+
},
|
|
205
|
+
_toDisplayString(__props.skipText),
|
|
206
|
+
1
|
|
207
|
+
/* TEXT */
|
|
208
|
+
)) : _createCommentVNode("v-if", true)
|
|
209
|
+
]),
|
|
210
|
+
_createElementVNode(
|
|
211
|
+
"h4",
|
|
212
|
+
_hoisted_5,
|
|
213
|
+
_toDisplayString(current.value?.title),
|
|
214
|
+
1
|
|
215
|
+
/* TEXT */
|
|
216
|
+
),
|
|
217
|
+
current.value?.desc ? (_openBlock(), _createElementBlock(
|
|
218
|
+
"p",
|
|
219
|
+
_hoisted_6,
|
|
220
|
+
_toDisplayString(current.value.desc),
|
|
221
|
+
1
|
|
222
|
+
/* TEXT */
|
|
223
|
+
)) : _createCommentVNode("v-if", true),
|
|
224
|
+
_createElementVNode("div", _hoisted_7, [
|
|
225
|
+
!isFirst.value ? (_openBlock(), _createElementBlock(
|
|
226
|
+
"button",
|
|
227
|
+
{
|
|
228
|
+
key: 0,
|
|
229
|
+
type: "button",
|
|
230
|
+
class: "wd-tour__btn",
|
|
231
|
+
onClick: prev
|
|
232
|
+
},
|
|
233
|
+
_toDisplayString(__props.prevText),
|
|
234
|
+
1
|
|
235
|
+
/* TEXT */
|
|
236
|
+
)) : _createCommentVNode("v-if", true),
|
|
237
|
+
_createElementVNode(
|
|
238
|
+
"button",
|
|
239
|
+
{
|
|
240
|
+
type: "button",
|
|
241
|
+
class: "wd-tour__btn wd-tour__btn--main",
|
|
242
|
+
onClick: next
|
|
243
|
+
},
|
|
244
|
+
_toDisplayString(isLast.value ? __props.doneText : __props.nextText),
|
|
245
|
+
1
|
|
246
|
+
/* TEXT */
|
|
247
|
+
)
|
|
248
|
+
]),
|
|
249
|
+
_renderSlot(_ctx.$slots, "panel", {
|
|
250
|
+
index: idx.value,
|
|
251
|
+
step: current.value
|
|
252
|
+
})
|
|
253
|
+
], 12, _hoisted_2)
|
|
254
|
+
],
|
|
255
|
+
16
|
|
256
|
+
/* FULL_PROPS */
|
|
257
|
+
)) : _createCommentVNode("v-if", true)
|
|
258
|
+
]);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
export {
|
|
263
|
+
WdTour_default as WdTour
|
|
264
|
+
};
|