imeik-bizui 1.2.6 → 1.2.7
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/dist/bizui/src/FieldCardHeader/index.vue +24 -1
- package/dist/bizui/src/FieldMaterialSelect/index.vue +5 -19
- package/dist/imeik-bizui.common.js +126 -110
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +126 -110
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +4 -4
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="title">
|
|
2
|
+
<div :class="{ 'card-title-view': attrs.isView }">
|
|
3
3
|
<!-- <slot name="label">{{ item.label }}</slot> -->
|
|
4
4
|
<div class="text-left pb-2 mb-1 flex">
|
|
5
5
|
<div class="flex">
|
|
@@ -19,6 +19,19 @@ export default {
|
|
|
19
19
|
default() {
|
|
20
20
|
return {}
|
|
21
21
|
}
|
|
22
|
+
},
|
|
23
|
+
attrs: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default: () => {}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
mounted() {
|
|
29
|
+
if (this.attrs.isView) {
|
|
30
|
+
const firstElement = document.querySelectorAll('.card-title-view')
|
|
31
|
+
if (firstElement && firstElement[0]) {
|
|
32
|
+
firstElement[0].style.borderTop = '0'
|
|
33
|
+
firstElement[0].style.paddingTop = '2px'
|
|
34
|
+
}
|
|
22
35
|
}
|
|
23
36
|
}
|
|
24
37
|
}
|
|
@@ -38,4 +51,14 @@ export default {
|
|
|
38
51
|
margin-right: 12px;
|
|
39
52
|
margin-top: 3px;
|
|
40
53
|
}
|
|
54
|
+
.card-title-view {
|
|
55
|
+
border-bottom: 1px solid #eeeeee;
|
|
56
|
+
margin-bottom: 14px;
|
|
57
|
+
border-top: 14px solid #f0f2f5;
|
|
58
|
+
padding-top: 18px;
|
|
59
|
+
padding-bottom: 6px;
|
|
60
|
+
margin-left: -16px;
|
|
61
|
+
padding-left: 16px;
|
|
62
|
+
width: calc(100% + 24px);
|
|
63
|
+
}
|
|
41
64
|
</style>
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page-view">
|
|
3
|
-
<div class="text-left
|
|
4
|
-
<
|
|
5
|
-
<div class="title-line"></div>
|
|
6
|
-
<p class="title">产品信息</p>
|
|
7
|
-
</div>
|
|
3
|
+
<div :class="{ 'text-left': !isView}" style="margin-bottom: 12px; margin-top: 10px">
|
|
4
|
+
<FieldCardHeader :item="{ label: '产品信息'}" :attrs="{ isView }"></FieldCardHeader>
|
|
8
5
|
<el-button v-if="showAddButton" type="primary" class="add-button" @click="showProductListSelect">
|
|
9
6
|
<i class="el-icon-plus"></i>
|
|
10
7
|
添加
|
|
@@ -223,20 +220,6 @@ export default {
|
|
|
223
220
|
}
|
|
224
221
|
</script>
|
|
225
222
|
<style lang="scss" scoped>
|
|
226
|
-
.title {
|
|
227
|
-
font-size: 15px;
|
|
228
|
-
font-weight: 600;
|
|
229
|
-
color: #303133;
|
|
230
|
-
line-height: 21px;
|
|
231
|
-
}
|
|
232
|
-
.title-line {
|
|
233
|
-
width: 4px;
|
|
234
|
-
height: 15px;
|
|
235
|
-
background: #3285f6;
|
|
236
|
-
border-radius: 1px;
|
|
237
|
-
margin-right: 12px;
|
|
238
|
-
margin-top: 3px;
|
|
239
|
-
}
|
|
240
223
|
.add-button {
|
|
241
224
|
width: 60px !important;
|
|
242
225
|
height: 26px !important;
|
|
@@ -247,4 +230,7 @@ export default {
|
|
|
247
230
|
.page-view {
|
|
248
231
|
margin-bottom: 16px;
|
|
249
232
|
}
|
|
233
|
+
.text-left {
|
|
234
|
+
display: flex;
|
|
235
|
+
}
|
|
250
236
|
</style>
|