@ddwl/ddwl-ui 1.3.7 → 1.3.10

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": "@ddwl/ddwl-ui",
3
- "version": "1.3.7",
3
+ "version": "1.3.10",
4
4
  "private": false,
5
5
  "main": "dist/index.common.js",
6
6
  "style": "dist/index.css",
@@ -22,7 +22,7 @@
22
22
  <el-col v-if="hasSlot && expend && !suffixSlot" :span="24 - submitSpan" class="mb16">
23
23
  <slot />
24
24
  </el-col>
25
- <el-col :span="submitSpan">
25
+ <el-col v-if="config.length" :span="submitSpan">
26
26
  <div
27
27
  :style="{
28
28
  'margin-top': hasSlot && expend && !suffixSlot ? '0px' : '24px'
@@ -11,6 +11,7 @@
11
11
  <slot />
12
12
  </search-form>
13
13
  <d-table
14
+ v-if="config.columns.length"
14
15
  ref="dTable"
15
16
  :request-config="requestConfig"
16
17
  :columns="config.columns"
@@ -398,7 +398,7 @@ export default {
398
398
  const el = this.$refs.table.$el.querySelector('.el-table__body-wrapper > table > tbody')
399
399
  /* eslint-disable no-new */
400
400
  new Sortable(el, {
401
- handle: '.table-drag-icon',
401
+ handle: '.d-table-drag-icon',
402
402
  onEnd: (evt) => {
403
403
  // 拖拽后数据位置置换
404
404
  const data = this.list.splice(evt.oldIndex, 1)[0]