vxe-pc-ui 3.18.6 → 3.18.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/date-picker/src/date-picker.js +2 -2
- package/es/icon/style.css +1 -1
- package/es/modal/index.js +8 -4
- package/es/modal/src/modal.js +20 -7
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/date-picker/src/date-picker.js +2 -2
- package/lib/date-picker/src/date-picker.min.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 +32 -14
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/index.js +8 -4
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +20 -6
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +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/date-picker/src/date-picker.ts +2 -2
- package/packages/modal/index.ts +8 -4
- package/packages/modal/src/modal.ts +21 -7
- package/types/components/column.d.ts +18 -18
- package/types/components/grid.d.ts +3 -3
- package/types/components/table-module/edit.d.ts +12 -12
- package/types/components/table-module/filter.d.ts +3 -3
- package/types/components/table-module/validator.d.ts +5 -5
- package/types/components/table-plugins/extend-cell-area.d.ts +32 -32
- package/types/components/table.d.ts +210 -210
- package/types/components/toolbar.d.ts +1 -1
- package/types/ui/interceptor.d.ts +5 -5
- package/types/ui/renderer.d.ts +12 -12
- /package/es/icon/{iconfont.1788860356220.ttf → iconfont.1788953833306.ttf} +0 -0
- /package/es/icon/{iconfont.1788860356220.woff → iconfont.1788953833306.woff} +0 -0
- /package/es/icon/{iconfont.1788860356220.woff2 → iconfont.1788953833306.woff2} +0 -0
- /package/es/{iconfont.1788860356220.ttf → iconfont.1788953833306.ttf} +0 -0
- /package/es/{iconfont.1788860356220.woff → iconfont.1788953833306.woff} +0 -0
- /package/es/{iconfont.1788860356220.woff2 → iconfont.1788953833306.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788860356220.ttf → iconfont.1788953833306.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788860356220.woff → iconfont.1788953833306.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788860356220.woff2 → iconfont.1788953833306.woff2} +0 -0
- /package/lib/{iconfont.1788860356220.ttf → iconfont.1788953833306.ttf} +0 -0
- /package/lib/{iconfont.1788860356220.woff → iconfont.1788953833306.woff} +0 -0
- /package/lib/{iconfont.1788860356220.woff2 → iconfont.1788953833306.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
26
26
|
});
|
|
27
27
|
var _dynamics = require("../dynamics");
|
|
28
28
|
var _log = require("./src/log");
|
|
29
|
-
var version = exports.version = "3.18.
|
|
29
|
+
var version = exports.version = "3.18.8";
|
|
30
30
|
_core.VxeUI.uiVersion = version;
|
|
31
31
|
_core.VxeUI.dynamicApp = _dynamics.dynamicApp;
|
|
32
32
|
function config(options) {
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,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")),_log=require("./src/log"),version=exports.version="3.18.6";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=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},backtop:{showIcon:!0,showContent:!0,showTop:!0,showBottom:!0,shadow:!0,threshold:20},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0},showDropdownIcon:!0},buttonGroup:{},calendar:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1},card:{border:!0,padding:!0},carousel:{height:200,loop:!0,interval:5e3},carouselItem:{},cascader:{showFullLabel:!0,treeConfig:{showIcon:!0},filterConfig:{autoExpandMode:"first"}},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},contextMenu:{autoLocate:!0},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:!0,showConfirmButton:null},divider:{},drawer:{minWidth:40,minHeight:40,position:"right",showHeader:!0,border:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showErrorMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"],popupConfig:{}},image:{draggable:null,showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0,maskClosable:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{backtopConfig:{}},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{rowConfig:{contentField:"label"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:60}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,border:!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,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,negative:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0},tooltipConfig:{enterable:!0,enterDelay:0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},segmented:{},select:{emptyValue:null,multiCharOverflow:8,radioConfig:{showIcon:!0,trigger:"option"},checkboxConfig:{showIcon:!0,trigger:"option"},remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},splitter:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0},actionConfig:{autoHideButton:!0}},splitterPanel:{},slider:{max:100,min:0,tooltipConfig:{enterDelay:0}},space:{},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tableTransfer:{},tabs:{},tag:{},textEllipsis:{underline:!0},text:{copyConfig:{showMessage:!0}},textarea:{resize:"none"},timeline:{},timelineItem:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0,defaultPlacement:"top"},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5,previewImageConfig:{}},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});var iconPrefix="vxe-icon-",_default=((0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN_OPEN:iconPrefix+"arrow-down rotate180",BUTTON_DROPDOWN_CLOSE:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-right",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_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",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",TEXTAREA_CLEAR:iconPrefix+"error-circle-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",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",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_VALID_ERROR_ICON:iconPrefix+"warning-circle-fill",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",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",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE: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",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",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",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_DRAG:iconPrefix+"drag-handle",TREE_DRAG_STATUS_NODE:iconPrefix+"sort",TREE_DRAG_STATUS_SUB_NODE:iconPrefix+"add-sub",TREE_DRAG_DISABLED:iconPrefix+"no-drop",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",TAG_CLOSE:iconPrefix+"close",TAG_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right",BACKTOP_TOP:iconPrefix+"top",CONTEXT_MENU_OPTION_LOADING:iconPrefix+"spinner roll",CONTEXT_MENU_CHILDREN:iconPrefix+"arrow-right",CASCADER_NODE_OPEN:iconPrefix+"arrow-right",CASCADER_NODE_CLOSE:iconPrefix+"arrow-right",CASCADER_NODE_LOADED:iconPrefix+"spinner roll",LIST_DRAG:iconPrefix+"drag-handle",LIST_DRAG_STATUS_NODE:iconPrefix+"sort",LIST_DRAG_DISABLED:iconPrefix+"no-drop"}),exports.default=_core.VxeUI);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,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")),_log=require("./src/log"),version=exports.version="3.18.8";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=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},backtop:{showIcon:!0,showContent:!0,showTop:!0,showBottom:!0,shadow:!0,threshold:20},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0},showDropdownIcon:!0},buttonGroup:{},calendar:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1},card:{border:!0,padding:!0},carousel:{height:200,loop:!0,interval:5e3},carouselItem:{},cascader:{showFullLabel:!0,treeConfig:{showIcon:!0},filterConfig:{autoExpandMode:"first"}},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},contextMenu:{autoLocate:!0},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:!0,showConfirmButton:null},divider:{},drawer:{minWidth:40,minHeight:40,position:"right",showHeader:!0,border:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showErrorMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"],popupConfig:{}},image:{draggable:null,showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0,maskClosable:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{backtopConfig:{}},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{rowConfig:{contentField:"label"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:60}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,border:!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,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,negative:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0},tooltipConfig:{enterable:!0,enterDelay:0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},segmented:{},select:{emptyValue:null,multiCharOverflow:8,radioConfig:{showIcon:!0,trigger:"option"},checkboxConfig:{showIcon:!0,trigger:"option"},remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},splitter:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0},actionConfig:{autoHideButton:!0}},splitterPanel:{},slider:{max:100,min:0,tooltipConfig:{enterDelay:0}},space:{},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tableTransfer:{},tabs:{},tag:{},textEllipsis:{underline:!0},text:{copyConfig:{showMessage:!0}},textarea:{resize:"none"},timeline:{},timelineItem:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0,defaultPlacement:"top"},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5,previewImageConfig:{}},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});var iconPrefix="vxe-icon-",_default=((0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN_OPEN:iconPrefix+"arrow-down rotate180",BUTTON_DROPDOWN_CLOSE:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-right",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_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",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",TEXTAREA_CLEAR:iconPrefix+"error-circle-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",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",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_VALID_ERROR_ICON:iconPrefix+"warning-circle-fill",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",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",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE: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",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",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",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_DRAG:iconPrefix+"drag-handle",TREE_DRAG_STATUS_NODE:iconPrefix+"sort",TREE_DRAG_STATUS_SUB_NODE:iconPrefix+"add-sub",TREE_DRAG_DISABLED:iconPrefix+"no-drop",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",TAG_CLOSE:iconPrefix+"close",TAG_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right",BACKTOP_TOP:iconPrefix+"top",CONTEXT_MENU_OPTION_LOADING:iconPrefix+"spinner roll",CONTEXT_MENU_CHILDREN:iconPrefix+"arrow-right",CASCADER_NODE_OPEN:iconPrefix+"arrow-right",CASCADER_NODE_CLOSE:iconPrefix+"arrow-right",CASCADER_NODE_LOADED:iconPrefix+"spinner roll",LIST_DRAG:iconPrefix+"drag-handle",LIST_DRAG_STATUS_NODE:iconPrefix+"sort",LIST_DRAG_DISABLED:iconPrefix+"no-drop"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.createComponentLog = createComponentLog;
|
|
|
7
7
|
exports.warnLog = exports.errLog = void 0;
|
|
8
8
|
var _core = require("@vxe-ui/core");
|
|
9
9
|
var log = _core.VxeUI.log;
|
|
10
|
-
var uiVersion = "ui v".concat("3.18.
|
|
10
|
+
var uiVersion = "ui v".concat("3.18.8");
|
|
11
11
|
function createComponentLog(name) {
|
|
12
12
|
var tableVersion = _core.VxeUI.tableVersion ? "table v".concat(_core.VxeUI.tableVersion) : '';
|
|
13
13
|
var ganttVersion = _core.VxeUI.ganttVersion ? "gantt v".concat(_core.VxeUI.ganttVersion) : '';
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,uiVersion="ui v".concat("3.18.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,uiVersion="ui v".concat("3.18.8");function createComponentLog(e){var r=_core.VxeUI.tableVersion?"table v".concat(_core.VxeUI.tableVersion):"",o=_core.VxeUI.ganttVersion?"gantt v".concat(_core.VxeUI.ganttVersion):"",n=_core.VxeUI.designVersion?"design v".concat(_core.VxeUI.designVersion):"",r=[uiVersion,r,o,n].filter(function(e){return e}).join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}var warnLog=exports.warnLog=log.create("warn",uiVersion),errLog=exports.errLog=log.create("error",uiVersion);
|
package/package.json
CHANGED
|
@@ -1917,10 +1917,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1917
1917
|
const { type, multiple, maskedConfig } = props
|
|
1918
1918
|
if (isEnableConf(maskedConfig)) {
|
|
1919
1919
|
if (multiple) {
|
|
1920
|
-
errLog('vxe.error.notSupportProp', ['multiple', '
|
|
1920
|
+
errLog('vxe.error.notSupportProp', ['multiple', 'masked-config.enabled=true', 'masked-config.enabled=false'])
|
|
1921
1921
|
}
|
|
1922
1922
|
if (!maskedTypes.includes(type)) {
|
|
1923
|
-
warnLog('vxe.error.notSupportProp', ['
|
|
1923
|
+
warnLog('vxe.error.notSupportProp', ['masked-config.enabled=true', `type=${type}`, `type=${maskedTypes.join('|')}`])
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
$xeDatePicker.updateModelValue()
|
package/packages/modal/index.ts
CHANGED
|
@@ -83,7 +83,8 @@ function openAlert (content: VxeModalPropTypes.Content | VxeModalDefines.ModalOp
|
|
|
83
83
|
type: 'alert',
|
|
84
84
|
lockScroll: true,
|
|
85
85
|
showHeader: true,
|
|
86
|
-
showFooter: true
|
|
86
|
+
showFooter: true,
|
|
87
|
+
fullscreen: false
|
|
87
88
|
}, content, title, options)
|
|
88
89
|
}
|
|
89
90
|
|
|
@@ -93,7 +94,8 @@ function openConfirm (content: VxeModalPropTypes.Content | VxeModalDefines.Modal
|
|
|
93
94
|
status: 'question',
|
|
94
95
|
lockScroll: true,
|
|
95
96
|
showHeader: true,
|
|
96
|
-
showFooter: true
|
|
97
|
+
showFooter: true,
|
|
98
|
+
fullscreen: false
|
|
97
99
|
}, content, title, options)
|
|
98
100
|
}
|
|
99
101
|
|
|
@@ -103,7 +105,8 @@ function openMessage (content: VxeModalPropTypes.Content | VxeModalDefines.Modal
|
|
|
103
105
|
mask: false,
|
|
104
106
|
lockView: false,
|
|
105
107
|
lockScroll: false,
|
|
106
|
-
showHeader: false
|
|
108
|
+
showHeader: false,
|
|
109
|
+
fullscreen: false
|
|
107
110
|
}, content, '', options)
|
|
108
111
|
}
|
|
109
112
|
|
|
@@ -116,7 +119,8 @@ function openNotification (content: VxeModalPropTypes.Content | VxeModalDefines.
|
|
|
116
119
|
showHeader: true,
|
|
117
120
|
draggable: false,
|
|
118
121
|
position: 'top-right',
|
|
119
|
-
width: 320
|
|
122
|
+
width: 320,
|
|
123
|
+
fullscreen: false
|
|
120
124
|
}, content, title, options)
|
|
121
125
|
}
|
|
122
126
|
|
|
@@ -307,7 +307,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
307
307
|
const $xeModal = this
|
|
308
308
|
const props = $xeModal
|
|
309
309
|
|
|
310
|
-
|
|
310
|
+
const { type } = props
|
|
311
|
+
return type === 'message' || type === 'notification'
|
|
312
|
+
},
|
|
313
|
+
computeIsModal () {
|
|
314
|
+
const $xeModal = this
|
|
315
|
+
const props = $xeModal
|
|
316
|
+
|
|
317
|
+
return props.type === 'modal'
|
|
311
318
|
},
|
|
312
319
|
computeIsMinimizeStatus () {
|
|
313
320
|
const $xeModal = this
|
|
@@ -451,7 +458,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
451
458
|
const $xeModal = this
|
|
452
459
|
const reactData = $xeModal.reactData
|
|
453
460
|
|
|
454
|
-
|
|
461
|
+
const { visible } = reactData
|
|
462
|
+
const isModal = $xeModal.computeIsModal
|
|
463
|
+
if (!isModal || !visible) {
|
|
455
464
|
return Promise.resolve({
|
|
456
465
|
status: false
|
|
457
466
|
})
|
|
@@ -462,7 +471,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
462
471
|
const $xeModal = this
|
|
463
472
|
const reactData = $xeModal.reactData
|
|
464
473
|
|
|
465
|
-
|
|
474
|
+
const { visible } = reactData
|
|
475
|
+
const isModal = $xeModal.computeIsModal
|
|
476
|
+
if (!isModal || !visible) {
|
|
466
477
|
return Promise.resolve({
|
|
467
478
|
status: false
|
|
468
479
|
})
|
|
@@ -473,7 +484,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
473
484
|
const $xeModal = this
|
|
474
485
|
const reactData = $xeModal.reactData
|
|
475
486
|
|
|
476
|
-
|
|
487
|
+
const { visible } = reactData
|
|
488
|
+
const isModal = $xeModal.computeIsModal
|
|
489
|
+
if (!isModal || !visible) {
|
|
477
490
|
return Promise.resolve({
|
|
478
491
|
status: false
|
|
479
492
|
})
|
|
@@ -963,9 +976,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
963
976
|
const reactData = $xeModal.reactData
|
|
964
977
|
const internalData = $xeModal.internalData
|
|
965
978
|
|
|
966
|
-
const { remember, showFooter, appendTo } = props
|
|
979
|
+
const { remember, showFooter, fullscreen, appendTo } = props
|
|
967
980
|
const { initialized, visible } = reactData
|
|
968
981
|
const isMsg = $xeModal.computeIsMsg
|
|
982
|
+
const isModal = $xeModal.computeIsModal
|
|
969
983
|
const btnTransfer = $xeModal.computeBtnTransfer
|
|
970
984
|
if (!initialized) {
|
|
971
985
|
reactData.initialized = true
|
|
@@ -984,7 +998,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
984
998
|
setTimeout(() => {
|
|
985
999
|
reactData.contentVisible = true
|
|
986
1000
|
$xeModal.$nextTick(() => {
|
|
987
|
-
if (!
|
|
1001
|
+
if (!(isModal && fullscreen)) {
|
|
988
1002
|
$xeModal.recalculate()
|
|
989
1003
|
}
|
|
990
1004
|
if (showFooter) {
|
|
@@ -1016,7 +1030,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1016
1030
|
if ($xeModal.hasPosStorage()) {
|
|
1017
1031
|
$xeModal.restorePosStorage()
|
|
1018
1032
|
} else {
|
|
1019
|
-
if (
|
|
1033
|
+
if (isModal && fullscreen) {
|
|
1020
1034
|
$xeModal.$nextTick(() => $xeModal.handleMaximize())
|
|
1021
1035
|
} else {
|
|
1022
1036
|
$xeModal.recalculate()
|
|
@@ -56,7 +56,7 @@ export namespace VxeColumnPropTypes {
|
|
|
56
56
|
export type FooterFormatter<D = any> = ((params: {
|
|
57
57
|
cellValue: any
|
|
58
58
|
itemValue: any
|
|
59
|
-
column: VxeTableDefines.ColumnInfo
|
|
59
|
+
column: VxeTableDefines.ColumnInfo
|
|
60
60
|
row: any
|
|
61
61
|
items: any[]
|
|
62
62
|
_columnIndex: number
|
|
@@ -65,7 +65,7 @@ export namespace VxeColumnPropTypes {
|
|
|
65
65
|
export type Sortable = boolean
|
|
66
66
|
export type SortBy<D = any> = string | ((params: {
|
|
67
67
|
row: D
|
|
68
|
-
column: VxeTableDefines.ColumnInfo
|
|
68
|
+
column: VxeTableDefines.ColumnInfo
|
|
69
69
|
}) => string | number)
|
|
70
70
|
export type SortType = 'auto' | 'string' | 'number' | null
|
|
71
71
|
|
|
@@ -91,21 +91,21 @@ export namespace VxeColumnPropTypes {
|
|
|
91
91
|
option: VxeTableDefines.FilterOption
|
|
92
92
|
cellValue: any
|
|
93
93
|
row: D
|
|
94
|
-
column: VxeTableDefines.ColumnInfo
|
|
94
|
+
column: VxeTableDefines.ColumnInfo
|
|
95
95
|
}
|
|
96
96
|
export type FilterMethod<D = any> = (params: FilterMethodParams<D>) => boolean
|
|
97
97
|
|
|
98
98
|
interface FilterResetMethodParams<D = any> {
|
|
99
99
|
$table: VxeTableConstructor<D>
|
|
100
100
|
options: VxeTableDefines.FilterOption[]
|
|
101
|
-
column: VxeTableDefines.ColumnInfo
|
|
101
|
+
column: VxeTableDefines.ColumnInfo
|
|
102
102
|
}
|
|
103
103
|
export type FilterResetMethod<D = any> = (params: FilterResetMethodParams<D>) => void
|
|
104
104
|
|
|
105
105
|
interface FilterRecoverMethodParams<D = any> {
|
|
106
106
|
$table: VxeTableConstructor<D>
|
|
107
107
|
option: VxeTableDefines.FilterOption
|
|
108
|
-
column: VxeTableDefines.ColumnInfo
|
|
108
|
+
column: VxeTableDefines.ColumnInfo
|
|
109
109
|
}
|
|
110
110
|
export type FilterRecoverMethod<D = any> = (params: FilterRecoverMethodParams<D>) => void
|
|
111
111
|
|
|
@@ -174,14 +174,14 @@ export namespace VxeColumnPropTypes {
|
|
|
174
174
|
interface ExportMethodParams<D = any> {
|
|
175
175
|
$table: VxeTableConstructor<D>
|
|
176
176
|
row: D
|
|
177
|
-
column: VxeTableDefines.ColumnInfo
|
|
177
|
+
column: VxeTableDefines.ColumnInfo
|
|
178
178
|
options: VxeTablePropTypes.ExportHandleOptions
|
|
179
179
|
}
|
|
180
180
|
export type ExportMethod<D = any> = (params: ExportMethodParams<D>) => string | number
|
|
181
181
|
|
|
182
182
|
interface HeaderExportParams<D = any> {
|
|
183
183
|
$table: VxeTableConstructor<D>
|
|
184
|
-
column: VxeTableDefines.ColumnInfo
|
|
184
|
+
column: VxeTableDefines.ColumnInfo
|
|
185
185
|
options: VxeTablePropTypes.ExportHandleOptions
|
|
186
186
|
}
|
|
187
187
|
export type HeaderExportMethod<D = any> = (params: HeaderExportParams<D>) => string | number
|
|
@@ -197,7 +197,7 @@ export namespace VxeColumnPropTypes {
|
|
|
197
197
|
*/
|
|
198
198
|
itemIndex: number
|
|
199
199
|
row: any
|
|
200
|
-
column: VxeTableDefines.ColumnInfo
|
|
200
|
+
column: VxeTableDefines.ColumnInfo
|
|
201
201
|
_columnIndex: number
|
|
202
202
|
options: VxeTablePropTypes.ExportHandleOptions
|
|
203
203
|
}
|
|
@@ -281,7 +281,7 @@ export namespace VxeColumnPropTypes {
|
|
|
281
281
|
optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
|
|
282
282
|
autoFocus?: boolean | string
|
|
283
283
|
autoSelect?: boolean
|
|
284
|
-
defaultValue?: ((params: { column: VxeTableDefines.ColumnInfo
|
|
284
|
+
defaultValue?: ((params: { column: VxeTableDefines.ColumnInfo }) => any) | null | undefined | string | number | RegExp | object | any[] | Date
|
|
285
285
|
immediate?: boolean
|
|
286
286
|
content?: string
|
|
287
287
|
placeholder?: string
|
|
@@ -668,7 +668,7 @@ export namespace VxeColumnDefines {
|
|
|
668
668
|
export interface CellFormatterParams<D = any> {
|
|
669
669
|
$table: VxeTableConstructor
|
|
670
670
|
cellValue: any
|
|
671
|
-
column: VxeTableDefines.ColumnInfo
|
|
671
|
+
column: VxeTableDefines.ColumnInfo
|
|
672
672
|
row: D
|
|
673
673
|
}
|
|
674
674
|
|
|
@@ -677,7 +677,7 @@ export namespace VxeColumnDefines {
|
|
|
677
677
|
$grid: VxeGridConstructor<D> | null | undefined
|
|
678
678
|
isCut: boolean
|
|
679
679
|
row: D
|
|
680
|
-
column: VxeTableDefines.ColumnInfo
|
|
680
|
+
column: VxeTableDefines.ColumnInfo
|
|
681
681
|
cellValue: any
|
|
682
682
|
}
|
|
683
683
|
|
|
@@ -685,7 +685,7 @@ export namespace VxeColumnDefines {
|
|
|
685
685
|
$table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
|
|
686
686
|
$grid: VxeGridConstructor<D> | null | undefined
|
|
687
687
|
row: D,
|
|
688
|
-
column: VxeTableDefines.ColumnInfo
|
|
688
|
+
column: VxeTableDefines.ColumnInfo
|
|
689
689
|
cellValue: any
|
|
690
690
|
clipData: {
|
|
691
691
|
text?: string
|
|
@@ -698,7 +698,7 @@ export namespace VxeColumnDefines {
|
|
|
698
698
|
$grid: VxeGridConstructor<D> | null | undefined
|
|
699
699
|
isCut: boolean
|
|
700
700
|
row: D,
|
|
701
|
-
column: VxeTableDefines.ColumnInfo
|
|
701
|
+
column: VxeTableDefines.ColumnInfo
|
|
702
702
|
cellValue: any
|
|
703
703
|
clipData: {
|
|
704
704
|
text?: string
|
|
@@ -718,7 +718,7 @@ export namespace VxeColumnSlotTypes {
|
|
|
718
718
|
$panel: any
|
|
719
719
|
column: {
|
|
720
720
|
filters: VxeTableDefines.FilterOption[]
|
|
721
|
-
} & VxeTableDefines.ColumnInfo
|
|
721
|
+
} & VxeTableDefines.ColumnInfo
|
|
722
722
|
columnIndex: number
|
|
723
723
|
$columnIndex: number
|
|
724
724
|
$rowIndex: number
|
|
@@ -731,7 +731,7 @@ export namespace VxeColumnSlotTypes {
|
|
|
731
731
|
export interface FooterSlotParams<D = any> {
|
|
732
732
|
row: D
|
|
733
733
|
rowIndex: number
|
|
734
|
-
column: VxeTableDefines.ColumnInfo
|
|
734
|
+
column: VxeTableDefines.ColumnInfo
|
|
735
735
|
columnIndex: number
|
|
736
736
|
_columnIndex: number
|
|
737
737
|
$columnIndex: number
|
|
@@ -764,18 +764,18 @@ export namespace VxeColumnSlotTypes {
|
|
|
764
764
|
|
|
765
765
|
export interface HeaderTooltipSlotParams<D = any> {
|
|
766
766
|
$rowIndex: number
|
|
767
|
-
column: VxeTableDefines.ColumnInfo
|
|
767
|
+
column: VxeTableDefines.ColumnInfo
|
|
768
768
|
tooltipContent: string
|
|
769
769
|
}
|
|
770
770
|
export interface TooltipSlotParams<D = any> {
|
|
771
771
|
row: D
|
|
772
|
-
column: VxeTableDefines.ColumnInfo
|
|
772
|
+
column: VxeTableDefines.ColumnInfo
|
|
773
773
|
tooltipContent: string
|
|
774
774
|
}
|
|
775
775
|
export interface FooterTooltipSlotParams<D = any> {
|
|
776
776
|
row: any
|
|
777
777
|
$rowIndex: number
|
|
778
|
-
column: VxeTableDefines.ColumnInfo
|
|
778
|
+
column: VxeTableDefines.ColumnInfo
|
|
779
779
|
tooltipContent: string
|
|
780
780
|
}
|
|
781
781
|
}
|
|
@@ -64,7 +64,7 @@ export namespace VxeGridPropTypes {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
interface ProxyAjaxQuerySortCheckedParams<D = any> {
|
|
67
|
-
column: VxeTableDefines.ColumnInfo
|
|
67
|
+
column: VxeTableDefines.ColumnInfo
|
|
68
68
|
order: string
|
|
69
69
|
sortBy: string
|
|
70
70
|
field: string
|
|
@@ -351,7 +351,7 @@ export namespace VxeGridPropTypes {
|
|
|
351
351
|
$table: VxeTableConstructor<D>
|
|
352
352
|
$grid: VxeGridConstructor<D> | null | undefined
|
|
353
353
|
$gantt: VxeGanttConstructor<D> | null | undefined
|
|
354
|
-
column: VxeTableDefines.ColumnInfo
|
|
354
|
+
column: VxeTableDefines.ColumnInfo
|
|
355
355
|
}): void
|
|
356
356
|
[key: string]: any
|
|
357
357
|
|
|
@@ -1109,7 +1109,7 @@ export namespace VxeGridSlotTypes {
|
|
|
1109
1109
|
/**
|
|
1110
1110
|
* 当前列对象
|
|
1111
1111
|
*/
|
|
1112
|
-
column: VxeTableDefines.ColumnInfo
|
|
1112
|
+
column: VxeTableDefines.ColumnInfo
|
|
1113
1113
|
/**
|
|
1114
1114
|
* 相对于 columns 中的索引,等同于 getTColumnIndex(column)
|
|
1115
1115
|
*/
|
|
@@ -79,7 +79,7 @@ export interface TableEditMethods<D = any> {
|
|
|
79
79
|
*/
|
|
80
80
|
getActiveRecord(): {
|
|
81
81
|
row: D
|
|
82
|
-
column: VxeTableDefines.ColumnInfo
|
|
82
|
+
column: VxeTableDefines.ColumnInfo
|
|
83
83
|
/**
|
|
84
84
|
* 请使用 getRowIndex(row)
|
|
85
85
|
* @deprecated
|
|
@@ -112,7 +112,7 @@ export interface TableEditMethods<D = any> {
|
|
|
112
112
|
*/
|
|
113
113
|
getEditRecord(): {
|
|
114
114
|
row: D
|
|
115
|
-
column: VxeTableDefines.ColumnInfo
|
|
115
|
+
column: VxeTableDefines.ColumnInfo
|
|
116
116
|
/**
|
|
117
117
|
* 请使用 getRowIndex(row)
|
|
118
118
|
* @deprecated
|
|
@@ -144,14 +144,14 @@ export interface TableEditMethods<D = any> {
|
|
|
144
144
|
*/
|
|
145
145
|
getEditCell(): {
|
|
146
146
|
row: D
|
|
147
|
-
column: VxeTableDefines.ColumnInfo
|
|
147
|
+
column: VxeTableDefines.ColumnInfo
|
|
148
148
|
} | null
|
|
149
149
|
/**
|
|
150
150
|
* 用于 mouse-config.selected,获取选中的单元格信息
|
|
151
151
|
*/
|
|
152
152
|
getSelectedCell(): {
|
|
153
153
|
row: D
|
|
154
|
-
column: VxeTableDefines.ColumnInfo
|
|
154
|
+
column: VxeTableDefines.ColumnInfo
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
157
|
* 请使用 clearEdit()
|
|
@@ -184,24 +184,24 @@ export interface TableEditMethods<D = any> {
|
|
|
184
184
|
/**
|
|
185
185
|
* 用于 edit-config,激活行编辑并默认激活第一个列,也可以指定列;如果第二个参数为 true,则默认自动激活第一个可编辑列;也可以传指定列
|
|
186
186
|
*/
|
|
187
|
-
setEditRow(row: any, fieldOrColumn?: boolean | string | VxeTableDefines.ColumnInfo
|
|
187
|
+
setEditRow(row: any, fieldOrColumn?: boolean | string | VxeTableDefines.ColumnInfo | null, options?: {
|
|
188
188
|
isClear?: boolean
|
|
189
189
|
}): Promise<void>
|
|
190
190
|
/**
|
|
191
191
|
* 请使用 setEditCell
|
|
192
192
|
* @deprecated
|
|
193
193
|
*/
|
|
194
|
-
setActiveCell(row: any, fieldOrColumn: string | VxeTableDefines.ColumnInfo
|
|
194
|
+
setActiveCell(row: any, fieldOrColumn: string | VxeTableDefines.ColumnInfo): Promise<void>
|
|
195
195
|
/**
|
|
196
196
|
* 用于 edit-config,激活单元格编辑
|
|
197
197
|
*/
|
|
198
|
-
setEditCell(row: any, fieldOrColumn: string | VxeTableDefines.ColumnInfo
|
|
198
|
+
setEditCell(row: any, fieldOrColumn: string | VxeTableDefines.ColumnInfo | null, options?: {
|
|
199
199
|
isClear?: boolean
|
|
200
200
|
}): Promise<void>
|
|
201
201
|
/**
|
|
202
202
|
* 用于 mouse-config.mouse-config,选中某个单元格
|
|
203
203
|
*/
|
|
204
|
-
setSelectCell(row: any, fieldOrColumn: string | VxeTableDefines.ColumnInfo
|
|
204
|
+
setSelectCell(row: any, fieldOrColumn: string | VxeTableDefines.ColumnInfo): Promise<void>
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
export interface TableEditPrivateMethods<D = any> {
|
|
@@ -210,7 +210,7 @@ export interface TableEditPrivateMethods<D = any> {
|
|
|
210
210
|
*/
|
|
211
211
|
handleEdit(params: {
|
|
212
212
|
$table: VxeTableConstructor<D>
|
|
213
|
-
column: VxeTableDefines.ColumnInfo
|
|
213
|
+
column: VxeTableDefines.ColumnInfo
|
|
214
214
|
columnIndex: number
|
|
215
215
|
_columnIndex: number
|
|
216
216
|
$columnIndex: number
|
|
@@ -230,7 +230,7 @@ export interface TableEditPrivateMethods<D = any> {
|
|
|
230
230
|
*/
|
|
231
231
|
handleCellFocus(cell: HTMLElement, params: {
|
|
232
232
|
$table: VxeTableConstructor<D>
|
|
233
|
-
column: VxeTableDefines.ColumnInfo
|
|
233
|
+
column: VxeTableDefines.ColumnInfo
|
|
234
234
|
row: D
|
|
235
235
|
}): HTMLInputElement | null
|
|
236
236
|
/**
|
|
@@ -238,7 +238,7 @@ export interface TableEditPrivateMethods<D = any> {
|
|
|
238
238
|
*/
|
|
239
239
|
handleFocus(params: {
|
|
240
240
|
$table: VxeTableConstructor<D>
|
|
241
|
-
column: VxeTableDefines.ColumnInfo
|
|
241
|
+
column: VxeTableDefines.ColumnInfo
|
|
242
242
|
row: D
|
|
243
243
|
cell: HTMLElement
|
|
244
244
|
}, evnt?: Event | null): void
|
|
@@ -247,7 +247,7 @@ export interface TableEditPrivateMethods<D = any> {
|
|
|
247
247
|
*/
|
|
248
248
|
handleSelected(params: {
|
|
249
249
|
$table: VxeTableConstructor<D>
|
|
250
|
-
column: VxeTableDefines.ColumnInfo
|
|
250
|
+
column: VxeTableDefines.ColumnInfo
|
|
251
251
|
columnIndex: number
|
|
252
252
|
_columnIndex: number
|
|
253
253
|
$columnIndex: number
|
|
@@ -32,15 +32,15 @@ export interface TableFilterMethods<D = any> {
|
|
|
32
32
|
* 手动弹出筛选
|
|
33
33
|
* @param fieldOrColumn
|
|
34
34
|
*/
|
|
35
|
-
openFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo
|
|
35
|
+
openFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo):Promise<void>
|
|
36
36
|
/**
|
|
37
37
|
* 用于 filters,修改筛选列表,update 是否同时更新数据,如果不传,则可以手动调用 updateData() 更新数据;如果需要同时触发对应的事件,请使用 setFilterByEvent
|
|
38
38
|
*/
|
|
39
|
-
setFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo
|
|
39
|
+
setFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo, options: VxeColumnPropTypes.Filters, update?: boolean): Promise<void>
|
|
40
40
|
/**
|
|
41
41
|
* 手动清空筛选条件;如果需要同时触发对应的事件,请使用 clearFilterByEvent
|
|
42
42
|
*/
|
|
43
|
-
clearFilter(column?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo
|
|
43
|
+
clearFilter(column?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo | null): Promise<void>
|
|
44
44
|
/**
|
|
45
45
|
* 用于在自定义面板中使用,手动确认筛选
|
|
46
46
|
*/
|
|
@@ -7,7 +7,7 @@ export interface TableValidatorMethods<D = any> {
|
|
|
7
7
|
/**
|
|
8
8
|
* 手动清除校验
|
|
9
9
|
*/
|
|
10
|
-
clearValidate(rows?: any, fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo
|
|
10
|
+
clearValidate(rows?: any, fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo | VxeColumnPropTypes.Field[] | VxeTableDefines.ColumnInfo[]): Promise<void>
|
|
11
11
|
/**
|
|
12
12
|
* 完整校验,默认校验当前表格数据,和 validate 的区别就是默认校验当前表格数据并且给有效数据中的每一行进行校验
|
|
13
13
|
* @param rows 指定行
|
|
@@ -26,19 +26,19 @@ export interface TableValidatorMethods<D = any> {
|
|
|
26
26
|
* @param rows 指定行
|
|
27
27
|
* @param fieldOrColumn 指定字段
|
|
28
28
|
*/
|
|
29
|
-
fullValidateField(rows?: boolean | object | any[], fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo
|
|
29
|
+
fullValidateField(rows?: boolean | object | any[], fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo | VxeColumnPropTypes.Field[] | VxeTableDefines.ColumnInfo[]): Promise<VxeTableDefines.ValidatorErrorMapParams<D>>
|
|
30
30
|
/**
|
|
31
31
|
* 快速校验,默认校验当前表格数据,如果存在记录不通过的记录,则返回不再继续校验(异步校验除外);
|
|
32
32
|
* 如果第一个参数为 true 则校验当前表格数据,如果指定 row 或 rows 则校验指定一行或多行,如果不指定数据,则默认只校验临时变动的数据,例如新增或修改。返回一个 promise
|
|
33
33
|
* @param rows 指定行
|
|
34
34
|
* @param fieldOrColumn 指定字段
|
|
35
35
|
*/
|
|
36
|
-
validateField(rows?: boolean | object | any[], fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo
|
|
36
|
+
validateField(rows?: boolean | object | any[], fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo | VxeColumnPropTypes.Field[] | VxeTableDefines.ColumnInfo[]): Promise<VxeTableDefines.ValidatorErrorMapParams<D>>
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface TableValidatorPrivateMethods<D = any> {
|
|
40
|
-
validCellRules(type: any, row: any, column: VxeTableDefines.ColumnInfo
|
|
41
|
-
hasCellRules(type: any, row: any, column: VxeTableDefines.ColumnInfo
|
|
40
|
+
validCellRules(type: any, row: any, column: VxeTableDefines.ColumnInfo, val?: any): Promise<any>
|
|
41
|
+
hasCellRules(type: any, row: any, column: VxeTableDefines.ColumnInfo): boolean
|
|
42
42
|
triggerValidate(type: any): Promise<any>
|
|
43
43
|
showValidTooltip(params: any): void
|
|
44
44
|
}
|