@opentinyvue/vue-button 2.25.0 → 2.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.
- package/lib/mobile-first.js +5 -5
- package/lib/pc.js +2 -2
- package/package.json +5 -5
- package/src/index.d.ts +2 -1
- package/src/token.d.ts +0 -1
package/lib/mobile-first.js
CHANGED
|
@@ -34,7 +34,7 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
34
34
|
|
|
35
35
|
var classes = {
|
|
36
36
|
"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)]",
|
|
37
|
-
|
|
37
|
+
// 'button-base-width': 'sm:max-w-[theme(spacing.36)]',
|
|
38
38
|
"size-default": "h-10 text-sm sm:h-7",
|
|
39
39
|
"size-medium": "h-10 text-sm sm:h-8",
|
|
40
40
|
"size-small": "h-8 text-sm sm:h-7",
|
|
@@ -70,7 +70,7 @@ var classes = {
|
|
|
70
70
|
"no-round": "rounded",
|
|
71
71
|
"is-round": "rounded-full",
|
|
72
72
|
"is-border": "border-0.5 sm:border",
|
|
73
|
-
"no-circle": "sm:min-w-[theme(spacing.18)] pl-2 pr-2 leading-5",
|
|
73
|
+
"no-circle": "sm:min-w-[theme(spacing.18)] pl-2 pr-2 leading-5.5",
|
|
74
74
|
"is-circle": "sm:min-w-[theme(spacing.18)] sm:rounded-full sm:pl-2 sm:pr-2",
|
|
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",
|
|
@@ -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" : "
|
|
103
|
+
class: _vm.m(_vm.gcls("button"), _vm.gcls(_vm.banner ? "button-banner" : ""), _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
|
|
@@ -133,8 +133,8 @@ function __vue2_injectStyles(context) {
|
|
|
133
133
|
this[o] = __cssModules[o];
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
var mobileFirst = /* @__PURE__ */ function() {
|
|
136
|
+
var mobileFirst = /* @__PURE__ */ (function() {
|
|
137
137
|
return __component__.exports;
|
|
138
|
-
}();
|
|
138
|
+
})();
|
|
139
139
|
|
|
140
140
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-button",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.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": "~2.
|
|
11
|
-
"@opentinyvue/vue-icon": "~2.
|
|
12
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
13
|
-
"@opentinyvue/vue-theme": "~3.
|
|
10
|
+
"@opentinyvue/vue-common": "~2.27.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~2.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;
|