@opentinyvue/vue-guide 2.21.0 → 3.21.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 +36 -44
- package/package.json +2 -2
- package/src/index.d.ts +120 -1
- package/src/pc.vue.d.ts +70 -1
package/lib/index.js
CHANGED
package/lib/pc.js
CHANGED
|
@@ -2,6 +2,7 @@ import { renderless, api } from '@opentinyvue/vue-renderless/guide/vue';
|
|
|
2
2
|
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
|
+
import { openBlock, createElementBlock, renderSlot } from 'vue';
|
|
5
6
|
|
|
6
7
|
function _regeneratorRuntime() {
|
|
7
8
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -374,37 +375,40 @@ var offset$1 = function offset$12(options) {
|
|
|
374
375
|
};
|
|
375
376
|
var offset = offset$1;
|
|
376
377
|
|
|
377
|
-
function
|
|
378
|
-
var
|
|
379
|
-
if (
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
hook = injectStyles;
|
|
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
387
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
};
|
|
396
|
-
} else {
|
|
397
|
-
var existing = options.beforeCreate;
|
|
398
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
399
|
-
}
|
|
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;
|
|
400
395
|
}
|
|
401
|
-
return {
|
|
402
|
-
exports: scriptExports,
|
|
403
|
-
options
|
|
404
|
-
};
|
|
405
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
|
+
};
|
|
406
410
|
|
|
407
|
-
var
|
|
411
|
+
var _sfc_main = defineComponent({
|
|
408
412
|
props: [].concat(props, ["showStep", "domData", "mainAxis", "crossAxis", "alignmentAxis", "popPosition", "modalOverlayOpeningPadding", "modalOverlayOpeningRadius", "arrow", "lightClass", "width", "height"]),
|
|
409
413
|
setup: function setup$1(props2, context) {
|
|
410
414
|
return setup({
|
|
@@ -419,24 +423,12 @@ var __vue2_script = defineComponent({
|
|
|
419
423
|
});
|
|
420
424
|
}
|
|
421
425
|
});
|
|
422
|
-
var
|
|
423
|
-
|
|
424
|
-
var _h = _vm.$createElement;
|
|
425
|
-
var _c = _vm._self._c || _h;
|
|
426
|
-
return _c("div", {
|
|
427
|
-
staticClass: "tiny-guide"
|
|
428
|
-
}, [_vm._t("main")], 2);
|
|
426
|
+
var _hoisted_1 = {
|
|
427
|
+
class: "tiny-guide"
|
|
429
428
|
};
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
433
|
-
function __vue2_injectStyles(context) {
|
|
434
|
-
for (var o in __cssModules) {
|
|
435
|
-
this[o] = __cssModules[o];
|
|
436
|
-
}
|
|
429
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
430
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "main")]);
|
|
437
431
|
}
|
|
438
|
-
var pc = /* @__PURE__ */
|
|
439
|
-
return __component__.exports;
|
|
440
|
-
}();
|
|
432
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
441
433
|
|
|
442
434
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-guide",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
11
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
12
12
|
"shepherd.js": "11.1.1",
|
|
13
13
|
"@floating-ui/dom": "^1.0.10",
|
|
14
14
|
"@opentinyvue/vue-theme": "~3.21.0"
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,121 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
showStep: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
domData: ArrayConstructor;
|
|
7
|
+
mainAxis: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
crossAxis: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
alignmentAxis: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
19
|
+
popPosition: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
arrow: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
modalOverlayOpeningPadding: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
modalOverlayOpeningRadius: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
lightClass: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
width: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
height: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
tiny_mode: StringConstructor;
|
|
48
|
+
tiny_mode_root: BooleanConstructor;
|
|
49
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
50
|
+
tiny_renderless: FunctionConstructor;
|
|
51
|
+
tiny_theme: StringConstructor;
|
|
52
|
+
tiny_chart_theme: ObjectConstructor;
|
|
53
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
56
|
+
showStep: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
domData: ArrayConstructor;
|
|
61
|
+
mainAxis: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
crossAxis: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
default: null;
|
|
68
|
+
};
|
|
69
|
+
alignmentAxis: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: null;
|
|
72
|
+
};
|
|
73
|
+
popPosition: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
arrow: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
modalOverlayOpeningPadding: {
|
|
82
|
+
type: NumberConstructor;
|
|
83
|
+
default: number;
|
|
84
|
+
};
|
|
85
|
+
modalOverlayOpeningRadius: {
|
|
86
|
+
type: NumberConstructor;
|
|
87
|
+
default: number;
|
|
88
|
+
};
|
|
89
|
+
lightClass: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
width: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
height: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
tiny_mode: StringConstructor;
|
|
102
|
+
tiny_mode_root: BooleanConstructor;
|
|
103
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
104
|
+
tiny_renderless: FunctionConstructor;
|
|
105
|
+
tiny_theme: StringConstructor;
|
|
106
|
+
tiny_chart_theme: ObjectConstructor;
|
|
107
|
+
}>>, {
|
|
108
|
+
tiny_mode_root: boolean;
|
|
109
|
+
width: string;
|
|
110
|
+
height: string;
|
|
111
|
+
arrow: boolean;
|
|
112
|
+
showStep: boolean;
|
|
113
|
+
mainAxis: number;
|
|
114
|
+
crossAxis: number;
|
|
115
|
+
alignmentAxis: number;
|
|
116
|
+
popPosition: string;
|
|
117
|
+
modalOverlayOpeningPadding: number;
|
|
118
|
+
modalOverlayOpeningRadius: number;
|
|
119
|
+
lightClass: string;
|
|
120
|
+
}, {}>;
|
|
2
121
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,71 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
tiny_mode?: any;
|
|
3
|
+
tiny_mode_root?: any;
|
|
4
|
+
tiny_template?: any;
|
|
5
|
+
tiny_renderless?: any;
|
|
6
|
+
_constants?: any;
|
|
7
|
+
tiny_theme?: any;
|
|
8
|
+
tiny_chart_theme?: any;
|
|
9
|
+
width?: any;
|
|
10
|
+
height?: any;
|
|
11
|
+
arrow?: any;
|
|
12
|
+
domData?: any;
|
|
13
|
+
showStep?: any;
|
|
14
|
+
mainAxis?: any;
|
|
15
|
+
crossAxis?: any;
|
|
16
|
+
alignmentAxis?: any;
|
|
17
|
+
popPosition?: any;
|
|
18
|
+
modalOverlayOpeningPadding?: any;
|
|
19
|
+
modalOverlayOpeningRadius?: any;
|
|
20
|
+
lightClass?: any;
|
|
21
|
+
}>, {
|
|
22
|
+
t: (this: any, path: any, options?: any) => any;
|
|
23
|
+
vm: any;
|
|
24
|
+
f: (props: any, attrs?: {}) => {};
|
|
25
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
26
|
+
d: (props: any) => void;
|
|
27
|
+
dp: (props: any) => void;
|
|
28
|
+
gcls: (key: any) => any;
|
|
29
|
+
m: (...cssClasses: any[]) => string;
|
|
30
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
31
|
+
tiny_mode?: any;
|
|
32
|
+
tiny_mode_root?: any;
|
|
33
|
+
tiny_template?: any;
|
|
34
|
+
tiny_renderless?: any;
|
|
35
|
+
_constants?: any;
|
|
36
|
+
tiny_theme?: any;
|
|
37
|
+
tiny_chart_theme?: any;
|
|
38
|
+
width?: any;
|
|
39
|
+
height?: any;
|
|
40
|
+
arrow?: any;
|
|
41
|
+
domData?: any;
|
|
42
|
+
showStep?: any;
|
|
43
|
+
mainAxis?: any;
|
|
44
|
+
crossAxis?: any;
|
|
45
|
+
alignmentAxis?: any;
|
|
46
|
+
popPosition?: any;
|
|
47
|
+
modalOverlayOpeningPadding?: any;
|
|
48
|
+
modalOverlayOpeningRadius?: any;
|
|
49
|
+
lightClass?: any;
|
|
50
|
+
}>>>, {
|
|
51
|
+
readonly tiny_mode?: any;
|
|
52
|
+
readonly tiny_mode_root?: any;
|
|
53
|
+
readonly tiny_template?: any;
|
|
54
|
+
readonly tiny_renderless?: any;
|
|
55
|
+
readonly _constants?: any;
|
|
56
|
+
readonly tiny_theme?: any;
|
|
57
|
+
readonly tiny_chart_theme?: any;
|
|
58
|
+
readonly width?: any;
|
|
59
|
+
readonly height?: any;
|
|
60
|
+
readonly arrow?: any;
|
|
61
|
+
readonly domData?: any;
|
|
62
|
+
readonly showStep?: any;
|
|
63
|
+
readonly mainAxis?: any;
|
|
64
|
+
readonly crossAxis?: any;
|
|
65
|
+
readonly alignmentAxis?: any;
|
|
66
|
+
readonly popPosition?: any;
|
|
67
|
+
readonly modalOverlayOpeningPadding?: any;
|
|
68
|
+
readonly modalOverlayOpeningRadius?: any;
|
|
69
|
+
readonly lightClass?: any;
|
|
70
|
+
}, {}>;
|
|
2
71
|
export default _default;
|