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/lib/meixioacomponent.common.js +220 -202
- package/lib/meixioacomponent.umd.js +220 -202
- package/lib/meixioacomponent.umd.min.js +14 -14
- package/package.json +1 -1
- package/packages/components/base/baseIcon/index.vue +2 -2
- package/packages/components/base/basePopoverButton/index.vue +25 -23
- package/packages/components/base/baseUpload/baseUploadItem.vue +2 -0
- package/packages/components/proPageTable/oa_pro_table.vue +29 -4
- package/src/App.vue +7 -2
- package/src/component/test.vue +1 -0
package/package.json
CHANGED
|
@@ -152,9 +152,9 @@ export default {
|
|
|
152
152
|
height: auto;
|
|
153
153
|
cursor: pointer;
|
|
154
154
|
&:hover {
|
|
155
|
-
background:
|
|
155
|
+
background: inherit !important;
|
|
156
156
|
i {
|
|
157
|
-
color:
|
|
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
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</
|
|
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>
|
|
@@ -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
|
-
|
|
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-
|
|
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
|
-
|
|
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>
|
package/src/component/test.vue
CHANGED