shijiplus-web-plugin 0.1.18 → 0.1.20

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": "shijiplus-web-plugin",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "files": [
5
5
  "src"
6
6
  ],
@@ -12,6 +12,16 @@ export default {
12
12
  }
13
13
  if (vnode.context.$store.state.user.access.indexOf(binding.value) === -1) {
14
14
  el.parentNode.removeChild(el)
15
+ if (vnode.componentInstance && vnode.componentInstance.$options.name == 'TabPane') {
16
+ console.log('------------', vnode.componentInstance)
17
+ for (let i = 0; i < vnode.componentInstance.TabsInstance.$children.length; i++) {
18
+ if (vnode.componentInstance.TabsInstance.$children[i].currentName == vnode.componentInstance.currentName) {
19
+ vnode.componentInstance.TabsInstance.$children.splice(i, 1)
20
+ break
21
+ }
22
+ }
23
+ vnode.componentInstance.updateNav()
24
+ }
15
25
  }
16
26
  }
17
27
  }
package/src/index.less CHANGED
@@ -501,4 +501,31 @@
501
501
 
502
502
  .fill-parents {
503
503
  height: 100%;
504
+ }
505
+
506
+ .plus-old-modal {
507
+ .ivu-modal-body {
508
+ max-height: calc(~'100vh - 80px');
509
+ overflow-y: auto;
510
+ }
511
+ }
512
+
513
+ .plus-card {
514
+ box-sizing : border-box;
515
+ background : #fff;
516
+ box-shadow : 0 1px 8px 0 rgba(0, 0, 0, .1);
517
+ border-radius: @border-radius-base;
518
+
519
+ &:hover {
520
+ box-shadow: 0 1px 8px 0 rgba(0, 0, 0, .1),
521
+ 0 2px 16px 0 rgba(0, 0, 0, .04)
522
+ }
523
+ }
524
+
525
+ .desc-line {
526
+ width : 100%;
527
+ height : 40px;
528
+ background-image: url('~@/assets/union-pay/line-bg.png');
529
+ background-size : cover;
530
+ padding : 0 12px;
504
531
  }
package/src/libs/util.js CHANGED
@@ -54,6 +54,26 @@ export const getParams = url => {
54
54
  }
55
55
 
56
56
 
57
+ export const getLocalCityList = () => {
58
+ return [
59
+ { id: 1, name: '北京市' },
60
+ { id: 2, name: '昆明市' },
61
+ { id: 3, name: '合肥市' },
62
+ { id: 4, name: '贵阳市' }
63
+ ]
64
+ }
65
+
66
+
67
+ export const getCityNameById = (id) => {
68
+ let cityList = getLocalCityList()
69
+ for (let i = 0; i < cityList.length; ++i) {
70
+ if (cityList[i].id === id) {
71
+ return cityList[i].name
72
+ }
73
+ }
74
+ return id
75
+ }
76
+
57
77
  /**
58
78
  * 按属性名称和value搜索列表内容
59
79
  * @param arr