Skip to content

Commit d7949bf

Browse files
committed
Merge remote-tracking branch 'origin/develop'
Former-commit-id: 48b651770cf336092d63fa1bd0953949ae5c23d8 [formerly 48b651770cf336092d63fa1bd0953949ae5c23d8 [formerly 48b651770cf336092d63fa1bd0953949ae5c23d8 [formerly 48b651770cf336092d63fa1bd0953949ae5c23d8 [formerly 933ec55 [formerly 72e651cc8ce92aa7e50fafe5f12d509e5e15b78c]]]]] Former-commit-id: e85058c Former-commit-id: 8eeed91 Former-commit-id: a34dbd28211fe87c83efd9ecdc07ffe51c335037 [formerly 5ca5d85a142c755454c7dc2084b8115de47a2bcf] Former-commit-id: 4dc8e397f374914f2eb4d9eee6c6599224df946e Former-commit-id: 9d56e2a187d18d0baa485d867cffe85bd0f668ae Former-commit-id: 50a7bad07be4e397b4f91b74d5aa9f2e04ef1602 Former-commit-id: c1ab4eb8cd1dd51a9adb9f7848279d5158185a7b Former-commit-id: 36c56b92d2acdccd437c5489ee584e58f0122153
2 parents a83e5d6 + 1f5dd5b commit d7949bf

File tree

6 files changed

+42
-176
lines changed

6 files changed

+42
-176
lines changed

package-lock.json.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/menu/modules/demo-playground.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export default {
6060
title: '全局状态管理',
6161
icon: 'bolt',
6262
children: [
63-
{ path: `${pre}store/sys`, title: '系统状态', icon: 'microchip' },
6463
{ path: `${pre}store/menu`, title: '菜单控制', icon: 'bars' },
64+
{ path: `${pre}store/size`, title: '全局尺寸', icon: 'font' },
6565
{ path: `${pre}store/ua`, title: '浏览器信息', icon: 'info-circle' },
6666
{ path: `${pre}store/gray`, title: '灰度模式', icon: 'eye' },
6767
{ 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/pages/demo/playground/store/sys/index.vue

Lines changed: 0 additions & 172 deletions
This file was deleted.

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-
58069f63d26f33421df3d333c4aa58af52c87aaa
1+
c62802e4146a602e5c498cdb99205b56768d4047

0 commit comments

Comments
 (0)