meixioacomponent 0.3.49 → 0.3.53

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": "meixioacomponent",
3
- "version": "0.3.49",
3
+ "version": "0.3.53",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -152,9 +152,9 @@ export default {
152
152
  height: auto;
153
153
  cursor: pointer;
154
154
  &:hover {
155
- background: transparent !important;
155
+ background: inherit !important;
156
156
  i {
157
- color: var(--icon-color-d) !important;
157
+ color: inherit !important;
158
158
  }
159
159
  }
160
160
  }
@@ -12,29 +12,30 @@
12
12
  <slot name="popoverContent"></slot>
13
13
  </div>
14
14
  </template>
15
- <el-button
16
- v-if="!template"
17
- slot="reference"
18
- :size="buttonSize"
19
- :disabled="disabled"
20
- class="popover-button"
21
- :type="module ? 'selected' : 'info'"
22
- @click.stop="iconClick"
23
- :class="{ 'is-single': !buttonText && buttonIcon }"
24
- >
25
- <base-icon
26
- :size="`s`"
27
- :plain="true"
28
- v-if="buttonIcon"
29
- :event="!disabled"
30
- :name="buttonIcon"
31
- class="button-icon"
32
- :iconClass="iconClass"
33
- @iconClick="iconClick"
34
- :color="module ? 'text-white' : 'd'"
35
- ></base-icon>
36
- <span class="inner-span" v-if="buttonText">{{ buttonText }}</span>
37
- </el-button>
15
+ <template v-if="!template" slot="reference">
16
+ <el-button
17
+ :size="buttonSize"
18
+ :disabled="disabled"
19
+ class="popover-button"
20
+ :type="module ? 'selected' : 'info'"
21
+ @click.stop="buttonClick"
22
+ :class="{ 'is-single': !buttonText && buttonIcon }"
23
+ >
24
+ <base-icon
25
+ :size="`s`"
26
+ :plain="true"
27
+ v-if="buttonIcon"
28
+ :event="!disabled"
29
+ :name="buttonIcon"
30
+ class="button-icon"
31
+ :iconClass="iconClass"
32
+ @iconClick="iconClick"
33
+ :color="module ? 'text-white' : 'd'"
34
+ ></base-icon>
35
+ <span class="inner-span" v-if="buttonText">{{ buttonText }}</span>
36
+ </el-button>
37
+ </template>
38
+
38
39
  <template slot="reference" v-else>
39
40
  <slot name="popoverReference"></slot>
40
41
  </template>
@@ -117,6 +118,7 @@ export default {
117
118
  iconClick() {
118
119
  this.$refs.popover.doShow()
119
120
  },
121
+ buttonClick() {},
120
122
  },
121
123
  }
122
124
  </script>
@@ -50,7 +50,9 @@
50
50
  :size="`l`"
51
51
  :color="`d`"
52
52
  :event="true"
53
+ :plain="true"
53
54
  v-if="!disabled"
55
+ style="width: 32px; height: 32px;"
54
56
  :name="`meixicomponenticon-close`"
55
57
  @iconClick="handleDeleteUploadItem"
56
58
  ></base-icon>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="oa-pro-table-wrap" :style="{ height: height }">
2
+ <div class="oa-pro-table-wrap" :style="{ height: height }" v-if="isAuth">
3
3
  <!-- 表格的头部 -->
4
4
  <div
5
5
  class="oa-pro-header-wrap"
@@ -20,7 +20,6 @@
20
20
  </oaProHeader>
21
21
  </div>
22
22
  <!-- 表格搜索 -->
23
-
24
23
  <div class="oa-pro-table-search">
25
24
  <oa_pro_table_searchVue
26
25
  v-model="module"
@@ -199,6 +198,15 @@
199
198
  ></baseButtonHandle>
200
199
  </base-dialog>
201
200
  </div>
201
+
202
+ <div class="oa-pro-table-wrap no-auth" v-else>
203
+ <baseDefaultSvgVue
204
+ :width="440"
205
+ :height="440"
206
+ :svgName="`404`"
207
+ :text="`无权限查看该表格`"
208
+ ></baseDefaultSvgVue>
209
+ </div>
202
210
  </template>
203
211
 
204
212
  <script>
@@ -415,6 +423,12 @@ export default {
415
423
  type: Boolean,
416
424
  default: true,
417
425
  },
426
+
427
+ // 是否有查看表格的权限
428
+ isAuth: {
429
+ default: true,
430
+ type: Boolean,
431
+ },
418
432
  },
419
433
  components: {
420
434
  oaProHeader,
@@ -964,14 +978,25 @@ export default {
964
978
 
965
979
  /deep/ .el-table__fixed {
966
980
  &::before {
967
- background-color: transparent !important;
981
+ border-color: var(--color-table-border) !important;
968
982
  }
969
983
  }
970
984
 
971
985
  /deep/ .el-table__cell {
972
986
  .gutter {
973
- border-color: transparent !important;
987
+ border-right: 1px solid var(--color-table-border) !important;
988
+ border-bottom: 1px solid var(--color-table-border) !important;
989
+ &:last-of-type {
990
+ border-right: var(--color-table-border) !important;
991
+ border-bottom: 1px solid var(--color-table-border) !important;
992
+ }
974
993
  }
975
994
  }
976
995
  }
996
+ .no-auth {
997
+ display: flex;
998
+ align-items: center;
999
+ flex-flow: column nowrap;
1000
+ justify-content: center;
1001
+ }
977
1002
  </style>
package/src/App.vue CHANGED
@@ -1,8 +1,13 @@
1
1
  <template>
2
2
  <div id="app">
3
3
  <div style="height: 100vh;">
4
- <!-- <test></test> -->
5
- <base-upload v-model="test"></base-upload>
4
+ <test></test>
5
+ <!-- <base-upload v-model="test"></base-upload>
6
+
7
+ <base-popover-button
8
+ :buttonIcon="`meixicomponenticon-diqu`"
9
+ v-model="flag"
10
+ ></base-popover-button> -->
6
11
  </div>
7
12
  </div>
8
13
  </template>
@@ -315,6 +315,7 @@ export default {
315
315
  <div class="page-table-wrap" ref="pageTableWrap" v-if="show">
316
316
  <base-pro-table
317
317
  :align="`left`"
318
+ :isAuth="false"
318
319
  v-model="keyWords"
319
320
  :height="pageHeight"
320
321
  :isAverageWidth="false"