vxe-table 4.13.11 → 4.13.13
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +511 -511
- package/es/locale/lang/de-DE.js +280 -280
- package/es/locale/lang/en-US.js +206 -206
- package/es/locale/lang/es-ES.js +494 -501
- package/es/locale/lang/fr-FR.js +517 -517
- package/es/locale/lang/hu-HU.js +372 -372
- package/es/locale/lang/id-ID.js +529 -529
- package/es/locale/lang/it-IT.js +297 -297
- package/es/locale/lang/ja-JP.js +454 -454
- package/es/locale/lang/ko-KR.js +415 -415
- package/es/locale/lang/nb-NO.js +515 -515
- package/es/locale/lang/pt-BR.js +505 -505
- package/es/locale/lang/ru-RU.js +326 -326
- package/es/locale/lang/th-TH.js +255 -255
- package/es/locale/lang/uk-UA.js +450 -450
- package/es/locale/lang/vi-VN.js +528 -528
- package/es/locale/lang/zh-CHT.js +155 -155
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/menu/panel.js +8 -4
- package/es/table/src/cell.js +2 -2
- package/es/table/src/table.js +56 -51
- package/es/table/src/util.js +13 -17
- package/es/table/style.css +24 -0
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +4 -4
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +24 -0
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +80 -36
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +511 -511
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +280 -280
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +206 -206
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +206 -206
- package/lib/locale/lang/es-ES.js +494 -501
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +494 -501
- package/lib/locale/lang/fr-FR.js +517 -517
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +372 -372
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +372 -372
- package/lib/locale/lang/id-ID.js +529 -529
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +297 -297
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +454 -454
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +454 -454
- package/lib/locale/lang/ko-KR.js +415 -415
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +415 -415
- package/lib/locale/lang/nb-NO.js +515 -515
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +505 -505
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +505 -505
- package/lib/locale/lang/ru-RU.js +326 -326
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +326 -326
- package/lib/locale/lang/th-TH.js +255 -255
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +450 -450
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +450 -450
- package/lib/locale/lang/vi-VN.js +528 -528
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +155 -155
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/menu/panel.js +8 -4
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/src/cell.js +2 -2
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +53 -9
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +12 -16
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +24 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +4 -4
- 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/lib/vxe-table/style/style.css +24 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +511 -511
- package/packages/locale/lang/de-DE.ts +281 -282
- package/packages/locale/lang/en-US.ts +206 -206
- package/packages/locale/lang/es-ES.ts +494 -503
- package/packages/locale/lang/fr-FR.ts +517 -517
- package/packages/locale/lang/hu-HU.ts +372 -372
- package/packages/locale/lang/id-ID.ts +529 -529
- package/packages/locale/lang/it-IT.ts +297 -297
- package/packages/locale/lang/ja-JP.ts +454 -454
- package/packages/locale/lang/ko-KR.ts +415 -415
- package/packages/locale/lang/nb-NO.ts +515 -515
- package/packages/locale/lang/pt-BR.ts +505 -505
- package/packages/locale/lang/ru-RU.ts +326 -326
- package/packages/locale/lang/th-TH.ts +255 -255
- package/packages/locale/lang/uk-UA.ts +450 -450
- package/packages/locale/lang/vi-VN.ts +528 -528
- package/packages/locale/lang/zh-CHT.ts +155 -155
- package/packages/table/module/menu/panel.ts +8 -4
- package/packages/table/src/cell.ts +2 -2
- package/packages/table/src/table.ts +60 -50
- package/packages/table/src/util.ts +13 -18
- package/packages/ui/index.ts +3 -3
- package/styles/components/table.scss +35 -0
- /package/es/{iconfont.1745574253427.ttf → iconfont.1745800678796.ttf} +0 -0
- /package/es/{iconfont.1745574253427.woff → iconfont.1745800678796.woff} +0 -0
- /package/es/{iconfont.1745574253427.woff2 → iconfont.1745800678796.woff2} +0 -0
- /package/lib/{iconfont.1745574253427.ttf → iconfont.1745800678796.ttf} +0 -0
- /package/lib/{iconfont.1745574253427.woff → iconfont.1745800678796.woff} +0 -0
- /package/lib/{iconfont.1745574253427.woff2 → iconfont.1745800678796.woff2} +0 -0
|
@@ -54,6 +54,7 @@ export default defineComponent({
|
|
|
54
54
|
const hasChildMenus = item.children && item.children.some((child: any) => child.visible !== false)
|
|
55
55
|
const prefixOpts = Object.assign({}, item.prefixConfig)
|
|
56
56
|
const suffixOpts = Object.assign({}, item.suffixConfig)
|
|
57
|
+
const menuContent = getFuncText(item.name)
|
|
57
58
|
return item.visible === false
|
|
58
59
|
? null
|
|
59
60
|
: h('li', {
|
|
@@ -84,8 +85,9 @@ export default defineComponent({
|
|
|
84
85
|
prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : createCommentVNode()
|
|
85
86
|
]),
|
|
86
87
|
h('div', {
|
|
87
|
-
class: 'vxe-context-menu--link-content'
|
|
88
|
-
|
|
88
|
+
class: 'vxe-context-menu--link-content',
|
|
89
|
+
title: menuContent
|
|
90
|
+
}, menuContent),
|
|
89
91
|
h('div', {
|
|
90
92
|
class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
|
|
91
93
|
}, [
|
|
@@ -103,6 +105,7 @@ export default defineComponent({
|
|
|
103
105
|
}, item.children.map((child: any, cIndex: any) => {
|
|
104
106
|
const childPrefixOpts = Object.assign({}, child.prefixConfig)
|
|
105
107
|
const childSuffixOpts = Object.assign({}, child.suffixConfig)
|
|
108
|
+
const childMenuContent = getFuncText(child.name)
|
|
106
109
|
return child.visible === false
|
|
107
110
|
? null
|
|
108
111
|
: h('li', {
|
|
@@ -133,8 +136,9 @@ export default defineComponent({
|
|
|
133
136
|
childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : createCommentVNode()
|
|
134
137
|
]),
|
|
135
138
|
h('div', {
|
|
136
|
-
class: 'vxe-context-menu--link-content'
|
|
137
|
-
|
|
139
|
+
class: 'vxe-context-menu--link-content',
|
|
140
|
+
title: childMenuContent
|
|
141
|
+
}, childMenuContent),
|
|
138
142
|
h('div', {
|
|
139
143
|
class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
|
|
140
144
|
}, [
|
|
@@ -15,7 +15,7 @@ function renderTitlePrefixIcon (params: VxeTableDefines.CellRenderHeaderParams &
|
|
|
15
15
|
const titlePrefix = column.titlePrefix || column.titleHelp
|
|
16
16
|
if (titlePrefix) {
|
|
17
17
|
return h('i', {
|
|
18
|
-
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || getIcon().TABLE_TITLE_PREFIX],
|
|
18
|
+
class: ['vxe-cell-title-prefix-icon', titlePrefix.iconStatus ? `theme--${titlePrefix.iconStatus}` : '', titlePrefix.icon || getIcon().TABLE_TITLE_PREFIX],
|
|
19
19
|
onMouseenter (evnt: MouseEvent) {
|
|
20
20
|
$table.triggerHeaderTitleEvent(evnt, titlePrefix, params)
|
|
21
21
|
},
|
|
@@ -32,7 +32,7 @@ function renderTitleSuffixIcon (params: VxeTableDefines.CellRenderHeaderParams &
|
|
|
32
32
|
const titleSuffix = column.titleSuffix
|
|
33
33
|
if (titleSuffix) {
|
|
34
34
|
return h('i', {
|
|
35
|
-
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX],
|
|
35
|
+
class: ['vxe-cell-title-suffix-icon', titleSuffix.iconStatus ? `theme--${titleSuffix.iconStatus}` : '', titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX],
|
|
36
36
|
onMouseenter (evnt: MouseEvent) {
|
|
37
37
|
$table.triggerHeaderTitleEvent(evnt, titleSuffix, params)
|
|
38
38
|
},
|
|
@@ -400,6 +400,8 @@ export default defineComponent({
|
|
|
400
400
|
// 已删除行
|
|
401
401
|
removeRowMaps: {},
|
|
402
402
|
|
|
403
|
+
cvCacheMaps: {},
|
|
404
|
+
|
|
403
405
|
inited: false,
|
|
404
406
|
tooltipTimeout: null,
|
|
405
407
|
initStatus: false,
|
|
@@ -2931,13 +2933,13 @@ export default defineComponent({
|
|
|
2931
2933
|
if (bodyWrapperElem) {
|
|
2932
2934
|
overflowY = scrollYHeight > bodyWrapperElem.clientHeight
|
|
2933
2935
|
if (yHandleEl) {
|
|
2934
|
-
reactData.scrollbarWidth =
|
|
2936
|
+
reactData.scrollbarWidth = scrollbarOpts.width || (yHandleEl.offsetWidth - yHandleEl.clientWidth) || 14
|
|
2935
2937
|
}
|
|
2936
2938
|
reactData.overflowY = overflowY
|
|
2937
2939
|
|
|
2938
2940
|
overflowX = scrollXWidth > bodyWrapperElem.clientWidth
|
|
2939
2941
|
if (xHandleEl) {
|
|
2940
|
-
reactData.scrollbarHeight =
|
|
2942
|
+
reactData.scrollbarHeight = scrollbarOpts.height || (xHandleEl.offsetHeight - xHandleEl.clientHeight) || 14
|
|
2941
2943
|
}
|
|
2942
2944
|
|
|
2943
2945
|
const headerHeight = headerTableElem ? headerTableElem.clientHeight : 0
|
|
@@ -3134,6 +3136,7 @@ export default defineComponent({
|
|
|
3134
3136
|
scrollYStore.endIndex = 1
|
|
3135
3137
|
scrollXStore.startIndex = 0
|
|
3136
3138
|
scrollXStore.endIndex = 1
|
|
3139
|
+
internalData.cvCacheMaps = {}
|
|
3137
3140
|
reactData.isRowLoading = true
|
|
3138
3141
|
reactData.scrollVMLoading = false
|
|
3139
3142
|
internalData.treeExpandedMaps = {}
|
|
@@ -3741,41 +3744,41 @@ export default defineComponent({
|
|
|
3741
3744
|
}
|
|
3742
3745
|
}
|
|
3743
3746
|
|
|
3744
|
-
const lazyScrollXData = () => {
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
}
|
|
3761
|
-
|
|
3762
|
-
const lazyScrollYData = () => {
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
}
|
|
3747
|
+
// const lazyScrollXData = () => {
|
|
3748
|
+
// const { lxTimeout, lxRunTime, scrollXStore } = internalData
|
|
3749
|
+
// const { visibleSize } = scrollXStore
|
|
3750
|
+
// const fpsTime = Math.max(5, Math.min(10, Math.floor(visibleSize / 3)))
|
|
3751
|
+
// if (lxTimeout) {
|
|
3752
|
+
// clearTimeout(lxTimeout)
|
|
3753
|
+
// }
|
|
3754
|
+
// if (!lxRunTime || lxRunTime + fpsTime < Date.now()) {
|
|
3755
|
+
// internalData.lxRunTime = Date.now()
|
|
3756
|
+
// loadScrollXData()
|
|
3757
|
+
// }
|
|
3758
|
+
// internalData.lxTimeout = setTimeout(() => {
|
|
3759
|
+
// internalData.lxTimeout = undefined
|
|
3760
|
+
// internalData.lxRunTime = undefined
|
|
3761
|
+
// loadScrollXData()
|
|
3762
|
+
// }, fpsTime)
|
|
3763
|
+
// }
|
|
3764
|
+
|
|
3765
|
+
// const lazyScrollYData = () => {
|
|
3766
|
+
// const { lyTimeout, lyRunTime, scrollYStore } = internalData
|
|
3767
|
+
// const { visibleSize } = scrollYStore
|
|
3768
|
+
// const fpsTime = Math.floor(Math.max(4, Math.min(10, visibleSize / 3)))
|
|
3769
|
+
// if (lyTimeout) {
|
|
3770
|
+
// clearTimeout(lyTimeout)
|
|
3771
|
+
// }
|
|
3772
|
+
// if (!lyRunTime || lyRunTime + fpsTime < Date.now()) {
|
|
3773
|
+
// internalData.lyRunTime = Date.now()
|
|
3774
|
+
// loadScrollYData()
|
|
3775
|
+
// }
|
|
3776
|
+
// internalData.lyTimeout = setTimeout(() => {
|
|
3777
|
+
// internalData.lyTimeout = undefined
|
|
3778
|
+
// internalData.lyRunTime = undefined
|
|
3779
|
+
// loadScrollYData()
|
|
3780
|
+
// }, fpsTime)
|
|
3781
|
+
// }
|
|
3779
3782
|
|
|
3780
3783
|
const checkLastSyncScroll = (isRollX: boolean, isRollY: boolean) => {
|
|
3781
3784
|
const { scrollXLoad, scrollYLoad } = reactData
|
|
@@ -6227,12 +6230,14 @@ export default defineComponent({
|
|
|
6227
6230
|
setScrollLeft(bodyScrollElem, scrollLeft)
|
|
6228
6231
|
setScrollLeft(headerScrollElem, scrollLeft)
|
|
6229
6232
|
setScrollLeft(footerScrollElem, scrollLeft)
|
|
6233
|
+
loadScrollXData()
|
|
6230
6234
|
}
|
|
6231
6235
|
if (XEUtils.isNumber(scrollTop)) {
|
|
6232
6236
|
setScrollTop(yHandleEl, scrollTop)
|
|
6233
6237
|
setScrollTop(bodyScrollElem, scrollTop)
|
|
6234
6238
|
setScrollTop(leftScrollElem, scrollTop)
|
|
6235
6239
|
setScrollTop(rightScrollElem, scrollTop)
|
|
6240
|
+
loadScrollYData()
|
|
6236
6241
|
}
|
|
6237
6242
|
if (reactData.scrollXLoad || reactData.scrollYLoad) {
|
|
6238
6243
|
return new Promise<void>(resolve => {
|
|
@@ -6256,7 +6261,7 @@ export default defineComponent({
|
|
|
6256
6261
|
const rest = []
|
|
6257
6262
|
if (row) {
|
|
6258
6263
|
if (props.treeConfig) {
|
|
6259
|
-
rest.push(
|
|
6264
|
+
rest.push($xeTable.scrollToTreeRow(row))
|
|
6260
6265
|
} else {
|
|
6261
6266
|
rest.push(rowToVisible($xeTable, row))
|
|
6262
6267
|
}
|
|
@@ -9643,23 +9648,23 @@ export default defineComponent({
|
|
|
9643
9648
|
* 横向 X 可视渲染事件处理
|
|
9644
9649
|
*/
|
|
9645
9650
|
triggerScrollXEvent () {
|
|
9646
|
-
const virtualXOpts = computeVirtualXOpts.value
|
|
9647
|
-
if (virtualXOpts.immediate) {
|
|
9648
|
-
|
|
9649
|
-
} else {
|
|
9650
|
-
|
|
9651
|
-
}
|
|
9651
|
+
// const virtualXOpts = computeVirtualXOpts.value
|
|
9652
|
+
// if (virtualXOpts.immediate) {
|
|
9653
|
+
loadScrollXData()
|
|
9654
|
+
// } else {
|
|
9655
|
+
// lazyScrollXData()
|
|
9656
|
+
// }
|
|
9652
9657
|
},
|
|
9653
9658
|
/**
|
|
9654
9659
|
* 纵向 Y 可视渲染事件处理
|
|
9655
9660
|
*/
|
|
9656
9661
|
triggerScrollYEvent () {
|
|
9657
|
-
const virtualYOpts = computeVirtualYOpts.value
|
|
9658
|
-
if (virtualYOpts.immediate) {
|
|
9659
|
-
|
|
9660
|
-
} else {
|
|
9661
|
-
|
|
9662
|
-
}
|
|
9662
|
+
// const virtualYOpts = computeVirtualYOpts.value
|
|
9663
|
+
// if (virtualYOpts.immediate) {
|
|
9664
|
+
loadScrollYData()
|
|
9665
|
+
// } else {
|
|
9666
|
+
// lazyScrollYData()
|
|
9667
|
+
// }
|
|
9663
9668
|
},
|
|
9664
9669
|
triggerBodyScrollEvent (evnt, fixedType) {
|
|
9665
9670
|
const { scrollYLoad, scrollXLoad } = reactData
|
|
@@ -9848,12 +9853,14 @@ export default defineComponent({
|
|
|
9848
9853
|
if (!bodyScrollElem) {
|
|
9849
9854
|
return
|
|
9850
9855
|
}
|
|
9856
|
+
|
|
9851
9857
|
const wheelSpeed = getWheelSpeed(reactData.lastScrollTime)
|
|
9852
9858
|
const deltaTop = shiftKey ? 0 : Math.ceil(deltaY * wheelSpeed)
|
|
9853
9859
|
const deltaLeft = shiftKey ? Math.ceil((shiftKey ? (deltaY || deltaX) : deltaX) * wheelSpeed) : 0
|
|
9854
9860
|
|
|
9855
9861
|
const isTopWheel = deltaTop < 0
|
|
9856
9862
|
const currScrollTop = bodyScrollElem.scrollTop
|
|
9863
|
+
|
|
9857
9864
|
// 如果滚动位置已经是顶部或底部,则不需要触发
|
|
9858
9865
|
if (isTopWheel ? currScrollTop <= 0 : currScrollTop >= bodyScrollElem.scrollHeight - bodyScrollElem.clientHeight) {
|
|
9859
9866
|
return
|
|
@@ -11356,6 +11363,9 @@ export default defineComponent({
|
|
|
11356
11363
|
if (tableViewportEl) {
|
|
11357
11364
|
tableViewportEl.removeEventListener('wheel', $xeTable.triggerBodyWheelEvent)
|
|
11358
11365
|
}
|
|
11366
|
+
internalData.cvCacheMaps = {}
|
|
11367
|
+
internalData.prevDragRow = null
|
|
11368
|
+
internalData.prevDragCol = null
|
|
11359
11369
|
if (resizeObserver) {
|
|
11360
11370
|
resizeObserver.disconnect()
|
|
11361
11371
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { watch, reactive } from 'vue'
|
|
1
|
+
import { watch, reactive, nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
3
|
import { ColumnInfo } from './columnInfo'
|
|
4
4
|
import { isPx, isScale } from '../../ui/src/dom'
|
|
@@ -72,23 +72,18 @@ export const convertHeaderColumnToRows = (originColumns: any): any[][] => {
|
|
|
72
72
|
export function restoreScrollLocation ($xeTable: VxeTableConstructor, scrollLeft: number, scrollTop: number) {
|
|
73
73
|
const internalData = $xeTable.internalData
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
internalData.scrollRenderType = ''
|
|
88
|
-
// 还原滚动状态
|
|
89
|
-
return $xeTable.scrollTo(scrollLeft, scrollTop)
|
|
90
|
-
}
|
|
91
|
-
})
|
|
75
|
+
if (scrollLeft || scrollTop) {
|
|
76
|
+
internalData.intoRunScroll = false
|
|
77
|
+
internalData.inVirtualScroll = false
|
|
78
|
+
internalData.inWheelScroll = false
|
|
79
|
+
internalData.inHeaderScroll = false
|
|
80
|
+
internalData.inBodyScroll = false
|
|
81
|
+
internalData.inFooterScroll = false
|
|
82
|
+
internalData.scrollRenderType = ''
|
|
83
|
+
// 还原滚动状态
|
|
84
|
+
return $xeTable.scrollTo(scrollLeft, scrollTop)
|
|
85
|
+
}
|
|
86
|
+
return nextTick()
|
|
92
87
|
}
|
|
93
88
|
|
|
94
89
|
/**
|
package/packages/ui/index.ts
CHANGED
|
@@ -208,7 +208,7 @@ VxeUI.setConfig({
|
|
|
208
208
|
},
|
|
209
209
|
virtualXConfig: {
|
|
210
210
|
enabled: true,
|
|
211
|
-
gt:
|
|
211
|
+
gt: 24,
|
|
212
212
|
preSize: 1,
|
|
213
213
|
oSize: 0
|
|
214
214
|
},
|
|
@@ -219,8 +219,8 @@ VxeUI.setConfig({
|
|
|
219
219
|
oSize: 0
|
|
220
220
|
},
|
|
221
221
|
scrollbarConfig: {
|
|
222
|
-
width: 14,
|
|
223
|
-
height: 14
|
|
222
|
+
// width: 14,
|
|
223
|
+
// height: 14
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
226
|
// export: {
|
|
@@ -1,7 +1,36 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
1
3
|
@use '../helpers/baseMixin.scss';
|
|
2
4
|
@use './icon.scss';
|
|
3
5
|
@use './table-module/all.scss';
|
|
4
6
|
|
|
7
|
+
$btnThemeList: (
|
|
8
|
+
(
|
|
9
|
+
name: "primary",
|
|
10
|
+
textColor: var(--vxe-ui-font-primary-color),
|
|
11
|
+
),
|
|
12
|
+
(
|
|
13
|
+
name: "success",
|
|
14
|
+
textColor: var(--vxe-ui-status-success-color),
|
|
15
|
+
),
|
|
16
|
+
(
|
|
17
|
+
name: "info",
|
|
18
|
+
textColor: var(--vxe-ui-status-info-color),
|
|
19
|
+
),
|
|
20
|
+
(
|
|
21
|
+
name: "warning",
|
|
22
|
+
textColor: var(--vxe-ui-status-warning-color),
|
|
23
|
+
),
|
|
24
|
+
(
|
|
25
|
+
name: "danger",
|
|
26
|
+
textColor: var(--vxe-ui-status-danger-color),
|
|
27
|
+
),
|
|
28
|
+
(
|
|
29
|
+
name: "error",
|
|
30
|
+
textColor: var(--vxe-ui-status-error-color),
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
|
|
5
34
|
.vxe-table-slots,
|
|
6
35
|
.vxe-table--file-form {
|
|
7
36
|
display: none;
|
|
@@ -792,6 +821,12 @@
|
|
|
792
821
|
.vxe-cell-title-prefix-icon,
|
|
793
822
|
.vxe-cell-title-suffix-icon {
|
|
794
823
|
cursor: help;
|
|
824
|
+
@for $index from 0 to list.length($btnThemeList) {
|
|
825
|
+
$item: list.nth($btnThemeList, $index + 1);
|
|
826
|
+
&.theme--#{map.get($item, name)} {
|
|
827
|
+
color: map.get($item, textColor);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
795
830
|
}
|
|
796
831
|
}
|
|
797
832
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|