vxe-pc-ui 1.9.19 → 1.9.21
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/icon/style.css +1 -1
- package/es/pager/src/pager.js +7 -2
- package/es/print/src/print.js +1 -0
- package/es/print/src/util.js +2 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +9 -8
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +13 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/pager/src/pager.js +7 -2
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/print/src/print.js +1 -0
- package/lib/print/src/print.min.js +1 -1
- package/lib/print/src/util.js +2 -1
- package/lib/print/src/util.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -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/pager/src/pager.ts +7 -2
- package/packages/print/src/print.ts +1 -0
- package/packages/print/src/util.ts +4 -4
- package/packages/ui/index.ts +1 -0
- package/types/components/pager.d.ts +3 -0
- package/types/components/select.d.ts +1 -1
- package/types/components/table.d.ts +10 -3
- /package/es/icon/style/{iconfont.1717746850589.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/es/icon/style/{iconfont.1717746850589.woff → iconfont.1717772085052.woff} +0 -0
- /package/es/icon/style/{iconfont.1717746850589.woff2 → iconfont.1717772085052.woff2} +0 -0
- /package/es/{iconfont.1717746850589.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/es/{iconfont.1717746850589.woff → iconfont.1717772085052.woff} +0 -0
- /package/es/{iconfont.1717746850589.woff2 → iconfont.1717772085052.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1717746850589.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1717746850589.woff → iconfont.1717772085052.woff} +0 -0
- /package/lib/icon/style/{iconfont.1717746850589.woff2 → iconfont.1717772085052.woff2} +0 -0
- /package/lib/{iconfont.1717746850589.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/lib/{iconfont.1717746850589.woff → iconfont.1717772085052.woff} +0 -0
- /package/lib/{iconfont.1717746850589.woff2 → iconfont.1717772085052.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
26
26
|
var _dynamics = require("../dynamics");
|
|
27
27
|
var _utils = require("./src/utils");
|
|
28
28
|
var _log = require("./src/log");
|
|
29
|
-
_core.VxeUI.uiVersion = "1.9.
|
|
29
|
+
_core.VxeUI.uiVersion = "1.9.21";
|
|
30
30
|
_core.VxeUI.tableVersion = '';
|
|
31
31
|
_core.VxeUI.t = _core.VxeUI.getI18n;
|
|
32
32
|
_core.VxeUI._t = _utils.getFuncText;
|
|
@@ -159,6 +159,7 @@ _core.VxeUI.globalStore = globalStore;
|
|
|
159
159
|
optgroup: {},
|
|
160
160
|
option: {},
|
|
161
161
|
pager: {
|
|
162
|
+
pageSizePlacement: 'top'
|
|
162
163
|
// size: null,
|
|
163
164
|
// autoHidden: false,
|
|
164
165
|
// perfect: true,
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={config:!0,setup:!0,globalStore:!0},_core=(exports.config=config,exports.globalStore=exports.default=void 0,exports.setup=setup,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_utils=require("./src/utils"),_log=require("./src/log");function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion="1.9.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={config:!0,setup:!0,globalStore:!0},_core=(exports.config=config,exports.globalStore=exports.default=void 0,exports.setup=setup,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_utils=require("./src/utils"),_log=require("./src/log");function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion="1.9.21",_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup;const globalStore=exports.globalStore={},iconPrefix=(_core.VxeUI.globalStore=globalStore,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{},buttonGroup:{},card:{border:!0,padding:!0},checkbox:{},checkboxGroup:{},col:{},colgroup:{},collapse:{},collapsePane:{},column:{},drawer:{position:"left",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0},form:{validConfig:{showMessage:!0,autoPos:!0},tooltipConfig:{enterable:!0},titleAsterisk:!0},formDesign:{height:400,showPc:!0},formGather:{},formItem:{},formView:{},grid:{},icon:{},image:{},imagePreview:{},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},list:{scrollY:{enabled:!0,gt:100}},loading:{},modal:{top:15,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,storageKey:"VXE_MODAL_POSITION"},optgroup:{},option:{},pager:{pageSizePlacement:"top"},passwordInput:{},print:{},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},table:{},tabs:{},textarea:{},toolbar:{},tips:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300},tree:{indent:20,radioConfig:{strict:!0}},treeSelect:{},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"]}}),"vxe-icon-");(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-down rotate180",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-down",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_PWD:iconPrefix+"eye-fill",INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",INPUT_PREV_NUM:iconPrefix+"caret-up",INPUT_NEXT_NUM:iconPrefix+"caret-down",INPUT_DATE:iconPrefix+"calendar",INPUT_SEARCH:iconPrefix+"search",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_DELETE:iconPrefix+"delete",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_DELETE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right"});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
|
-
const version = `ui v${"1.9.
|
|
8
|
+
const version = `ui v${"1.9.21"}`;
|
|
9
9
|
const warnLog = exports.warnLog = _core.log.create('warn', version);
|
|
10
10
|
const errLog = exports.errLog = _core.log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v1.9.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v1.9.21",warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
|
package/package.json
CHANGED
|
@@ -36,6 +36,10 @@ export default defineComponent({
|
|
|
36
36
|
autoHidden: { type: Boolean as PropType<VxePagerPropTypes.AutoHidden>, default: () => getConfig().pager.autoHidden },
|
|
37
37
|
transfer: { type: Boolean as PropType<VxePagerPropTypes.Transfer>, default: () => getConfig().pager.transfer },
|
|
38
38
|
className: [String, Function] as PropType<VxePagerPropTypes.ClassName>,
|
|
39
|
+
pageSizePlacement: {
|
|
40
|
+
type: String as PropType<VxePagerPropTypes.PageSizePlacement>,
|
|
41
|
+
default: () => getConfig().pager.pageSizePlacement
|
|
42
|
+
},
|
|
39
43
|
// 自定义图标
|
|
40
44
|
iconPrevPage: String as PropType<VxePagerPropTypes.IconPrevPage>,
|
|
41
45
|
iconJumpPrev: String as PropType<VxePagerPropTypes.IconJumpPrev>,
|
|
@@ -290,9 +294,10 @@ export default defineComponent({
|
|
|
290
294
|
|
|
291
295
|
// 下一页
|
|
292
296
|
const renderNextPage = () => {
|
|
297
|
+
const pageCount = computePageCount.value
|
|
293
298
|
return h('button', {
|
|
294
299
|
class: ['vxe-pager--next-btn', {
|
|
295
|
-
'is--disabled': props.currentPage
|
|
300
|
+
'is--disabled': props.currentPage >= pageCount
|
|
296
301
|
}],
|
|
297
302
|
type: 'button',
|
|
298
303
|
title: getI18n('vxe.pager.nextPageTitle'),
|
|
@@ -390,7 +395,7 @@ export default defineComponent({
|
|
|
390
395
|
return h(VxeSelectComponent, {
|
|
391
396
|
class: 'vxe-pager--sizes',
|
|
392
397
|
modelValue: props.pageSize,
|
|
393
|
-
placement:
|
|
398
|
+
placement: props.pageSizePlacement,
|
|
394
399
|
transfer: props.transfer,
|
|
395
400
|
options: sizeList,
|
|
396
401
|
onChange: pageSizeEvent
|
|
@@ -80,6 +80,7 @@ export default defineComponent({
|
|
|
80
80
|
print () {
|
|
81
81
|
const elem = refElem.value
|
|
82
82
|
return printHtml(Object.assign({}, props, {
|
|
83
|
+
_pageBreaks: !!reactData.staticPageBreaks.length,
|
|
83
84
|
html: (elem ? elem.outerHTML : '') || props.html || props.content || ''
|
|
84
85
|
}))
|
|
85
86
|
}
|
|
@@ -42,14 +42,14 @@ function getExportBlobByString (str: string, type: string) {
|
|
|
42
42
|
|
|
43
43
|
const printMargin = 80
|
|
44
44
|
|
|
45
|
-
function createHtmlPage (opts: VxePrintProps, printHtml: string): string {
|
|
45
|
+
function createHtmlPage (opts: VxePrintProps & { _pageBreaks: boolean }, printHtml: string): string {
|
|
46
46
|
const { customStyle } = opts
|
|
47
47
|
return [
|
|
48
48
|
'<!DOCTYPE html><html>',
|
|
49
49
|
'<head>',
|
|
50
50
|
'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',
|
|
51
51
|
`<title>${opts.title}</title>`,
|
|
52
|
-
opts.pageBreaks && opts.pageBreaks.length ? '<style media="print">@page {size: auto;margin: 0mm;}</style>' : '',
|
|
52
|
+
opts._pageBreaks || (opts.pageBreaks && opts.pageBreaks.length) ? '<style media="print">@page {size: auto;margin: 0mm;}</style>' : '',
|
|
53
53
|
`<style>.vxe-print-slots{display: none;}.vxe-print-page-break.align--center{text-align:center;}.vxe-print-page-break.align--left{text-align:left;}.vxe-print-page-break.align--right{text-align:right;}.vxe-print-page-break--header-title{font-size:1.8em;text-align:center;line-height:${printMargin}px;}.vxe-print-page-break{page-break-before:always;display:flex;flex-direction:column;height:100vh;overflow:hidden;}.vxe-print-page-break--body{display:flex;flex-direction:row;flex-grow:1;overflow: hidden;}.vxe-print-page-break--left,.vxe-print-page-break--right{flex-shrink:0;width:${printMargin}px;height:100%;}.vxe-print-page-break--header,.vxe-print-page-break--footer{flex-shrink:0;height:${printMargin}px;width:100%;}.vxe-print-page-break--content{flex-grow: 1;overflow: hidden;}.vxe-print-page-break--footer-page-number{line-height:${printMargin}px;text-align:center;}</style>`,
|
|
54
54
|
`<style>${defaultHtmlStyle}</style>`,
|
|
55
55
|
customStyle ? `<style>${customStyle}</style>` : '',
|
|
@@ -61,7 +61,7 @@ function createHtmlPage (opts: VxePrintProps, printHtml: string): string {
|
|
|
61
61
|
].join('')
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
function handlePrint (opts: VxePrintProps, printHtml = '') {
|
|
64
|
+
function handlePrint (opts: VxePrintProps & { _pageBreaks: boolean }, printHtml = '') {
|
|
65
65
|
const { beforeMethod } = opts
|
|
66
66
|
if (beforeMethod) {
|
|
67
67
|
printHtml = beforeMethod({ content: printHtml, html: printHtml, options: opts }) || ''
|
|
@@ -132,7 +132,7 @@ function createPageBreak (opts: VxePrintProps) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export const printHtml: VxePrintDefines.PrintFunction = (options) => {
|
|
135
|
-
const opts = Object.assign({ customLayout: true }, options)
|
|
135
|
+
const opts = Object.assign({ _pageBreaks: false, customLayout: true }, options)
|
|
136
136
|
if (opts.sheetName) {
|
|
137
137
|
opts.title = opts.title || opts.sheetName
|
|
138
138
|
}
|
package/packages/ui/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref, ComponentPublicInstance, DefineComponent } from 'vue'
|
|
2
2
|
import { defineVxeComponent, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, ValueOf } from '@vxe-ui/core'
|
|
3
|
+
import { VxeSelectPropTypes } from './select'
|
|
3
4
|
|
|
4
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
6
|
|
|
@@ -45,6 +46,7 @@ export namespace VxePagerPropTypes {
|
|
|
45
46
|
export type ClassName = string | ((params: {
|
|
46
47
|
$pager: VxePagerConstructor
|
|
47
48
|
}) => string)
|
|
49
|
+
export type PageSizePlacement = VxeSelectPropTypes.Placement
|
|
48
50
|
export type IconPrevPage = string
|
|
49
51
|
export type IconJumpPrev = string
|
|
50
52
|
export type IconJumpNext = string
|
|
@@ -106,6 +108,7 @@ export type VxePagerProps = {
|
|
|
106
108
|
autoHidden?: VxePagerPropTypes.AutoHidden
|
|
107
109
|
transfer?: VxePagerPropTypes.Transfer
|
|
108
110
|
className?: VxePagerPropTypes.ClassName
|
|
111
|
+
pageSizePlacement?: VxePagerPropTypes.PageSizePlacement
|
|
109
112
|
/**
|
|
110
113
|
* 自定义图标
|
|
111
114
|
*/
|
|
@@ -36,7 +36,7 @@ export namespace VxeSelectPropTypes {
|
|
|
36
36
|
export type Multiple = boolean
|
|
37
37
|
export type MultiCharOverflow = number | string
|
|
38
38
|
export type PrefixIcon = string
|
|
39
|
-
export type Placement =
|
|
39
|
+
export type Placement = 'top' | 'bottom'
|
|
40
40
|
export type Options = VxeSelectDefines.SelectOptions[]
|
|
41
41
|
export type OptionProps = {
|
|
42
42
|
value?: string
|
|
@@ -338,6 +338,7 @@ export namespace VxeTablePropTypes {
|
|
|
338
338
|
mode?: 'simple' | 'popup' | '' | null
|
|
339
339
|
trigger?: string,
|
|
340
340
|
immediate?: boolean
|
|
341
|
+
placement?: 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'
|
|
341
342
|
/**
|
|
342
343
|
* 自定义列是否允许列选中的方法,该方法的返回值用来决定这一列的 checkbox 是否可以选中
|
|
343
344
|
*/
|
|
@@ -2983,6 +2984,11 @@ export interface TableMethods<DT = any> {
|
|
|
2983
2984
|
* 使表格失去焦点
|
|
2984
2985
|
*/
|
|
2985
2986
|
blur(): Promise<void>
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* 用于 custom-config,用于获取自定义列设置信息,用于服务端保持
|
|
2990
|
+
*/
|
|
2991
|
+
getCustomStoreData(): VxeTableDefines.CustomStoreData
|
|
2986
2992
|
}
|
|
2987
2993
|
export interface VxeTableMethods<D = any> extends TableMethods<D> { }
|
|
2988
2994
|
|
|
@@ -3000,7 +3006,6 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3000
3006
|
handleTableData(force?: boolean): Promise<any>
|
|
3001
3007
|
cacheRowMap(isSource?: boolean): void
|
|
3002
3008
|
cacheSourceMap(fullData: any[]): void
|
|
3003
|
-
getCustomStoreData(): VxeTableDefines.CustomStoreData
|
|
3004
3009
|
saveCustomResizable(isReset?: boolean): void
|
|
3005
3010
|
saveCustomSort(isReset?: boolean): void
|
|
3006
3011
|
saveCustomVisible(): void
|
|
@@ -3546,8 +3551,10 @@ export namespace VxeTableDefines {
|
|
|
3546
3551
|
target: HTMLDivElement
|
|
3547
3552
|
}
|
|
3548
3553
|
|
|
3554
|
+
export type CustomType = '' | 'confirm' | 'reset' | 'cancel' | 'close' | 'open'
|
|
3555
|
+
|
|
3549
3556
|
export interface CustomParams {
|
|
3550
|
-
type:
|
|
3557
|
+
type: CustomType
|
|
3551
3558
|
}
|
|
3552
3559
|
export interface CustomEventParams<D = any> extends TableEventParams<D>, CustomParams { }
|
|
3553
3560
|
|
|
@@ -3567,7 +3574,7 @@ export namespace VxeTableDefines {
|
|
|
3567
3574
|
export interface CustomStoreData {
|
|
3568
3575
|
resizableData: Record<string, number>
|
|
3569
3576
|
sortData: Record<string, number>
|
|
3570
|
-
visibleData: Record<string,
|
|
3577
|
+
visibleData: Record<string, boolean>
|
|
3571
3578
|
fixedData: Record<string, VxeColumnPropTypes.Fixed>
|
|
3572
3579
|
}
|
|
3573
3580
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|