@opentinyvue/vue-button 3.25.0 → 3.27.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.
@@ -38,7 +38,7 @@ var _export_sfc = function _export_sfc2(sfc, props) {
38
38
 
39
39
  var classes = {
40
40
  "button": "inline-block text-center overflow-hidden overflow-ellipsis whitespace-nowrap transition-button duration-300 delay-[0ms] active:transition-all active:scale-[0.95] active:ease-[cubic-bezier(0.33,0,0.67,1)]",
41
- "button-base-width": "sm:max-w-[theme(spacing.36)]",
41
+ // 'button-base-width': 'sm:max-w-[theme(spacing.36)]',
42
42
  "size-default": "h-10 text-sm sm:h-7",
43
43
  "size-medium": "h-10 text-sm sm:h-8",
44
44
  "size-small": "h-8 text-sm sm:h-7",
@@ -74,7 +74,7 @@ var classes = {
74
74
  "no-round": "rounded",
75
75
  "is-round": "rounded-full",
76
76
  "is-border": "border-0.5 sm:border",
77
- "no-circle": "sm:min-w-[theme(spacing.18)] pl-2 pr-2 leading-5",
77
+ "no-circle": "sm:min-w-[theme(spacing.18)] pl-2 pr-2 leading-5.5",
78
78
  "is-circle": "sm:min-w-[theme(spacing.18)] sm:rounded-full sm:pl-2 sm:pr-2",
79
79
  "button-icon": "-mt-0.5 sm:text-base fill-current",
80
80
  "button-icon-default": "text-color-icon-primary hover:text-color-icon-hover active:text-color-icon-active",
@@ -110,7 +110,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
110
110
  disabled: _ctx.state.buttonDisabled || _ctx.loading,
111
111
  autofocus: _ctx.autofocus,
112
112
  type: _ctx.nativeType,
113
- class: _ctx.m(_ctx.gcls("button"), _ctx.gcls(_ctx.banner ? "button-banner" : "button-base-width"), _ctx.gcls("size-" + (_ctx.size || "default")), _ctx.gcls("type-" + (_ctx.type || "default") + (_ctx.icon ? "-icon" : _ctx.state.plain ? "-plain" : "") + (_ctx.state.buttonDisabled || _ctx.loading ? "-disabled" : "")), _ctx.gcls(_ctx.state.round ? "is-round" : "no-round"), _ctx.gcls(_ctx.circle ? "is-circle" : "no-circle"), _ctx.gcls({
113
+ class: _ctx.m(_ctx.gcls("button"), _ctx.gcls(_ctx.banner ? "button-banner" : ""), _ctx.gcls("size-" + (_ctx.size || "default")), _ctx.gcls("type-" + (_ctx.type || "default") + (_ctx.icon ? "-icon" : _ctx.state.plain ? "-plain" : "") + (_ctx.state.buttonDisabled || _ctx.loading ? "-disabled" : "")), _ctx.gcls(_ctx.state.round ? "is-round" : "no-round"), _ctx.gcls(_ctx.circle ? "is-circle" : "no-circle"), _ctx.gcls({
114
114
  "is-border": _ctx.circle || !(_ctx.type === "text" || _ctx.icon)
115
115
  }), _ctx.gcls({
116
116
  "button-link": _ctx.href
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-button",
3
- "version": "3.25.0",
3
+ "version": "3.27.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.25.0",
11
- "@opentinyvue/vue-icon": "~3.25.0",
12
- "@opentinyvue/vue-renderless": "~3.25.0",
13
- "@opentinyvue/vue-theme": "~3.25.0"
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"
14
14
  },
15
15
  "license": "MIT",
16
16
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { type PropType } from '@opentinyvue/vue-common';
1
2
  export declare const buttonProps: {
2
3
  /** 展示按钮不同的状态,设置为text则展示为文本按钮。可取值为:'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text' */
3
4
  type: {
@@ -77,7 +78,7 @@ export declare const buttonProps: {
77
78
  type: PropType<(ev: MouseEvent) => void>;
78
79
  };
79
80
  tiny_mode: StringConstructor;
80
- tiny_mode_root: BooleanConstructor; /** 是否圆角按钮 */
81
+ tiny_mode_root: BooleanConstructor;
81
82
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
82
83
  tiny_renderless: FunctionConstructor;
83
84
  tiny_theme: StringConstructor;
@@ -163,7 +164,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
163
164
  type: PropType<(ev: MouseEvent) => void>;
164
165
  };
165
166
  tiny_mode: StringConstructor;
166
- tiny_mode_root: BooleanConstructor; /** 是否圆角按钮 */
167
+ tiny_mode_root: BooleanConstructor;
167
168
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
168
169
  tiny_renderless: FunctionConstructor;
169
170
  tiny_theme: StringConstructor;
@@ -250,7 +251,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
250
251
  type: PropType<(ev: MouseEvent) => void>;
251
252
  };
252
253
  tiny_mode: StringConstructor;
253
- tiny_mode_root: BooleanConstructor; /** 是否圆角按钮 */
254
+ tiny_mode_root: BooleanConstructor;
254
255
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
255
256
  tiny_renderless: FunctionConstructor;
256
257
  tiny_theme: StringConstructor;
@@ -265,7 +266,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
265
266
  type: string;
266
267
  loading: boolean;
267
268
  circle: boolean;
268
- onClick: any;
269
269
  customClass: string;
270
270
  tiny_mode_root: boolean;
271
271
  tabindex: string;
package/src/token.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export declare const classes: {
2
2
  button: string;
3
- 'button-base-width': string;
4
3
  'size-default': string;
5
4
  'size-medium': string;
6
5
  'size-small': string;