@opentinyvue/vue-button 3.26.0 → 3.28.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/mobile-first.js +2 -2
- package/package.json +5 -5
- package/src/token.d.ts +0 -1
package/lib/mobile-first.js
CHANGED
|
@@ -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
|
-
|
|
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",
|
|
@@ -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" : "
|
|
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.
|
|
3
|
+
"version": "3.28.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.28.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.28.0",
|
|
12
|
+
"@opentinyvue/vue-renderless": "~3.28.0",
|
|
13
|
+
"@opentinyvue/vue-theme": "~3.28.0"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"types": "index.d.ts",
|