vxe-table 3.18.0-beta.7 → 3.18.0-beta.8
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/es/locale/lang/ar-EG.js +30 -0
- package/es/locale/lang/de-DE.js +30 -0
- package/es/locale/lang/en-US.js +30 -0
- package/es/locale/lang/es-ES.js +30 -0
- package/es/locale/lang/fr-FR.js +30 -0
- package/es/locale/lang/hu-HU.js +30 -0
- package/es/locale/lang/hy-AM.js +30 -0
- package/es/locale/lang/id-ID.js +30 -0
- package/es/locale/lang/it-IT.js +30 -0
- package/es/locale/lang/ja-JP.js +30 -0
- package/es/locale/lang/ko-KR.js +30 -0
- package/es/locale/lang/ms-MY.js +30 -0
- package/es/locale/lang/nb-NO.js +30 -0
- package/es/locale/lang/pt-BR.js +30 -0
- package/es/locale/lang/ru-RU.js +30 -0
- package/es/locale/lang/th-TH.js +30 -0
- package/es/locale/lang/ug-CN.js +30 -0
- package/es/locale/lang/uk-UA.js +30 -0
- package/es/locale/lang/uz-UZ.js +30 -0
- package/es/locale/lang/vi-VN.js +30 -0
- package/es/locale/lang/zh-CHT.js +30 -0
- package/es/locale/lang/zh-CN.js +32 -0
- package/es/style.css +1 -1
- package/es/table/src/footer.js +2 -2
- package/es/table/src/header.js +2 -2
- package/es/table/src/table.js +13 -3
- package/es/table/src/util.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +49 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +30 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +30 -0
- package/lib/locale/lang/de-DE.js +30 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +30 -0
- package/lib/locale/lang/en-US.js +30 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +30 -0
- package/lib/locale/lang/es-ES.js +30 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +30 -0
- package/lib/locale/lang/fr-FR.js +30 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +30 -0
- package/lib/locale/lang/hu-HU.js +30 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +30 -0
- package/lib/locale/lang/hy-AM.js +30 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +30 -0
- package/lib/locale/lang/id-ID.js +30 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +30 -0
- package/lib/locale/lang/it-IT.js +30 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +30 -0
- package/lib/locale/lang/ja-JP.js +30 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +30 -0
- package/lib/locale/lang/ko-KR.js +30 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +30 -0
- package/lib/locale/lang/ms-MY.js +30 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +30 -0
- package/lib/locale/lang/nb-NO.js +30 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +30 -0
- package/lib/locale/lang/pt-BR.js +30 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +30 -0
- package/lib/locale/lang/ru-RU.js +30 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +30 -0
- package/lib/locale/lang/th-TH.js +30 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +30 -0
- package/lib/locale/lang/ug-CN.js +30 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +30 -0
- package/lib/locale/lang/uk-UA.js +30 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +30 -0
- package/lib/locale/lang/uz-UZ.js +30 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +30 -0
- package/lib/locale/lang/vi-VN.js +30 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +30 -0
- package/lib/locale/lang/zh-CHT.js +30 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +30 -0
- package/lib/locale/lang/zh-CN.js +32 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +32 -0
- package/lib/style.css +1 -1
- package/lib/table/src/footer.js +1 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +1 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +12 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +2 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +30 -0
- package/packages/locale/lang/de-DE.ts +30 -0
- package/packages/locale/lang/en-US.ts +30 -0
- package/packages/locale/lang/es-ES.ts +30 -0
- package/packages/locale/lang/fr-FR.ts +30 -0
- package/packages/locale/lang/hu-HU.ts +30 -0
- package/packages/locale/lang/hy-AM.ts +30 -0
- package/packages/locale/lang/id-ID.ts +30 -0
- package/packages/locale/lang/it-IT.ts +30 -0
- package/packages/locale/lang/ja-JP.ts +30 -0
- package/packages/locale/lang/ko-KR.ts +30 -0
- package/packages/locale/lang/ms-MY.ts +30 -0
- package/packages/locale/lang/nb-NO.ts +30 -0
- package/packages/locale/lang/pt-BR.ts +30 -0
- package/packages/locale/lang/ru-RU.ts +30 -0
- package/packages/locale/lang/th-TH.ts +30 -0
- package/packages/locale/lang/ug-CN.ts +30 -0
- package/packages/locale/lang/uk-UA.ts +30 -0
- package/packages/locale/lang/uz-UZ.ts +30 -0
- package/packages/locale/lang/vi-VN.ts +30 -0
- package/packages/locale/lang/zh-CHT.ts +30 -0
- package/packages/locale/lang/zh-CN.ts +32 -0
- package/packages/table/src/footer.ts +2 -2
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/table.ts +13 -3
- package/packages/table/src/util.ts +1 -1
- /package/es/{iconfont.1755650997091.ttf → iconfont.1755775629306.ttf} +0 -0
- /package/es/{iconfont.1755650997091.woff → iconfont.1755775629306.woff} +0 -0
- /package/es/{iconfont.1755650997091.woff2 → iconfont.1755775629306.woff2} +0 -0
- /package/lib/{iconfont.1755650997091.ttf → iconfont.1755775629306.ttf} +0 -0
- /package/lib/{iconfont.1755650997091.woff → iconfont.1755775629306.woff} +0 -0
- /package/lib/{iconfont.1755650997091.woff2 → iconfont.1755775629306.woff2} +0 -0
|
@@ -44,6 +44,7 @@ export default {
|
|
|
44
44
|
coverProp: 'Параметр "{1}" "{0}" неодноразово визначається, що може спричинити помилку',
|
|
45
45
|
uniField: 'Назва поля "{0}" неодноразово визначається, що може спричинити помилку',
|
|
46
46
|
repeatKey: 'Повторіть первинний ключ {0} = "{1}", що може спричинити помилку',
|
|
47
|
+
repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
|
|
47
48
|
delFunc: 'Метод "{0}" застарілий, будь ласка, використовуйте "{1}"',
|
|
48
49
|
delProp: 'Параметр "{0}" застарілий, будь ласка, використовуйте "{1}"',
|
|
49
50
|
delEvent: 'Подія "{0}" застаріла, будь ласка, використовуйте "{1}"',
|
|
@@ -536,6 +537,35 @@ export default {
|
|
|
536
537
|
ss: 'Другий'
|
|
537
538
|
}
|
|
538
539
|
},
|
|
540
|
+
gantt: {
|
|
541
|
+
tFullFormat: {
|
|
542
|
+
year: '{yy}年',
|
|
543
|
+
quarter: '{yy}年第{q}季度',
|
|
544
|
+
month: '{yy}年{M}月',
|
|
545
|
+
week: '{yy}年第{W}周',
|
|
546
|
+
day: '{yy}年{M}月{d}日',
|
|
547
|
+
hour: '{yy}年 {M}月{d}日{H}时',
|
|
548
|
+
minute: '{yy}年{M}月{d}日{H}时{m}分'
|
|
549
|
+
},
|
|
550
|
+
tSimpleFormat: {
|
|
551
|
+
year: '{yy}年',
|
|
552
|
+
quarter: '{q}季度',
|
|
553
|
+
month: '{M}月',
|
|
554
|
+
week: '{W}周',
|
|
555
|
+
day: '{d}',
|
|
556
|
+
hour: '{H}时',
|
|
557
|
+
minute: '{m}分'
|
|
558
|
+
},
|
|
559
|
+
dayss: {
|
|
560
|
+
w0: '日',
|
|
561
|
+
w1: '一',
|
|
562
|
+
w2: '二',
|
|
563
|
+
w3: '三',
|
|
564
|
+
w4: '四',
|
|
565
|
+
w5: '五',
|
|
566
|
+
w6: '六'
|
|
567
|
+
}
|
|
568
|
+
},
|
|
539
569
|
plugins: {
|
|
540
570
|
extendCellArea: {
|
|
541
571
|
area: {
|
|
@@ -44,6 +44,7 @@ export default {
|
|
|
44
44
|
coverProp: '"{1}" parametr "{0}" parametr bir necha bor aniqlanadi, bu xatoga olib kelishi mumkin',
|
|
45
45
|
uniField: '"{0}" dagi "{0}" da bir necha bor aniqlanadi, bu xatoga olib kelishi mumkin',
|
|
46
46
|
repeatKey: 'Birlamchi kalit {0} = "{1}" ni takrorlash mumkin, bu xatoga olib kelishi mumkin',
|
|
47
|
+
repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
|
|
47
48
|
delFunc: '"{0}" himoyalangan, iltimos "{1}" dan foydalaning',
|
|
48
49
|
delProp: '"{0}" parametri bekor qilinadi, "{1}" dan foydalaning',
|
|
49
50
|
delEvent: '"{0}" bekor qilinadi, iltimos "{1}" dan foydalaning',
|
|
@@ -536,6 +537,35 @@ export default {
|
|
|
536
537
|
ss: 'Ikkinchi'
|
|
537
538
|
}
|
|
538
539
|
},
|
|
540
|
+
gantt: {
|
|
541
|
+
tFullFormat: {
|
|
542
|
+
year: '{yy}年',
|
|
543
|
+
quarter: '{yy}年第{q}季度',
|
|
544
|
+
month: '{yy}年{M}月',
|
|
545
|
+
week: '{yy}年第{W}周',
|
|
546
|
+
day: '{yy}年{M}月{d}日',
|
|
547
|
+
hour: '{yy}年 {M}月{d}日{H}时',
|
|
548
|
+
minute: '{yy}年{M}月{d}日{H}时{m}分'
|
|
549
|
+
},
|
|
550
|
+
tSimpleFormat: {
|
|
551
|
+
year: '{yy}年',
|
|
552
|
+
quarter: '{q}季度',
|
|
553
|
+
month: '{M}月',
|
|
554
|
+
week: '{W}周',
|
|
555
|
+
day: '{d}',
|
|
556
|
+
hour: '{H}时',
|
|
557
|
+
minute: '{m}分'
|
|
558
|
+
},
|
|
559
|
+
dayss: {
|
|
560
|
+
w0: '日',
|
|
561
|
+
w1: '一',
|
|
562
|
+
w2: '二',
|
|
563
|
+
w3: '三',
|
|
564
|
+
w4: '四',
|
|
565
|
+
w5: '五',
|
|
566
|
+
w6: '六'
|
|
567
|
+
}
|
|
568
|
+
},
|
|
539
569
|
plugins: {
|
|
540
570
|
extendCellArea: {
|
|
541
571
|
area: {
|
|
@@ -44,6 +44,7 @@ export default {
|
|
|
44
44
|
coverProp: 'Tham số "{1}" của "{0}" được xác định nhiều lần, có thể gây ra lỗi',
|
|
45
45
|
uniField: 'Tên trường "{0}" được xác định nhiều lần, có thể gây ra lỗi',
|
|
46
46
|
repeatKey: 'Lặp lại khóa chính {0} = "{1}", có thể gây ra lỗi',
|
|
47
|
+
repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
|
|
47
48
|
delFunc: 'Phương thức "{0}" không được dùng nữa, vui lòng sử dụng "{1}"',
|
|
48
49
|
delProp: 'Tham số "{0}" không được dùng, vui lòng sử dụng "{1}"',
|
|
49
50
|
delEvent: 'Sự kiện "{0}" được không dùng nữa, vui lòng sử dụng "{1}"',
|
|
@@ -536,6 +537,35 @@ export default {
|
|
|
536
537
|
ss: 'Thứ hai'
|
|
537
538
|
}
|
|
538
539
|
},
|
|
540
|
+
gantt: {
|
|
541
|
+
tFullFormat: {
|
|
542
|
+
year: '{yy}年',
|
|
543
|
+
quarter: '{yy}年第{q}季度',
|
|
544
|
+
month: '{yy}年{M}月',
|
|
545
|
+
week: '{yy}年第{W}周',
|
|
546
|
+
day: '{yy}年{M}月{d}日',
|
|
547
|
+
hour: '{yy}年 {M}月{d}日{H}时',
|
|
548
|
+
minute: '{yy}年{M}月{d}日{H}时{m}分'
|
|
549
|
+
},
|
|
550
|
+
tSimpleFormat: {
|
|
551
|
+
year: '{yy}年',
|
|
552
|
+
quarter: '{q}季度',
|
|
553
|
+
month: '{M}月',
|
|
554
|
+
week: '{W}周',
|
|
555
|
+
day: '{d}',
|
|
556
|
+
hour: '{H}时',
|
|
557
|
+
minute: '{m}分'
|
|
558
|
+
},
|
|
559
|
+
dayss: {
|
|
560
|
+
w0: '日',
|
|
561
|
+
w1: '一',
|
|
562
|
+
w2: '二',
|
|
563
|
+
w3: '三',
|
|
564
|
+
w4: '四',
|
|
565
|
+
w5: '五',
|
|
566
|
+
w6: '六'
|
|
567
|
+
}
|
|
568
|
+
},
|
|
539
569
|
plugins: {
|
|
540
570
|
extendCellArea: {
|
|
541
571
|
area: {
|
|
@@ -44,6 +44,7 @@ export default {
|
|
|
44
44
|
coverProp: '"{0}" 的參數 "{1}" 重複定義,這可能會出現錯誤',
|
|
45
45
|
uniField: '字段名 "{0}" 重複定義,這可能會出現錯誤',
|
|
46
46
|
repeatKey: '主鍵重複 {0}="{1}",這可能會出現錯誤',
|
|
47
|
+
repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
|
|
47
48
|
delFunc: '方法 "{0}" 已廢棄,請使用 "{1}"',
|
|
48
49
|
delProp: '參數 "{0}" 已廢棄,請使用 "{1}"',
|
|
49
50
|
delEvent: '事件 "{0}" 已廢棄,請使用 "{1}"',
|
|
@@ -536,6 +537,35 @@ export default {
|
|
|
536
537
|
ss: '秒'
|
|
537
538
|
}
|
|
538
539
|
},
|
|
540
|
+
gantt: {
|
|
541
|
+
tFullFormat: {
|
|
542
|
+
year: '{yy}年',
|
|
543
|
+
quarter: '{yy}年第{q}季度',
|
|
544
|
+
month: '{yy}年{M}月',
|
|
545
|
+
week: '{yy}年第{W}周',
|
|
546
|
+
day: '{yy}年{M}月{d}日',
|
|
547
|
+
hour: '{yy}年 {M}月{d}日{H}时',
|
|
548
|
+
minute: '{yy}年{M}月{d}日{H}时{m}分'
|
|
549
|
+
},
|
|
550
|
+
tSimpleFormat: {
|
|
551
|
+
year: '{yy}年',
|
|
552
|
+
quarter: '{q}季度',
|
|
553
|
+
month: '{M}月',
|
|
554
|
+
week: '{W}周',
|
|
555
|
+
day: '{d}',
|
|
556
|
+
hour: '{H}时',
|
|
557
|
+
minute: '{m}分'
|
|
558
|
+
},
|
|
559
|
+
dayss: {
|
|
560
|
+
w0: '日',
|
|
561
|
+
w1: '一',
|
|
562
|
+
w2: '二',
|
|
563
|
+
w3: '三',
|
|
564
|
+
w4: '四',
|
|
565
|
+
w5: '五',
|
|
566
|
+
w6: '六'
|
|
567
|
+
}
|
|
568
|
+
},
|
|
539
569
|
plugins: {
|
|
540
570
|
extendCellArea: {
|
|
541
571
|
area: {
|
|
@@ -44,6 +44,7 @@ export default {
|
|
|
44
44
|
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|
|
45
45
|
uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
|
|
46
46
|
repeatKey: '主键重复 {0}="{1}",这可能会出现错误',
|
|
47
|
+
repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
|
|
47
48
|
delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
|
|
48
49
|
delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
|
|
49
50
|
delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
|
|
@@ -536,6 +537,37 @@ export default {
|
|
|
536
537
|
ss: '秒'
|
|
537
538
|
}
|
|
538
539
|
},
|
|
540
|
+
gantt: {
|
|
541
|
+
tFullFormat: {
|
|
542
|
+
year: '{yy}年',
|
|
543
|
+
quarter: '{yy}年第{q}季度',
|
|
544
|
+
month: '{yy}年{M}月',
|
|
545
|
+
week: '{yy}年第{W}周',
|
|
546
|
+
day: '{yy}年{M}月{E}日',
|
|
547
|
+
date: '{yy}年{M}月{d}日',
|
|
548
|
+
hour: '{yy}年 {M}月{d}日{H}时',
|
|
549
|
+
minute: '{yy}年{M}月{d}日{H}时{m}分'
|
|
550
|
+
},
|
|
551
|
+
tSimpleFormat: {
|
|
552
|
+
year: '{yy}年',
|
|
553
|
+
quarter: '{q}季度',
|
|
554
|
+
month: '{M}月',
|
|
555
|
+
week: '{W}周',
|
|
556
|
+
day: '{d}',
|
|
557
|
+
date: '{d}',
|
|
558
|
+
hour: '{H}时',
|
|
559
|
+
minute: '{m}分'
|
|
560
|
+
},
|
|
561
|
+
dayss: {
|
|
562
|
+
w0: '日',
|
|
563
|
+
w1: '一',
|
|
564
|
+
w2: '二',
|
|
565
|
+
w3: '三',
|
|
566
|
+
w4: '四',
|
|
567
|
+
w5: '五',
|
|
568
|
+
w6: '六'
|
|
569
|
+
}
|
|
570
|
+
},
|
|
539
571
|
plugins: {
|
|
540
572
|
extendCellArea: {
|
|
541
573
|
area: {
|
|
@@ -3,7 +3,7 @@ import XEUtils from 'xe-utils'
|
|
|
3
3
|
import { VxeUI } from '../../ui'
|
|
4
4
|
import { getClass } from '../../ui/src/utils'
|
|
5
5
|
import { updateCellTitle } from '../../ui/src/dom'
|
|
6
|
-
import {
|
|
6
|
+
import { getCalcHeight } from './util'
|
|
7
7
|
|
|
8
8
|
import type { VxeTableDefines, VxeTableConstructor, VxeTablePrivateMethods, TableReactData, TableInternalData, VxeComponentStyleType } from '../../../types'
|
|
9
9
|
|
|
@@ -32,7 +32,7 @@ function renderRows (h: CreateElement, _vm: any, isOptimizeMode: boolean, tableC
|
|
|
32
32
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
33
33
|
const cellOpts = $xeTable.computeCellOpts
|
|
34
34
|
const footerCellOpts = $xeTable.computeFooterCellOpts
|
|
35
|
-
const currCellHeight =
|
|
35
|
+
const currCellHeight = getCalcHeight(footerCellOpts.height) || defaultRowHeight
|
|
36
36
|
|
|
37
37
|
return tableColumn.map((column: any, $columnIndex: any) => {
|
|
38
38
|
const { type, showFooterOverflow, footerAlign, align, footerClassName, editRender, cellRender } = column
|
|
@@ -2,7 +2,7 @@ import { PropType, CreateElement } from 'vue'
|
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
3
|
import { VxeUI } from '../../ui'
|
|
4
4
|
import { getClass } from '../../ui/src/utils'
|
|
5
|
-
import {
|
|
5
|
+
import { getCalcHeight, convertHeaderColumnToRows } from './util'
|
|
6
6
|
|
|
7
7
|
import type { VxeTableDefines, VxeTableConstructor, VxeTablePrivateMethods, VxeColumnPropTypes, TableReactData, TableInternalData, VxeComponentStyleType } from '../../../types'
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@ const renderRows = (h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMode
|
|
|
29
29
|
const cellOpts = $xeTable.computeCellOpts
|
|
30
30
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
31
31
|
const headerCellOpts = $xeTable.computeHeaderCellOpts
|
|
32
|
-
const currCellHeight =
|
|
32
|
+
const currCellHeight = getCalcHeight(headerCellOpts.height) || defaultRowHeight
|
|
33
33
|
const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = columnDragOpts
|
|
34
34
|
return cols.map((column: any, $columnIndex: any) => {
|
|
35
35
|
const { type, showHeaderOverflow, headerAlign, align, filters, headerClassName, editRender, cellRender } = column
|
|
@@ -2,7 +2,7 @@ import { CreateElement } from 'vue'
|
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
3
|
import { getFuncText, isEnableConf } from '../../ui/src/utils'
|
|
4
4
|
import { initTpImg } from '../../ui/src/dom'
|
|
5
|
-
import { createInternalData, createHandleGetRowId,
|
|
5
|
+
import { createInternalData, createHandleGetRowId, getCalcHeight, hasDeepKey } from './util'
|
|
6
6
|
import { VxeUI } from '../../ui'
|
|
7
7
|
import methods from './methods'
|
|
8
8
|
import TableBodyComponent from './body'
|
|
@@ -926,11 +926,21 @@ export default {
|
|
|
926
926
|
},
|
|
927
927
|
computeHeaderCellOpts () {
|
|
928
928
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
929
|
+
const $xeGantt = $xeTable.$xeGantt
|
|
929
930
|
const props = $xeTable
|
|
930
931
|
|
|
931
932
|
const headerCellOpts = Object.assign({}, getConfig().table.headerCellConfig, props.headerCellConfig)
|
|
933
|
+
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
932
934
|
const cellOpts = $xeTable.computeCellOpts
|
|
933
|
-
|
|
935
|
+
let headCellHeight = XEUtils.toNumber(getCalcHeight(headerCellOpts.height || cellOpts.height))
|
|
936
|
+
if ($xeGantt) {
|
|
937
|
+
const taskScaleConfs = $xeGantt.computeTaskScaleConfs
|
|
938
|
+
if (taskScaleConfs && taskScaleConfs.length > 2) {
|
|
939
|
+
const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskScaleConfs.length
|
|
940
|
+
headCellHeight = Math.max(ganttMinHeadCellHeight, headCellHeight)
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
headerCellOpts.height = headCellHeight
|
|
934
944
|
return headerCellOpts
|
|
935
945
|
},
|
|
936
946
|
computeFooterCellOpts () {
|
|
@@ -939,7 +949,7 @@ export default {
|
|
|
939
949
|
|
|
940
950
|
const footerCellOpts = Object.assign({}, getConfig().table.footerCellConfig, props.footerCellConfig)
|
|
941
951
|
const cellOpts = $xeTable.computeCellOpts
|
|
942
|
-
footerCellOpts.height = XEUtils.toNumber(
|
|
952
|
+
footerCellOpts.height = XEUtils.toNumber(getCalcHeight(footerCellOpts.height || cellOpts.height))
|
|
943
953
|
return footerCellOpts
|
|
944
954
|
},
|
|
945
955
|
rowOpts () {
|
|
@@ -315,7 +315,7 @@ function getElementMarginAndWidth (elem: HTMLElement | null) {
|
|
|
315
315
|
return 0
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
export function
|
|
318
|
+
export function getCalcHeight (height: number | 'unset' | undefined | null) {
|
|
319
319
|
if (height === 'unset') {
|
|
320
320
|
return 0
|
|
321
321
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|