module-menu-vue 0.0.44 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu-vue",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -40,7 +40,7 @@
40
40
  color: #4091f7;
41
41
  }
42
42
  .childMenu {
43
- width: 27%;
43
+ width: 30%;
44
44
  display: inline-block;
45
45
  font-size: 13px;
46
46
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <el-button @click="handleClick()" style="padding: 10px 30px;">服务门户</el-button>
2
+ <el-button @click="handleClick()" :style="{color: color, padding: '10px 30px', marginRight: '30px'}">服务门户</el-button>
3
3
  </template>
4
4
  <script>
5
5
  export default {
@@ -8,6 +8,12 @@ export default {
8
8
  return {
9
9
  }
10
10
  },
11
+ props: {
12
+ color: {
13
+ type: String,
14
+ default: '#606266'
15
+ }
16
+ },
11
17
  methods: {
12
18
  // 跳转至共享交换portal首页
13
19
  handleClick () {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <el-dropdown @command="handleCommand">
2
+ <el-dropdown @command="handleCommand" :style="{color: color, marginRight: '30px'}">
3
3
  <span class="el-dropdown-link">
4
4
  {{tenantName}}<i class="el-icon-arrow-down el-icon--right"></i>
5
5
  </span>
@@ -18,6 +18,12 @@ export default {
18
18
  tenantName: ''
19
19
  }
20
20
  },
21
+ props: {
22
+ color: {
23
+ type: String,
24
+ default: '#606266'
25
+ }
26
+ },
21
27
  created () {
22
28
  // 每次都获取最新的租户列表
23
29
  getTenantList().then((res) => {