Commit b757f25e authored by miaohaoyun's avatar miaohaoyun

Merge branch 'mhy' into 'master'

Mhy

See merge request !28
parents 39acbc07 2f29fe7d
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<kt-button icon="fa fa-edit" :label="$t('action.edit')" :perms="permsEdit" :size="size" @click="handleEdit(scope.$index, scope.row)" style="float: left"/> <kt-button icon="fa fa-edit" :label="$t('action.edit')" :perms="permsEdit" :size="size" @click="handleEdit(scope.$index, scope.row)" style="float: left"/>
<el-switch <el-switch
class="statusSwitch" class="statusSwitch"
style="display: block" style="display: block;float: left;margin-left: 20px;width: 50px"
v-model="scope.row.status==0?true:false" v-model="scope.row.status==0?true:false"
active-color="#13ce66" active-color="#13ce66"
inactive-color="#ff4949" inactive-color="#ff4949"
...@@ -173,25 +173,29 @@ export default { ...@@ -173,25 +173,29 @@ export default {
} }
</script> </script>
<style scoped> <style>
.statusSwitch .el-switch__label { .statusSwitch .el-switch__label {
position: absolute; position: absolute;
display: none; display: none;
color: #fff; color: #fff;
} }
/*打开时文字位置设置*/
.statusSwitch .el-switch__label--right { .statusSwitch .el-switch__label--right {
z-index: 2; z-index: 2;
left: 92px; left: 0px;
bottom: 0px; bottom: 0px;
color: #000;
} }
/*关闭时文字位置设置*/
.statusSwitch .el-switch__label--left { .statusSwitch .el-switch__label--left {
z-index: 2; z-index: 2;
right: 22px; right: 0px;
bottom: 0px; bottom: 0px;
color: #fff; }
.statusSwitch .el-switch__label--right.is-active{
z-index: 1111;
color: #000 !important;
}
.statusSwitch .el-switch__label--left.is-active{
z-index: 1111;
color: #fff !important;
} }
/*显示文字*/ /*显示文字*/
.statusSwitch .el-switch__label.is-active { .statusSwitch .el-switch__label.is-active {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment