@opentinyvue/vue-button 2.24.0 → 2.26.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 +7 -0
- package/lib/mobile-first.js +5 -4
- package/lib/pc.js +4 -3
- package/package.json +5 -5
- package/src/index.d.ts +7 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -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-
|
|
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",
|
|
@@ -81,7 +81,7 @@ var classes = {
|
|
|
81
81
|
};
|
|
82
82
|
var __vue2_script = defineComponent({
|
|
83
83
|
emits: ["click"],
|
|
84
|
-
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "href", "customClass", "banner"]),
|
|
84
|
+
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "href", "customClass", "banner", "customStyle"]),
|
|
85
85
|
components: {
|
|
86
86
|
IconLoading: iconLoading()
|
|
87
87
|
},
|
|
@@ -105,6 +105,7 @@ var render = function render2() {
|
|
|
105
105
|
}), _vm.gcls({
|
|
106
106
|
"button-link": _vm.href
|
|
107
107
|
}), _vm.customClass),
|
|
108
|
+
style: _vm.customStyle,
|
|
108
109
|
attrs: {
|
|
109
110
|
"data-tag": "tiny-button",
|
|
110
111
|
"disabled": _vm.state.buttonDisabled || _vm.loading,
|
|
@@ -132,8 +133,8 @@ function __vue2_injectStyles(context) {
|
|
|
132
133
|
this[o] = __cssModules[o];
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
var mobileFirst = /* @__PURE__ */ function() {
|
|
136
|
+
var mobileFirst = /* @__PURE__ */ (function() {
|
|
136
137
|
return __component__.exports;
|
|
137
|
-
}();
|
|
138
|
+
})();
|
|
138
139
|
|
|
139
140
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -35,7 +35,7 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
35
35
|
|
|
36
36
|
var __vue2_script = defineComponent({
|
|
37
37
|
emits: ["click"],
|
|
38
|
-
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "customClass", "ghost"]),
|
|
38
|
+
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "customClass", "ghost", "customStyle"]),
|
|
39
39
|
components: {
|
|
40
40
|
IconLoading: iconLoadingShadow()
|
|
41
41
|
},
|
|
@@ -64,6 +64,7 @@ var render = function render2() {
|
|
|
64
64
|
"is-icon": _vm.icon && !_vm.loading && (_vm.text || _vm.slots.default),
|
|
65
65
|
"is-only-icon": _vm.icon && !_vm.loading && !(_vm.text || _vm.slots.default)
|
|
66
66
|
}],
|
|
67
|
+
style: _vm.customStyle,
|
|
67
68
|
attrs: {
|
|
68
69
|
"disabled": _vm.state.buttonDisabled || _vm.loading,
|
|
69
70
|
"autofocus": _vm.autofocus,
|
|
@@ -92,8 +93,8 @@ function __vue2_injectStyles(context) {
|
|
|
92
93
|
this[o] = __cssModules[o];
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
var pc = /* @__PURE__ */ function() {
|
|
96
|
+
var pc = /* @__PURE__ */ (function() {
|
|
96
97
|
return __component__.exports;
|
|
97
|
-
}();
|
|
98
|
+
})();
|
|
98
99
|
|
|
99
100
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-button",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.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.26.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~2.26.0",
|
|
12
|
+
"@opentinyvue/vue-renderless": "~3.26.0",
|
|
13
|
+
"@opentinyvue/vue-theme": "~3.26.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: {
|
|
@@ -65,6 +66,11 @@ export declare const buttonProps: {
|
|
|
65
66
|
type: BooleanConstructor;
|
|
66
67
|
default: boolean;
|
|
67
68
|
};
|
|
69
|
+
/** 自定义样式 */
|
|
70
|
+
customStyle: {
|
|
71
|
+
type: ObjectConstructor;
|
|
72
|
+
default: () => {};
|
|
73
|
+
};
|
|
68
74
|
/** 是否幽灵按钮 */
|
|
69
75
|
ghost: BooleanConstructor;
|
|
70
76
|
/** 点击事件 */
|
|
@@ -72,7 +78,7 @@ export declare const buttonProps: {
|
|
|
72
78
|
type: PropType<(ev: MouseEvent) => void>;
|
|
73
79
|
};
|
|
74
80
|
tiny_mode: StringConstructor;
|
|
75
|
-
tiny_mode_root: BooleanConstructor;
|
|
81
|
+
tiny_mode_root: BooleanConstructor;
|
|
76
82
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
77
83
|
tiny_renderless: FunctionConstructor;
|
|
78
84
|
tiny_theme: StringConstructor;
|