@opentinyvue/vue-link 2.29.0 → 2.30.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/index.d.ts +1 -12
- package/lib/pc.js +7 -1
- package/package.json +4 -4
- package/src/index.d.ts +1 -1
- package/src/pc.vue.d.ts +0 -2
package/index.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
-
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license.
|
|
6
|
-
*
|
|
7
|
-
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
-
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
-
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
import Link from './src/index';
|
|
1
|
+
import { default as Link } from './src/index';
|
|
13
2
|
export default Link;
|
package/lib/pc.js
CHANGED
|
@@ -51,7 +51,10 @@ var render = function render2() {
|
|
|
51
51
|
class: ["tiny-link", "tiny-link--additional", _vm.type ? "tiny-link--" + _vm.type : "", _vm.state.disabled && "is-disabled", _vm.underline && !_vm.state.disabled && "is-underline"],
|
|
52
52
|
attrs: {
|
|
53
53
|
"href": _vm.state.disabled ? null : _vm.state.href,
|
|
54
|
-
"rel": "noopener noreferrer"
|
|
54
|
+
"rel": "noopener noreferrer",
|
|
55
|
+
"aria-disabled": _vm.state.disabled,
|
|
56
|
+
"tabindex": _vm.state.disabled ? -1 : void 0,
|
|
57
|
+
"aria-label": _vm.$attrs["aria-label"] || _vm.value
|
|
55
58
|
},
|
|
56
59
|
on: {
|
|
57
60
|
"click": _vm.handleClick
|
|
@@ -61,6 +64,9 @@ var render = function render2() {
|
|
|
61
64
|
staticClass: "tiny-svg-size tiny-link-svg",
|
|
62
65
|
class: {
|
|
63
66
|
"tiny-link-svg-only": !(_vm.slots.default || _vm.value)
|
|
67
|
+
},
|
|
68
|
+
attrs: {
|
|
69
|
+
"aria-hidden": "true"
|
|
64
70
|
}
|
|
65
71
|
}) : _vm._e(), _vm.value ? _c("span", {
|
|
66
72
|
staticClass: "tiny-link__inner"
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-link",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.30.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opentinyvue/vue-common": "~2.
|
|
12
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
13
|
-
"@opentinyvue/vue-theme": "~3.
|
|
11
|
+
"@opentinyvue/vue-common": "~2.30.0",
|
|
12
|
+
"@opentinyvue/vue-renderless": "~3.30.0",
|
|
13
|
+
"@opentinyvue/vue-theme": "~3.30.0"
|
|
14
14
|
},
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"scripts": {
|
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;
|
package/src/pc.vue.d.ts
DELETED