vxe-pc-ui 3.3.73 → 3.3.75
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/drawer/src/drawer.js +43 -5
- package/es/icon/style.css +1 -1
- package/es/modal/src/modal.js +39 -4
- 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/drawer/src/drawer.js +42 -6
- package/lib/drawer/src/drawer.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 +82 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +38 -3
- 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 +2 -2
- package/packages/drawer/src/drawer.ts +49 -5
- package/packages/modal/src/modal.ts +45 -4
- package/types/components/table.d.ts +184 -18
- /package/es/icon/{iconfont.1736406716025.ttf → iconfont.1736688685691.ttf} +0 -0
- /package/es/icon/{iconfont.1736406716025.woff → iconfont.1736688685691.woff} +0 -0
- /package/es/icon/{iconfont.1736406716025.woff2 → iconfont.1736688685691.woff2} +0 -0
- /package/es/{iconfont.1736406716025.ttf → iconfont.1736688685691.ttf} +0 -0
- /package/es/{iconfont.1736406716025.woff → iconfont.1736688685691.woff} +0 -0
- /package/es/{iconfont.1736406716025.woff2 → iconfont.1736688685691.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1736406716025.ttf → iconfont.1736688685691.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1736406716025.woff → iconfont.1736688685691.woff} +0 -0
- /package/lib/icon/style/{iconfont.1736406716025.woff2 → iconfont.1736688685691.woff2} +0 -0
- /package/lib/{iconfont.1736406716025.ttf → iconfont.1736688685691.ttf} +0 -0
- /package/lib/{iconfont.1736406716025.woff → iconfont.1736688685691.woff} +0 -0
- /package/lib/{iconfont.1736406716025.woff2 → iconfont.1736688685691.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.3.
|
|
29
|
+
var version = exports.version = "3.3.75";
|
|
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.3.73";function config(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return"development"===process.env.NODE_ENV&&(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:{},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!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:{},checkbox:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},countdown:{},colorPicker:{type:"hex",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,shortcutConfig:{align:"left",mode:"text",autoClose:!0}},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showMessage:!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"]},image:{showPreview:!0,showPrintButton:!0,maskClosable:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},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},listView:{},list:{scrollY:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},modal:{top:16,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,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,controls:!0},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,scrollY:{enabled:!0,gt:100,oSize:2}},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},scrollX:{enabled:!0,gt:0},scrollY:{mode:"wheel",enabled:!0,gt:0}}},tabs:{},tag:{},textEllipsis:{},text:{},textarea:{resize:"none"},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},tree:{indent:20,minHeight:60,radioConfig:{strict:!0}},treeSelect:{treeConfig:{radioConfig:{},checkboxConfig:{}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{}});var iconPrefix="vxe-icon-",_default=((0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",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",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",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",NUMBER_INPUT_PREV_NUM:iconPrefix+"caret-up",NUMBER_INPUT_NEXT_NUM:iconPrefix+"caret-down",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_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_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_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_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",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_COPY:iconPrefix+"copy"}),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.3.75";function config(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return"development"===process.env.NODE_ENV&&(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:{},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!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:{},checkbox:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},countdown:{},colorPicker:{type:"hex",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,shortcutConfig:{align:"left",mode:"text",autoClose:!0}},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showMessage:!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"]},image:{showPreview:!0,showPrintButton:!0,maskClosable:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},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},listView:{},list:{scrollY:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},modal:{top:16,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,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,controls:!0},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,scrollY:{enabled:!0,gt:100,oSize:2}},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},scrollX:{enabled:!0,gt:0},scrollY:{mode:"wheel",enabled:!0,gt:0}}},tabs:{},tag:{},textEllipsis:{},text:{},textarea:{resize:"none"},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},tree:{indent:20,minHeight:60,radioConfig:{strict:!0}},treeSelect:{treeConfig:{radioConfig:{},checkboxConfig:{}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{}});var iconPrefix="vxe-icon-",_default=((0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",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",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",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",NUMBER_INPUT_PREV_NUM:iconPrefix+"caret-up",NUMBER_INPUT_NEXT_NUM:iconPrefix+"caret-down",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_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_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_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_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",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_COPY:iconPrefix+"copy"}),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
|
-
var version = "ui v".concat("3.3.
|
|
8
|
+
var version = "ui v".concat("3.3.75");
|
|
9
9
|
var warnLog = exports.warnLog = _core.log.create('warn', version);
|
|
10
10
|
var errLog = exports.errLog = _core.log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),version="ui v".concat("3.3.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),version="ui v".concat("3.3.75"),warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-pc-ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.75",
|
|
4
4
|
"description": "A vue based PC component library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"style": "lib/style.css",
|
|
26
26
|
"typings": "types/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@vxe-ui/core": "^3.0.
|
|
28
|
+
"@vxe-ui/core": "^3.0.26"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
@@ -8,7 +8,8 @@ import { getSlotVNs } from '../../ui/src/vn'
|
|
|
8
8
|
import VxeButtonComponent from '../../button/src/button'
|
|
9
9
|
import VxeLoadingComponent from '../../loading/index'
|
|
10
10
|
|
|
11
|
-
import type { VxeDrawerPropTypes, DrawerReactData, VxeDrawerEmits, ValueOf, VxeDrawerConstructor, VxeButtonConstructor, DrawerEventTypes } from '../../../types'
|
|
11
|
+
import type { VxeDrawerPropTypes, DrawerReactData, VxeDrawerEmits, VxeDrawerMethods, ValueOf, VxeDrawerConstructor, VxeButtonConstructor, DrawerEventTypes, VxeModalConstructor, VxeModalMethods, VxeFormConstructor, VxeFormPrivateMethods } from '../../../types'
|
|
12
|
+
import type { VxeTableConstructor, VxeTablePrivateMethods } from '../../../types/components/table'
|
|
12
13
|
|
|
13
14
|
export const allActiveDrawers: VxeDrawerConstructor[] = []
|
|
14
15
|
|
|
@@ -118,6 +119,21 @@ export default defineVxeComponent({
|
|
|
118
119
|
},
|
|
119
120
|
slots: Object as PropType<VxeDrawerPropTypes.Slots>
|
|
120
121
|
},
|
|
122
|
+
inject: {
|
|
123
|
+
$xeModal: {
|
|
124
|
+
default: null
|
|
125
|
+
},
|
|
126
|
+
$xeParentDrawer: {
|
|
127
|
+
from: '$xeDrawer',
|
|
128
|
+
default: null
|
|
129
|
+
},
|
|
130
|
+
$xeTable: {
|
|
131
|
+
default: null
|
|
132
|
+
},
|
|
133
|
+
$xeForm: {
|
|
134
|
+
default: null
|
|
135
|
+
}
|
|
136
|
+
},
|
|
121
137
|
provide () {
|
|
122
138
|
const $xeDrawer = this
|
|
123
139
|
return {
|
|
@@ -139,7 +155,31 @@ export default defineVxeComponent({
|
|
|
139
155
|
computed: {
|
|
140
156
|
...({} as {
|
|
141
157
|
computeSize(): DrawerReactData
|
|
158
|
+
$xeModal(): (VxeModalConstructor & VxeModalMethods) | null
|
|
159
|
+
$xeParentDrawer(): (VxeDrawerConstructor & VxeDrawerMethods) | null
|
|
160
|
+
$xeTable(): (VxeTableConstructor & VxeTablePrivateMethods) | null
|
|
161
|
+
$xeForm(): (VxeFormConstructor & VxeFormPrivateMethods) | null
|
|
142
162
|
}),
|
|
163
|
+
computeBtnTransfer () {
|
|
164
|
+
const $xeSelect = this
|
|
165
|
+
const props = $xeSelect
|
|
166
|
+
const $xeTable = $xeSelect.$xeTable
|
|
167
|
+
const $xeModal = $xeSelect.$xeModal
|
|
168
|
+
const $xeParentDrawer = $xeSelect.$xeParentDrawer
|
|
169
|
+
const $xeForm = $xeSelect.$xeForm
|
|
170
|
+
|
|
171
|
+
const { transfer } = props
|
|
172
|
+
if (transfer === null) {
|
|
173
|
+
const globalTransfer = getConfig().select.transfer
|
|
174
|
+
if (XEUtils.isBoolean(globalTransfer)) {
|
|
175
|
+
return globalTransfer
|
|
176
|
+
}
|
|
177
|
+
if ($xeTable || $xeModal || $xeParentDrawer || $xeForm) {
|
|
178
|
+
return true
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return transfer
|
|
182
|
+
},
|
|
143
183
|
computeDragType () {
|
|
144
184
|
const $xeDrawer = this
|
|
145
185
|
const props = $xeDrawer
|
|
@@ -289,8 +329,13 @@ export default defineVxeComponent({
|
|
|
289
329
|
|
|
290
330
|
const { showFooter } = props
|
|
291
331
|
const { initialized, visible } = reactData
|
|
332
|
+
const btnTransfer = $xeDrawer.computeBtnTransfer
|
|
292
333
|
if (!initialized) {
|
|
293
334
|
reactData.initialized = true
|
|
335
|
+
if (btnTransfer) {
|
|
336
|
+
const panelElem = $xeDrawer.$refs.refElem as HTMLDivElement
|
|
337
|
+
document.body.appendChild(panelElem)
|
|
338
|
+
}
|
|
294
339
|
}
|
|
295
340
|
if (!visible) {
|
|
296
341
|
reactData.visible = true
|
|
@@ -700,11 +745,10 @@ export default defineVxeComponent({
|
|
|
700
745
|
},
|
|
701
746
|
beforeDestroy () {
|
|
702
747
|
const $xeDrawer = this
|
|
703
|
-
const reactData = $xeDrawer.reactData
|
|
704
748
|
|
|
705
|
-
const
|
|
706
|
-
if (
|
|
707
|
-
|
|
749
|
+
const panelElem = $xeDrawer.$refs.refElem as HTMLDivElement
|
|
750
|
+
if (panelElem && panelElem.parentNode) {
|
|
751
|
+
panelElem.parentNode.removeChild(panelElem)
|
|
708
752
|
}
|
|
709
753
|
globalEvents.off($xeDrawer, 'keydown')
|
|
710
754
|
},
|
|
@@ -9,7 +9,8 @@ import VxeLoadingComponent from '../../loading/index'
|
|
|
9
9
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
10
10
|
import { warnLog, errLog } from '../../ui/src/log'
|
|
11
11
|
|
|
12
|
-
import type { VxeModalConstructor, VxeModalPropTypes, ModalReactData, ModalInternalData, ModalEventTypes, VxeModalEmits, VxeComponentSizeType, VxeComponentPermissionInfo, ValueOf, VxeButtonConstructor } from '../../../types'
|
|
12
|
+
import type { VxeModalConstructor, VxeModalPropTypes, ModalReactData, ModalInternalData, VxeModalMethods, ModalEventTypes, VxeModalEmits, VxeComponentSizeType, VxeComponentPermissionInfo, ValueOf, VxeButtonConstructor, VxeDrawerConstructor, VxeDrawerMethods, VxeFormConstructor, VxeFormPrivateMethods } from '../../../types'
|
|
13
|
+
import type { VxeTableConstructor, VxeTablePrivateMethods } from '../../../types/components/table'
|
|
13
14
|
|
|
14
15
|
export const allActiveModals: VxeModalConstructor[] = []
|
|
15
16
|
const msgQueue: VxeModalConstructor[] = []
|
|
@@ -186,6 +187,21 @@ export default defineVxeComponent({
|
|
|
186
187
|
default: () => getConfig().modal.animat
|
|
187
188
|
}
|
|
188
189
|
},
|
|
190
|
+
inject: {
|
|
191
|
+
$xeParentModal: {
|
|
192
|
+
from: '$xeModal',
|
|
193
|
+
default: null
|
|
194
|
+
},
|
|
195
|
+
$xeDrawer: {
|
|
196
|
+
default: null
|
|
197
|
+
},
|
|
198
|
+
$xeTable: {
|
|
199
|
+
default: null
|
|
200
|
+
},
|
|
201
|
+
$xeForm: {
|
|
202
|
+
default: null
|
|
203
|
+
}
|
|
204
|
+
},
|
|
189
205
|
provide () {
|
|
190
206
|
const $xeModal = this
|
|
191
207
|
return {
|
|
@@ -219,7 +235,31 @@ export default defineVxeComponent({
|
|
|
219
235
|
...({} as {
|
|
220
236
|
computePermissionInfo(): VxeComponentPermissionInfo
|
|
221
237
|
computeSize(): VxeComponentSizeType
|
|
238
|
+
$xeParentModal(): (VxeModalConstructor & VxeModalMethods) | null
|
|
239
|
+
$xeDrawer(): (VxeDrawerConstructor & VxeDrawerMethods) | null
|
|
240
|
+
$xeTable(): (VxeTableConstructor & VxeTablePrivateMethods) | null
|
|
241
|
+
$xeForm(): (VxeFormConstructor & VxeFormPrivateMethods) | null
|
|
222
242
|
}),
|
|
243
|
+
computeBtnTransfer () {
|
|
244
|
+
const $xeSelect = this
|
|
245
|
+
const props = $xeSelect
|
|
246
|
+
const $xeTable = $xeSelect.$xeTable
|
|
247
|
+
const $xeParentModal = $xeSelect.$xeParentModal
|
|
248
|
+
const $xeDrawer = $xeSelect.$xeDrawer
|
|
249
|
+
const $xeForm = $xeSelect.$xeForm
|
|
250
|
+
|
|
251
|
+
const { transfer } = props
|
|
252
|
+
if (transfer === null) {
|
|
253
|
+
const globalTransfer = getConfig().select.transfer
|
|
254
|
+
if (XEUtils.isBoolean(globalTransfer)) {
|
|
255
|
+
return globalTransfer
|
|
256
|
+
}
|
|
257
|
+
if ($xeTable || $xeParentModal || $xeDrawer || $xeForm) {
|
|
258
|
+
return true
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return transfer
|
|
262
|
+
},
|
|
223
263
|
computeIsMsg () {
|
|
224
264
|
const $xeModal = this
|
|
225
265
|
const props = $xeModal
|
|
@@ -822,11 +862,12 @@ export default defineVxeComponent({
|
|
|
822
862
|
const { remember, showFooter } = props
|
|
823
863
|
const { initialized, visible } = reactData
|
|
824
864
|
const isMsg = $xeModal.computeIsMsg
|
|
865
|
+
const btnTransfer = $xeModal.computeBtnTransfer
|
|
825
866
|
if (!initialized) {
|
|
826
867
|
reactData.initialized = true
|
|
827
|
-
if (
|
|
828
|
-
const
|
|
829
|
-
document.body.appendChild(
|
|
868
|
+
if (btnTransfer) {
|
|
869
|
+
const panelElem = $xeModal.$refs.refElem as HTMLDivElement
|
|
870
|
+
document.body.appendChild(panelElem)
|
|
830
871
|
}
|
|
831
872
|
}
|
|
832
873
|
if (!visible) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode, CreateElement } from 'vue'
|
|
2
|
+
import { NormalizedScopedSlot } from 'vue/types/vnode'
|
|
2
3
|
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType, ValueOf, VxeGlobalConfig, VxeComponentStyleType, VxeComponentSlotType } from '@vxe-ui/core'
|
|
3
4
|
import { VxeColumnPropTypes, VxeColumnProps, VxeColumnSlotTypes } from './column'
|
|
4
5
|
import { VxeTableProDefines, VxeTableProEmits } from './table-plugins'
|
|
@@ -1129,6 +1130,37 @@ export namespace VxeTablePropTypes {
|
|
|
1129
1130
|
* 只对 mouse-config.extension 启用后有效,扩展区域时将自动识别数字规则进行计算
|
|
1130
1131
|
*/
|
|
1131
1132
|
extendByCalc?: boolean
|
|
1133
|
+
/**
|
|
1134
|
+
* 只对 mouse-config.extension 启用后有效,扩展区域的方向控制
|
|
1135
|
+
*/
|
|
1136
|
+
extendDirection?: boolean | {
|
|
1137
|
+
/**
|
|
1138
|
+
* 是否允许向上扩展
|
|
1139
|
+
*/
|
|
1140
|
+
top?: boolean
|
|
1141
|
+
/**
|
|
1142
|
+
* 是否允许向下扩展
|
|
1143
|
+
*/
|
|
1144
|
+
bottom?: boolean
|
|
1145
|
+
/**
|
|
1146
|
+
* 是否允许向左扩展
|
|
1147
|
+
*/
|
|
1148
|
+
left?: boolean
|
|
1149
|
+
/**
|
|
1150
|
+
* 是否允许向右扩展
|
|
1151
|
+
*/
|
|
1152
|
+
right?: boolean
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* 只对 mouse-config.extension 启用后有效,扩展区域之前的方法,可以通过返回 false 阻止扩展行为
|
|
1156
|
+
* @param params
|
|
1157
|
+
*/
|
|
1158
|
+
beforeExtendMethod?(params: VxeTableProDefines.CellAreaExtensionStartParams<D>): boolean
|
|
1159
|
+
/**
|
|
1160
|
+
* 只对 mouse-config.extension 启用后有效,扩展区域之后的方法
|
|
1161
|
+
* @param params
|
|
1162
|
+
*/
|
|
1163
|
+
afterExtendMethod?(params: VxeTableProDefines.CellAreaExtensionEndParams<D>): void
|
|
1132
1164
|
/**
|
|
1133
1165
|
* 当点击表格之外,是否自动清除单元格的选取状态
|
|
1134
1166
|
*/
|
|
@@ -1148,7 +1180,7 @@ export namespace VxeTablePropTypes {
|
|
|
1148
1180
|
column: VxeTableDefines.ColumnInfo<D>
|
|
1149
1181
|
} & VxeTableProDefines.ExtendCellAreaCalcBaseParams<D>): void
|
|
1150
1182
|
/**
|
|
1151
|
-
* 只对 extendByCopy | extendByCalc 启用后有效,自定义单元格扩展区域赋值之前的方法,可以通过返回 false
|
|
1183
|
+
* 只对 extendByCopy | extendByCalc 启用后有效,自定义单元格扩展区域赋值之前的方法,可以通过返回 false 阻止扩展赋值行为
|
|
1152
1184
|
* @param params
|
|
1153
1185
|
*/
|
|
1154
1186
|
beforeExtendSetMethod?(params: VxeTableProDefines.ExtendCellAreaCalcBaseParams<D>): boolean
|
|
@@ -1158,7 +1190,7 @@ export namespace VxeTablePropTypes {
|
|
|
1158
1190
|
*/
|
|
1159
1191
|
afterExtendSetMethod?(params: {
|
|
1160
1192
|
extendValues: any[][]
|
|
1161
|
-
} & VxeTableProDefines.ExtendCellAreaCalcBaseParams<D>):
|
|
1193
|
+
} & VxeTableProDefines.ExtendCellAreaCalcBaseParams<D>): void
|
|
1162
1194
|
}
|
|
1163
1195
|
export interface AreaOpts<D = any> extends AreaConfig<D> { }
|
|
1164
1196
|
|
|
@@ -1765,9 +1797,9 @@ export namespace VxeTablePropTypes {
|
|
|
1765
1797
|
|
|
1766
1798
|
export interface ScrollY {
|
|
1767
1799
|
/**
|
|
1768
|
-
*
|
|
1769
|
-
*
|
|
1770
|
-
*
|
|
1800
|
+
* 默认行为,无需设置
|
|
1801
|
+
* @deprecated
|
|
1802
|
+
* @private
|
|
1771
1803
|
*/
|
|
1772
1804
|
mode?: 'default' | 'wheel'
|
|
1773
1805
|
/**
|
|
@@ -1807,6 +1839,92 @@ export namespace VxeTablePropTypes {
|
|
|
1807
1839
|
oSize: number
|
|
1808
1840
|
}
|
|
1809
1841
|
|
|
1842
|
+
export interface VirtualXConfig {
|
|
1843
|
+
/**
|
|
1844
|
+
* 指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false
|
|
1845
|
+
*/
|
|
1846
|
+
gt?: number
|
|
1847
|
+
/**
|
|
1848
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)
|
|
1849
|
+
*/
|
|
1850
|
+
oSize?: number
|
|
1851
|
+
/**
|
|
1852
|
+
* 是否启用,支持局部/全局启用
|
|
1853
|
+
*/
|
|
1854
|
+
enabled?: boolean
|
|
1855
|
+
/**
|
|
1856
|
+
* 是否开启实时渲染,当单元格渲染量太大时应该关闭,避免卡顿
|
|
1857
|
+
*/
|
|
1858
|
+
immediate?: boolean
|
|
1859
|
+
/**
|
|
1860
|
+
* 当数据源被更改时,自动将横向滚动条滚动到左侧
|
|
1861
|
+
*/
|
|
1862
|
+
scrollToLeftOnChange?: boolean
|
|
1863
|
+
/**
|
|
1864
|
+
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
1865
|
+
*/
|
|
1866
|
+
threshold?: string | number
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
export interface VirtualYConfig {
|
|
1870
|
+
/**
|
|
1871
|
+
* 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false(注:启用纵向虚拟滚动之后将不能支持动态行高)
|
|
1872
|
+
*/
|
|
1873
|
+
gt?: number
|
|
1874
|
+
/**
|
|
1875
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)
|
|
1876
|
+
*/
|
|
1877
|
+
oSize?: number
|
|
1878
|
+
/**
|
|
1879
|
+
* 是否启用,支持局部/全局启用
|
|
1880
|
+
*/
|
|
1881
|
+
enabled?: boolean
|
|
1882
|
+
/**
|
|
1883
|
+
* 是否开启实时渲染,当单元格渲染量太大时应该关闭,避免卡顿
|
|
1884
|
+
*/
|
|
1885
|
+
immediate?: boolean
|
|
1886
|
+
/**
|
|
1887
|
+
* 当数据源被更改时,自动将纵向滚动条复原到顶部
|
|
1888
|
+
*/
|
|
1889
|
+
scrollToTopOnChange?: boolean
|
|
1890
|
+
/**
|
|
1891
|
+
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
1892
|
+
*/
|
|
1893
|
+
threshold?: string | number
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* 滚动条配置项
|
|
1898
|
+
*/
|
|
1899
|
+
export interface ScrollbarConfig {
|
|
1900
|
+
/**
|
|
1901
|
+
* 滚动宽度
|
|
1902
|
+
*/
|
|
1903
|
+
width?: number
|
|
1904
|
+
/**
|
|
1905
|
+
* 滚动宽度
|
|
1906
|
+
*/
|
|
1907
|
+
height?: number
|
|
1908
|
+
/**
|
|
1909
|
+
* 横向滚动条
|
|
1910
|
+
*/
|
|
1911
|
+
x?: {
|
|
1912
|
+
/**
|
|
1913
|
+
* 滚动显示位置
|
|
1914
|
+
*/
|
|
1915
|
+
position?: 'top' | 'bottom' | ''
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* 纵向滚动条
|
|
1919
|
+
*/
|
|
1920
|
+
y?: {
|
|
1921
|
+
/**
|
|
1922
|
+
* 滚动显示位置
|
|
1923
|
+
*/
|
|
1924
|
+
position?: 'left' | 'right' | ''
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1810
1928
|
export type Params = any
|
|
1811
1929
|
|
|
1812
1930
|
/**
|
|
@@ -2452,13 +2570,27 @@ export interface VxeTableProps<D = any> {
|
|
|
2452
2570
|
*/
|
|
2453
2571
|
loadingConfig?: VxeTablePropTypes.LoadingConfig
|
|
2454
2572
|
/**
|
|
2455
|
-
*
|
|
2573
|
+
* 已废弃,不建议使用,被 virtual-x-config 替换
|
|
2574
|
+
* @deprecated
|
|
2456
2575
|
*/
|
|
2457
2576
|
scrollX?: VxeTablePropTypes.ScrollX
|
|
2458
2577
|
/**
|
|
2459
|
-
*
|
|
2578
|
+
* 已废弃,不建议使用,被 virtual-y-config 替换
|
|
2579
|
+
* @deprecated
|
|
2460
2580
|
*/
|
|
2461
2581
|
scrollY?: VxeTablePropTypes.ScrollY
|
|
2582
|
+
/**
|
|
2583
|
+
* 横向虚拟滚动配置
|
|
2584
|
+
*/
|
|
2585
|
+
virtualXConfig?: VxeTablePropTypes.VirtualXConfig
|
|
2586
|
+
/**
|
|
2587
|
+
* 纵向虚拟滚动配置
|
|
2588
|
+
*/
|
|
2589
|
+
virtualYConfig?: VxeTablePropTypes.VirtualYConfig
|
|
2590
|
+
/**
|
|
2591
|
+
* 滚动条配置项
|
|
2592
|
+
*/
|
|
2593
|
+
scrollbarConfig?: VxeTablePropTypes.ScrollbarConfig
|
|
2462
2594
|
/**
|
|
2463
2595
|
* 自定义参数(可以用来存放一些自定义的数据)
|
|
2464
2596
|
*/
|
|
@@ -2530,9 +2662,13 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2530
2662
|
computeSize: VxeTablePropTypes.Size
|
|
2531
2663
|
computeTableId: string
|
|
2532
2664
|
computeValidOpts: VxeTablePropTypes.ValidOpts<D>
|
|
2533
|
-
|
|
2534
|
-
|
|
2665
|
+
computeVirtualXOpts: VxeTablePropTypes.VirtualXConfig
|
|
2666
|
+
computeVirtualYOpts: VxeTablePropTypes.VirtualYConfig
|
|
2667
|
+
computeScrollbarOpts: VxeTablePropTypes.ScrollbarConfig
|
|
2535
2668
|
computeColumnOpts: VxeTablePropTypes.ColumnOpts
|
|
2669
|
+
computeScrollXThreshold: number
|
|
2670
|
+
computeScrollYThreshold: number
|
|
2671
|
+
computeDefaultRowHeight: number
|
|
2536
2672
|
computeCellOpts: VxeTablePropTypes.CellConfig
|
|
2537
2673
|
computeRowOpts: VxeTablePropTypes.RowOpts
|
|
2538
2674
|
computeRowDragOpts: VxeTablePropTypes.RowDragConfig
|
|
@@ -2563,8 +2699,11 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2563
2699
|
computeTreeOpts: VxeTablePropTypes.TreeOpts<D>
|
|
2564
2700
|
computeEmptyOpts: VxeTablePropTypes.EmptyOpts
|
|
2565
2701
|
computeLoadingOpts: VxeTablePropTypes.LoadingOpts
|
|
2702
|
+
computeCellOffsetWidth: number
|
|
2566
2703
|
computeCustomOpts: VxeTablePropTypes.CustomOpts<D>
|
|
2567
2704
|
computeAutoWidthColumnList: VxeTableDefines.ColumnInfo<D>[]
|
|
2705
|
+
computeLeftFixedWidth: number
|
|
2706
|
+
computeRightFixedWidth: number
|
|
2568
2707
|
computeFixedColumnSize: number
|
|
2569
2708
|
computeIsMaxFixedColumn: boolean
|
|
2570
2709
|
computeIsAllCheckboxDisabled: boolean
|
|
@@ -2609,6 +2748,16 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2609
2748
|
x: boolean
|
|
2610
2749
|
y: boolean
|
|
2611
2750
|
}
|
|
2751
|
+
computeTableBorder: 'default' | 'full' | 'outer' | 'inner' | 'none'
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* @deprecated
|
|
2755
|
+
*/
|
|
2756
|
+
computeSXOpts: VxeTablePropTypes.SXOpts
|
|
2757
|
+
/**
|
|
2758
|
+
* @deprecated
|
|
2759
|
+
*/
|
|
2760
|
+
computeSYOpts: VxeTablePropTypes.SYOpts
|
|
2612
2761
|
}
|
|
2613
2762
|
export interface VxeTablePrivateComputed<D = any> extends TablePrivateComputed<D> { }
|
|
2614
2763
|
|
|
@@ -2844,11 +2993,11 @@ export interface TableReactData<D = any> {
|
|
|
2844
2993
|
isDragRowMove: Boolean
|
|
2845
2994
|
dragRow: any
|
|
2846
2995
|
isDragColMove: boolean
|
|
2847
|
-
dragCol:
|
|
2996
|
+
dragCol: VxeTableDefines.ColumnInfo | null
|
|
2848
2997
|
dragTipText: string
|
|
2849
2998
|
|
|
2850
2999
|
_isResize: boolean
|
|
2851
|
-
|
|
3000
|
+
isLoading: boolean
|
|
2852
3001
|
}
|
|
2853
3002
|
|
|
2854
3003
|
export interface TableInternalData<D = any> {
|
|
@@ -2858,17 +3007,22 @@ export interface TableInternalData<D = any> {
|
|
|
2858
3007
|
}
|
|
2859
3008
|
// 存放横向 X 虚拟滚动相关的信息
|
|
2860
3009
|
scrollXStore: {
|
|
3010
|
+
preloadSize: number
|
|
2861
3011
|
offsetSize: number
|
|
2862
3012
|
visibleSize: number
|
|
3013
|
+
visibleStartIndex: number
|
|
3014
|
+
visibleEndIndex: number
|
|
2863
3015
|
startIndex: number
|
|
2864
3016
|
endIndex: number
|
|
2865
3017
|
}
|
|
2866
3018
|
// 存放纵向 Y 虚拟滚动相关信息
|
|
2867
3019
|
scrollYStore: {
|
|
2868
3020
|
adaptive?: boolean
|
|
2869
|
-
|
|
3021
|
+
preloadSize: number
|
|
2870
3022
|
offsetSize: number
|
|
2871
3023
|
visibleSize: number
|
|
3024
|
+
visibleStartIndex: number
|
|
3025
|
+
visibleEndIndex: number
|
|
2872
3026
|
startIndex: number
|
|
2873
3027
|
endIndex: number
|
|
2874
3028
|
}
|
|
@@ -2938,6 +3092,8 @@ export interface TableInternalData<D = any> {
|
|
|
2938
3092
|
initStatus: boolean
|
|
2939
3093
|
isActivated: boolean
|
|
2940
3094
|
|
|
3095
|
+
keyCtxTimeout?: undefined | number
|
|
3096
|
+
|
|
2941
3097
|
// 刷新布局
|
|
2942
3098
|
rceTimeout?: undefined | number
|
|
2943
3099
|
rceRunTime?: undefined | number
|
|
@@ -2945,9 +3101,12 @@ export interface TableInternalData<D = any> {
|
|
|
2945
3101
|
// 滚动属性
|
|
2946
3102
|
intoRunScroll?: boolean
|
|
2947
3103
|
inVirtualScroll?: boolean
|
|
3104
|
+
inWheelScroll?: boolean
|
|
3105
|
+
|
|
3106
|
+
inHeaderScroll?: boolean
|
|
2948
3107
|
inBodyScroll?: boolean
|
|
2949
|
-
bodyScrollType?: '' | 'left' | 'right'
|
|
2950
3108
|
inFooterScroll?: boolean
|
|
3109
|
+
scrollRenderType?: '' | 'left' | 'right'
|
|
2951
3110
|
// 同步滚动
|
|
2952
3111
|
lcsTimeout?: undefined | number
|
|
2953
3112
|
lcsRunTime?: undefined | number
|
|
@@ -3714,7 +3873,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3714
3873
|
*/
|
|
3715
3874
|
getSetupOptions(): Required<VxeGlobalConfig>
|
|
3716
3875
|
updateAfterDataIndex(): void
|
|
3717
|
-
callSlot<T>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T, h: CreateElement): VxeComponentSlotType[]
|
|
3876
|
+
callSlot<T>(slotFunc: NormalizedScopedSlot | ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T, h: CreateElement): VxeComponentSlotType[]
|
|
3718
3877
|
getParentElem(): Element | null
|
|
3719
3878
|
getParentHeight(): number
|
|
3720
3879
|
getExcludeHeight(): number
|
|
@@ -3766,6 +3925,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3766
3925
|
triggerHeaderCellMousedownEvent(evnt: any, params: any): void
|
|
3767
3926
|
triggerCellMousedownEvent(evnt: MouseEvent, params: any): void
|
|
3768
3927
|
triggerCellMousedownEvent(evnt: any, params: any): void
|
|
3928
|
+
triggerCellMouseupEvent(evnt: MouseEvent): void
|
|
3769
3929
|
handleRowDragSwapEvent (evnt: DragEvent, isSyncRow: boolean | undefined, dragRow: any, prevDragRow: any, prevDragPos: '' | 'top' | 'bottom' | 'left' | 'right' | undefined, prevDragToChild: boolean | undefined): Promise<void>
|
|
3770
3930
|
handleRowDragDragstartEvent (evnt: DragEvent): void
|
|
3771
3931
|
handleRowDragDragendEvent(evnt: DragEvent): void
|
|
@@ -3790,6 +3950,10 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3790
3950
|
}): void
|
|
3791
3951
|
triggerScrollXEvent(evnt: Event): void
|
|
3792
3952
|
triggerScrollYEvent(evnt: Event): void
|
|
3953
|
+
triggerHeaderScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3954
|
+
triggerBodyScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3955
|
+
triggerFooterScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3956
|
+
triggerBodyWheelEvent(evnt: WheelEvent): void
|
|
3793
3957
|
scrollToTreeRow(row: any): Promise<any>
|
|
3794
3958
|
updateScrollYStatus(fullData?: any[]): boolean
|
|
3795
3959
|
updateScrollXSpace(): void
|
|
@@ -3859,6 +4023,7 @@ export type VxeTableEmits = [
|
|
|
3859
4023
|
'column-dragstart',
|
|
3860
4024
|
'column-dragover',
|
|
3861
4025
|
'column-dragend',
|
|
4026
|
+
'enter-append-row',
|
|
3862
4027
|
|
|
3863
4028
|
'edit-actived', // 已废弃
|
|
3864
4029
|
|
|
@@ -3866,6 +4031,7 @@ export type VxeTableEmits = [
|
|
|
3866
4031
|
'edit-disabled',
|
|
3867
4032
|
'valid-error',
|
|
3868
4033
|
'scroll',
|
|
4034
|
+
'scroll-boundary',
|
|
3869
4035
|
'custom',
|
|
3870
4036
|
|
|
3871
4037
|
...VxeTableProEmits
|
|
@@ -4102,19 +4268,19 @@ export namespace VxeTableDefines {
|
|
|
4102
4268
|
/**
|
|
4103
4269
|
* @private
|
|
4104
4270
|
*/
|
|
4105
|
-
renderHeader(params: CellRenderHeaderParams<D>): VNode[]
|
|
4271
|
+
renderHeader(h: CreateElement, params: CellRenderHeaderParams<D>): VNode[]
|
|
4106
4272
|
/**
|
|
4107
4273
|
* @private
|
|
4108
4274
|
*/
|
|
4109
|
-
renderCell(params: CellRenderCellParams<D>): VNode[]
|
|
4275
|
+
renderCell(h: CreateElement, params: CellRenderCellParams<D>): VNode[]
|
|
4110
4276
|
/**
|
|
4111
4277
|
* @private
|
|
4112
4278
|
*/
|
|
4113
|
-
renderData(params: CellRenderDataParams<D>): VNode[]
|
|
4279
|
+
renderData(h: CreateElement, params: CellRenderDataParams<D>): VNode[]
|
|
4114
4280
|
/**
|
|
4115
4281
|
* @private
|
|
4116
4282
|
*/
|
|
4117
|
-
renderFooter(params: CellRenderFooterParams<D>): VNode[]
|
|
4283
|
+
renderFooter(h: CreateElement, params: CellRenderFooterParams<D>): VNode[]
|
|
4118
4284
|
|
|
4119
4285
|
/**
|
|
4120
4286
|
* 获取列标题
|
|
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
|