vxe-pc-ui 3.3.21 → 3.3.22
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 +112 -4
- package/es/drawer/style.css +53 -0
- package/es/drawer/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- 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/es/vxe-drawer/style.css +53 -0
- package/es/vxe-drawer/style.min.css +1 -1
- package/lib/drawer/src/drawer.js +114 -2
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/drawer/style/style.css +53 -0
- package/lib/drawer/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +118 -4
- package/lib/index.umd.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/lib/vxe-drawer/style/style.css +53 -0
- package/lib/vxe-drawer/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/drawer/src/drawer.ts +116 -4
- package/styles/components/drawer.scss +59 -0
- package/types/components/drawer.d.ts +7 -7
- package/types/components/table.d.ts +5 -0
- /package/es/icon/{iconfont.1733449944743.ttf → iconfont.1733469460100.ttf} +0 -0
- /package/es/icon/{iconfont.1733449944743.woff → iconfont.1733469460100.woff} +0 -0
- /package/es/icon/{iconfont.1733449944743.woff2 → iconfont.1733469460100.woff2} +0 -0
- /package/es/{iconfont.1733449944743.ttf → iconfont.1733469460100.ttf} +0 -0
- /package/es/{iconfont.1733449944743.woff → iconfont.1733469460100.woff} +0 -0
- /package/es/{iconfont.1733449944743.woff2 → iconfont.1733469460100.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1733449944743.ttf → iconfont.1733469460100.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1733449944743.woff → iconfont.1733469460100.woff} +0 -0
- /package/lib/icon/style/{iconfont.1733449944743.woff2 → iconfont.1733469460100.woff2} +0 -0
- /package/lib/{iconfont.1733449944743.ttf → iconfont.1733469460100.ttf} +0 -0
- /package/lib/{iconfont.1733449944743.woff → iconfont.1733469460100.woff} +0 -0
- /package/lib/{iconfont.1733449944743.woff2 → iconfont.1733469460100.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -27,7 +27,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
27
27
|
var _dynamics = require("../dynamics");
|
|
28
28
|
var _utils = require("./src/utils");
|
|
29
29
|
var _log = require("./src/log");
|
|
30
|
-
var version = exports.version = "3.3.
|
|
30
|
+
var version = exports.version = "3.3.22";
|
|
31
31
|
_core.VxeUI.version = version;
|
|
32
32
|
_core.VxeUI.uiVersion = version;
|
|
33
33
|
_core.VxeUI.tableVersion = '';
|
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")),_utils=require("./src/utils"),_log=require("./src/log"),version=exports.version="3.3.21";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.version=version,_core.VxeUI.uiVersion=version,_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(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:{},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},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},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,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,imageStyle:{}},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"}),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")),_utils=require("./src/utils"),_log=require("./src/log"),version=exports.version="3.3.22";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.version=version,_core.VxeUI.uiVersion=version,_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(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:{},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},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},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,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,imageStyle:{}},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"}),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.22");
|
|
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.22"),warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
|
|
@@ -100,6 +100,25 @@
|
|
|
100
100
|
opacity: 0;
|
|
101
101
|
transition: all 0.3s ease-in-out;
|
|
102
102
|
}
|
|
103
|
+
.vxe-drawer--box.is--drag {
|
|
104
|
+
cursor: move;
|
|
105
|
+
transition: none;
|
|
106
|
+
}
|
|
107
|
+
.vxe-drawer--box.is--drag .vxe-modal--body:after,
|
|
108
|
+
.vxe-drawer--box.is--drag .vxe-modal--footer:after {
|
|
109
|
+
content: "";
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
left: 0;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
}
|
|
116
|
+
.vxe-drawer--box.is--drag .vxe-modal--body {
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
}
|
|
119
|
+
.vxe-drawer--box.is--drag .vxe-modal--body .vxe-modal--content {
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
}
|
|
103
122
|
|
|
104
123
|
.vxe-drawer--aside {
|
|
105
124
|
flex-shrink: 0;
|
|
@@ -203,6 +222,40 @@
|
|
|
203
222
|
padding: 0.4em 1em 0.8em 1em;
|
|
204
223
|
}
|
|
205
224
|
|
|
225
|
+
.vxe-drawer--resize .wl-resize,
|
|
226
|
+
.vxe-drawer--resize .wr-resize,
|
|
227
|
+
.vxe-drawer--resize .st-resize,
|
|
228
|
+
.vxe-drawer--resize .sb-resize {
|
|
229
|
+
position: absolute;
|
|
230
|
+
z-index: 100;
|
|
231
|
+
}
|
|
232
|
+
.vxe-drawer--resize .wl-resize,
|
|
233
|
+
.vxe-drawer--resize .wr-resize {
|
|
234
|
+
width: 8px;
|
|
235
|
+
height: 100%;
|
|
236
|
+
top: 0;
|
|
237
|
+
cursor: w-resize;
|
|
238
|
+
}
|
|
239
|
+
.vxe-drawer--resize .wl-resize {
|
|
240
|
+
left: -5px;
|
|
241
|
+
}
|
|
242
|
+
.vxe-drawer--resize .wr-resize {
|
|
243
|
+
right: -5px;
|
|
244
|
+
}
|
|
245
|
+
.vxe-drawer--resize .st-resize,
|
|
246
|
+
.vxe-drawer--resize .sb-resize {
|
|
247
|
+
width: 100%;
|
|
248
|
+
height: 8px;
|
|
249
|
+
left: 0;
|
|
250
|
+
cursor: s-resize;
|
|
251
|
+
}
|
|
252
|
+
.vxe-drawer--resize .st-resize {
|
|
253
|
+
top: -5px;
|
|
254
|
+
}
|
|
255
|
+
.vxe-drawer--resize .sb-resize {
|
|
256
|
+
bottom: -5px;
|
|
257
|
+
}
|
|
258
|
+
|
|
206
259
|
.vxe-drawer--wrapper {
|
|
207
260
|
font-size: var(--vxe-ui-font-size-default);
|
|
208
261
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-drawer--wrapper{display:none;position:fixed;top:0;left:0;line-height:1.5;width:calc(100% + 18px);height:calc(100% + 18px);color:var(--vxe-ui-font-color);font-family:var(--vxe-ui-font-family);outline:0}.vxe-drawer--wrapper.is--active{display:block}.vxe-drawer--wrapper.is--visible.is--mask:before{background-color:rgba(0,0,0,.5)}.vxe-drawer--wrapper.is--visible.pos--left .vxe-drawer--box{left:0}.vxe-drawer--wrapper.is--visible.pos--right .vxe-drawer--box{right:0}.vxe-drawer--wrapper.is--visible.pos--top .vxe-drawer--box{top:0}.vxe-drawer--wrapper.is--visible.pos--bottom .vxe-drawer--box{bottom:0}.vxe-drawer--wrapper.is--visible .vxe-drawer--box{opacity:1}.vxe-drawer--wrapper:not(.lock--view){pointer-events:none}.vxe-drawer--wrapper.lock--scroll{overflow:hidden}.vxe-drawer--wrapper:not(.lock--scroll){overflow:auto}.vxe-drawer--wrapper.is--mask:before,.vxe-drawer--wrapper.lock--view:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:auto}.vxe-drawer--wrapper.is--mask:before{background-color:rgba(0,0,0,0);transition:background-color .2s ease-in-out}.vxe-drawer--wrapper.pos--left .vxe-drawer--box{top:0;left:-100%;box-shadow:2px 0 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--right .vxe-drawer--box{top:0;right:-100%;box-shadow:-2px 0 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--top .vxe-drawer--box{top:-100%;left:0;box-shadow:0 2px 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--bottom .vxe-drawer--box{bottom:-100%;left:0;box-shadow:0 -2px 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--left .vxe-drawer--box,.vxe-drawer--wrapper.pos--right .vxe-drawer--box{width:30%;height:100%}.vxe-drawer--wrapper.pos--bottom .vxe-drawer--box,.vxe-drawer--wrapper.pos--top .vxe-drawer--box{width:100%;height:30%}.vxe-drawer--wrapper.is--padding .vxe-drawer--body-default{padding:.8em .6em}.vxe-drawer--wrapper.is--padding .vxe-drawer--body-default .vxe-drawer--status-wrapper{padding-right:.6em}.vxe-drawer--box{display:flex;flex-direction:row;position:fixed;background-color:var(--vxe-ui-layout-background-color);border:1px solid var(--vxe-ui-base-popup-border-color);text-align:left;pointer-events:auto;opacity:0;transition:all .3s ease-in-out}.vxe-drawer--aside{flex-shrink:0;overflow:auto;outline:0}.vxe-drawer--container{display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;outline:0}.vxe-drawer--content{flex-grow:1;white-space:pre-line}.vxe-drawer--body,.vxe-drawer--footer,.vxe-drawer--header{position:relative}.vxe-drawer--body{display:flex;flex-grow:1;overflow:auto;outline:0}.vxe-drawer--body .vxe-drawer--content{overflow:auto}.vxe-drawer--body-left,.vxe-drawer--body-right{flex-shrink:0;overflow:auto;outline:0}.vxe-drawer--body-default{display:flex;flex-grow:1;overflow:auto;outline:0}.vxe-drawer--header{display:flex;flex-direction:row;flex-shrink:0;font-size:1.1em;font-weight:700;border-bottom:1px solid var(--vxe-ui-base-popup-border-color)}.vxe-drawer--header.is--ellipsis .vxe-drawer--header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-drawer--header-title{flex-grow:1;padding:.6em 0 .6em 1em}.vxe-drawer--header-right{display:flex;flex-direction:row;flex-shrink:0;padding:.6em 1em .6em 0}.vxe-drawer--footer-wrapper{display:flex;flex-direction:row}.vxe-drawer--footer-wrapper .vxe-drawer--footer-left{flex-grow:1;text-align:left}.vxe-drawer--footer-wrapper .vxe-drawer--footer-right{flex-shrink:0}.vxe-drawer--close-btn{cursor:pointer;margin-left:.6em}.vxe-drawer--close-btn:hover{color:var(--vxe-ui-font-primary-color)}.vxe-drawer--footer{flex-shrink:0;text-align:right;padding:.4em 1em .8em 1em}.vxe-drawer--wrapper{font-size:var(--vxe-ui-font-size-default)}.vxe-drawer--wrapper.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-drawer--wrapper.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-drawer--wrapper.size--mini{font-size:var(--vxe-ui-font-size-mini)}
|
|
1
|
+
.vxe-drawer--wrapper{display:none;position:fixed;top:0;left:0;line-height:1.5;width:calc(100% + 18px);height:calc(100% + 18px);color:var(--vxe-ui-font-color);font-family:var(--vxe-ui-font-family);outline:0}.vxe-drawer--wrapper.is--active{display:block}.vxe-drawer--wrapper.is--visible.is--mask:before{background-color:rgba(0,0,0,.5)}.vxe-drawer--wrapper.is--visible.pos--left .vxe-drawer--box{left:0}.vxe-drawer--wrapper.is--visible.pos--right .vxe-drawer--box{right:0}.vxe-drawer--wrapper.is--visible.pos--top .vxe-drawer--box{top:0}.vxe-drawer--wrapper.is--visible.pos--bottom .vxe-drawer--box{bottom:0}.vxe-drawer--wrapper.is--visible .vxe-drawer--box{opacity:1}.vxe-drawer--wrapper:not(.lock--view){pointer-events:none}.vxe-drawer--wrapper.lock--scroll{overflow:hidden}.vxe-drawer--wrapper:not(.lock--scroll){overflow:auto}.vxe-drawer--wrapper.is--mask:before,.vxe-drawer--wrapper.lock--view:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:auto}.vxe-drawer--wrapper.is--mask:before{background-color:rgba(0,0,0,0);transition:background-color .2s ease-in-out}.vxe-drawer--wrapper.pos--left .vxe-drawer--box{top:0;left:-100%;box-shadow:2px 0 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--right .vxe-drawer--box{top:0;right:-100%;box-shadow:-2px 0 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--top .vxe-drawer--box{top:-100%;left:0;box-shadow:0 2px 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--bottom .vxe-drawer--box{bottom:-100%;left:0;box-shadow:0 -2px 10px 0 rgba(0,0,0,.2)}.vxe-drawer--wrapper.pos--left .vxe-drawer--box,.vxe-drawer--wrapper.pos--right .vxe-drawer--box{width:30%;height:100%}.vxe-drawer--wrapper.pos--bottom .vxe-drawer--box,.vxe-drawer--wrapper.pos--top .vxe-drawer--box{width:100%;height:30%}.vxe-drawer--wrapper.is--padding .vxe-drawer--body-default{padding:.8em .6em}.vxe-drawer--wrapper.is--padding .vxe-drawer--body-default .vxe-drawer--status-wrapper{padding-right:.6em}.vxe-drawer--box{display:flex;flex-direction:row;position:fixed;background-color:var(--vxe-ui-layout-background-color);border:1px solid var(--vxe-ui-base-popup-border-color);text-align:left;pointer-events:auto;opacity:0;transition:all .3s ease-in-out}.vxe-drawer--box.is--drag{cursor:move;transition:none}.vxe-drawer--box.is--drag .vxe-modal--body:after,.vxe-drawer--box.is--drag .vxe-modal--footer:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.vxe-drawer--box.is--drag .vxe-modal--body{overflow:hidden}.vxe-drawer--box.is--drag .vxe-modal--body .vxe-modal--content{overflow:hidden}.vxe-drawer--aside{flex-shrink:0;overflow:auto;outline:0}.vxe-drawer--container{display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;outline:0}.vxe-drawer--content{flex-grow:1;white-space:pre-line}.vxe-drawer--body,.vxe-drawer--footer,.vxe-drawer--header{position:relative}.vxe-drawer--body{display:flex;flex-grow:1;overflow:auto;outline:0}.vxe-drawer--body .vxe-drawer--content{overflow:auto}.vxe-drawer--body-left,.vxe-drawer--body-right{flex-shrink:0;overflow:auto;outline:0}.vxe-drawer--body-default{display:flex;flex-grow:1;overflow:auto;outline:0}.vxe-drawer--header{display:flex;flex-direction:row;flex-shrink:0;font-size:1.1em;font-weight:700;border-bottom:1px solid var(--vxe-ui-base-popup-border-color)}.vxe-drawer--header.is--ellipsis .vxe-drawer--header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-drawer--header-title{flex-grow:1;padding:.6em 0 .6em 1em}.vxe-drawer--header-right{display:flex;flex-direction:row;flex-shrink:0;padding:.6em 1em .6em 0}.vxe-drawer--footer-wrapper{display:flex;flex-direction:row}.vxe-drawer--footer-wrapper .vxe-drawer--footer-left{flex-grow:1;text-align:left}.vxe-drawer--footer-wrapper .vxe-drawer--footer-right{flex-shrink:0}.vxe-drawer--close-btn{cursor:pointer;margin-left:.6em}.vxe-drawer--close-btn:hover{color:var(--vxe-ui-font-primary-color)}.vxe-drawer--footer{flex-shrink:0;text-align:right;padding:.4em 1em .8em 1em}.vxe-drawer--resize .sb-resize,.vxe-drawer--resize .st-resize,.vxe-drawer--resize .wl-resize,.vxe-drawer--resize .wr-resize{position:absolute;z-index:100}.vxe-drawer--resize .wl-resize,.vxe-drawer--resize .wr-resize{width:8px;height:100%;top:0;cursor:w-resize}.vxe-drawer--resize .wl-resize{left:-5px}.vxe-drawer--resize .wr-resize{right:-5px}.vxe-drawer--resize .sb-resize,.vxe-drawer--resize .st-resize{width:100%;height:8px;left:0;cursor:s-resize}.vxe-drawer--resize .st-resize{top:-5px}.vxe-drawer--resize .sb-resize{bottom:-5px}.vxe-drawer--wrapper{font-size:var(--vxe-ui-font-size-default)}.vxe-drawer--wrapper.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-drawer--wrapper.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-drawer--wrapper.size--mini{font-size:var(--vxe-ui-font-size-mini)}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { defineVxeComponent } from '../../ui/src/comp'
|
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { globalMixins, getIcon, getConfig, getI18n, globalEvents, GLOBAL_EVENT_KEYS, createEvent, renderEmptyElement } from '../../ui'
|
|
5
5
|
import { getLastZIndex, nextZIndex, getFuncText } from '../../ui/src/utils'
|
|
6
|
-
import { toCssUnit } from '../../ui/src/dom'
|
|
6
|
+
import { getDomNode, toCssUnit } from '../../ui/src/dom'
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
8
8
|
import VxeButtonComponent from '../../button/src/button'
|
|
9
9
|
import VxeLoadingComponent from '../../loading/index'
|
|
@@ -95,6 +95,10 @@ export default defineVxeComponent({
|
|
|
95
95
|
},
|
|
96
96
|
width: [Number, String] as PropType<VxeDrawerPropTypes.Width>,
|
|
97
97
|
height: [Number, String] as PropType<VxeDrawerPropTypes.Height>,
|
|
98
|
+
resize: {
|
|
99
|
+
type: Boolean as PropType<VxeDrawerPropTypes.Resize>,
|
|
100
|
+
default: () => getConfig().drawer.resize
|
|
101
|
+
},
|
|
98
102
|
zIndex: Number as PropType<VxeDrawerPropTypes.ZIndex>,
|
|
99
103
|
transfer: {
|
|
100
104
|
type: Boolean as PropType<VxeDrawerPropTypes.Transfer>,
|
|
@@ -135,7 +139,21 @@ export default defineVxeComponent({
|
|
|
135
139
|
computed: {
|
|
136
140
|
...({} as {
|
|
137
141
|
computeSize(): DrawerReactData
|
|
138
|
-
})
|
|
142
|
+
}),
|
|
143
|
+
computeDragType () {
|
|
144
|
+
const $xeDrawer = this
|
|
145
|
+
const props = $xeDrawer
|
|
146
|
+
|
|
147
|
+
switch (props.position) {
|
|
148
|
+
case 'top':
|
|
149
|
+
return 'sb'
|
|
150
|
+
case 'bottom':
|
|
151
|
+
return 'st'
|
|
152
|
+
case 'left':
|
|
153
|
+
return 'wr'
|
|
154
|
+
}
|
|
155
|
+
return 'wl'
|
|
156
|
+
}
|
|
139
157
|
},
|
|
140
158
|
methods: {
|
|
141
159
|
//
|
|
@@ -338,6 +356,84 @@ export default defineVxeComponent({
|
|
|
338
356
|
}
|
|
339
357
|
},
|
|
340
358
|
|
|
359
|
+
dragEvent (evnt: MouseEvent) {
|
|
360
|
+
const $xeModal = this
|
|
361
|
+
|
|
362
|
+
evnt.preventDefault()
|
|
363
|
+
const { visibleHeight, visibleWidth } = getDomNode()
|
|
364
|
+
const marginSize = 0
|
|
365
|
+
const targetElem = evnt.target as HTMLSpanElement
|
|
366
|
+
const type = targetElem.getAttribute('type')
|
|
367
|
+
const minWidth = 0
|
|
368
|
+
const minHeight = 0
|
|
369
|
+
const maxWidth = visibleWidth
|
|
370
|
+
const maxHeight = visibleHeight
|
|
371
|
+
const boxElem = $xeModal.getBox()
|
|
372
|
+
const domMousemove = document.onmousemove
|
|
373
|
+
const domMouseup = document.onmouseup
|
|
374
|
+
const clientWidth = boxElem.clientWidth
|
|
375
|
+
const clientHeight = boxElem.clientHeight
|
|
376
|
+
const disX = evnt.clientX
|
|
377
|
+
const disY = evnt.clientY
|
|
378
|
+
const offsetTop = boxElem.offsetTop
|
|
379
|
+
const offsetLeft = boxElem.offsetLeft
|
|
380
|
+
const params = { type: 'resize' }
|
|
381
|
+
document.onmousemove = evnt => {
|
|
382
|
+
evnt.preventDefault()
|
|
383
|
+
let dragLeft
|
|
384
|
+
let dragTop
|
|
385
|
+
let width
|
|
386
|
+
let height
|
|
387
|
+
switch (type) {
|
|
388
|
+
case 'wl':
|
|
389
|
+
dragLeft = disX - evnt.clientX
|
|
390
|
+
width = dragLeft + clientWidth
|
|
391
|
+
if (offsetLeft - dragLeft > marginSize) {
|
|
392
|
+
if (width > minWidth) {
|
|
393
|
+
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
break
|
|
397
|
+
case 'st':
|
|
398
|
+
dragTop = disY - evnt.clientY
|
|
399
|
+
height = clientHeight + dragTop
|
|
400
|
+
if (offsetTop - dragTop > marginSize) {
|
|
401
|
+
if (height > minHeight) {
|
|
402
|
+
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
break
|
|
406
|
+
case 'wr':
|
|
407
|
+
dragLeft = evnt.clientX - disX
|
|
408
|
+
width = dragLeft + clientWidth
|
|
409
|
+
if (offsetLeft + width + marginSize < visibleWidth) {
|
|
410
|
+
if (width > minWidth) {
|
|
411
|
+
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
break
|
|
415
|
+
case 'sb':
|
|
416
|
+
dragTop = evnt.clientY - disY
|
|
417
|
+
height = dragTop + clientHeight
|
|
418
|
+
if (offsetTop + height + marginSize < visibleHeight) {
|
|
419
|
+
if (height > minHeight) {
|
|
420
|
+
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
break
|
|
424
|
+
}
|
|
425
|
+
boxElem.className = boxElem.className.replace(/\s?is--drag/, '') + ' is--drag'
|
|
426
|
+
$xeModal.dispatchEvent('resize', params, evnt)
|
|
427
|
+
}
|
|
428
|
+
document.onmouseup = () => {
|
|
429
|
+
document.onmousemove = domMousemove
|
|
430
|
+
document.onmouseup = domMouseup
|
|
431
|
+
setTimeout(() => {
|
|
432
|
+
boxElem.className = boxElem.className.replace(/\s?is--drag/, '')
|
|
433
|
+
}, 50)
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
|
|
341
437
|
//
|
|
342
438
|
// Render
|
|
343
439
|
//
|
|
@@ -502,10 +598,11 @@ export default defineVxeComponent({
|
|
|
502
598
|
const slots = $xeDrawer.$scopedSlots
|
|
503
599
|
const reactData = $xeDrawer.reactData
|
|
504
600
|
|
|
505
|
-
const { slots: propSlots = {}, className, position, loading, lockScroll, padding, lockView, mask, destroyOnClose } = props
|
|
601
|
+
const { slots: propSlots = {}, className, position, loading, lockScroll, padding, lockView, mask, resize, destroyOnClose } = props
|
|
506
602
|
const { initialized, contentVisible, visible } = reactData
|
|
507
603
|
const asideSlot = slots.aside || propSlots.aside
|
|
508
604
|
const vSize = $xeDrawer.computeSize
|
|
605
|
+
const dragType = $xeDrawer.computeDragType
|
|
509
606
|
return h('div', {
|
|
510
607
|
ref: 'refElem',
|
|
511
608
|
class: ['vxe-drawer--wrapper', `pos--${position}`, className || '', {
|
|
@@ -545,7 +642,22 @@ export default defineVxeComponent({
|
|
|
545
642
|
: [
|
|
546
643
|
$xeDrawer.renderHeader(h),
|
|
547
644
|
$xeDrawer.renderBody(h),
|
|
548
|
-
$xeDrawer.renderFooter(h)
|
|
645
|
+
$xeDrawer.renderFooter(h),
|
|
646
|
+
resize
|
|
647
|
+
? h('span', {
|
|
648
|
+
class: 'vxe-drawer--resize'
|
|
649
|
+
}, [
|
|
650
|
+
h('span', {
|
|
651
|
+
class: `${dragType}-resize`,
|
|
652
|
+
attrs: {
|
|
653
|
+
type: dragType
|
|
654
|
+
},
|
|
655
|
+
on: {
|
|
656
|
+
mousedown: $xeDrawer.dragEvent
|
|
657
|
+
}
|
|
658
|
+
})
|
|
659
|
+
])
|
|
660
|
+
: renderEmptyElement($xeDrawer)
|
|
549
661
|
])
|
|
550
662
|
])
|
|
551
663
|
]
|
|
@@ -133,6 +133,27 @@
|
|
|
133
133
|
pointer-events: auto;
|
|
134
134
|
opacity: 0;
|
|
135
135
|
@include baseMixin.createAnimationTransition(all, 0.3s);
|
|
136
|
+
&.is--drag {
|
|
137
|
+
cursor: move;
|
|
138
|
+
transition: none;
|
|
139
|
+
.vxe-modal--body,
|
|
140
|
+
.vxe-modal--footer {
|
|
141
|
+
&:after {
|
|
142
|
+
content: "";
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: 0;
|
|
145
|
+
left: 0;
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: 100%;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.vxe-modal--body {
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
.vxe-modal--content {
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
136
157
|
}
|
|
137
158
|
.vxe-drawer--aside {
|
|
138
159
|
flex-shrink: 0;
|
|
@@ -226,6 +247,44 @@
|
|
|
226
247
|
padding: 0.4em 1em 0.8em 1em;
|
|
227
248
|
}
|
|
228
249
|
|
|
250
|
+
.vxe-drawer--resize {
|
|
251
|
+
$SpaceSize: 8px;
|
|
252
|
+
$SpaceWidth: 5px;
|
|
253
|
+
.wl-resize,
|
|
254
|
+
.wr-resize,
|
|
255
|
+
.st-resize,
|
|
256
|
+
.sb-resize {
|
|
257
|
+
position: absolute;
|
|
258
|
+
z-index: 100;
|
|
259
|
+
}
|
|
260
|
+
.wl-resize,
|
|
261
|
+
.wr-resize {
|
|
262
|
+
width: $SpaceSize;
|
|
263
|
+
height: 100%;
|
|
264
|
+
top: 0;
|
|
265
|
+
cursor: w-resize;
|
|
266
|
+
}
|
|
267
|
+
.wl-resize {
|
|
268
|
+
left: -$SpaceWidth;
|
|
269
|
+
}
|
|
270
|
+
.wr-resize {
|
|
271
|
+
right: -$SpaceWidth;
|
|
272
|
+
}
|
|
273
|
+
.st-resize,
|
|
274
|
+
.sb-resize {
|
|
275
|
+
width: 100%;
|
|
276
|
+
height: $SpaceSize;
|
|
277
|
+
left: 0;
|
|
278
|
+
cursor: s-resize;
|
|
279
|
+
}
|
|
280
|
+
.st-resize {
|
|
281
|
+
top: -$SpaceWidth;
|
|
282
|
+
}
|
|
283
|
+
.sb-resize {
|
|
284
|
+
bottom: -$SpaceWidth;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
229
288
|
.vxe-drawer--wrapper {
|
|
230
289
|
font-size: var(--vxe-ui-font-size-default);
|
|
231
290
|
&.size--medium {
|
|
@@ -51,6 +51,7 @@ export namespace VxeDrawerPropTypes {
|
|
|
51
51
|
export type ShowClose = boolean
|
|
52
52
|
export type Width = number | string
|
|
53
53
|
export type Height = number | string
|
|
54
|
+
export type Resize = boolean
|
|
54
55
|
export type ZIndex = number
|
|
55
56
|
export type DestroyOnClose = boolean
|
|
56
57
|
export type ShowTitleOverflow = boolean
|
|
@@ -85,6 +86,7 @@ export interface VxeDrawerProps {
|
|
|
85
86
|
showClose?: VxeDrawerPropTypes.ShowClose
|
|
86
87
|
width?: VxeDrawerPropTypes.Width
|
|
87
88
|
height?: VxeDrawerPropTypes.Height
|
|
89
|
+
resize?: VxeDrawerPropTypes.Resize
|
|
88
90
|
zIndex?: VxeDrawerPropTypes.ZIndex
|
|
89
91
|
destroyOnClose?: VxeDrawerPropTypes.DestroyOnClose
|
|
90
92
|
showTitleOverflow?: VxeDrawerPropTypes.ShowTitleOverflow
|
|
@@ -134,7 +136,8 @@ export type VxeDrawerEmits = [
|
|
|
134
136
|
'before-hide',
|
|
135
137
|
'close',
|
|
136
138
|
'confirm',
|
|
137
|
-
'cancel'
|
|
139
|
+
'cancel',
|
|
140
|
+
'resize'
|
|
138
141
|
]
|
|
139
142
|
|
|
140
143
|
/**
|
|
@@ -192,14 +195,8 @@ export namespace VxeDrawerDefines {
|
|
|
192
195
|
export interface CloseParams extends DrawerBaseParams { }
|
|
193
196
|
export interface CloseEventParams extends DrawerEventParams, CloseParams { }
|
|
194
197
|
|
|
195
|
-
export interface ZoomParams extends DrawerBaseParams { }
|
|
196
|
-
export interface ZoomEventParams extends DrawerEventParams, ZoomParams { }
|
|
197
|
-
|
|
198
198
|
export interface ResizeParams extends DrawerBaseParams { }
|
|
199
199
|
export interface ResizeEventParams extends DrawerEventParams, ResizeParams { }
|
|
200
|
-
|
|
201
|
-
export interface MoveParams extends DrawerBaseParams { }
|
|
202
|
-
export interface MoveEventParams extends DrawerEventParams, MoveParams { }
|
|
203
200
|
}
|
|
204
201
|
|
|
205
202
|
export type VxeDrawerEventProps = {
|
|
@@ -209,6 +206,7 @@ export type VxeDrawerEventProps = {
|
|
|
209
206
|
onConfirm?: VxeDrawerEvents.Confirm
|
|
210
207
|
onCancel?: VxeDrawerEvents.Cancel
|
|
211
208
|
onClose?: VxeDrawerEvents.Close
|
|
209
|
+
onResize?: VxeDrawerEvents.Resize
|
|
212
210
|
}
|
|
213
211
|
|
|
214
212
|
export interface VxeDrawerListeners {
|
|
@@ -218,6 +216,7 @@ export interface VxeDrawerListeners {
|
|
|
218
216
|
confirm?: VxeDrawerEvents.Confirm
|
|
219
217
|
cancel?: VxeDrawerEvents.Cancel
|
|
220
218
|
close?: VxeDrawerEvents.Close
|
|
219
|
+
resize?: VxeDrawerEvents.Resize
|
|
221
220
|
}
|
|
222
221
|
|
|
223
222
|
export namespace VxeDrawerEvents {
|
|
@@ -227,6 +226,7 @@ export namespace VxeDrawerEvents {
|
|
|
227
226
|
export type Confirm = (params: VxeDrawerDefines.ConfirmEventParams) => void
|
|
228
227
|
export type Cancel = (params: VxeDrawerDefines.CancelEventParams) => void
|
|
229
228
|
export type Close = (params: VxeDrawerDefines.CloseEventParams) => void
|
|
229
|
+
export type Resize = (params: VxeDrawerDefines.ResizeEventParams) => void
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
export namespace VxeDrawerSlotTypes {
|
|
@@ -537,13 +537,18 @@ export namespace VxeTablePropTypes {
|
|
|
537
537
|
lockView?: VxeModalPropTypes.LockView
|
|
538
538
|
resize?: VxeModalPropTypes.Resize
|
|
539
539
|
escClosable?: VxeModalPropTypes.EscClosable
|
|
540
|
+
maskClosable?: VxeModalPropTypes.MaskClosable
|
|
540
541
|
}
|
|
541
542
|
drawerOptions?: {
|
|
542
543
|
title?: VxeDrawerPropTypes.Title
|
|
543
544
|
width?: VxeDrawerPropTypes.Width
|
|
544
545
|
className?: VxeDrawerPropTypes.ClassName
|
|
545
546
|
position?: VxeDrawerPropTypes.Position
|
|
547
|
+
mask?: VxeDrawerPropTypes.Mask
|
|
548
|
+
lockView?: VxeDrawerPropTypes.LockView
|
|
549
|
+
resize?: VxeDrawerPropTypes.Resize
|
|
546
550
|
escClosable?: VxeDrawerPropTypes.EscClosable
|
|
551
|
+
maskClosable?: VxeDrawerPropTypes.MaskClosable
|
|
547
552
|
}
|
|
548
553
|
trigger?: 'manual' | 'hover' | 'click' | '' | null
|
|
549
554
|
immediate?: boolean
|
|
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
|