Comparing version 0.6.1 to 0.6.3
# CHANGELOG | ||
## 0.6.1 | ||
## 0.6.3 | ||
- 优化 [Select] 调用时报错问题、优化目录顺序排列 | ||
- 优化 [Select] 调用时报错问题、优化目录顺序排列 [@绿间] [#34]、[#35] | ||
> 2019/03/18 | ||
@@ -141,2 +141,4 @@ | ||
[#33]: http://git.huanleguang.com/hyaf_zs/ui/merge_requests/33 | ||
[#34]: http://git.huanleguang.com/hyaf_zs/ui/merge_requests/34 | ||
[#35]: http://git.huanleguang.com/hyaf_zs/ui/merge_requests/35 | ||
@@ -22,2 +22,10 @@ # Dialog 对话框 | ||
<span>这是一段信息</span> | ||
<hlg-select v-model="value" placeholder="请选择"> | ||
<hlg-option | ||
v-for="item in options" | ||
:key="item.value" | ||
:label="item.label" | ||
:value="item.value" | ||
></hlg-option> | ||
</hlg-select> | ||
<span slot="footer"> | ||
@@ -33,3 +41,23 @@ <hlg-button @click="dialogVisible = false">取 消</hlg-button> | ||
return { | ||
dialogVisible: false | ||
dialogVisible: false, | ||
options: [{ | ||
value: '1', | ||
label: '国庆大促' | ||
}, { | ||
value: '2', | ||
label: '夏季促销' | ||
}, { | ||
value: '3', | ||
label: '春季促销' | ||
}, { | ||
value: '4', | ||
label: '中秋大促' | ||
}, { | ||
value: '5', | ||
label: '女神新衣' | ||
}, { | ||
value: '6', | ||
label: '国庆大放价' | ||
}], | ||
value: '', | ||
}; | ||
@@ -36,0 +64,0 @@ }, |
@@ -25,30 +25,18 @@ # Select 选择器 | ||
value: '1', | ||
label: '黄金糕' | ||
label: '国庆大促' | ||
}, { | ||
value: '2', | ||
label: '双皮奶' | ||
label: '夏季促销' | ||
}, { | ||
value: '3', | ||
label: '蚵仔煎' | ||
label: '春季促销' | ||
}, { | ||
value: '4', | ||
label: '龙须面' | ||
label: '中秋大促' | ||
}, { | ||
value: '5', | ||
label: '北京烤鸭' | ||
label: '女神新衣' | ||
}, { | ||
value: '6', | ||
label: '肉夹馍' | ||
}, { | ||
value: '7', | ||
label: '杂粮煎饼' | ||
}, { | ||
value: '8', | ||
label: '肉包' | ||
}, { | ||
value: '9', | ||
label: '小笼包' | ||
}, { | ||
value: '10', | ||
label: '红糖馒头' | ||
label: '国庆大放价' | ||
}], | ||
@@ -64,2 +52,9 @@ value: '', | ||
### 有禁用选项 | ||
@@ -84,17 +79,19 @@ | ||
options2: [{ | ||
value: '选项1', | ||
label: '黄金糕' | ||
value: '1', | ||
label: '国庆大促' | ||
}, { | ||
value: '选项2', | ||
label: '双皮奶', | ||
disabled: true | ||
value: '2', | ||
label: '夏季促销' | ||
}, { | ||
value: '选项3', | ||
label: '蚵仔煎' | ||
value: '3', | ||
label: '春季促销' | ||
}, { | ||
value: '选项4', | ||
label: '龙须面' | ||
value: '4', | ||
label: '中秋大促' | ||
}, { | ||
value: '选项5', | ||
label: '北京烤鸭' | ||
value: '5', | ||
label: '女神新衣' | ||
}, { | ||
value: '6', | ||
label: '国庆大放价' | ||
}], | ||
@@ -131,15 +128,18 @@ value2: '', | ||
value: '1', | ||
label: '黄金糕' | ||
label: '国庆大促' | ||
}, { | ||
value: '2', | ||
label: '双皮奶' | ||
label: '夏季促销' | ||
}, { | ||
value: '3', | ||
label: '蚵仔煎' | ||
label: '春季促销' | ||
}, { | ||
value: '4', | ||
label: '龙须面' | ||
label: '中秋大促' | ||
}, { | ||
value: '5', | ||
label: '北京烤鸭' | ||
label: '女神新衣' | ||
}, { | ||
value: '6', | ||
label: '国庆大放价' | ||
}], | ||
@@ -175,16 +175,19 @@ value3: '' | ||
options: [{ | ||
value: '选项1', | ||
label: '黄金糕' | ||
value: '1', | ||
label: '国庆大促' | ||
}, { | ||
value: '选项2', | ||
label: '双皮奶' | ||
value: '2', | ||
label: '夏季促销' | ||
}, { | ||
value: '选项3', | ||
label: '蚵仔煎' | ||
value: '3', | ||
label: '春季促销' | ||
}, { | ||
value: '选项4', | ||
label: '龙须面' | ||
value: '4', | ||
label: '中秋大促' | ||
}, { | ||
value: '选项5', | ||
label: '北京烤鸭' | ||
value: '5', | ||
label: '女神新衣' | ||
}, { | ||
value: '6', | ||
label: '国庆大放价' | ||
}], | ||
@@ -327,16 +330,19 @@ value5: [], | ||
options: [{ | ||
value: '选项1', | ||
label: '黄金糕' | ||
value: '1', | ||
label: '国庆大促' | ||
}, { | ||
value: '选项2', | ||
label: '双皮奶' | ||
value: '2', | ||
label: '夏季促销' | ||
}, { | ||
value: '选项3', | ||
label: '蚵仔煎' | ||
value: '3', | ||
label: '春季促销' | ||
}, { | ||
value: '选项4', | ||
label: '龙须面' | ||
value: '4', | ||
label: '中秋大促' | ||
}, { | ||
value: '选项5', | ||
label: '北京烤鸭' | ||
value: '5', | ||
label: '女神新衣' | ||
}, { | ||
value: '6', | ||
label: '国庆大放价' | ||
}], | ||
@@ -343,0 +349,0 @@ value8: '' |
{ | ||
"name": "hlg-ui", | ||
"version": "0.6.1", | ||
"version": "0.6.3", | ||
"description": "欢乐逛 UI 库", | ||
@@ -5,0 +5,0 @@ "main": "lib/hlg-ui.js", |
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
1242063