@opentiny/vue-button
Advanced tools
Comparing version 3.9.0 to 3.10.0
@@ -15,3 +15,3 @@ function _extends() { | ||
} | ||
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common"; | ||
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common"; | ||
import PcTemplate from "./pc.js"; | ||
@@ -32,2 +32,45 @@ import MobileTemplate from "./mobile.js"; | ||
}; | ||
var buttonProps = _extends({}, $props, { | ||
type: { | ||
type: String, | ||
default: "default" | ||
}, | ||
tabindex: { | ||
type: String, | ||
default: "1" | ||
}, | ||
icon: { | ||
type: [Object, String], | ||
default: "" | ||
}, | ||
text: { | ||
type: String, | ||
default: "" | ||
}, | ||
resetTime: { | ||
type: Number, | ||
default: 1e3 | ||
}, | ||
nativeType: { | ||
type: String, | ||
default: "button" | ||
}, | ||
size: { | ||
type: String, | ||
default: "", | ||
validator: function validator(val) { | ||
return ["large", "medium", "small", "mini", ""].includes(val); | ||
} | ||
}, | ||
round: Boolean, | ||
plain: Boolean, | ||
circle: Boolean, | ||
loading: Boolean, | ||
disabled: Boolean, | ||
autofocus: Boolean, | ||
buttonClass: { | ||
type: String, | ||
default: "" | ||
} | ||
}); | ||
var Button = defineComponent({ | ||
@@ -40,45 +83,3 @@ name: $prefix + "Button", | ||
}, | ||
props: _extends({}, $props, { | ||
type: { | ||
type: String, | ||
default: "default" | ||
}, | ||
tabindex: { | ||
type: String, | ||
default: "1" | ||
}, | ||
icon: { | ||
type: [Object, String], | ||
default: "" | ||
}, | ||
text: { | ||
type: String, | ||
default: "" | ||
}, | ||
resetTime: { | ||
type: Number, | ||
default: 1e3 | ||
}, | ||
nativeType: { | ||
type: String, | ||
default: "button" | ||
}, | ||
size: { | ||
type: String, | ||
default: "", | ||
validator: function validator(val) { | ||
return ["large", "medium", "small", "mini", ""].includes(val); | ||
} | ||
}, | ||
round: Boolean, | ||
plain: Boolean, | ||
circle: Boolean, | ||
loading: Boolean, | ||
disabled: Boolean, | ||
autofocus: Boolean, | ||
buttonClass: { | ||
type: String, | ||
default: "" | ||
} | ||
}), | ||
props: buttonProps, | ||
setup: function setup(props, context) { | ||
@@ -92,3 +93,3 @@ return $setup({ | ||
}); | ||
var version = "3.9.0"; | ||
var version = "3.10.0"; | ||
Button.install = function(Vue) { | ||
@@ -95,0 +96,0 @@ Vue.component(Button.name, Button); |
{ | ||
"name": "@opentiny/vue-button", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "", | ||
@@ -8,6 +8,7 @@ "main": "./lib/index.js", | ||
"sideEffects": false, | ||
"type": "module", | ||
"dependencies": { | ||
"@opentiny/vue-common": "~3.9.0", | ||
"@opentiny/vue-icon": "~3.9.0", | ||
"@opentiny/vue-renderless": "~3.9.0" | ||
"@opentiny/vue-common": "~3.10.0", | ||
"@opentiny/vue-icon": "~3.10.0", | ||
"@opentiny/vue-renderless": "~3.10.0" | ||
}, | ||
@@ -14,0 +15,0 @@ "license": "MIT", |
@@ -0,1 +1,48 @@ | ||
export declare const buttonProps: { | ||
type: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
tabindex: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
icon: { | ||
type: (ObjectConstructor | StringConstructor)[]; | ||
default: string; | ||
}; | ||
text: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
resetTime: { | ||
type: NumberConstructor; | ||
default: number; | ||
}; | ||
nativeType: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
size: { | ||
type: StringConstructor; | ||
default: string; | ||
validator(val: string): boolean; | ||
}; | ||
round: BooleanConstructor; | ||
plain: BooleanConstructor; | ||
circle: BooleanConstructor; | ||
loading: BooleanConstructor; | ||
disabled: BooleanConstructor; | ||
autofocus: BooleanConstructor; | ||
buttonClass: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}; | ||
declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
@@ -47,5 +94,5 @@ type: { | ||
tiny_chart_theme: ObjectConstructor; | ||
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, { | ||
[key: string]: any; | ||
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
type: { | ||
@@ -97,18 +144,18 @@ type: StringConstructor; | ||
}>>, { | ||
text: string; | ||
type: string; | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
circle: boolean; | ||
tabindex: string; | ||
icon: string | Record<string, any>; | ||
size: string; | ||
tabindex: string; | ||
disabled: boolean; | ||
autofocus: boolean; | ||
loading: boolean; | ||
circle: boolean; | ||
text: string; | ||
resetTime: number; | ||
nativeType: string; | ||
size: string; | ||
round: boolean; | ||
plain: boolean; | ||
loading: boolean; | ||
autofocus: boolean; | ||
buttonClass: string; | ||
}>; | ||
}, {}>; | ||
export default _default; |
@@ -1,4 +0,4 @@ | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
[x: string]: any; | ||
}>, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "click"[], "click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
@@ -9,3 +9,3 @@ }>>> & { | ||
[x: string]: any; | ||
}>; | ||
export default _sfc_main; | ||
}, {}>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
[x: string]: any; | ||
@@ -12,3 +12,3 @@ }>, { | ||
m: (...cssClasses: any[]) => string; | ||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "hook-updated")[], "click" | "hook-updated", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "hook-updated")[], "click" | "hook-updated", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
@@ -20,3 +20,3 @@ }>>> & { | ||
[x: string]: any; | ||
}>; | ||
export default _sfc_main; | ||
}, {}>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
[x: string]: any; | ||
@@ -12,3 +12,3 @@ }>, { | ||
m: (...cssClasses: any[]) => string; | ||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "hook-updated")[], "click" | "hook-updated", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "hook-updated")[], "click" | "hook-updated", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
@@ -20,3 +20,3 @@ }>>> & { | ||
[x: string]: any; | ||
}>; | ||
export default _sfc_main; | ||
}, {}>; | ||
export default _default; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30967
13
727
Yes
+ Added@opentiny/vue-common@3.10.0(transitive)
+ Added@opentiny/vue-icon@3.10.1(transitive)
+ Added@opentiny/vue-locale@3.10.0(transitive)
+ Added@opentiny/vue-renderless@3.10.7(transitive)
+ Added@opentiny/vue-theme@3.10.4(transitive)
+ Added@opentiny/vue-theme-mobile@3.10.1(transitive)
- Removed@opentiny/vue-common@3.9.0(transitive)
- Removed@opentiny/vue-icon@3.9.1(transitive)
- Removed@opentiny/vue-locale@3.9.0(transitive)
- Removed@opentiny/vue-renderless@3.9.3(transitive)
- Removed@opentiny/vue-theme@3.9.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.9.0(transitive)
Updated@opentiny/vue-common@~3.10.0
Updated@opentiny/vue-icon@~3.10.0