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