n20-common-lib 1.3.15 → 1.3.16

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": "n20-common-lib",
3
- "version": "1.3.15",
3
+ "version": "1.3.16",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -39,7 +39,7 @@
39
39
  </template>
40
40
 
41
41
  <script>
42
- import expandableWrap from '../Expandable/index.vue'
42
+ import expandableWrap from '../Expandable/main.vue'
43
43
  import approvalCard from '../ApprovalCard/index.vue'
44
44
  import approvalImg from './approvalImg.vue'
45
45
  export default {
@@ -3,6 +3,7 @@
3
3
  <div class="n20-title flex-box flex-lr flex-v">
4
4
  <span class="n20-tips" @click="getExpand">
5
5
  <i
6
+ v-if="icon"
6
7
  class="el-icon-caret-right color-0 m-r-b"
7
8
  :class="{ expand: expand }"
8
9
  ></i>
@@ -14,7 +15,7 @@
14
15
  <slot name="tips"></slot>
15
16
  </div>
16
17
  </div>
17
- <el-collapse-transition>
18
+ <el-collapse-transition v-if="showExpand">
18
19
  <div v-show="expand">
19
20
  <slot></slot>
20
21
  </div>
@@ -33,6 +34,14 @@ export default {
33
34
  title: {
34
35
  type: String,
35
36
  default: ''
37
+ },
38
+ icon: {
39
+ type: Boolean,
40
+ default: true
41
+ },
42
+ showExpand: {
43
+ type: Boolean,
44
+ default: true
36
45
  }
37
46
  },
38
47
  data() {
@@ -155,6 +155,7 @@
155
155
  <el-form-item
156
156
  v-for="(item, i) in moreList"
157
157
  :key="i"
158
+ class="m-b"
158
159
  :label="item.label"
159
160
  >
160
161
  <slot v-if="item.slotName" :name="item.slotName"></slot>
@@ -30,7 +30,7 @@
30
30
  slot="reference"
31
31
  icon="n20-icon-shezhi"
32
32
  :underline="false"
33
- style="font-size: 18px"
33
+ style="font-size: 16px"
34
34
  />
35
35
  <div>
36
36
  <span>每页显示</span>