Comparing version 0.4.2 to 0.4.3
@@ -101,3 +101,2 @@ <style lang="sass"> | ||
| disabled | 是否禁用状态 | boolean | — | false | | ||
| icon | 图标类名 | string | — | — | | ||
| native-type | 原生 type 属性 | string | button / submit / reset | button | | ||
| native-type | 原生 type 属性 | string | button / submit / reset | button | |
# CHANGELOG | ||
## 0.4.2 (current) | ||
## 0.4.3 (current) | ||
- 优化 [Switch] 组件 `change` 事件 [@绿间] [#20] | ||
- 优化 [Alert] 组件样式 [@绿间] [#20] | ||
- 优化单元测试 | ||
> 2019/03/04 | ||
## 0.4.2 | ||
- 优化 [Info]、[Alert] 组件样式 [@绿间] [#19] | ||
@@ -64,3 +71,4 @@ | ||
[#17]: http://git.huanleguang.com/hyaf_zs/ui/merge_requests/17 | ||
[#17]: http://git.huanleguang.com/hyaf_zs/ui/merge_requests/19 | ||
[#19]: http://git.huanleguang.com/hyaf_zs/ui/merge_requests/19 | ||
[#20]: http://git.huanleguang.com/hyaf_zs/ui/merge_requests/20 | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
value1: true, | ||
value2: true, | ||
}; | ||
export default { | ||
data() { | ||
return { | ||
value1: true, | ||
value2: true, | ||
}; | ||
}, | ||
methods: { | ||
handleChange(val) { | ||
console.log(val); | ||
} | ||
}; | ||
}, | ||
}; | ||
</script> | ||
@@ -51,3 +56,3 @@ | ||
```html | ||
<hlg-switch v-model="value2" active-color="#409EFF" inactive-color="#ff4949"></hlg-switch> | ||
<hlg-switch v-model="value2" @change="handleChange" active-color="#409EFF" inactive-color="#ff4949"></hlg-switch> | ||
@@ -60,3 +65,8 @@ <script> | ||
}; | ||
} | ||
}, | ||
methods: { | ||
handleChange(val) { | ||
console.log(val); | ||
} | ||
}, | ||
}; | ||
@@ -89,1 +99,6 @@ </script> | ||
| inactive-color | 自定义关闭状态背景色 | string | - | - | | ||
### Events | ||
| 事件名称 | 说明 | 回调参数 | | ||
|---------|---------|---------| | ||
| change | 当绑定值变化时触发的事件 | 更新后的值 | |
{ | ||
"name": "hlg-ui", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "欢乐逛 UI 库", | ||
@@ -22,3 +22,4 @@ "main": "lib/hlg-ui.js", | ||
"json", | ||
"vue" | ||
"vue", | ||
"src" | ||
], | ||
@@ -25,0 +26,0 @@ "globals": { |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgAlert.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgAlert.name, HlgAlert); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgButtonGroup.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgButtonGroup.name, HlgButtonGroup); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgButton.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgButton.name, HlgButton); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgCheckboxGroup.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgCheckboxGroup.name, HlgCheckboxGroup); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgCheckbox.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgCheckbox.name, HlgCheckbox); |
@@ -7,5 +7,5 @@ /* | ||
import HlgCollapseItem from './collapse-item'; | ||
/* istanbul ignore next */ | ||
HlgCollapseItem.install = function(Vue) { | ||
@@ -12,0 +12,0 @@ Vue.component(HlgCollapseItem.name, HlgCollapseItem); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgCollapse.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgCollapse.name, HlgCollapse); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgDropdownGroup.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgDropdownGroup.name, HlgDropdownGroup); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgDropdownMenu.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgDropdownMenu.name, HlgDropdownMenu); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgInfo.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgInfo.name, HlgInfo); |
import HlgOptionGroup from '../select/option-group'; | ||
/* istanbul ignore next */ | ||
HlgOptionGroup.install = function(Vue) { | ||
@@ -4,0 +5,0 @@ Vue.component(HlgOptionGroup.name, HlgOptionGroup); |
import HlgOption from '../select/option'; | ||
/* istanbul ignore next */ | ||
HlgOption.install = function(Vue) { | ||
@@ -4,0 +5,0 @@ Vue.component(HlgOption.name, HlgOption); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgRadioGroup.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgRadioGroup.name, HlgRadioGroup); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgRadio.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgRadio.name, HlgRadio); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
Select.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(Select.name, Select); |
@@ -8,2 +8,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgSwitch.install = function(Vue) { | ||
@@ -10,0 +11,0 @@ Vue.component(HlgSwitch.name, HlgSwitch); |
@@ -9,2 +9,3 @@ /* | ||
/* istanbul ignore next */ | ||
HlgTooltip.install = function(Vue) { | ||
@@ -11,0 +12,0 @@ Vue.component(HlgTooltip.name, HlgTooltip); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
516692
1186
4