@opentinyvue/vue-link 3.29.0 → 3.29.1
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 +7 -3
- package/package.json +1 -1
- package/src/index.d.ts +4 -4
- package/src/pc.vue.d.ts +9 -9
package/lib/pc.js
CHANGED
|
@@ -47,7 +47,7 @@ var _sfc_main = defineComponent({
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
var _hoisted_1 = ["href"];
|
|
50
|
+
var _hoisted_1 = ["href", "aria-disabled", "tabindex", "aria-label"];
|
|
51
51
|
var _hoisted_2 = {
|
|
52
52
|
key: 1,
|
|
53
53
|
class: "tiny-link__inner"
|
|
@@ -64,12 +64,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64
64
|
rel: "noopener noreferrer",
|
|
65
65
|
onClick: _cache[0] || (_cache[0] = function() {
|
|
66
66
|
return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
|
|
67
|
-
})
|
|
67
|
+
}),
|
|
68
|
+
"aria-disabled": _ctx.state.disabled,
|
|
69
|
+
tabindex: _ctx.state.disabled ? -1 : void 0,
|
|
70
|
+
"aria-label": _ctx.$attrs["aria-label"] || _ctx.value
|
|
68
71
|
}), [_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
69
72
|
key: 0,
|
|
70
73
|
class: normalizeClass(["tiny-svg-size tiny-link-svg", {
|
|
71
74
|
"tiny-link-svg-only": !(_ctx.slots.default || _ctx.value)
|
|
72
|
-
}])
|
|
75
|
+
}]),
|
|
76
|
+
"aria-hidden": "true"
|
|
73
77
|
}, null, 8, ["class"])) : createCommentVNode("v-if", true), _ctx.value ? (openBlock(), createElementBlock(
|
|
74
78
|
"span",
|
|
75
79
|
_hoisted_2,
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const linkProps: {
|
|
|
14
14
|
/** 原生 href 属性 */
|
|
15
15
|
href: StringConstructor;
|
|
16
16
|
/** 自定义图标 */
|
|
17
|
-
icon: (
|
|
17
|
+
icon: (ObjectConstructor | StringConstructor)[];
|
|
18
18
|
/** 是否禁用状态 */
|
|
19
19
|
disabled: BooleanConstructor;
|
|
20
20
|
tiny_mode: StringConstructor;
|
|
@@ -41,7 +41,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
41
41
|
/** 原生 href 属性 */
|
|
42
42
|
href: StringConstructor;
|
|
43
43
|
/** 自定义图标 */
|
|
44
|
-
icon: (
|
|
44
|
+
icon: (ObjectConstructor | StringConstructor)[];
|
|
45
45
|
/** 是否禁用状态 */
|
|
46
46
|
disabled: BooleanConstructor;
|
|
47
47
|
tiny_mode: StringConstructor;
|
|
@@ -69,7 +69,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
69
69
|
/** 原生 href 属性 */
|
|
70
70
|
href: StringConstructor;
|
|
71
71
|
/** 自定义图标 */
|
|
72
|
-
icon: (
|
|
72
|
+
icon: (ObjectConstructor | StringConstructor)[];
|
|
73
73
|
/** 是否禁用状态 */
|
|
74
74
|
disabled: BooleanConstructor;
|
|
75
75
|
tiny_mode: StringConstructor;
|
|
@@ -80,8 +80,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
80
80
|
tiny_mcp_config: ObjectConstructor;
|
|
81
81
|
tiny_chart_theme: ObjectConstructor;
|
|
82
82
|
}>>, {
|
|
83
|
-
disabled: boolean;
|
|
84
83
|
type: string;
|
|
84
|
+
disabled: boolean;
|
|
85
85
|
tiny_mode_root: boolean;
|
|
86
86
|
underline: boolean;
|
|
87
87
|
}, {}>;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { ILinkApi } from '@opentinyvue/vue-renderless/types/link.type';
|
|
2
2
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
3
|
-
value?: any;
|
|
4
|
-
disabled?: any;
|
|
5
|
-
icon?: any;
|
|
6
3
|
href?: any;
|
|
7
4
|
type?: any;
|
|
5
|
+
disabled?: any;
|
|
6
|
+
value?: any;
|
|
8
7
|
tiny_mode?: any;
|
|
9
8
|
tiny_mode_root?: any;
|
|
10
9
|
tiny_template?: any;
|
|
@@ -13,13 +12,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
13
12
|
tiny_theme?: any;
|
|
14
13
|
tiny_chart_theme?: any;
|
|
15
14
|
tiny_mcp_config?: any;
|
|
15
|
+
icon?: any;
|
|
16
16
|
underline?: any;
|
|
17
17
|
}>, ILinkApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "click"[], "click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
18
|
-
value?: any;
|
|
19
|
-
disabled?: any;
|
|
20
|
-
icon?: any;
|
|
21
18
|
href?: any;
|
|
22
19
|
type?: any;
|
|
20
|
+
disabled?: any;
|
|
21
|
+
value?: any;
|
|
23
22
|
tiny_mode?: any;
|
|
24
23
|
tiny_mode_root?: any;
|
|
25
24
|
tiny_template?: any;
|
|
@@ -28,15 +27,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
28
27
|
tiny_theme?: any;
|
|
29
28
|
tiny_chart_theme?: any;
|
|
30
29
|
tiny_mcp_config?: any;
|
|
30
|
+
icon?: any;
|
|
31
31
|
underline?: any;
|
|
32
32
|
}>>> & {
|
|
33
33
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
}, {
|
|
35
|
-
readonly value?: any;
|
|
36
|
-
readonly disabled?: any;
|
|
37
|
-
readonly icon?: any;
|
|
38
35
|
readonly href?: any;
|
|
39
36
|
readonly type?: any;
|
|
37
|
+
readonly disabled?: any;
|
|
38
|
+
readonly value?: any;
|
|
40
39
|
readonly tiny_mode?: any;
|
|
41
40
|
readonly tiny_mode_root?: any;
|
|
42
41
|
readonly tiny_template?: any;
|
|
@@ -45,6 +44,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
45
44
|
readonly tiny_theme?: any;
|
|
46
45
|
readonly tiny_chart_theme?: any;
|
|
47
46
|
readonly tiny_mcp_config?: any;
|
|
47
|
+
readonly icon?: any;
|
|
48
48
|
readonly underline?: any;
|
|
49
49
|
}, {}>;
|
|
50
50
|
export default _default;
|