@opentinyvue/vue-button 3.24.0 → 3.25.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 +3 -2
- package/lib/pc.js +2 -1
- package/package.json +5 -5
- package/src/index.d.ts +16 -0
- package/src/mobile-first.vue.d.ts +3 -0
- package/src/pc.vue.d.ts +3 -0
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -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-
|
|
77
|
+
"no-circle": "sm:min-w-[theme(spacing.18)] pl-2 pr-2 leading-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",
|
|
@@ -85,7 +85,7 @@ var classes = {
|
|
|
85
85
|
};
|
|
86
86
|
var _sfc_main = defineComponent({
|
|
87
87
|
emits: ["click"],
|
|
88
|
-
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "href", "customClass", "banner"]),
|
|
88
|
+
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "href", "customClass", "banner", "customStyle"]),
|
|
89
89
|
components: {
|
|
90
90
|
IconLoading: iconLoading()
|
|
91
91
|
},
|
|
@@ -115,6 +115,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
115
115
|
}), _ctx.gcls({
|
|
116
116
|
"button-link": _ctx.href
|
|
117
117
|
}), _ctx.customClass),
|
|
118
|
+
style: _ctx.customStyle,
|
|
118
119
|
tabindex: _ctx.tabindex
|
|
119
120
|
}, _ctx.a(_ctx.$attrs, ["class", "style", "id"], true)), [_ctx.loading ? (openBlock(), createBlock(_component_icon_loading, {
|
|
120
121
|
key: 0,
|
package/lib/pc.js
CHANGED
|
@@ -39,7 +39,7 @@ var _export_sfc = function _export_sfc2(sfc, props) {
|
|
|
39
39
|
|
|
40
40
|
var _sfc_main = defineComponent({
|
|
41
41
|
emits: ["click"],
|
|
42
|
-
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "customClass", "ghost"]),
|
|
42
|
+
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "customClass", "ghost", "customStyle"]),
|
|
43
43
|
components: {
|
|
44
44
|
IconLoading: iconLoadingShadow()
|
|
45
45
|
},
|
|
@@ -72,6 +72,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
72
|
disabled: _ctx.state.buttonDisabled || _ctx.loading,
|
|
73
73
|
autofocus: _ctx.autofocus,
|
|
74
74
|
type: _ctx.nativeType,
|
|
75
|
+
style: _ctx.customStyle,
|
|
75
76
|
tabindex: _ctx.tabindex
|
|
76
77
|
}, _ctx.a(_ctx.$attrs, ["class", "style", "title", "id"], true)), [_ctx.loading ? (openBlock(), createBlock(_component_icon_loading, {
|
|
77
78
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-button",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.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.25.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.25.0",
|
|
12
|
+
"@opentinyvue/vue-renderless": "~3.25.0",
|
|
13
|
+
"@opentinyvue/vue-theme": "~3.25.0"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -65,6 +65,11 @@ export declare const buttonProps: {
|
|
|
65
65
|
type: BooleanConstructor;
|
|
66
66
|
default: boolean;
|
|
67
67
|
};
|
|
68
|
+
/** 自定义样式 */
|
|
69
|
+
customStyle: {
|
|
70
|
+
type: ObjectConstructor;
|
|
71
|
+
default: () => {};
|
|
72
|
+
};
|
|
68
73
|
/** 是否幽灵按钮 */
|
|
69
74
|
ghost: BooleanConstructor;
|
|
70
75
|
/** 点击事件 */
|
|
@@ -146,6 +151,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
146
151
|
type: BooleanConstructor;
|
|
147
152
|
default: boolean;
|
|
148
153
|
};
|
|
154
|
+
/** 自定义样式 */
|
|
155
|
+
customStyle: {
|
|
156
|
+
type: ObjectConstructor;
|
|
157
|
+
default: () => {};
|
|
158
|
+
};
|
|
149
159
|
/** 是否幽灵按钮 */
|
|
150
160
|
ghost: BooleanConstructor;
|
|
151
161
|
/** 点击事件 */
|
|
@@ -228,6 +238,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
228
238
|
type: BooleanConstructor;
|
|
229
239
|
default: boolean;
|
|
230
240
|
};
|
|
241
|
+
/** 自定义样式 */
|
|
242
|
+
customStyle: {
|
|
243
|
+
type: ObjectConstructor;
|
|
244
|
+
default: () => {};
|
|
245
|
+
};
|
|
231
246
|
/** 是否幽灵按钮 */
|
|
232
247
|
ghost: BooleanConstructor;
|
|
233
248
|
/** 点击事件 */
|
|
@@ -260,6 +275,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
260
275
|
plain: boolean;
|
|
261
276
|
autofocus: boolean;
|
|
262
277
|
banner: boolean;
|
|
278
|
+
customStyle: Record<string, any>;
|
|
263
279
|
ghost: boolean;
|
|
264
280
|
}, SlotsType<{
|
|
265
281
|
/** 默认插槽 */
|
|
@@ -23,6 +23,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
23
23
|
plain?: any;
|
|
24
24
|
autofocus?: any;
|
|
25
25
|
banner?: any;
|
|
26
|
+
customStyle?: any;
|
|
26
27
|
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "click"[], "click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
27
28
|
disabled?: any;
|
|
28
29
|
icon?: any;
|
|
@@ -48,6 +49,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
48
49
|
plain?: any;
|
|
49
50
|
autofocus?: any;
|
|
50
51
|
banner?: any;
|
|
52
|
+
customStyle?: any;
|
|
51
53
|
}>>> & {
|
|
52
54
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
53
55
|
}, {
|
|
@@ -75,5 +77,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
75
77
|
readonly plain?: any;
|
|
76
78
|
readonly autofocus?: any;
|
|
77
79
|
readonly banner?: any;
|
|
80
|
+
readonly customStyle?: any;
|
|
78
81
|
}, {}>;
|
|
79
82
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
22
22
|
nativeType?: any;
|
|
23
23
|
plain?: any;
|
|
24
24
|
autofocus?: any;
|
|
25
|
+
customStyle?: any;
|
|
25
26
|
ghost?: any;
|
|
26
27
|
}>, IButtonApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "click"[], "click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
27
28
|
disabled?: any;
|
|
@@ -46,6 +47,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
46
47
|
nativeType?: any;
|
|
47
48
|
plain?: any;
|
|
48
49
|
autofocus?: any;
|
|
50
|
+
customStyle?: any;
|
|
49
51
|
ghost?: any;
|
|
50
52
|
}>>> & {
|
|
51
53
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -72,6 +74,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
72
74
|
readonly nativeType?: any;
|
|
73
75
|
readonly plain?: any;
|
|
74
76
|
readonly autofocus?: any;
|
|
77
|
+
readonly customStyle?: any;
|
|
75
78
|
readonly ghost?: any;
|
|
76
79
|
}, {}>;
|
|
77
80
|
export default _default;
|