@opentinyvue/vue-button 3.27.0 → 3.29.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.
Files changed (2) hide show
  1. package/lib/pc.js +5 -2
  2. package/package.json +5 -5
package/lib/pc.js CHANGED
@@ -52,7 +52,7 @@ var _sfc_main = defineComponent({
52
52
  });
53
53
  }
54
54
  });
55
- var _hoisted_1 = ["disabled", "autofocus", "type", "tabindex"];
55
+ var _hoisted_1 = ["disabled", "aria-disabled", "aria-busy", "autofocus", "type", "tabindex"];
56
56
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
57
57
  var _component_icon_loading = resolveComponent("icon-loading");
58
58
  return openBlock(), createElementBlock("button", mergeProps({
@@ -70,13 +70,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
70
70
  return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
71
71
  }),
72
72
  disabled: _ctx.state.buttonDisabled || _ctx.loading,
73
+ "aria-disabled": _ctx.state.buttonDisabled || _ctx.loading,
74
+ "aria-busy": _ctx.loading,
73
75
  autofocus: _ctx.autofocus,
74
76
  type: _ctx.nativeType,
75
77
  style: _ctx.customStyle,
76
78
  tabindex: _ctx.tabindex
77
79
  }, _ctx.a(_ctx.$attrs, ["class", "style", "title", "id"], true)), [_ctx.loading ? (openBlock(), createBlock(_component_icon_loading, {
78
80
  key: 0,
79
- class: "tiny-icon-loading tiny-svg-size"
81
+ class: "tiny-icon-loading tiny-svg-size",
82
+ "aria-hidden": "true"
80
83
  })) : createCommentVNode("v-if", true), _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
81
84
  key: 1,
82
85
  class: normalizeClass({
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-button",
3
- "version": "3.27.0",
3
+ "version": "3.29.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~3.27.0",
11
- "@opentinyvue/vue-icon": "~3.27.0",
12
- "@opentinyvue/vue-renderless": "~3.27.0",
13
- "@opentinyvue/vue-theme": "~3.27.0"
10
+ "@opentinyvue/vue-common": "~3.29.0",
11
+ "@opentinyvue/vue-icon": "~3.29.0",
12
+ "@opentinyvue/vue-renderless": "~3.29.0",
13
+ "@opentinyvue/vue-theme": "~3.29.0"
14
14
  },
15
15
  "license": "MIT",
16
16
  "types": "index.d.ts",