@opentinyvue/vue-button 2.22.0 → 2.23.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 CHANGED
@@ -114,7 +114,7 @@ var Button = defineComponent({
114
114
  });
115
115
  }
116
116
  });
117
- var version = "2.22.0";
117
+ var version = "2.23.0";
118
118
  Button.install = function(Vue) {
119
119
  Vue.component(Button.name, Button);
120
120
  };
@@ -60,7 +60,7 @@ var classes = {
60
60
  "type-warning-plain": "text-color-warning border-color-warning hover:text-color-warning-hover hover:border-color-warning-hover active:text-color-warning-active active:border-color-warning-active bg-color-bg-1 sm:cursor-pointer",
61
61
  "type-danger-plain": "text-color-error border-color-error hover:text-color-error-hover hover:border-color-error-hover active:text-color-error-active active:border-color-error-active bg-color-bg-1 sm:cursor-pointer",
62
62
  "type-text-plain": "text-color-brand hover:text-color-brand-hover active:text-color-brand-active",
63
- "type-default-plain-disabled": "text-color-text-disabled bg-color-bg-1 border-color-text-disabled hover:cursor-not-allowed",
63
+ "type-default-plain-disabled": "text-color-text-disabled bg-color-bg-1 border-color-border-disabled hover:cursor-not-allowed",
64
64
  "type-primary-plain-disabled": "text-color-brand-disabled bg-color-bg-1 border-color-brand-disabled hover:cursor-not-allowed",
65
65
  "type-success-plain-disabled": "text-color-success-disabled bg-color-bg-1 border-color-success-disabled hover:cursor-not-allowed",
66
66
  "type-info-plain-disabled": "text-color-info-secondary-disabled bg-color-bg-1 border-color-info-secondary-disabled hover:cursor-not-allowed",
@@ -75,7 +75,7 @@ var classes = {
75
75
  "button-icon": "-mt-0.5 sm:text-base fill-current",
76
76
  "button-icon-default": "text-color-icon-primary hover:text-color-icon-hover active:text-color-icon-active",
77
77
  "button-icon-disabled": "text-color-icon-disabled hover:cursor-not-allowed",
78
- "loading-svg": "animate-spin-2 mr-1 fill-current -left-0.5 -right-0.5 -top-0.5 -bottom-0.5",
78
+ "loading-svg": "animate-spin mr-1 fill-current -left-0.5 -right-0.5 -top-0.5 -bottom-0.5",
79
79
  "button-link": "text-color-link hover:text-color-link-hover active:color-link-hover active:hover:text-color-link-hover sm:hover:text-color-link-hover",
80
80
  "button-banner": " w-[calc(100%-theme(spacing.8))] mx-4"
81
81
  };
@@ -100,7 +100,7 @@ var render = function render2() {
100
100
  var _h = _vm.$createElement;
101
101
  var _c = _vm._self._c || _h;
102
102
  return _c("button", _vm._b({
103
- class: _vm.m(_vm.gcls("button"), _vm.gcls(_vm.banner ? "button-banner" : "button-base-width"), _vm.gcls("size-" + (_vm.size || "default")), _vm.gcls("type-" + (_vm.type || "default") + (_vm.icon ? "-icon" : _vm.state.plain ? "-plain" : "") + (_vm.state.buttonDisabled ? "-disabled" : "")), _vm.gcls(_vm.state.round ? "is-round" : "no-round"), _vm.gcls(_vm.circle ? "is-circle" : "no-circle"), _vm.gcls({
103
+ class: _vm.m(_vm.gcls("button"), _vm.gcls(_vm.banner ? "button-banner" : "button-base-width"), _vm.gcls("size-" + (_vm.size || "default")), _vm.gcls("type-" + (_vm.type || "default") + (_vm.icon ? "-icon" : _vm.state.plain ? "-plain" : "") + (_vm.state.buttonDisabled || _vm.loading ? "-disabled" : "")), _vm.gcls(_vm.state.round ? "is-round" : "no-round"), _vm.gcls(_vm.circle ? "is-circle" : "no-circle"), _vm.gcls({
104
104
  "is-border": _vm.circle || !(_vm.type === "text" || _vm.icon)
105
105
  }), _vm.gcls({
106
106
  "button-link": _vm.href
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-button",
3
- "version": "2.22.0",
3
+ "version": "2.23.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": "~2.22.0",
11
- "@opentinyvue/vue-icon": "~2.22.0",
12
- "@opentinyvue/vue-renderless": "~3.22.0",
13
- "@opentinyvue/vue-theme": "~3.22.0"
10
+ "@opentinyvue/vue-common": "~2.23.0",
11
+ "@opentinyvue/vue-icon": "~2.23.0",
12
+ "@opentinyvue/vue-renderless": "~3.23.0",
13
+ "@opentinyvue/vue-theme": "~3.23.0"
14
14
  },
15
15
  "license": "MIT",
16
16
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -72,7 +72,7 @@ export declare const buttonProps: {
72
72
  type: PropType<(ev: MouseEvent) => void>;
73
73
  };
74
74
  tiny_mode: StringConstructor;
75
- tiny_mode_root: BooleanConstructor;
75
+ tiny_mode_root: BooleanConstructor; /** 是否圆角按钮 */
76
76
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
77
77
  tiny_renderless: FunctionConstructor;
78
78
  tiny_theme: StringConstructor;