@opentinyvue/vue-guide 3.22.1 → 3.24.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/pc.js +85 -248
- package/package.json +5 -5
- package/src/index.d.ts +2 -0
- package/src/pc.vue.d.ts +3 -0
package/lib/pc.js
CHANGED
|
@@ -37,243 +37,86 @@ var _export_sfc = function _export_sfc2(sfc, props) {
|
|
|
37
37
|
return target;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
function
|
|
41
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
40
|
+
function _regenerator() {
|
|
41
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
42
|
+
var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
43
|
+
function i(r2, n2, o2, i2) {
|
|
44
|
+
var c2 = n2 && n2.prototype instanceof Generator ? n2 : Generator, u2 = Object.create(c2.prototype);
|
|
45
|
+
return _regeneratorDefine2(u2, "_invoke", function(r3, n3, o3) {
|
|
46
|
+
var i3, c3, u3, f2 = 0, p = o3 || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d2(t2, r4) {
|
|
47
|
+
return i3 = t2, c3 = 0, u3 = e, G.n = r4, a;
|
|
48
|
+
} };
|
|
49
|
+
function d(r4, n4) {
|
|
50
|
+
for (c3 = r4, u3 = n4, t = 0; !y && f2 && !o4 && t < p.length; t++) {
|
|
51
|
+
var o4, i4 = p[t], d2 = G.p, l = i4[2];
|
|
52
|
+
r4 > 3 ? (o4 = l === n4) && (c3 = i4[4] || 3, u3 = i4[5] === e ? i4[3] : i4[5], i4[4] = 3, i4[5] = e) : i4[0] <= d2 && ((o4 = r4 < 2 && d2 < i4[1]) ? (c3 = 0, G.v = n4, G.n = i4[1]) : d2 < l && (o4 = r4 < 3 || i4[0] > n4 || n4 > l) && (i4[4] = r4, i4[5] = n4, G.n = l, c3 = 0));
|
|
53
|
+
}
|
|
54
|
+
if (o4 || r4 > 1) return a;
|
|
55
|
+
throw y = true, n4;
|
|
56
|
+
}
|
|
57
|
+
return function(o4, p2, l) {
|
|
58
|
+
if (f2 > 1) throw TypeError("Generator is already running");
|
|
59
|
+
for (y && 1 === p2 && d(p2, l), c3 = p2, u3 = l; (t = c3 < 2 ? e : u3) || !y; ) {
|
|
60
|
+
i3 || (c3 ? c3 < 3 ? (c3 > 1 && (G.n = -1), d(c3, u3)) : G.n = u3 : G.v = u3);
|
|
61
|
+
try {
|
|
62
|
+
if (f2 = 2, i3) {
|
|
63
|
+
if (c3 || (o4 = "next"), t = i3[o4]) {
|
|
64
|
+
if (!(t = t.call(i3, u3))) throw TypeError("iterator result is not an object");
|
|
65
|
+
if (!t.done) return t;
|
|
66
|
+
u3 = t.value, c3 < 2 && (c3 = 0);
|
|
67
|
+
} else 1 === c3 && (t = i3.return) && t.call(i3), c3 < 2 && (u3 = TypeError("The iterator does not provide a '" + o4 + "' method"), c3 = 1);
|
|
68
|
+
i3 = e;
|
|
69
|
+
} else if ((t = (y = G.n < 0) ? u3 : r3.call(n3, G)) !== a) break;
|
|
70
|
+
} catch (t2) {
|
|
71
|
+
i3 = e, c3 = 1, u3 = t2;
|
|
72
|
+
} finally {
|
|
73
|
+
f2 = 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return { value: t, done: y };
|
|
77
|
+
};
|
|
78
|
+
}(r2, o2, i2), true), u2;
|
|
68
79
|
}
|
|
69
|
-
|
|
70
|
-
var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
|
|
80
|
+
var a = {};
|
|
71
81
|
function Generator() {
|
|
72
82
|
}
|
|
73
83
|
function GeneratorFunction() {
|
|
74
84
|
}
|
|
75
85
|
function GeneratorFunctionPrototype() {
|
|
76
86
|
}
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
t = Object.getPrototypeOf;
|
|
88
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function() {
|
|
79
89
|
return this;
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
84
|
-
function defineIteratorMethods(t2) {
|
|
85
|
-
["next", "throw", "return"].forEach(function(e2) {
|
|
86
|
-
define(t2, e2, function(t3) {
|
|
87
|
-
return this._invoke(e2, t3);
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function AsyncIterator(t2, e2) {
|
|
92
|
-
function invoke(r3, o2, i2, a2) {
|
|
93
|
-
var c2 = tryCatch(t2[r3], t2, o2);
|
|
94
|
-
if ("throw" !== c2.type) {
|
|
95
|
-
var u2 = c2.arg, h2 = u2.value;
|
|
96
|
-
return h2 && "object" == typeof h2 && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
|
|
97
|
-
invoke("next", t3, i2, a2);
|
|
98
|
-
}, function(t3) {
|
|
99
|
-
invoke("throw", t3, i2, a2);
|
|
100
|
-
}) : e2.resolve(h2).then(function(t3) {
|
|
101
|
-
u2.value = t3, i2(u2);
|
|
102
|
-
}, function(t3) {
|
|
103
|
-
return invoke("throw", t3, i2, a2);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
a2(c2.arg);
|
|
107
|
-
}
|
|
108
|
-
var r2;
|
|
109
|
-
o(this, "_invoke", { value: function value(t3, n2) {
|
|
110
|
-
function callInvokeWithMethodAndArg() {
|
|
111
|
-
return new e2(function(e3, r3) {
|
|
112
|
-
invoke(t3, n2, e3, r3);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
116
|
-
} });
|
|
117
|
-
}
|
|
118
|
-
function makeInvokeMethod(e2, r2, n2) {
|
|
119
|
-
var o2 = h;
|
|
120
|
-
return function(i2, a2) {
|
|
121
|
-
if (o2 === f) throw Error("Generator is already running");
|
|
122
|
-
if (o2 === s) {
|
|
123
|
-
if ("throw" === i2) throw a2;
|
|
124
|
-
return { value: t, done: true };
|
|
125
|
-
}
|
|
126
|
-
for (n2.method = i2, n2.arg = a2; ; ) {
|
|
127
|
-
var c2 = n2.delegate;
|
|
128
|
-
if (c2) {
|
|
129
|
-
var u2 = maybeInvokeDelegate(c2, n2);
|
|
130
|
-
if (u2) {
|
|
131
|
-
if (u2 === y) continue;
|
|
132
|
-
return u2;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
if ("next" === n2.method) n2.sent = n2._sent = n2.arg;
|
|
136
|
-
else if ("throw" === n2.method) {
|
|
137
|
-
if (o2 === h) throw o2 = s, n2.arg;
|
|
138
|
-
n2.dispatchException(n2.arg);
|
|
139
|
-
} else "return" === n2.method && n2.abrupt("return", n2.arg);
|
|
140
|
-
o2 = f;
|
|
141
|
-
var p2 = tryCatch(e2, r2, n2);
|
|
142
|
-
if ("normal" === p2.type) {
|
|
143
|
-
if (o2 = n2.done ? s : l, p2.arg === y) continue;
|
|
144
|
-
return { value: p2.arg, done: n2.done };
|
|
145
|
-
}
|
|
146
|
-
"throw" === p2.type && (o2 = s, n2.method = "throw", n2.arg = p2.arg);
|
|
147
|
-
}
|
|
148
|
-
};
|
|
90
|
+
}), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
91
|
+
function f(e2) {
|
|
92
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e2, GeneratorFunctionPrototype) : (e2.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e2, o, "GeneratorFunction")), e2.prototype = Object.create(u), e2;
|
|
149
93
|
}
|
|
150
|
-
|
|
151
|
-
var n2 = r2.method, o2 = e2.iterator[n2];
|
|
152
|
-
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;
|
|
153
|
-
var i2 = tryCatch(o2, e2.iterator, r2.arg);
|
|
154
|
-
if ("throw" === i2.type) return r2.method = "throw", r2.arg = i2.arg, r2.delegate = null, y;
|
|
155
|
-
var a2 = i2.arg;
|
|
156
|
-
return a2 ? a2.done ? (r2[e2.resultName] = a2.value, r2.next = e2.nextLoc, "return" !== r2.method && (r2.method = "next", r2.arg = t), r2.delegate = null, y) : a2 : (r2.method = "throw", r2.arg = new TypeError("iterator result is not an object"), r2.delegate = null, y);
|
|
157
|
-
}
|
|
158
|
-
function pushTryEntry(t2) {
|
|
159
|
-
var e2 = { tryLoc: t2[0] };
|
|
160
|
-
1 in t2 && (e2.catchLoc = t2[1]), 2 in t2 && (e2.finallyLoc = t2[2], e2.afterLoc = t2[3]), this.tryEntries.push(e2);
|
|
161
|
-
}
|
|
162
|
-
function resetTryEntry(t2) {
|
|
163
|
-
var e2 = t2.completion || {};
|
|
164
|
-
e2.type = "normal", delete e2.arg, t2.completion = e2;
|
|
165
|
-
}
|
|
166
|
-
function Context(t2) {
|
|
167
|
-
this.tryEntries = [{ tryLoc: "root" }], t2.forEach(pushTryEntry, this), this.reset(true);
|
|
168
|
-
}
|
|
169
|
-
function values(e2) {
|
|
170
|
-
if (e2 || "" === e2) {
|
|
171
|
-
var r2 = e2[a];
|
|
172
|
-
if (r2) return r2.call(e2);
|
|
173
|
-
if ("function" == typeof e2.next) return e2;
|
|
174
|
-
if (!isNaN(e2.length)) {
|
|
175
|
-
var o2 = -1, i2 = function next() {
|
|
176
|
-
for (; ++o2 < e2.length; ) if (n.call(e2, o2)) return next.value = e2[o2], next.done = false, next;
|
|
177
|
-
return next.value = t, next.done = true, next;
|
|
178
|
-
};
|
|
179
|
-
return i2.next = i2;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
throw new TypeError(typeof e2 + " is not iterable");
|
|
183
|
-
}
|
|
184
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: true }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: true }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function(t2) {
|
|
185
|
-
var e2 = "function" == typeof t2 && t2.constructor;
|
|
186
|
-
return !!e2 && (e2 === GeneratorFunction || "GeneratorFunction" === (e2.displayName || e2.name));
|
|
187
|
-
}, e.mark = function(t2) {
|
|
188
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, define(t2, u, "GeneratorFunction")), t2.prototype = Object.create(g), t2;
|
|
189
|
-
}, e.awrap = function(t2) {
|
|
190
|
-
return { __await: t2 };
|
|
191
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function() {
|
|
192
|
-
return this;
|
|
193
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function(t2, r2, n2, o2, i2) {
|
|
194
|
-
void 0 === i2 && (i2 = Promise);
|
|
195
|
-
var a2 = new AsyncIterator(wrap(t2, r2, n2, o2), i2);
|
|
196
|
-
return e.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
|
|
197
|
-
return t3.done ? t3.value : a2.next();
|
|
198
|
-
});
|
|
199
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function() {
|
|
94
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function() {
|
|
200
95
|
return this;
|
|
201
|
-
}),
|
|
96
|
+
}), _regeneratorDefine2(u, "toString", function() {
|
|
202
97
|
return "[object Generator]";
|
|
203
|
-
}),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
function handle(n2, o3) {
|
|
224
|
-
return a2.type = "throw", a2.arg = e2, r2.next = n2, o3 && (r2.method = "next", r2.arg = t), !!o3;
|
|
225
|
-
}
|
|
226
|
-
for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) {
|
|
227
|
-
var i2 = this.tryEntries[o2], a2 = i2.completion;
|
|
228
|
-
if ("root" === i2.tryLoc) return handle("end");
|
|
229
|
-
if (i2.tryLoc <= this.prev) {
|
|
230
|
-
var c2 = n.call(i2, "catchLoc"), u2 = n.call(i2, "finallyLoc");
|
|
231
|
-
if (c2 && u2) {
|
|
232
|
-
if (this.prev < i2.catchLoc) return handle(i2.catchLoc, true);
|
|
233
|
-
if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
|
|
234
|
-
} else if (c2) {
|
|
235
|
-
if (this.prev < i2.catchLoc) return handle(i2.catchLoc, true);
|
|
236
|
-
} else {
|
|
237
|
-
if (!u2) throw Error("try statement without catch or finally");
|
|
238
|
-
if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}, abrupt: function abrupt(t2, e2) {
|
|
243
|
-
for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
|
|
244
|
-
var o2 = this.tryEntries[r2];
|
|
245
|
-
if (o2.tryLoc <= this.prev && n.call(o2, "finallyLoc") && this.prev < o2.finallyLoc) {
|
|
246
|
-
var i2 = o2;
|
|
247
|
-
break;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
i2 && ("break" === t2 || "continue" === t2) && i2.tryLoc <= e2 && e2 <= i2.finallyLoc && (i2 = null);
|
|
251
|
-
var a2 = i2 ? i2.completion : {};
|
|
252
|
-
return a2.type = t2, a2.arg = e2, i2 ? (this.method = "next", this.next = i2.finallyLoc, y) : this.complete(a2);
|
|
253
|
-
}, complete: function complete(t2, e2) {
|
|
254
|
-
if ("throw" === t2.type) throw t2.arg;
|
|
255
|
-
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 && e2 && (this.next = e2), y;
|
|
256
|
-
}, finish: function finish(t2) {
|
|
257
|
-
for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
|
|
258
|
-
var r2 = this.tryEntries[e2];
|
|
259
|
-
if (r2.finallyLoc === t2) return this.complete(r2.completion, r2.afterLoc), resetTryEntry(r2), y;
|
|
260
|
-
}
|
|
261
|
-
}, catch: function _catch(t2) {
|
|
262
|
-
for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
|
|
263
|
-
var r2 = this.tryEntries[e2];
|
|
264
|
-
if (r2.tryLoc === t2) {
|
|
265
|
-
var n2 = r2.completion;
|
|
266
|
-
if ("throw" === n2.type) {
|
|
267
|
-
var o2 = n2.arg;
|
|
268
|
-
resetTryEntry(r2);
|
|
269
|
-
}
|
|
270
|
-
return o2;
|
|
271
|
-
}
|
|
98
|
+
}), (_regenerator = function _regenerator2() {
|
|
99
|
+
return { w: i, m: f };
|
|
100
|
+
})();
|
|
101
|
+
}
|
|
102
|
+
function _regeneratorDefine2(e, r, n, t) {
|
|
103
|
+
var i = Object.defineProperty;
|
|
104
|
+
try {
|
|
105
|
+
i({}, "", {});
|
|
106
|
+
} catch (e2) {
|
|
107
|
+
i = 0;
|
|
108
|
+
}
|
|
109
|
+
_regeneratorDefine2 = function _regeneratorDefine(e2, r2, n2, t2) {
|
|
110
|
+
if (r2) i ? i(e2, r2, { value: n2, enumerable: !t2, configurable: !t2, writable: !t2 }) : e2[r2] = n2;
|
|
111
|
+
else {
|
|
112
|
+
var o = function o2(r3, n3) {
|
|
113
|
+
_regeneratorDefine2(e2, r3, function(e3) {
|
|
114
|
+
return this._invoke(r3, n3, e3);
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
272
118
|
}
|
|
273
|
-
|
|
274
|
-
}, delegateYield: function delegateYield(e2, r2, n2) {
|
|
275
|
-
return this.delegate = { iterator: values(e2), resultName: r2, nextLoc: n2 }, "next" === this.method && (this.arg = t), y;
|
|
276
|
-
} }, e;
|
|
119
|
+
}, _regeneratorDefine2(e, r, n, t);
|
|
277
120
|
}
|
|
278
121
|
function _extends() {
|
|
279
122
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -323,16 +166,16 @@ function convertValueToCoords(_x, _x2) {
|
|
|
323
166
|
return _convertValueToCoords.apply(this, arguments);
|
|
324
167
|
}
|
|
325
168
|
function _convertValueToCoords() {
|
|
326
|
-
_convertValueToCoords = _asyncToGenerator(/* @__PURE__ */
|
|
169
|
+
_convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(state, options) {
|
|
327
170
|
var placement, platform, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref, mainAxis, crossAxis, alignmentAxis;
|
|
328
|
-
return
|
|
329
|
-
while (1) switch (_context2.
|
|
171
|
+
return _regenerator().w(function(_context2) {
|
|
172
|
+
while (1) switch (_context2.n) {
|
|
330
173
|
case 0:
|
|
331
174
|
placement = state.placement, platform = state.platform, elements = state.elements;
|
|
332
|
-
_context2.
|
|
175
|
+
_context2.n = 1;
|
|
333
176
|
return platform.isRTL == null ? void 0 : platform.isRTL(elements.floating);
|
|
334
|
-
case
|
|
335
|
-
rtl = _context2.
|
|
177
|
+
case 1:
|
|
178
|
+
rtl = _context2.v;
|
|
336
179
|
side = getSide(placement);
|
|
337
180
|
alignment = getAlignment(placement);
|
|
338
181
|
isVertical = getSideAxis(placement) === "y";
|
|
@@ -351,16 +194,13 @@ function _convertValueToCoords() {
|
|
|
351
194
|
if (alignment && typeof alignmentAxis === "number") {
|
|
352
195
|
crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
353
196
|
}
|
|
354
|
-
return _context2.
|
|
197
|
+
return _context2.a(2, isVertical ? {
|
|
355
198
|
x: crossAxis * crossAxisMulti,
|
|
356
199
|
y: mainAxis * mainAxisMulti
|
|
357
200
|
} : {
|
|
358
201
|
x: mainAxis * mainAxisMulti,
|
|
359
202
|
y: crossAxis * crossAxisMulti
|
|
360
203
|
});
|
|
361
|
-
case 13:
|
|
362
|
-
case "end":
|
|
363
|
-
return _context2.stop();
|
|
364
204
|
}
|
|
365
205
|
}, _callee2);
|
|
366
206
|
}));
|
|
@@ -374,32 +214,29 @@ var offset$1 = function offset$12(options) {
|
|
|
374
214
|
name: "offset",
|
|
375
215
|
options,
|
|
376
216
|
fn: function fn(state) {
|
|
377
|
-
return _asyncToGenerator(/* @__PURE__ */
|
|
217
|
+
return _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
|
|
378
218
|
var _middlewareData$offse, _middlewareData$arrow, x, y, placement, middlewareData, diffCoords;
|
|
379
|
-
return
|
|
380
|
-
while (1) switch (_context.
|
|
219
|
+
return _regenerator().w(function(_context) {
|
|
220
|
+
while (1) switch (_context.n) {
|
|
381
221
|
case 0:
|
|
382
222
|
x = state.x, y = state.y, placement = state.placement, middlewareData = state.middlewareData;
|
|
383
|
-
_context.
|
|
223
|
+
_context.n = 1;
|
|
384
224
|
return convertValueToCoords(state, options);
|
|
385
|
-
case
|
|
386
|
-
diffCoords = _context.
|
|
225
|
+
case 1:
|
|
226
|
+
diffCoords = _context.v;
|
|
387
227
|
if (!(placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)) {
|
|
388
|
-
_context.
|
|
228
|
+
_context.n = 2;
|
|
389
229
|
break;
|
|
390
230
|
}
|
|
391
|
-
return _context.
|
|
392
|
-
case
|
|
393
|
-
return _context.
|
|
231
|
+
return _context.a(2, {});
|
|
232
|
+
case 2:
|
|
233
|
+
return _context.a(2, {
|
|
394
234
|
x: x + diffCoords.x,
|
|
395
235
|
y: y + diffCoords.y,
|
|
396
236
|
data: _extends({}, diffCoords, {
|
|
397
237
|
placement
|
|
398
238
|
})
|
|
399
239
|
});
|
|
400
|
-
case 7:
|
|
401
|
-
case "end":
|
|
402
|
-
return _context.stop();
|
|
403
240
|
}
|
|
404
241
|
}, _callee);
|
|
405
242
|
}))();
|
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.24.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.24.0",
|
|
13
|
+
"@opentinyvue/vue-common": "~3.24.0",
|
|
14
|
+
"@opentinyvue/vue-renderless": "~3.24.0",
|
|
15
|
+
"@opentinyvue/vue-theme": "~3.24.0",
|
|
16
16
|
"shepherd.js": "11.1.1"
|
|
17
17
|
},
|
|
18
18
|
"types": "index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
49
49
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
50
50
|
tiny_renderless: FunctionConstructor;
|
|
51
51
|
tiny_theme: StringConstructor;
|
|
52
|
+
tiny_mcp_config: ObjectConstructor;
|
|
52
53
|
tiny_chart_theme: ObjectConstructor;
|
|
53
54
|
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
54
55
|
[key: string]: any;
|
|
@@ -103,6 +104,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
103
104
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
104
105
|
tiny_renderless: FunctionConstructor;
|
|
105
106
|
tiny_theme: StringConstructor;
|
|
107
|
+
tiny_mcp_config: ObjectConstructor;
|
|
106
108
|
tiny_chart_theme: ObjectConstructor;
|
|
107
109
|
}>>, {
|
|
108
110
|
width: string;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
11
11
|
_constants?: any;
|
|
12
12
|
tiny_theme?: any;
|
|
13
13
|
tiny_chart_theme?: any;
|
|
14
|
+
tiny_mcp_config?: any;
|
|
14
15
|
domData?: any;
|
|
15
16
|
showStep?: any;
|
|
16
17
|
alignmentAxis?: any;
|
|
@@ -40,6 +41,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
40
41
|
_constants?: any;
|
|
41
42
|
tiny_theme?: any;
|
|
42
43
|
tiny_chart_theme?: any;
|
|
44
|
+
tiny_mcp_config?: any;
|
|
43
45
|
domData?: any;
|
|
44
46
|
showStep?: any;
|
|
45
47
|
alignmentAxis?: any;
|
|
@@ -60,6 +62,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
60
62
|
readonly _constants?: any;
|
|
61
63
|
readonly tiny_theme?: any;
|
|
62
64
|
readonly tiny_chart_theme?: any;
|
|
65
|
+
readonly tiny_mcp_config?: any;
|
|
63
66
|
readonly domData?: any;
|
|
64
67
|
readonly showStep?: any;
|
|
65
68
|
readonly alignmentAxis?: any;
|