no message
Former-commit-id: 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 78de87c4262aff3a4c314eba6308e80bc4b94568 [formerly af05d745c14160b7c5d74645c04b52653af3d6a6]]]]] Former-commit-id: 8d552fccc75f9e545862d3a0de474c1460b2b35b Former-commit-id: 86c5771f8d752674e7a84468e0e0f79f8e311602 Former-commit-id: e876ce46ba02cb64874edd55fd4c2bbed529c30a [formerly b6f22036fb293f78cd12866d09d951f44bf0fae0] Former-commit-id: aa944f9181fa0bbfd45041c63d52ce4cee4b6fcc Former-commit-id: c9e2b70e8b207c6fce4764921ebea4922dec2988 Former-commit-id: a27f7a6b68419d2767d2c5bdcbdd82951831f87e Former-commit-id: 78af6b9ccd824244e328beaae291056c77af0cab Former-commit-id: 126348234a6e5fe0915a7c12be737e861b0ffbab
This commit is contained in:
39
src/pages/demo/playground/store/size/index.vue
Normal file
39
src/pages/demo/playground/store/size/index.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<d2-container type="card">
|
||||
<el-radio-group v-model="currentValue" @change="sizeSet">
|
||||
<el-radio-button label="default"></el-radio-button>
|
||||
<el-radio-button label="medium"></el-radio-button>
|
||||
<el-radio-button label="small"></el-radio-button>
|
||||
<el-radio-button label="mini"></el-radio-button>
|
||||
</el-radio-group>
|
||||
</d2-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState, mapMutations } from 'vuex'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
currentValue: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState('d2admin/size', [
|
||||
'value'
|
||||
])
|
||||
},
|
||||
watch: {
|
||||
value: {
|
||||
handler (val) {
|
||||
this.currentValue = val
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({
|
||||
sizeSet: 'd2admin/size/set'
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user