@opentinyvue/vue-breadcrumb 2.22.0 → 3.22.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 +55 -60
- package/package.json +3 -3
- package/src/index.d.ts +71 -1
- package/src/pc.vue.d.ts +51 -1
package/lib/index.js
CHANGED
package/lib/pc.js
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/breadcrumb/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import BreadcrumbItem from '@opentinyvue/vue-breadcrumb-item';
|
|
4
|
+
import { resolveComponent, openBlock, createElementBlock, renderSlot, Fragment, renderList, createBlock } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
hook = injectStyles;
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
+
};
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function _unsupportedIterableToArray(r, a) {
|
|
19
|
+
if (r) {
|
|
20
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
+
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;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
24
|
}
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
+
var target = sfc.__vccOpts || sfc;
|
|
32
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
+
target[key] = val;
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
34
38
|
|
|
35
|
-
var
|
|
39
|
+
var _sfc_main = defineComponent({
|
|
36
40
|
components: {
|
|
37
41
|
TinyBreadcrumbItem: BreadcrumbItem
|
|
38
42
|
},
|
|
@@ -52,40 +56,31 @@ var __vue2_script = defineComponent({
|
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
58
|
});
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return _c("div", {
|
|
60
|
-
staticClass: "tiny-breadcrumb",
|
|
61
|
-
attrs: {
|
|
62
|
-
"aria-label": "Breadcrumb",
|
|
63
|
-
"role": "navigation"
|
|
64
|
-
}
|
|
65
|
-
}, [_vm._t("default", function() {
|
|
66
|
-
return _vm._l(_vm.options, function(item, index) {
|
|
67
|
-
return _c("tiny-breadcrumb-item", {
|
|
68
|
-
key: index,
|
|
69
|
-
attrs: {
|
|
70
|
-
"option": item,
|
|
71
|
-
"label": item[_vm.textField],
|
|
72
|
-
"to": item.to,
|
|
73
|
-
"replace": item.replace
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
})], 2);
|
|
59
|
+
var _hoisted_1 = {
|
|
60
|
+
class: "tiny-breadcrumb",
|
|
61
|
+
"aria-label": "Breadcrumb",
|
|
62
|
+
role: "navigation"
|
|
78
63
|
};
|
|
79
|
-
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
64
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
65
|
+
var _component_tiny_breadcrumb_item = resolveComponent("tiny-breadcrumb-item");
|
|
66
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default", {}, function() {
|
|
67
|
+
return [(openBlock(true), createElementBlock(
|
|
68
|
+
Fragment,
|
|
69
|
+
null,
|
|
70
|
+
renderList(_ctx.options, function(item, index) {
|
|
71
|
+
return openBlock(), createBlock(_component_tiny_breadcrumb_item, {
|
|
72
|
+
option: item,
|
|
73
|
+
label: item[_ctx.textField],
|
|
74
|
+
key: index,
|
|
75
|
+
to: item.to,
|
|
76
|
+
replace: item.replace
|
|
77
|
+
}, null, 8, ["option", "label", "to", "replace"]);
|
|
78
|
+
}),
|
|
79
|
+
128
|
|
80
|
+
/* KEYED_FRAGMENT */
|
|
81
|
+
))];
|
|
82
|
+
})]);
|
|
86
83
|
}
|
|
87
|
-
var pc = /* @__PURE__ */
|
|
88
|
-
return __component__.exports;
|
|
89
|
-
}();
|
|
84
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
90
85
|
|
|
91
86
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-breadcrumb",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
11
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
12
12
|
"@opentinyvue/vue-theme": "~3.22.0",
|
|
13
|
-
"@opentinyvue/vue-breadcrumb-item": "~
|
|
13
|
+
"@opentinyvue/vue-breadcrumb-item": "~3.22.0"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -35,5 +35,75 @@ export declare const breadcrumbProps: {
|
|
|
35
35
|
tiny_theme: StringConstructor;
|
|
36
36
|
tiny_chart_theme: ObjectConstructor;
|
|
37
37
|
};
|
|
38
|
-
declare const _default:
|
|
38
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
39
|
+
_constants: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
default: () => {
|
|
42
|
+
EVENT_NAME: {
|
|
43
|
+
breadcrumbItemSelect: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
separator: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
separatorIcon: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
};
|
|
54
|
+
textField: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
size: StringConstructor;
|
|
59
|
+
options: {
|
|
60
|
+
type: ArrayConstructor;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
tiny_mode: StringConstructor;
|
|
64
|
+
tiny_mode_root: BooleanConstructor;
|
|
65
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
66
|
+
tiny_renderless: FunctionConstructor;
|
|
67
|
+
tiny_theme: StringConstructor;
|
|
68
|
+
tiny_chart_theme: ObjectConstructor;
|
|
69
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
72
|
+
_constants: {
|
|
73
|
+
type: ObjectConstructor;
|
|
74
|
+
default: () => {
|
|
75
|
+
EVENT_NAME: {
|
|
76
|
+
breadcrumbItemSelect: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
separator: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
separatorIcon: {
|
|
85
|
+
type: ObjectConstructor;
|
|
86
|
+
};
|
|
87
|
+
textField: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
size: StringConstructor;
|
|
92
|
+
options: {
|
|
93
|
+
type: ArrayConstructor;
|
|
94
|
+
default: () => never[];
|
|
95
|
+
};
|
|
96
|
+
tiny_mode: StringConstructor;
|
|
97
|
+
tiny_mode_root: BooleanConstructor;
|
|
98
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
99
|
+
tiny_renderless: FunctionConstructor;
|
|
100
|
+
tiny_theme: StringConstructor;
|
|
101
|
+
tiny_chart_theme: ObjectConstructor;
|
|
102
|
+
}>>, {
|
|
103
|
+
options: unknown[];
|
|
104
|
+
tiny_mode_root: boolean;
|
|
105
|
+
_constants: Record<string, any>;
|
|
106
|
+
textField: string;
|
|
107
|
+
separator: string;
|
|
108
|
+
}, {}>;
|
|
39
109
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,52 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
size?: any;
|
|
3
|
+
options?: any;
|
|
4
|
+
tiny_mode?: any;
|
|
5
|
+
tiny_mode_root?: any;
|
|
6
|
+
tiny_template?: any;
|
|
7
|
+
tiny_renderless?: any;
|
|
8
|
+
_constants?: any;
|
|
9
|
+
tiny_theme?: any;
|
|
10
|
+
tiny_chart_theme?: any;
|
|
11
|
+
textField?: any;
|
|
12
|
+
separator?: any;
|
|
13
|
+
separatorIcon?: any;
|
|
14
|
+
}>, {
|
|
15
|
+
t: (this: any, path: any, options?: any) => any;
|
|
16
|
+
vm: any;
|
|
17
|
+
f: (props: any, attrs?: {}) => {};
|
|
18
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
19
|
+
d: (props: any) => void;
|
|
20
|
+
dp: (props: any) => void;
|
|
21
|
+
gcls: (key: any) => any;
|
|
22
|
+
m: (...cssClasses: any[]) => string;
|
|
23
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "select"[], "select", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
24
|
+
size?: any;
|
|
25
|
+
options?: any;
|
|
26
|
+
tiny_mode?: any;
|
|
27
|
+
tiny_mode_root?: any;
|
|
28
|
+
tiny_template?: any;
|
|
29
|
+
tiny_renderless?: any;
|
|
30
|
+
_constants?: any;
|
|
31
|
+
tiny_theme?: any;
|
|
32
|
+
tiny_chart_theme?: any;
|
|
33
|
+
textField?: any;
|
|
34
|
+
separator?: any;
|
|
35
|
+
separatorIcon?: any;
|
|
36
|
+
}>>> & {
|
|
37
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
readonly size?: any;
|
|
40
|
+
readonly options?: any;
|
|
41
|
+
readonly tiny_mode?: any;
|
|
42
|
+
readonly tiny_mode_root?: any;
|
|
43
|
+
readonly tiny_template?: any;
|
|
44
|
+
readonly tiny_renderless?: any;
|
|
45
|
+
readonly _constants?: any;
|
|
46
|
+
readonly tiny_theme?: any;
|
|
47
|
+
readonly tiny_chart_theme?: any;
|
|
48
|
+
readonly textField?: any;
|
|
49
|
+
readonly separator?: any;
|
|
50
|
+
readonly separatorIcon?: any;
|
|
51
|
+
}, {}>;
|
|
2
52
|
export default _default;
|