@aochuang/common 1.0.154 → 1.0.155

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.
@@ -1,27 +1,29 @@
1
1
  <template>
2
2
  <div class="bi-resizable" :class="['is-' + direction]">
3
3
  <template v-if="direction === 'horizontal'">
4
- <div
5
- class="bi-resizable__panel"
6
- :style="panelStyle"
7
- >
8
- <slot name="panel"></slot>
9
- </div>
10
- <div
11
- class="bi-resizable__resizer"
12
- :class="{ 'is-dragging': isDragging }"
13
- @mousedown="startDrag"
14
- @touchstart="startDrag"
15
- >
16
- <i
17
- class="bi-resizable__resizer-icon"
18
- @mousedown.stop="startDrag"
19
- @touchstart.stop="startDrag"
20
- title="拖拽调整宽度"
4
+ <template v-if="!hidePanel">
5
+ <div
6
+ class="bi-resizable__panel"
7
+ :style="panelStyle"
21
8
  >
22
- <i></i><i></i><i></i><i></i>
23
- </i>
24
- </div>
9
+ <slot name="panel"></slot>
10
+ </div>
11
+ <div
12
+ class="bi-resizable__resizer"
13
+ :class="{ 'is-dragging': isDragging }"
14
+ @mousedown="startDrag"
15
+ @touchstart="startDrag"
16
+ >
17
+ <i
18
+ class="bi-resizable__resizer-icon"
19
+ @mousedown.stop="startDrag"
20
+ @touchstart.stop="startDrag"
21
+ title="拖拽调整宽度"
22
+ >
23
+ <i></i><i></i><i></i><i></i>
24
+ </i>
25
+ </div>
26
+ </template>
25
27
  <div class="bi-resizable__content">
26
28
  <slot name="content"></slot>
27
29
  </div>
@@ -30,7 +32,7 @@
30
32
  <div class="bi-resizable__content">
31
33
  <slot name="content"></slot>
32
34
  </div>
33
- <template v-if="$slots.panel">
35
+ <template v-if="$slots.panel && !hidePanel">
34
36
  <div
35
37
  class="bi-resizable__resizer"
36
38
  :class="{ 'is-dragging': isDragging }"
@@ -77,6 +79,11 @@ export default {
77
79
  maxSize: {
78
80
  type: Number,
79
81
  default: 400
82
+ },
83
+ // 隐藏panel区域(包括拖拽条),只显示content
84
+ hidePanel: {
85
+ type: Boolean,
86
+ default: false
80
87
  }
81
88
  },
82
89
  data() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/common",
3
- "version": "1.0.154",
3
+ "version": "1.0.155",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {