@opentinyvue/vue-button 3.22.0 → 3.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 +1 -1
- package/lib/mobile-first.js +3 -3
- package/package.json +5 -5
- package/src/index.d.ts +3 -3
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -64,7 +64,7 @@ var classes = {
|
|
|
64
64
|
"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",
|
|
65
65
|
"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",
|
|
66
66
|
"type-text-plain": "text-color-brand hover:text-color-brand-hover active:text-color-brand-active",
|
|
67
|
-
"type-default-plain-disabled": "text-color-text-disabled bg-color-bg-1 border-color-
|
|
67
|
+
"type-default-plain-disabled": "text-color-text-disabled bg-color-bg-1 border-color-border-disabled hover:cursor-not-allowed",
|
|
68
68
|
"type-primary-plain-disabled": "text-color-brand-disabled bg-color-bg-1 border-color-brand-disabled hover:cursor-not-allowed",
|
|
69
69
|
"type-success-plain-disabled": "text-color-success-disabled bg-color-bg-1 border-color-success-disabled hover:cursor-not-allowed",
|
|
70
70
|
"type-info-plain-disabled": "text-color-info-secondary-disabled bg-color-bg-1 border-color-info-secondary-disabled hover:cursor-not-allowed",
|
|
@@ -79,7 +79,7 @@ var classes = {
|
|
|
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",
|
|
81
81
|
"button-icon-disabled": "text-color-icon-disabled hover:cursor-not-allowed",
|
|
82
|
-
"loading-svg": "animate-spin
|
|
82
|
+
"loading-svg": "animate-spin mr-1 fill-current -left-0.5 -right-0.5 -top-0.5 -bottom-0.5",
|
|
83
83
|
"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",
|
|
84
84
|
"button-banner": " w-[calc(100%-theme(spacing.8))] mx-4"
|
|
85
85
|
};
|
|
@@ -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 ? "-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" : "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({
|
|
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.
|
|
3
|
+
"version": "3.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": "~3.
|
|
11
|
-
"@opentinyvue/vue-icon": "~3.
|
|
12
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
13
|
-
"@opentinyvue/vue-theme": "~3.
|
|
10
|
+
"@opentinyvue/vue-common": "~3.23.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.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;
|
|
@@ -152,7 +152,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
152
152
|
type: PropType<(ev: MouseEvent) => void>;
|
|
153
153
|
};
|
|
154
154
|
tiny_mode: StringConstructor;
|
|
155
|
-
tiny_mode_root: BooleanConstructor;
|
|
155
|
+
tiny_mode_root: BooleanConstructor; /** 是否圆角按钮 */
|
|
156
156
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
157
157
|
tiny_renderless: FunctionConstructor;
|
|
158
158
|
tiny_theme: StringConstructor;
|
|
@@ -233,7 +233,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
233
233
|
type: PropType<(ev: MouseEvent) => void>;
|
|
234
234
|
};
|
|
235
235
|
tiny_mode: StringConstructor;
|
|
236
|
-
tiny_mode_root: BooleanConstructor;
|
|
236
|
+
tiny_mode_root: BooleanConstructor; /** 是否圆角按钮 */
|
|
237
237
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
238
238
|
tiny_renderless: FunctionConstructor;
|
|
239
239
|
tiny_theme: StringConstructor;
|