@opentiny/vue-button
Advanced tools
Comparing version 2.17.0 to 2.18.0
@@ -30,2 +30,3 @@ function _extends() { | ||
var buttonProps = _extends({}, $props, { | ||
/** 展示按钮不同的状态,设置为text则展示为文本按钮。可取值为:'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text' */ | ||
type: { | ||
@@ -35,2 +36,3 @@ type: String, | ||
}, | ||
/** 设置原生的tabindex属性 */ | ||
tabindex: { | ||
@@ -40,2 +42,3 @@ type: String, | ||
}, | ||
/** 按钮左侧展示的图标,接收为Icon组件 */ | ||
icon: { | ||
@@ -45,2 +48,3 @@ type: [Object, String], | ||
}, | ||
/** 按钮显示的文本 */ | ||
text: { | ||
@@ -50,2 +54,3 @@ type: String, | ||
}, | ||
/** 设置按钮禁用时间,防止重复提交,单位毫秒 */ | ||
resetTime: { | ||
@@ -55,2 +60,3 @@ type: Number, | ||
}, | ||
/** 对应按钮原生 type 属性 */ | ||
nativeType: { | ||
@@ -60,2 +66,3 @@ type: String, | ||
}, | ||
/** 当配置href后,点击按钮则更新 location.href 进行页面跳转 */ | ||
href: { | ||
@@ -65,2 +72,3 @@ type: String, | ||
}, | ||
/** 定义按钮尺寸 */ | ||
size: { | ||
@@ -73,8 +81,15 @@ type: String, | ||
}, | ||
/** 是否圆角按钮 */ | ||
round: Boolean, | ||
/** 是否朴素按钮 */ | ||
plain: Boolean, | ||
/** 是否圆形按钮 */ | ||
circle: Boolean, | ||
/** 是否加载中状态 */ | ||
loading: Boolean, | ||
/** 是否被禁用按钮 */ | ||
disabled: Boolean, | ||
/** 是否默认聚焦 */ | ||
autofocus: Boolean, | ||
/** 自定义类名, 仅 mobile-first 模板时有效 */ | ||
customClass: { | ||
@@ -84,2 +99,3 @@ type: String, | ||
}, | ||
/** 设置通栏按钮,宽度充满水平方向, 仅 mobile-first 模板时有效 */ | ||
banner: { | ||
@@ -89,3 +105,8 @@ type: Boolean, | ||
}, | ||
ghost: Boolean | ||
/** 是否幽灵按钮 */ | ||
ghost: Boolean, | ||
/** 点击事件 */ | ||
onClick: { | ||
type: Function | ||
} | ||
}); | ||
@@ -100,2 +121,3 @@ var Button = defineComponent({ | ||
props: buttonProps, | ||
slots: Object, | ||
setup: function setup(props, context) { | ||
@@ -109,3 +131,3 @@ return $setup({ | ||
}); | ||
var version = "2.17.0"; | ||
var version = "2.18.0"; | ||
Button.install = function(Vue) { | ||
@@ -112,0 +134,0 @@ Vue.component(Button.name, Button); |
@@ -107,3 +107,3 @@ import { renderless, api } from '@opentiny/vue-renderless/button/vue'; | ||
var __vue2_script = defineComponent({ | ||
emits: ["click", "hook-updated"], | ||
emits: ["click"], | ||
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "href", "customClass", "banner"]), | ||
@@ -110,0 +110,0 @@ components: { |
@@ -60,3 +60,3 @@ import { renderless, api } from '@opentiny/vue-renderless/button/vue'; | ||
var __vue2_script = defineComponent({ | ||
emits: ["hook-updated", "click"], | ||
emits: ["click"], | ||
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "customClass"]), | ||
@@ -63,0 +63,0 @@ components: {}, |
@@ -61,3 +61,3 @@ import { renderless, api } from '@opentiny/vue-renderless/button/vue'; | ||
var __vue2_script = defineComponent({ | ||
emits: ["click", "hook-updated"], | ||
emits: ["click"], | ||
props: [].concat(props, ["type", "text", "size", "icon", "resetTime", "nativeType", "loading", "disabled", "plain", "autofocus", "round", "circle", "tabindex", "customClass", "ghost"]), | ||
@@ -64,0 +64,0 @@ components: { |
{ | ||
"name": "@opentiny/vue-button", | ||
"version": "2.17.0", | ||
"version": "2.18.0", | ||
"description": "", | ||
@@ -10,7 +10,7 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-common": "~2.17.0", | ||
"@opentiny/vue-icon": "~2.17.0", | ||
"@opentiny/vue-renderless": "~3.17.0", | ||
"@opentiny/vue-theme-mobile": "~3.17.0", | ||
"@opentiny/vue-theme": "~3.17.0" | ||
"@opentiny/vue-common": "~2.18.0", | ||
"@opentiny/vue-icon": "~2.18.0", | ||
"@opentiny/vue-renderless": "~3.18.0", | ||
"@opentiny/vue-theme-mobile": "~3.18.0", | ||
"@opentiny/vue-theme": "~3.18.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "license": "MIT", |
export declare const buttonProps: { | ||
/** 展示按钮不同的状态,设置为text则展示为文本按钮。可取值为:'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text' */ | ||
type: { | ||
@@ -6,2 +7,3 @@ type: StringConstructor; | ||
}; | ||
/** 设置原生的tabindex属性 */ | ||
tabindex: { | ||
@@ -11,2 +13,3 @@ type: StringConstructor; | ||
}; | ||
/** 按钮左侧展示的图标,接收为Icon组件 */ | ||
icon: { | ||
@@ -16,2 +19,3 @@ type: (StringConstructor | ObjectConstructor)[]; | ||
}; | ||
/** 按钮显示的文本 */ | ||
text: { | ||
@@ -21,2 +25,3 @@ type: StringConstructor; | ||
}; | ||
/** 设置按钮禁用时间,防止重复提交,单位毫秒 */ | ||
resetTime: { | ||
@@ -26,2 +31,3 @@ type: NumberConstructor; | ||
}; | ||
/** 对应按钮原生 type 属性 */ | ||
nativeType: { | ||
@@ -31,2 +37,3 @@ type: StringConstructor; | ||
}; | ||
/** 当配置href后,点击按钮则更新 location.href 进行页面跳转 */ | ||
href: { | ||
@@ -36,2 +43,3 @@ type: StringConstructor; | ||
}; | ||
/** 定义按钮尺寸 */ | ||
size: { | ||
@@ -42,8 +50,15 @@ type: StringConstructor; | ||
}; | ||
/** 是否圆角按钮 */ | ||
round: BooleanConstructor; | ||
/** 是否朴素按钮 */ | ||
plain: BooleanConstructor; | ||
/** 是否圆形按钮 */ | ||
circle: BooleanConstructor; | ||
/** 是否加载中状态 */ | ||
loading: BooleanConstructor; | ||
/** 是否被禁用按钮 */ | ||
disabled: BooleanConstructor; | ||
/** 是否默认聚焦 */ | ||
autofocus: BooleanConstructor; | ||
/** 自定义类名, 仅 mobile-first 模板时有效 */ | ||
customClass: { | ||
@@ -53,2 +68,3 @@ type: StringConstructor; | ||
}; | ||
/** 设置通栏按钮,宽度充满水平方向, 仅 mobile-first 模板时有效 */ | ||
banner: { | ||
@@ -58,3 +74,8 @@ type: BooleanConstructor; | ||
}; | ||
/** 是否幽灵按钮 */ | ||
ghost: BooleanConstructor; | ||
/** 点击事件 */ | ||
onClick: { | ||
type: PropType<(ev: MouseEvent) => void>; | ||
}; | ||
tiny_mode: StringConstructor; | ||
@@ -64,3 +85,3 @@ tiny_mode_root: BooleanConstructor; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_theme: StringConstructor; /** 是否加载中状态 */ | ||
tiny_chart_theme: ObjectConstructor; | ||
@@ -67,0 +88,0 @@ }; |
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
27634
667
+ Added@opentiny/vue-common@2.18.0(transitive)
+ Added@opentiny/vue-icon@2.18.0(transitive)
+ Added@opentiny/vue-locale@2.18.0(transitive)
+ Added@opentiny/vue-renderless@3.18.2(transitive)
+ Added@opentiny/vue-theme@3.18.1(transitive)
+ Added@opentiny/vue-theme-mobile@3.18.0(transitive)
- Removed@opentiny/vue-common@2.17.0(transitive)
- Removed@opentiny/vue-icon@2.17.0(transitive)
- Removed@opentiny/vue-locale@2.17.0(transitive)
- Removed@opentiny/vue-renderless@3.17.6(transitive)
- Removed@opentiny/vue-theme@3.17.5(transitive)
- Removed@opentiny/vue-theme-mobile@3.17.0(transitive)
Updated@opentiny/vue-common@~2.18.0
Updated@opentiny/vue-icon@~2.18.0
Updated@opentiny/vue-theme@~3.18.0