Skip to content

Commit f535d71

Browse files
committed
no message
Former-commit-id: 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 7293d05bbbce121ca11e06de91ac2f1b775c14d9 [formerly 78de87c [formerly af05d745c14160b7c5d74645c04b52653af3d6a6]]]]] Former-commit-id: 8d552fc Former-commit-id: 86c5771 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
1 parent f0aa8a6 commit f535d71

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed

src/menu/modules/demo-playground.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default {
6161
icon: 'bolt',
6262
children: [
6363
{ path: `${pre}store/menu`, title: '菜单控制', icon: 'bars' },
64+
{ path: `${pre}store/size`, title: '全局尺寸', icon: 'font' },
6465
{ path: `${pre}store/ua`, title: '浏览器信息', icon: 'info-circle' },
6566
{ path: `${pre}store/gray`, title: '灰度模式', icon: 'eye' },
6667
{ path: `${pre}store/fullscreen`, title: '全屏', icon: 'arrows-alt' },
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<template>
2+
<d2-container type="card">
3+
<el-radio-group v-model="currentValue" @change="sizeSet">
4+
<el-radio-button label="default"></el-radio-button>
5+
<el-radio-button label="medium"></el-radio-button>
6+
<el-radio-button label="small"></el-radio-button>
7+
<el-radio-button label="mini"></el-radio-button>
8+
</el-radio-group>
9+
</d2-container>
10+
</template>
11+
12+
<script>
13+
import { mapState, mapMutations } from 'vuex'
14+
export default {
15+
data () {
16+
return {
17+
currentValue: ''
18+
}
19+
},
20+
computed: {
21+
...mapState('d2admin/size', [
22+
'value'
23+
])
24+
},
25+
watch: {
26+
value: {
27+
handler (val) {
28+
this.currentValue = val
29+
},
30+
immediate: true
31+
}
32+
},
33+
methods: {
34+
...mapMutations({
35+
sizeSet: 'd2admin/size/set'
36+
})
37+
}
38+
}
39+
</script>

src/plugin/d2admin/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export default {
2525
defaultValue: '',
2626
user: true
2727
})
28-
console.log('size: ', size)
2928
// Element
3029
Vue.use(ElementUI, {
3130
size

src/router/routes.js.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
496110b25d96991d627a36afd39eefaab552561b
1+
c62802e4146a602e5c498cdb99205b56768d4047

0 commit comments

Comments
 (0)