vxe-table 3.7.9 → 3.7.10-beta.0
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/helper/vetur/attributes.json +4 -0
- package/helper/vetur/tags.json +1 -0
- package/lib/form/src/form.js +4 -3
- package/lib/form/src/form.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +40 -20
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +0 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +0 -1
- package/lib/locale/lang/ja-JP.js +0 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +0 -1
- package/lib/locale/lang/zh-CN.js +0 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +0 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +0 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +0 -1
- package/lib/locale/lang/zh-TC.js +0 -1
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +0 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +0 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +19 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +3 -1
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +5 -6
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +3 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +4 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +2 -1
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/package.json +2 -2
- package/packages/form/src/form.js +4 -3
- package/packages/locale/lang/en-US.js +0 -1
- package/packages/locale/lang/ja-JP.js +0 -1
- package/packages/locale/lang/zh-CN.js +0 -1
- package/packages/locale/lang/zh-TC.js +0 -1
- package/packages/table/src/cell.js +21 -3
- package/packages/table/src/column.js +3 -1
- package/packages/table/src/columnInfo.js +1 -0
- package/packages/table/src/methods.js +5 -6
- package/packages/table/src/table.js +1 -1
- package/packages/table/src/util.js +3 -2
- package/packages/v-x-e-table/src/conf.js +2 -1
- package/styles/table.scss +6 -3
- /package/lib/icon/style/{iconfont.1709080259515.ttf → iconfont.1710117177540.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1709080259515.woff → iconfont.1710117177540.woff} +0 -0
- /package/lib/icon/style/{iconfont.1709080259515.woff2 → iconfont.1710117177540.woff2} +0 -0
- /package/lib/{iconfont.1709080259515.ttf → iconfont.1710117177540.ttf} +0 -0
- /package/lib/{iconfont.1709080259515.woff → iconfont.1710117177540.woff} +0 -0
- /package/lib/{iconfont.1709080259515.woff2 → iconfont.1710117177540.woff2} +0 -0
|
@@ -11,10 +11,28 @@ function renderTitlePrefixIcon (h, params) {
|
|
|
11
11
|
const titlePrefix = column.titlePrefix || column.titleHelp
|
|
12
12
|
return titlePrefix ? [
|
|
13
13
|
h('i', {
|
|
14
|
-
class: ['vxe-cell-
|
|
14
|
+
class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || GlobalConfig.icon.TABLE_TITLE_PREFIX],
|
|
15
15
|
on: {
|
|
16
16
|
mouseenter (evnt) {
|
|
17
|
-
$table.
|
|
17
|
+
$table.triggerHeaderTitleEvent(evnt, titlePrefix, params)
|
|
18
|
+
},
|
|
19
|
+
mouseleave (evnt) {
|
|
20
|
+
$table.handleTargetLeaveEvent(evnt)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
] : []
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function renderTitleSuffixIcon (h, params) {
|
|
28
|
+
const { $table, column } = params
|
|
29
|
+
const titleSuffix = column.titleSuffix
|
|
30
|
+
return titleSuffix ? [
|
|
31
|
+
h('i', {
|
|
32
|
+
class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || GlobalConfig.icon.TABLE_TITLE_SUFFIX],
|
|
33
|
+
on: {
|
|
34
|
+
mouseenter (evnt) {
|
|
35
|
+
$table.triggerHeaderTitleEvent(evnt, titleSuffix, params)
|
|
18
36
|
},
|
|
19
37
|
mouseleave (evnt) {
|
|
20
38
|
$table.handleTargetLeaveEvent(evnt)
|
|
@@ -159,7 +177,7 @@ export const Cell = {
|
|
|
159
177
|
return renderTitleContent(h, params, UtilTools.formatText(column.getTitle(), 1))
|
|
160
178
|
},
|
|
161
179
|
renderDefaultHeader (h, params) {
|
|
162
|
-
return renderTitlePrefixIcon(h, params).concat(Cell.renderHeaderTitle(h, params))
|
|
180
|
+
return renderTitlePrefixIcon(h, params).concat(Cell.renderHeaderTitle(h, params)).concat(renderTitleSuffixIcon(h, params))
|
|
163
181
|
},
|
|
164
182
|
renderDefaultCell (h, params) {
|
|
165
183
|
const { $table, row, column } = params
|
|
@@ -2810,15 +2810,14 @@ const Methods = {
|
|
|
2810
2810
|
this.closeTooltip()
|
|
2811
2811
|
}
|
|
2812
2812
|
},
|
|
2813
|
-
|
|
2814
|
-
const
|
|
2815
|
-
|
|
2816
|
-
if (titlePrefix.content || titlePrefix.message) {
|
|
2813
|
+
triggerHeaderTitleEvent (evnt, iconParams, params) {
|
|
2814
|
+
const tipContent = iconParams.content || iconParams.message
|
|
2815
|
+
if (tipContent) {
|
|
2817
2816
|
const { $refs, tooltipStore } = this
|
|
2818
|
-
const content = getFuncText(
|
|
2817
|
+
const content = getFuncText(tipContent)
|
|
2819
2818
|
this.handleTargetEnterEvent(true)
|
|
2820
2819
|
tooltipStore.visible = true
|
|
2821
|
-
tooltipStore.currOpts = { ...
|
|
2820
|
+
tooltipStore.currOpts = { ...params, content: null }
|
|
2822
2821
|
this.$nextTick(() => {
|
|
2823
2822
|
const $tooltip = $refs.tooltip
|
|
2824
2823
|
if ($tooltip) {
|
|
@@ -129,10 +129,11 @@ export function getColReMinWidth (params) {
|
|
|
129
129
|
const checkboxIconWidth = getPaddingLeftRightSize(queryCellElement(cell, '--title>.vxe-cell--checkbox'))
|
|
130
130
|
const requiredIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--required-icon'))
|
|
131
131
|
const editIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--edit-icon'))
|
|
132
|
-
const
|
|
132
|
+
const prefixIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell-title-prefix-icon'))
|
|
133
|
+
const suffixIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell-title-suffix-icon'))
|
|
133
134
|
const sortIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--sort'))
|
|
134
135
|
const filterIconWidth = getElemenMarginWidth(queryCellElement(cell, '>.vxe-cell--filter'))
|
|
135
|
-
mWidth += checkboxIconWidth + requiredIconWidth + editIconWidth +
|
|
136
|
+
mWidth += checkboxIconWidth + requiredIconWidth + editIconWidth + prefixIconWidth + suffixIconWidth + filterIconWidth + sortIconWidth
|
|
136
137
|
}
|
|
137
138
|
// 如果设置最小宽
|
|
138
139
|
if (colMinWidth) {
|
|
@@ -144,7 +144,8 @@ export default {
|
|
|
144
144
|
TABLE_FILTER_NONE: iconPrefix + 'funnel',
|
|
145
145
|
TABLE_FILTER_MATCH: iconPrefix + 'funnel',
|
|
146
146
|
TABLE_EDIT: iconPrefix + 'edit',
|
|
147
|
-
|
|
147
|
+
TABLE_TITLE_PREFIX: iconPrefix + 'question-circle-fill',
|
|
148
|
+
TABLE_TITLE_SUFFIX: iconPrefix + 'question-circle-fill',
|
|
148
149
|
TABLE_TREE_LOADED: iconPrefix + 'spinner roll',
|
|
149
150
|
TABLE_TREE_OPEN: iconPrefix + 'caret-right rotate90',
|
|
150
151
|
TABLE_TREE_CLOSE: iconPrefix + 'caret-right',
|
package/styles/table.scss
CHANGED
|
@@ -398,7 +398,8 @@
|
|
|
398
398
|
}
|
|
399
399
|
// .vxe-cell--required-icon,
|
|
400
400
|
// .vxe-cell--edit-icon,
|
|
401
|
-
// .vxe-cell-
|
|
401
|
+
// .vxe-cell-title-prefix-icon,
|
|
402
|
+
// .vxe-cell-title-suffix-icon,
|
|
402
403
|
// .vxe-cell--title {
|
|
403
404
|
// vertical-align: middle;
|
|
404
405
|
// }
|
|
@@ -406,10 +407,12 @@
|
|
|
406
407
|
margin-right: 0.1em;
|
|
407
408
|
}
|
|
408
409
|
.vxe-cell--edit-icon,
|
|
409
|
-
.vxe-cell-
|
|
410
|
+
.vxe-cell-title-prefix-icon,
|
|
411
|
+
.vxe-cell-title-suffix-icon {
|
|
410
412
|
margin-right: 0.2em;
|
|
411
413
|
}
|
|
412
|
-
.vxe-cell-
|
|
414
|
+
.vxe-cell-title-prefix-icon,
|
|
415
|
+
.vxe-cell-title-suffix-icon {
|
|
413
416
|
cursor: help;
|
|
414
417
|
}
|
|
415
418
|
.vxe-resizable {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|