@opentinyvue/vue-guide 3.22.0 → 3.23.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/lib/index.js +1 -1
- package/lib/pc.js +216 -231
- package/package.json +5 -5
package/lib/index.js
CHANGED
package/lib/pc.js
CHANGED
|
@@ -4,243 +4,271 @@ import '@opentinyvue/vue-theme/guide/index.css';
|
|
|
4
4
|
import Shepherd from 'shepherd.js';
|
|
5
5
|
import { openBlock, createElementBlock, renderSlot } from 'vue';
|
|
6
6
|
|
|
7
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
8
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
10
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
11
|
+
t && (r = t);
|
|
12
|
+
var o = 0;
|
|
13
|
+
return function() {
|
|
14
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
+
}
|
|
19
|
+
function _unsupportedIterableToArray(r, a) {
|
|
20
|
+
if (r) {
|
|
21
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
22
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
23
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function _arrayLikeToArray(r, a) {
|
|
27
|
+
(null == a || a > r.length) && (a = r.length);
|
|
28
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
32
|
+
var target = sfc.__vccOpts || sfc;
|
|
33
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
34
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
35
|
+
target[key] = val;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
};
|
|
39
|
+
|
|
7
40
|
function _regeneratorRuntime() {
|
|
8
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/
|
|
41
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
9
42
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
10
|
-
return
|
|
43
|
+
return r;
|
|
11
44
|
};
|
|
12
|
-
var t,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function define(t2, e2, r2) {
|
|
16
|
-
return Object.defineProperty(t2, e2, { value: r2, enumerable: true, configurable: true, writable: true }), t2[e2];
|
|
45
|
+
var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag";
|
|
46
|
+
function c(t2, r2, e2, n2) {
|
|
47
|
+
return Object.defineProperty(t2, r2, { value: e2, enumerable: !n2, configurable: !n2, writable: !n2 });
|
|
17
48
|
}
|
|
18
49
|
try {
|
|
19
|
-
|
|
50
|
+
c({}, "");
|
|
20
51
|
} catch (t2) {
|
|
21
|
-
|
|
22
|
-
return t3[
|
|
52
|
+
c = function c2(t3, r2, e2) {
|
|
53
|
+
return t3[r2] = e2;
|
|
23
54
|
};
|
|
24
55
|
}
|
|
25
|
-
function
|
|
26
|
-
var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype)
|
|
27
|
-
return
|
|
56
|
+
function h(r2, e2, n2, o2) {
|
|
57
|
+
var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype);
|
|
58
|
+
return c(a2, "_invoke", /* @__PURE__ */ function(r3, e3, n3) {
|
|
59
|
+
var o3 = 1;
|
|
60
|
+
return function(i3, a3) {
|
|
61
|
+
if (3 === o3) throw Error("Generator is already running");
|
|
62
|
+
if (4 === o3) {
|
|
63
|
+
if ("throw" === i3) throw a3;
|
|
64
|
+
return { value: t, done: true };
|
|
65
|
+
}
|
|
66
|
+
for (n3.method = i3, n3.arg = a3; ; ) {
|
|
67
|
+
var u2 = n3.delegate;
|
|
68
|
+
if (u2) {
|
|
69
|
+
var c2 = d(u2, n3);
|
|
70
|
+
if (c2) {
|
|
71
|
+
if (c2 === f) continue;
|
|
72
|
+
return c2;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if ("next" === n3.method) n3.sent = n3._sent = n3.arg;
|
|
76
|
+
else if ("throw" === n3.method) {
|
|
77
|
+
if (1 === o3) throw o3 = 4, n3.arg;
|
|
78
|
+
n3.dispatchException(n3.arg);
|
|
79
|
+
} else "return" === n3.method && n3.abrupt("return", n3.arg);
|
|
80
|
+
o3 = 3;
|
|
81
|
+
var h2 = s(r3, e3, n3);
|
|
82
|
+
if ("normal" === h2.type) {
|
|
83
|
+
if (o3 = n3.done ? 4 : 2, h2.arg === f) continue;
|
|
84
|
+
return { value: h2.arg, done: n3.done };
|
|
85
|
+
}
|
|
86
|
+
"throw" === h2.type && (o3 = 4, n3.method = "throw", n3.arg = h2.arg);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}(r2, n2, new Context(o2 || [])), true), a2;
|
|
28
90
|
}
|
|
29
|
-
function
|
|
91
|
+
function s(t2, r2, e2) {
|
|
30
92
|
try {
|
|
31
|
-
return { type: "normal", arg: t2.call(
|
|
93
|
+
return { type: "normal", arg: t2.call(r2, e2) };
|
|
32
94
|
} catch (t3) {
|
|
33
95
|
return { type: "throw", arg: t3 };
|
|
34
96
|
}
|
|
35
97
|
}
|
|
36
|
-
|
|
37
|
-
var
|
|
98
|
+
r.wrap = h;
|
|
99
|
+
var f = {};
|
|
38
100
|
function Generator() {
|
|
39
101
|
}
|
|
40
102
|
function GeneratorFunction() {
|
|
41
103
|
}
|
|
42
104
|
function GeneratorFunctionPrototype() {
|
|
43
105
|
}
|
|
44
|
-
var
|
|
45
|
-
|
|
106
|
+
var l = {};
|
|
107
|
+
c(l, i, function() {
|
|
46
108
|
return this;
|
|
47
109
|
});
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
var
|
|
51
|
-
function
|
|
52
|
-
["next", "throw", "return"].forEach(function(
|
|
53
|
-
|
|
54
|
-
return this._invoke(
|
|
110
|
+
var p = Object.getPrototypeOf, y = p && p(p(x([])));
|
|
111
|
+
y && y !== e && n.call(y, i) && (l = y);
|
|
112
|
+
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
113
|
+
function g(t2) {
|
|
114
|
+
["next", "throw", "return"].forEach(function(r2) {
|
|
115
|
+
c(t2, r2, function(t3) {
|
|
116
|
+
return this._invoke(r2, t3);
|
|
55
117
|
});
|
|
56
118
|
});
|
|
57
119
|
}
|
|
58
|
-
function AsyncIterator(t2,
|
|
59
|
-
function
|
|
60
|
-
var c2 =
|
|
120
|
+
function AsyncIterator(t2, r2) {
|
|
121
|
+
function e2(o3, i2, a2, u2) {
|
|
122
|
+
var c2 = s(t2[o3], t2, i2);
|
|
61
123
|
if ("throw" !== c2.type) {
|
|
62
|
-
var
|
|
63
|
-
return
|
|
64
|
-
|
|
124
|
+
var h2 = c2.arg, f2 = h2.value;
|
|
125
|
+
return f2 && "object" == typeof f2 && n.call(f2, "__await") ? r2.resolve(f2.__await).then(function(t3) {
|
|
126
|
+
e2("next", t3, a2, u2);
|
|
65
127
|
}, function(t3) {
|
|
66
|
-
|
|
67
|
-
}) :
|
|
68
|
-
|
|
128
|
+
e2("throw", t3, a2, u2);
|
|
129
|
+
}) : r2.resolve(f2).then(function(t3) {
|
|
130
|
+
h2.value = t3, a2(h2);
|
|
69
131
|
}, function(t3) {
|
|
70
|
-
return
|
|
132
|
+
return e2("throw", t3, a2, u2);
|
|
71
133
|
});
|
|
72
134
|
}
|
|
73
|
-
|
|
135
|
+
u2(c2.arg);
|
|
74
136
|
}
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
function
|
|
78
|
-
return new
|
|
79
|
-
|
|
137
|
+
var o2;
|
|
138
|
+
c(this, "_invoke", function(t3, n2) {
|
|
139
|
+
function i2() {
|
|
140
|
+
return new r2(function(r3, o3) {
|
|
141
|
+
e2(t3, n2, r3, o3);
|
|
80
142
|
});
|
|
81
143
|
}
|
|
82
|
-
return
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function makeInvokeMethod(e2, r2, n2) {
|
|
86
|
-
var o2 = h;
|
|
87
|
-
return function(i2, a2) {
|
|
88
|
-
if (o2 === f) throw Error("Generator is already running");
|
|
89
|
-
if (o2 === s) {
|
|
90
|
-
if ("throw" === i2) throw a2;
|
|
91
|
-
return { value: t, done: true };
|
|
92
|
-
}
|
|
93
|
-
for (n2.method = i2, n2.arg = a2; ; ) {
|
|
94
|
-
var c2 = n2.delegate;
|
|
95
|
-
if (c2) {
|
|
96
|
-
var u2 = maybeInvokeDelegate(c2, n2);
|
|
97
|
-
if (u2) {
|
|
98
|
-
if (u2 === y) continue;
|
|
99
|
-
return u2;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if ("next" === n2.method) n2.sent = n2._sent = n2.arg;
|
|
103
|
-
else if ("throw" === n2.method) {
|
|
104
|
-
if (o2 === h) throw o2 = s, n2.arg;
|
|
105
|
-
n2.dispatchException(n2.arg);
|
|
106
|
-
} else "return" === n2.method && n2.abrupt("return", n2.arg);
|
|
107
|
-
o2 = f;
|
|
108
|
-
var p2 = tryCatch(e2, r2, n2);
|
|
109
|
-
if ("normal" === p2.type) {
|
|
110
|
-
if (o2 = n2.done ? s : l, p2.arg === y) continue;
|
|
111
|
-
return { value: p2.arg, done: n2.done };
|
|
112
|
-
}
|
|
113
|
-
"throw" === p2.type && (o2 = s, n2.method = "throw", n2.arg = p2.arg);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
144
|
+
return o2 = o2 ? o2.then(i2, i2) : i2();
|
|
145
|
+
}, true);
|
|
116
146
|
}
|
|
117
|
-
function
|
|
118
|
-
var n2 =
|
|
119
|
-
if (o2 === t) return
|
|
120
|
-
var i2 =
|
|
121
|
-
if ("throw" === i2.type) return
|
|
147
|
+
function d(r2, e2) {
|
|
148
|
+
var n2 = e2.method, o2 = r2.i[n2];
|
|
149
|
+
if (o2 === t) return e2.delegate = null, "throw" === n2 && r2.i.return && (e2.method = "return", e2.arg = t, d(r2, e2), "throw" === e2.method) || "return" !== n2 && (e2.method = "throw", e2.arg = new TypeError("The iterator does not provide a '" + n2 + "' method")), f;
|
|
150
|
+
var i2 = s(o2, r2.i, e2.arg);
|
|
151
|
+
if ("throw" === i2.type) return e2.method = "throw", e2.arg = i2.arg, e2.delegate = null, f;
|
|
122
152
|
var a2 = i2.arg;
|
|
123
|
-
return a2 ? a2.done ? (r2
|
|
153
|
+
return a2 ? a2.done ? (e2[r2.r] = a2.value, e2.next = r2.n, "return" !== e2.method && (e2.method = "next", e2.arg = t), e2.delegate = null, f) : a2 : (e2.method = "throw", e2.arg = new TypeError("iterator result is not an object"), e2.delegate = null, f);
|
|
124
154
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
1 in t2 && (e2.catchLoc = t2[1]), 2 in t2 && (e2.finallyLoc = t2[2], e2.afterLoc = t2[3]), this.tryEntries.push(e2);
|
|
155
|
+
function w(t2) {
|
|
156
|
+
this.tryEntries.push(t2);
|
|
128
157
|
}
|
|
129
|
-
function
|
|
130
|
-
var e2 =
|
|
131
|
-
e2.type = "normal",
|
|
158
|
+
function m(r2) {
|
|
159
|
+
var e2 = r2[4] || {};
|
|
160
|
+
e2.type = "normal", e2.arg = t, r2[4] = e2;
|
|
132
161
|
}
|
|
133
162
|
function Context(t2) {
|
|
134
|
-
this.tryEntries = [
|
|
163
|
+
this.tryEntries = [[-1]], t2.forEach(w, this), this.reset(true);
|
|
135
164
|
}
|
|
136
|
-
function
|
|
137
|
-
if (
|
|
138
|
-
var
|
|
139
|
-
if (
|
|
140
|
-
if ("function" == typeof
|
|
141
|
-
if (!isNaN(
|
|
142
|
-
var o2 = -1,
|
|
143
|
-
for (; ++o2 <
|
|
144
|
-
return
|
|
165
|
+
function x(r2) {
|
|
166
|
+
if (null != r2) {
|
|
167
|
+
var e2 = r2[i];
|
|
168
|
+
if (e2) return e2.call(r2);
|
|
169
|
+
if ("function" == typeof r2.next) return r2;
|
|
170
|
+
if (!isNaN(r2.length)) {
|
|
171
|
+
var o2 = -1, a2 = function e3() {
|
|
172
|
+
for (; ++o2 < r2.length; ) if (n.call(r2, o2)) return e3.value = r2[o2], e3.done = false, e3;
|
|
173
|
+
return e3.value = t, e3.done = true, e3;
|
|
145
174
|
};
|
|
146
|
-
return
|
|
175
|
+
return a2.next = a2;
|
|
147
176
|
}
|
|
148
177
|
}
|
|
149
|
-
throw new TypeError(typeof
|
|
178
|
+
throw new TypeError(typeof r2 + " is not iterable");
|
|
150
179
|
}
|
|
151
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
152
|
-
var
|
|
153
|
-
return !!
|
|
154
|
-
},
|
|
155
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype,
|
|
156
|
-
},
|
|
180
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function(t2) {
|
|
181
|
+
var r2 = "function" == typeof t2 && t2.constructor;
|
|
182
|
+
return !!r2 && (r2 === GeneratorFunction || "GeneratorFunction" === (r2.displayName || r2.name));
|
|
183
|
+
}, r.mark = function(t2) {
|
|
184
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, c(t2, u, "GeneratorFunction")), t2.prototype = Object.create(v), t2;
|
|
185
|
+
}, r.awrap = function(t2) {
|
|
157
186
|
return { __await: t2 };
|
|
158
|
-
},
|
|
187
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function() {
|
|
159
188
|
return this;
|
|
160
|
-
}),
|
|
189
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function(t2, e2, n2, o2, i2) {
|
|
161
190
|
void 0 === i2 && (i2 = Promise);
|
|
162
|
-
var a2 = new AsyncIterator(
|
|
163
|
-
return
|
|
191
|
+
var a2 = new AsyncIterator(h(t2, e2, n2, o2), i2);
|
|
192
|
+
return r.isGeneratorFunction(e2) ? a2 : a2.next().then(function(t3) {
|
|
164
193
|
return t3.done ? t3.value : a2.next();
|
|
165
194
|
});
|
|
166
|
-
},
|
|
195
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function() {
|
|
167
196
|
return this;
|
|
168
|
-
}),
|
|
197
|
+
}), c(v, "toString", function() {
|
|
169
198
|
return "[object Generator]";
|
|
170
|
-
}),
|
|
171
|
-
var
|
|
172
|
-
for (var n2 in
|
|
173
|
-
return
|
|
174
|
-
for (;
|
|
175
|
-
|
|
176
|
-
if (t3 in e2) return next.value = t3, next.done = false, next;
|
|
177
|
-
}
|
|
178
|
-
return next.done = true, next;
|
|
199
|
+
}), r.keys = function(t2) {
|
|
200
|
+
var r2 = Object(t2), e2 = [];
|
|
201
|
+
for (var n2 in r2) e2.unshift(n2);
|
|
202
|
+
return function t3() {
|
|
203
|
+
for (; e2.length; ) if ((n2 = e2.pop()) in r2) return t3.value = n2, t3.done = false, t3;
|
|
204
|
+
return t3.done = true, t3;
|
|
179
205
|
};
|
|
180
|
-
},
|
|
181
|
-
if (this.prev =
|
|
206
|
+
}, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r2) {
|
|
207
|
+
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r2) for (var e2 in this) "t" === e2.charAt(0) && n.call(this, e2) && !isNaN(+e2.slice(1)) && (this[e2] = t);
|
|
182
208
|
}, stop: function stop() {
|
|
183
209
|
this.done = true;
|
|
184
|
-
var t2 = this.tryEntries[0]
|
|
210
|
+
var t2 = this.tryEntries[0][4];
|
|
185
211
|
if ("throw" === t2.type) throw t2.arg;
|
|
186
212
|
return this.rval;
|
|
187
|
-
}, dispatchException: function dispatchException(
|
|
188
|
-
if (this.done) throw
|
|
189
|
-
var
|
|
190
|
-
function
|
|
191
|
-
|
|
213
|
+
}, dispatchException: function dispatchException(r2) {
|
|
214
|
+
if (this.done) throw r2;
|
|
215
|
+
var e2 = this;
|
|
216
|
+
function n2(t2) {
|
|
217
|
+
a2.type = "throw", a2.arg = r2, e2.next = t2;
|
|
192
218
|
}
|
|
193
|
-
for (var o2 =
|
|
194
|
-
var i2 = this.tryEntries[o2], a2 = i2.
|
|
195
|
-
if (
|
|
196
|
-
if (
|
|
197
|
-
|
|
198
|
-
if (c2
|
|
199
|
-
|
|
200
|
-
if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
|
|
201
|
-
} else if (c2) {
|
|
202
|
-
if (this.prev < i2.catchLoc) return handle(i2.catchLoc, true);
|
|
203
|
-
} else {
|
|
204
|
-
if (!u2) throw Error("try statement without catch or finally");
|
|
205
|
-
if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
|
|
206
|
-
}
|
|
219
|
+
for (var o2 = e2.tryEntries.length - 1; o2 >= 0; --o2) {
|
|
220
|
+
var i2 = this.tryEntries[o2], a2 = i2[4], u2 = this.prev, c2 = i2[1], h2 = i2[2];
|
|
221
|
+
if (-1 === i2[0]) return n2("end"), false;
|
|
222
|
+
if (!c2 && !h2) throw Error("try statement without catch or finally");
|
|
223
|
+
if (null != i2[0] && i2[0] <= u2) {
|
|
224
|
+
if (u2 < c2) return this.method = "next", this.arg = t, n2(c2), true;
|
|
225
|
+
if (u2 < h2) return n2(h2), false;
|
|
207
226
|
}
|
|
208
227
|
}
|
|
209
|
-
}, abrupt: function abrupt(t2,
|
|
210
|
-
for (var
|
|
211
|
-
var
|
|
212
|
-
if (
|
|
213
|
-
var
|
|
228
|
+
}, abrupt: function abrupt(t2, r2) {
|
|
229
|
+
for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
|
|
230
|
+
var n2 = this.tryEntries[e2];
|
|
231
|
+
if (n2[0] > -1 && n2[0] <= this.prev && this.prev < n2[2]) {
|
|
232
|
+
var o2 = n2;
|
|
214
233
|
break;
|
|
215
234
|
}
|
|
216
235
|
}
|
|
217
|
-
|
|
218
|
-
var
|
|
219
|
-
return
|
|
220
|
-
}, complete: function complete(t2,
|
|
236
|
+
o2 && ("break" === t2 || "continue" === t2) && o2[0] <= r2 && r2 <= o2[2] && (o2 = null);
|
|
237
|
+
var i2 = o2 ? o2[4] : {};
|
|
238
|
+
return i2.type = t2, i2.arg = r2, o2 ? (this.method = "next", this.next = o2[2], f) : this.complete(i2);
|
|
239
|
+
}, complete: function complete(t2, r2) {
|
|
221
240
|
if ("throw" === t2.type) throw t2.arg;
|
|
222
|
-
return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type &&
|
|
241
|
+
return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && r2 && (this.next = r2), f;
|
|
223
242
|
}, finish: function finish(t2) {
|
|
224
|
-
for (var
|
|
225
|
-
var
|
|
226
|
-
if (
|
|
243
|
+
for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
|
|
244
|
+
var e2 = this.tryEntries[r2];
|
|
245
|
+
if (e2[2] === t2) return this.complete(e2[4], e2[3]), m(e2), f;
|
|
227
246
|
}
|
|
228
247
|
}, catch: function _catch(t2) {
|
|
229
|
-
for (var
|
|
230
|
-
var
|
|
231
|
-
if (
|
|
232
|
-
var n2 =
|
|
248
|
+
for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
|
|
249
|
+
var e2 = this.tryEntries[r2];
|
|
250
|
+
if (e2[0] === t2) {
|
|
251
|
+
var n2 = e2[4];
|
|
233
252
|
if ("throw" === n2.type) {
|
|
234
253
|
var o2 = n2.arg;
|
|
235
|
-
|
|
254
|
+
m(e2);
|
|
236
255
|
}
|
|
237
256
|
return o2;
|
|
238
257
|
}
|
|
239
258
|
}
|
|
240
259
|
throw Error("illegal catch attempt");
|
|
241
|
-
}, delegateYield: function delegateYield(
|
|
242
|
-
return this.delegate = {
|
|
243
|
-
} },
|
|
260
|
+
}, delegateYield: function delegateYield(r2, e2, n2) {
|
|
261
|
+
return this.delegate = { i: x(r2), r: e2, n: n2 }, "next" === this.method && (this.arg = t), f;
|
|
262
|
+
} }, r;
|
|
263
|
+
}
|
|
264
|
+
function _extends() {
|
|
265
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
266
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
267
|
+
var t = arguments[e];
|
|
268
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
269
|
+
}
|
|
270
|
+
return n;
|
|
271
|
+
}, _extends.apply(null, arguments);
|
|
244
272
|
}
|
|
245
273
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
246
274
|
try {
|
|
@@ -265,15 +293,6 @@ function _asyncToGenerator(n) {
|
|
|
265
293
|
});
|
|
266
294
|
};
|
|
267
295
|
}
|
|
268
|
-
function _extends() {
|
|
269
|
-
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
270
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
271
|
-
var t = arguments[e];
|
|
272
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
273
|
-
}
|
|
274
|
-
return n;
|
|
275
|
-
}, _extends.apply(null, arguments);
|
|
276
|
-
}
|
|
277
296
|
function evaluate(value, param) {
|
|
278
297
|
return typeof value === "function" ? value(param) : value;
|
|
279
298
|
}
|
|
@@ -286,27 +305,27 @@ function getAlignment(placement) {
|
|
|
286
305
|
function getSideAxis(placement) {
|
|
287
306
|
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
|
288
307
|
}
|
|
289
|
-
function convertValueToCoords(
|
|
308
|
+
function convertValueToCoords(_x, _x2) {
|
|
290
309
|
return _convertValueToCoords.apply(this, arguments);
|
|
291
310
|
}
|
|
292
311
|
function _convertValueToCoords() {
|
|
293
|
-
_convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
294
|
-
var placement,
|
|
295
|
-
return _regeneratorRuntime().wrap(function
|
|
296
|
-
while (1) switch (
|
|
312
|
+
_convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(state, options) {
|
|
313
|
+
var placement, platform, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref, mainAxis, crossAxis, alignmentAxis;
|
|
314
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
315
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
297
316
|
case 0:
|
|
298
|
-
placement = state.placement,
|
|
299
|
-
|
|
300
|
-
return
|
|
317
|
+
placement = state.placement, platform = state.platform, elements = state.elements;
|
|
318
|
+
_context2.next = 3;
|
|
319
|
+
return platform.isRTL == null ? void 0 : platform.isRTL(elements.floating);
|
|
301
320
|
case 3:
|
|
302
|
-
rtl =
|
|
321
|
+
rtl = _context2.sent;
|
|
303
322
|
side = getSide(placement);
|
|
304
323
|
alignment = getAlignment(placement);
|
|
305
324
|
isVertical = getSideAxis(placement) === "y";
|
|
306
325
|
mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
|
|
307
326
|
crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
308
327
|
rawValue = evaluate(options, state);
|
|
309
|
-
|
|
328
|
+
_ref = typeof rawValue === "number" ? {
|
|
310
329
|
mainAxis: rawValue,
|
|
311
330
|
crossAxis: 0,
|
|
312
331
|
alignmentAxis: null
|
|
@@ -314,11 +333,11 @@ function _convertValueToCoords() {
|
|
|
314
333
|
mainAxis: rawValue.mainAxis || 0,
|
|
315
334
|
crossAxis: rawValue.crossAxis || 0,
|
|
316
335
|
alignmentAxis: rawValue.alignmentAxis
|
|
317
|
-
}, mainAxis =
|
|
336
|
+
}, mainAxis = _ref.mainAxis, crossAxis = _ref.crossAxis, alignmentAxis = _ref.alignmentAxis;
|
|
318
337
|
if (alignment && typeof alignmentAxis === "number") {
|
|
319
338
|
crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
320
339
|
}
|
|
321
|
-
return
|
|
340
|
+
return _context2.abrupt("return", isVertical ? {
|
|
322
341
|
x: crossAxis * crossAxisMulti,
|
|
323
342
|
y: mainAxis * mainAxisMulti
|
|
324
343
|
} : {
|
|
@@ -327,9 +346,9 @@ function _convertValueToCoords() {
|
|
|
327
346
|
});
|
|
328
347
|
case 13:
|
|
329
348
|
case "end":
|
|
330
|
-
return
|
|
349
|
+
return _context2.stop();
|
|
331
350
|
}
|
|
332
|
-
},
|
|
351
|
+
}, _callee2);
|
|
333
352
|
}));
|
|
334
353
|
return _convertValueToCoords.apply(this, arguments);
|
|
335
354
|
}
|
|
@@ -341,23 +360,23 @@ var offset$1 = function offset$12(options) {
|
|
|
341
360
|
name: "offset",
|
|
342
361
|
options,
|
|
343
362
|
fn: function fn(state) {
|
|
344
|
-
return _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
363
|
+
return _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
|
|
345
364
|
var _middlewareData$offse, _middlewareData$arrow, x, y, placement, middlewareData, diffCoords;
|
|
346
|
-
return _regeneratorRuntime().wrap(function
|
|
347
|
-
while (1) switch (
|
|
365
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
366
|
+
while (1) switch (_context.prev = _context.next) {
|
|
348
367
|
case 0:
|
|
349
368
|
x = state.x, y = state.y, placement = state.placement, middlewareData = state.middlewareData;
|
|
350
|
-
|
|
369
|
+
_context.next = 3;
|
|
351
370
|
return convertValueToCoords(state, options);
|
|
352
371
|
case 3:
|
|
353
|
-
diffCoords =
|
|
372
|
+
diffCoords = _context.sent;
|
|
354
373
|
if (!(placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)) {
|
|
355
|
-
|
|
374
|
+
_context.next = 6;
|
|
356
375
|
break;
|
|
357
376
|
}
|
|
358
|
-
return
|
|
377
|
+
return _context.abrupt("return", {});
|
|
359
378
|
case 6:
|
|
360
|
-
return
|
|
379
|
+
return _context.abrupt("return", {
|
|
361
380
|
x: x + diffCoords.x,
|
|
362
381
|
y: y + diffCoords.y,
|
|
363
382
|
data: _extends({}, diffCoords, {
|
|
@@ -366,48 +385,14 @@ var offset$1 = function offset$12(options) {
|
|
|
366
385
|
});
|
|
367
386
|
case 7:
|
|
368
387
|
case "end":
|
|
369
|
-
return
|
|
388
|
+
return _context.stop();
|
|
370
389
|
}
|
|
371
|
-
},
|
|
390
|
+
}, _callee);
|
|
372
391
|
}))();
|
|
373
392
|
}
|
|
374
393
|
};
|
|
375
394
|
};
|
|
376
395
|
var offset = offset$1;
|
|
377
|
-
|
|
378
|
-
function _createForOfIteratorHelperLoose(r, e) {
|
|
379
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
380
|
-
if (t) return (t = t.call(r)).next.bind(t);
|
|
381
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
382
|
-
t && (r = t);
|
|
383
|
-
var o = 0;
|
|
384
|
-
return function() {
|
|
385
|
-
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
389
|
-
}
|
|
390
|
-
function _unsupportedIterableToArray(r, a) {
|
|
391
|
-
if (r) {
|
|
392
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
393
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
394
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
function _arrayLikeToArray(r, a) {
|
|
398
|
-
(null == a || a > r.length) && (a = r.length);
|
|
399
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
400
|
-
return n;
|
|
401
|
-
}
|
|
402
|
-
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
403
|
-
var target = sfc.__vccOpts || sfc;
|
|
404
|
-
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
405
|
-
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
406
|
-
target[key] = val;
|
|
407
|
-
}
|
|
408
|
-
return target;
|
|
409
|
-
};
|
|
410
|
-
|
|
411
396
|
var _sfc_main = defineComponent({
|
|
412
397
|
props: [].concat(props, ["showStep", "domData", "mainAxis", "crossAxis", "alignmentAxis", "popPosition", "modalOverlayOpeningPadding", "modalOverlayOpeningRadius", "arrow", "lightClass", "width", "height"]),
|
|
413
398
|
setup: function setup$1(props2, context) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-guide",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.23.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@floating-ui/dom": "^1.0.10",
|
|
12
|
-
"@opentinyvue/utils": "~3.
|
|
13
|
-
"@opentinyvue/vue-common": "~3.
|
|
14
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
15
|
-
"@opentinyvue/vue-theme": "~3.
|
|
12
|
+
"@opentinyvue/utils": "~3.23.0",
|
|
13
|
+
"@opentinyvue/vue-common": "~3.23.0",
|
|
14
|
+
"@opentinyvue/vue-renderless": "~3.23.0",
|
|
15
|
+
"@opentinyvue/vue-theme": "~3.23.0",
|
|
16
16
|
"shepherd.js": "11.1.1"
|
|
17
17
|
},
|
|
18
18
|
"types": "index.d.ts"
|