vxe-pc-ui 4.8.12 → 4.8.13

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.
Files changed (45) hide show
  1. package/README.md +4 -4
  2. package/es/form/index.js +0 -1
  3. package/es/form/src/form.js +1 -0
  4. package/es/icon/style.css +1 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/ui/index.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/lib/form/index.js +0 -1
  10. package/lib/form/index.min.js +1 -1
  11. package/lib/form/src/form.js +1 -0
  12. package/lib/form/src/form.min.js +1 -1
  13. package/lib/icon/style/style.css +1 -1
  14. package/lib/icon/style/style.min.css +1 -1
  15. package/lib/index.umd.js +1577 -1577
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/ui/index.js +1 -1
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +1 -1
  24. package/packages/form/index.ts +0 -1
  25. package/packages/form/src/form.ts +2 -0
  26. package/types/components/gantt-module/gantt-view.d.ts +164 -0
  27. package/types/components/gantt-module/index.d.ts +1 -0
  28. package/types/components/gantt.d.ts +113 -29
  29. package/types/components/grid.d.ts +38 -18
  30. package/types/components/table-module/custom.d.ts +2 -1
  31. package/types/components/table.d.ts +32 -9
  32. package/types/ui/commands.d.ts +3 -1
  33. package/types/ui/hooks.d.ts +2 -0
  34. /package/es/icon/{iconfont.1754641145942.ttf → iconfont.1754905375075.ttf} +0 -0
  35. /package/es/icon/{iconfont.1754641145942.woff → iconfont.1754905375075.woff} +0 -0
  36. /package/es/icon/{iconfont.1754641145942.woff2 → iconfont.1754905375075.woff2} +0 -0
  37. /package/es/{iconfont.1754641145942.ttf → iconfont.1754905375075.ttf} +0 -0
  38. /package/es/{iconfont.1754641145942.woff → iconfont.1754905375075.woff} +0 -0
  39. /package/es/{iconfont.1754641145942.woff2 → iconfont.1754905375075.woff2} +0 -0
  40. /package/lib/icon/style/{iconfont.1754641145942.ttf → iconfont.1754905375075.ttf} +0 -0
  41. /package/lib/icon/style/{iconfont.1754641145942.woff → iconfont.1754905375075.woff} +0 -0
  42. /package/lib/icon/style/{iconfont.1754641145942.woff2 → iconfont.1754905375075.woff2} +0 -0
  43. /package/lib/{iconfont.1754641145942.ttf → iconfont.1754905375075.ttf} +0 -0
  44. /package/lib/{iconfont.1754641145942.woff → iconfont.1754905375075.woff} +0 -0
  45. /package/lib/{iconfont.1754641145942.woff2 → iconfont.1754905375075.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
- const version = exports.version = "4.8.12";
29
+ const version = exports.version = "4.8.13";
30
30
  _core.VxeUI.uiVersion = version;
31
31
  _core.VxeUI.dynamicApp = _dynamics.dynamicApp;
32
32
  function config(options) {
@@ -1 +1 @@
1
- "use strict";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");const version=exports.version="4.8.12";function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},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:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:null,showConfirmButton:null},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:{virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},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,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},split:{resize:!0,itemConfig:{minWidth:40,minHeight:40}},splitPane:{},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tabs:{},tag:{},textEllipsis:{underline:!0},text:{},textarea:{resize:"none"},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},tree:{indent:20,minHeight:60,radioConfig:{strict:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{autoClose:!0,virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});const iconPrefix="vxe-icon-";(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",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right"});var _default=exports.default=_core.VxeUI;
1
+ "use strict";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");const version=exports.version="4.8.13";function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},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:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:null,showConfirmButton:null},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:{virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},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,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},split:{resize:!0,itemConfig:{minWidth:40,minHeight:40}},splitPane:{},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tabs:{},tag:{},textEllipsis:{underline:!0},text:{},textarea:{resize:"none"},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},tree:{indent:20,minHeight:60,radioConfig:{strict:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{autoClose:!0,virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});const iconPrefix="vxe-icon-";(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",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right"});var _default=exports.default=_core.VxeUI;
package/lib/ui/src/log.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.warnLog = exports.errLog = void 0;
7
7
  var _core = require("@vxe-ui/core");
8
- const version = `ui v${"4.8.12"}`;
8
+ const version = `ui v${"4.8.13"}`;
9
9
  const warnLog = exports.warnLog = _core.log.create('warn', version);
10
10
  const errLog = exports.errLog = _core.log.create('error', version);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v4.8.12",warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v4.8.13",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": "4.8.12",
3
+ "version": "4.8.13",
4
4
  "description": "A vue based PC component library",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -2,7 +2,6 @@ import { App } from 'vue'
2
2
  import { VxeUI } from '@vxe-ui/core'
3
3
  import VxeFormComponent from './src/form'
4
4
  import { dynamicApp } from '../dynamics'
5
- import './render'
6
5
 
7
6
  export const VxeForm = Object.assign(VxeFormComponent, {
8
7
  install (app: App) {
@@ -11,6 +11,8 @@ import VxeLoadingComponent from '../../loading/src/loading'
11
11
  import { getSlotVNs } from '../../ui/src/vn'
12
12
  import { warnLog, errLog } from '../../ui/src/log'
13
13
 
14
+ import '../render'
15
+
14
16
  import type { VxeFormConstructor, VxeFormPropTypes, VxeFormEmits, FormReactData, FormMethods, FormPrivateRef, VxeFormPrivateMethods, VxeFormDefines, VxeFormItemPropTypes, VxeTooltipInstance, FormInternalData, VxeFormPrivateComputed } from '../../../types'
15
17
  import type { VxeGridConstructor, VxeGridPrivateMethods } from '../../../types/components/grid'
16
18
 
@@ -0,0 +1,164 @@
1
+ import { RenderFunction, SetupContext, Ref } from 'vue'
2
+ import { VxeComponentBaseOptions, DefineVxeComponentInstance } from '@vxe-ui/core'
3
+ import { VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from '../table'
4
+ import { VxeGanttPropTypes } from '../gantt'
5
+
6
+ /* eslint-disable no-use-before-define */
7
+
8
+ export interface VxeGanttViewConstructor extends VxeComponentBaseOptions, VxeGanttViewMethods {
9
+ props: VxeGanttViewProps
10
+ context: SetupContext<VxeGanttViewEmits>
11
+ reactData: GanttViewReactData
12
+ internalData: GanttViewInternalData
13
+ getRefMaps(): GanttViewPrivateRef
14
+ getComputeMaps(): GanttViewPrivateComputed
15
+ renderVN: RenderFunction
16
+ }
17
+ export type VxeGanttViewInstance = DefineVxeComponentInstance<VxeGanttViewProps, VxeGanttViewConstructor>
18
+
19
+ interface VxeGanttViewProps {
20
+ }
21
+
22
+ export interface GanttViewReactData {
23
+ // 是否启用了横向 X 可视渲染方式加载
24
+ scrollXLoad: boolean
25
+ // 是否启用了纵向 Y 可视渲染方式加载
26
+ scrollYLoad: boolean
27
+ // 是否存在纵向滚动条
28
+ overflowY: boolean
29
+ // 是否存在横向滚动条
30
+ overflowX: boolean
31
+ // 纵向滚动条的宽度
32
+ scrollbarWidth: number
33
+ // 横向滚动条的高度
34
+ scrollbarHeight: number
35
+
36
+ lazScrollLoading: boolean
37
+
38
+ scrollVMLoading: boolean
39
+ scrollYHeight: number
40
+ scrollYTop: number
41
+ isScrollYBig: boolean
42
+ scrollXLeft: number
43
+ scrollXWidth: number
44
+ isScrollXBig: boolean
45
+
46
+ minViewDate: Date | null
47
+ maxViewDate: Date | null
48
+ tableData: any[]
49
+ tableColumn: VxeGanttPropTypes.Column[]
50
+ headerGroups: VxeGanttPropTypes.Column[][]
51
+
52
+ rowHeightStore: {
53
+ large: number
54
+ default: number
55
+ medium: number
56
+ small: number
57
+ mini: number
58
+ }
59
+ }
60
+
61
+ export interface GanttViewInternalData {
62
+ xeTable: (VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods) | null
63
+ startMaps: Record<string, any>
64
+ endMaps: Record<string, any>
65
+ elemStore: {
66
+ [key: string]: Ref<HTMLElement> | null
67
+ }
68
+ // 存放横向 X 虚拟滚动相关的信息
69
+ scrollXStore: {
70
+ preloadSize: number
71
+ offsetSize: number
72
+ visibleSize: number
73
+ visibleStartIndex: number
74
+ visibleEndIndex: number
75
+ startIndex: number
76
+ endIndex: number
77
+ }
78
+ // 存放纵向 Y 虚拟滚动相关信息
79
+ scrollYStore: {
80
+ adaptive?: boolean
81
+ preloadSize: number
82
+ offsetSize: number
83
+ visibleSize: number
84
+ visibleStartIndex: number
85
+ visibleEndIndex: number
86
+ startIndex: number
87
+ endIndex: number
88
+ }
89
+
90
+ // 滚动属性
91
+ intoRunScroll?: boolean
92
+ inVirtualScroll?: boolean
93
+ inWheelScroll?: boolean
94
+
95
+ inHeaderScroll?: boolean
96
+ inBodyScroll?: boolean
97
+ inFooterScroll?: boolean
98
+ scrollRenderType?: '' | 'left' | 'right'
99
+ // 同步滚动
100
+ lcsTimeout?: undefined | number
101
+ lcsRunTime?: undefined | number
102
+
103
+ // 横向虚拟
104
+ lxRunTime?: undefined | number
105
+ lxTimeout?: undefined | number
106
+ // 纵向虚拟
107
+ lyRunTime?: undefined | number
108
+ lyTimeout?: undefined | number
109
+ }
110
+
111
+ export interface GanttViewPrivateRef {
112
+ refElem: Ref<HTMLDivElement | undefined>
113
+ }
114
+
115
+ export interface GanttViewPrivateComputed {
116
+ }
117
+
118
+ export interface VxeGanttViewPrivateMethods {
119
+ /**
120
+ * @private
121
+ */
122
+ handleUpdateStyle(): void
123
+ /**
124
+ * @private
125
+ */
126
+ handleLazyRecalculate(): Promise<void>
127
+ /**
128
+ * @private
129
+ */
130
+ triggerHeaderScrollEvent(evnt: Event): void
131
+ /**
132
+ * @private
133
+ */
134
+ triggerBodyScrollEvent(evnt: Event): void
135
+ /**
136
+ * @private
137
+ */
138
+ triggerFooterScrollEvent(evnt: Event): void
139
+ /**
140
+ * @private
141
+ */
142
+ triggerVirtualScrollXEvent(evnt: Event): void
143
+ /**
144
+ * @private
145
+ */
146
+ triggerVirtualScrollYEvent(evnt: Event): void
147
+ /**
148
+ * @private
149
+ */
150
+ updateScrollXSpace(): void
151
+ /**
152
+ * @private
153
+ */
154
+ updateScrollYSpace(): void
155
+ }
156
+
157
+ export interface VxeGanttViewMethods {
158
+ updateViewData(): Promise<void>
159
+ connectUpdate(params: {
160
+ $table: VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods
161
+ }): Promise<void>
162
+ }
163
+
164
+ type VxeGanttViewEmits = []
@@ -0,0 +1 @@
1
+ export * from './gantt-view'
@@ -1,15 +1,16 @@
1
- import { RenderFunction, SetupContext, Ref } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
3
- import { VxeTableInstance } from './table'
1
+ import { RenderFunction, SetupContext, ComputedRef } from 'vue'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
3
+ import { GridPrivateRef, VxeGridProps, VxeGridPropTypes, GridPrivateComputed, GridReactData, GridInternalData, GridMethods, GridPrivateMethods, VxeGridEmits, VxeGridSlots, VxeGridListeners, VxeGridEventProps, VxeGridMethods } from './grid'
4
+ import { VxeTablePropTypes } from './table'
4
5
 
5
6
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
6
7
 
7
8
  export declare const VxeGantt: DefineVxeComponentApp<VxeGanttProps, VxeGanttEventProps, VxeGanttSlots, VxeGanttMethods>
8
9
  export type VxeGanttComponent = DefineVxeComponentOptions<VxeGanttProps, VxeGanttEventProps>
9
10
 
10
- export type VxeGanttInstance = DefineVxeComponentInstance<VxeGanttProps, VxeGanttConstructor>
11
+ export type VxeGanttInstance<D = any> = DefineVxeComponentInstance<VxeGanttProps<D>, VxeGanttConstructor<D>>
11
12
 
12
- export interface VxeGanttConstructor extends VxeComponentBaseOptions, VxeGanttMethods {
13
+ export interface VxeGanttConstructor<D = any> extends VxeComponentBaseOptions, VxeGanttMethods<D> {
13
14
  props: VxeGanttProps
14
15
  context: SetupContext<VxeGanttEmits>
15
16
  reactData: GanttReactData
@@ -19,59 +20,142 @@ export interface VxeGanttConstructor extends VxeComponentBaseOptions, VxeGanttMe
19
20
  renderVN: RenderFunction
20
21
  }
21
22
 
22
- export interface GanttPrivateRef<D = any> {
23
- refElem: Ref<HTMLDivElement | undefined>
24
- refTable: Ref<VxeTableInstance<D> | undefined>
23
+ export interface GanttPrivateRef<D = any> extends GridPrivateRef<D> {
25
24
  }
26
- export interface VxeGanttPrivateRef extends GanttPrivateRef { }
25
+ export interface VxeGanttPrivateRef<D = any> extends GanttPrivateRef<D> { }
27
26
 
28
27
  export namespace VxeGanttPropTypes {
29
- export type Size = VxeComponentSizeType
28
+ export type Size = VxeGridPropTypes.Size
29
+ export type Layouts = VxeGridPropTypes.Layouts
30
+ export type Column<D = any> = VxeGridPropTypes.Column<D>
31
+ export type Columns<D = any> = Column<D>[]
32
+ export interface PagerConfig extends VxeGridPropTypes.PagerConfig {}
33
+ export interface ProxyConfig<D = any> extends VxeGridPropTypes.ProxyConfig<D> {}
34
+ export interface ToolbarConfig extends VxeGridPropTypes.ToolbarConfig {}
35
+ export interface FormConfig extends VxeGridPropTypes.FormConfig {}
36
+ export interface ZoomConfig extends VxeGridPropTypes.ZoomConfig {}
37
+
38
+ export interface TaskConfig {
39
+ /**
40
+ * 标题的字段名
41
+ */
42
+ titleField?: string
43
+ /**
44
+ * 开始日期的字段名
45
+ */
46
+ startField?: string
47
+ /**
48
+ * 结束日期的字段名
49
+ */
50
+ endField?: string
51
+ /**
52
+ * 进度的字段名
53
+ */
54
+ progressField?: string
55
+ }
56
+ export interface TaskViewConfig<D = any> {
57
+ /**
58
+ * 视图的渲染模式
59
+ */
60
+ mode?: 'day' | 'week' | 'month' | 'quarter' | 'year'
61
+ /**
62
+ * 表格样式
63
+ */
64
+ tableStyle?: {
65
+ width?: number | string
66
+ minWidth?: number | string
67
+ maxWidth?: number | string
68
+ }
69
+ /**
70
+ * 视图样式
71
+ */
72
+ viewStyle?: {
73
+ width?: number | string
74
+ minWidth?: number | string
75
+ maxWidth?: number | string
76
+ }
77
+ }
78
+ export interface TaskBarConfig<D = any> {
79
+ /**
80
+ * 是否在进度条显示标题
81
+ */
82
+ showTitle?: boolean
83
+ /**
84
+ * 自定义标题的方法
85
+ */
86
+ titleMethod?(params: {
87
+ title: string
88
+ row: D
89
+ }): string | number
90
+ }
30
91
  }
31
92
 
32
- export type VxeGanttProps = {
33
- size?: VxeGanttPropTypes.Size
93
+ export interface VxeGanttProps<D = any> extends VxeGridProps<D> {
94
+ taskConfig?: VxeGanttPropTypes.TaskConfig
95
+ taskViewConfig?: VxeGanttPropTypes.TaskViewConfig
96
+ taskBarConfig?: VxeGanttPropTypes.TaskBarConfig
34
97
  }
35
98
 
36
- export interface GanttPrivateComputed {
99
+ export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
100
+ computeTaskOpts: ComputedRef<VxeGanttPropTypes.TaskConfig>
101
+ computeTaskViewOpts: ComputedRef<VxeGanttPropTypes.TaskViewConfig>
102
+ computeTaskBarOpts: ComputedRef<VxeGanttPropTypes.TaskBarConfig>
103
+ computeTitleField: ComputedRef<string>
104
+ computeStartField: ComputedRef<string>
105
+ computeEndField: ComputedRef<string>
106
+ computeProgressField: ComputedRef<string>
107
+ computeScrollbarOpts: ComputedRef<VxeTablePropTypes.ScrollbarConfig>
108
+ computeScrollbarXToTop: ComputedRef<boolean>
109
+ computeScrollbarYToLeft: ComputedRef<boolean>
37
110
  }
38
- export interface VxeGanttPrivateComputed extends GanttPrivateComputed { }
111
+ export interface VxeGanttPrivateComputed<D = any> extends GanttPrivateComputed<D> { }
39
112
 
40
- export interface GanttReactData {
113
+ export interface GanttReactData<D = any> extends GridReactData<D> {
41
114
  }
42
115
 
43
- export interface GanttInternalData {
44
- }
116
+ export interface GanttInternalData extends GridInternalData {}
45
117
 
46
- export interface GanttMethods {
118
+ export interface GanttMethods<D = any> extends Omit<GridMethods<D>, 'dispatchEvent'> {
47
119
  dispatchEvent(type: ValueOf<VxeGanttEmits>, params: Record<string, any>, evnt: Event | null): void
48
120
  }
49
- export interface VxeGanttMethods extends GanttMethods { }
121
+ export interface VxeGanttMethods<D = any> extends GanttMethods<D>, Omit<VxeGridMethods<D>, 'dispatchEvent'> { }
50
122
 
51
- export interface GanttPrivateMethods { }
123
+ export interface GanttPrivateMethods extends GridPrivateMethods {
124
+ }
52
125
  export interface VxeGanttPrivateMethods extends GanttPrivateMethods { }
53
126
 
54
- export type VxeGanttEmits = []
127
+ export type VxeGanttEmits = [
128
+ ...VxeGridEmits
129
+ ]
55
130
 
56
131
  export namespace VxeGanttDefines {
57
- export interface GanttEventParams extends VxeComponentEventParams {
58
- $gantt: VxeGanttConstructor
132
+ export interface GanttEventParams<D = any> extends VxeComponentEventParams {
133
+ $gantt: VxeGanttConstructor<D>
134
+ }
135
+
136
+ export interface GroupHeaderColumn<D = any> extends VxeGanttPropTypes.Column<D> {
137
+ children: VxeGanttPropTypes.Column<D>[]
59
138
  }
60
139
  }
61
140
 
62
- export type VxeGanttEventProps = {}
141
+ export interface VxeGanttEventProps<D = any> extends VxeGridEventProps<D> {}
63
142
 
64
- export interface VxeGanttListeners { }
143
+ export interface VxeGanttListeners<D = any> extends VxeGridListeners<D> {
144
+ }
65
145
 
66
- export namespace VxeGanttEvents { }
146
+ export namespace VxeGanttEvents {
147
+ }
67
148
 
68
149
  export namespace VxeGanttSlotTypes {
69
- export interface DefaultSlotParams {}
150
+ export interface DefaultSlotParams<D = any> {
151
+ $gantt: VxeGanttConstructor<D>
152
+ }
70
153
  }
71
154
 
72
- export interface VxeGanttSlots {
73
- default?: (params: VxeGanttSlotTypes.DefaultSlotParams) => any
155
+ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
74
156
  }
75
157
 
158
+ export * from './gantt-module'
159
+
76
160
  export const Gantt: typeof VxeGantt
77
161
  export default VxeGantt
@@ -6,6 +6,7 @@ import { VxeColumnPropTypes } from './column'
6
6
  import { VxePagerInstance, VxePagerProps, VxePagerDefines, VxePagerSlotTypes } from './pager'
7
7
  import { VxeFormInstance, VxeFormProps, VxeFormDefines } from './form'
8
8
  import { VxeFormItemPropTypes, VxeFormItemProps } from './form-item'
9
+ import { VxeGanttConstructor } from './gantt'
9
10
 
10
11
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
11
12
 
@@ -26,10 +27,10 @@ export interface VxeGridConstructor<D = any> extends VxeComponentBaseOptions, Vx
26
27
 
27
28
  export interface GridPrivateRef<D = any> {
28
29
  refElem: Ref<HTMLDivElement | undefined>
29
- refTable: Ref<VxeTableInstance<D>>
30
- refForm: Ref<VxeFormInstance>
31
- refToolbar: Ref<VxeToolbarInstance>
32
- refPager: Ref<VxePagerInstance>
30
+ refTable: Ref<VxeTableInstance<D> | undefined>
31
+ refForm: Ref<VxeFormInstance | undefined>
32
+ refToolbar: Ref<VxeToolbarInstance | undefined>
33
+ refPager: Ref<VxePagerInstance | undefined>
33
34
  }
34
35
  export interface VxeGridPrivateRef<D = any> extends GridPrivateRef<D> { }
35
36
 
@@ -79,7 +80,9 @@ export namespace VxeGridPropTypes {
79
80
  }
80
81
 
81
82
  interface ProxyAjaxQueryParams<D = any> {
82
- $grid: VxeGridConstructor<D>
83
+ $table: VxeTableConstructor<D>
84
+ $grid: VxeGridConstructor<D> | null | undefined
85
+ $gantt: VxeGanttConstructor<D> | null | undefined
83
86
  page: ProxyAjaxQueryPageParams
84
87
  sort: ProxyAjaxQuerySortCheckedParams<D>
85
88
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
@@ -91,7 +94,8 @@ export namespace VxeGridPropTypes {
91
94
 
92
95
  interface ProxyAjaxQueryAllParams<D = any> {
93
96
  $table: VxeTableConstructor<D>
94
- $grid: VxeGridConstructor<D>
97
+ $grid: VxeGridConstructor<D> | null | undefined
98
+ $gantt: VxeGanttConstructor<D> | null | undefined
95
99
  sort: ProxyAjaxQuerySortCheckedParams<D>
96
100
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
97
101
  filters: VxeTableDefines.FilterCheckedParams[]
@@ -102,14 +106,18 @@ export namespace VxeGridPropTypes {
102
106
  }
103
107
 
104
108
  interface ProxyAjaxDeleteParams<D = any> {
105
- $grid: VxeGridConstructor<D>
109
+ $table: VxeTableConstructor<D>
110
+ $grid: VxeGridConstructor<D> | null | undefined
111
+ $gantt: VxeGanttConstructor<D> | null | undefined
106
112
  body: {
107
113
  removeRecords: D[]
108
114
  }
109
115
  }
110
116
 
111
117
  interface ProxyAjaxSaveParams<D = any> {
112
- $grid: VxeGridConstructor<D>
118
+ $table: VxeTableConstructor<D>
119
+ $grid: VxeGridConstructor<D> | null | undefined
120
+ $gantt: VxeGanttConstructor<D> | null | undefined
113
121
  body: {
114
122
  insertRecords: D[]
115
123
  updateRecords: D[]
@@ -145,19 +153,27 @@ export namespace VxeGridPropTypes {
145
153
  response?: {
146
154
  list?: string | null | ((params: {
147
155
  data: any
148
- $grid: VxeGridConstructor<D>
156
+ $table: VxeTableConstructor<D>
157
+ $grid: VxeGridConstructor<D> | null | undefined
158
+ $gantt: VxeGanttConstructor<D> | null | undefined
149
159
  }) => any[])
150
160
  result?: string | ((params: {
151
161
  data: any
152
- $grid: VxeGridConstructor<D>
162
+ $table: VxeTableConstructor<D>
163
+ $grid: VxeGridConstructor<D> | null | undefined
164
+ $gantt: VxeGanttConstructor<D> | null | undefined
153
165
  }) => any[])
154
166
  total?: string | ((params: {
155
167
  data: any
156
- $grid: VxeGridConstructor<D>
168
+ $table: VxeTableConstructor<D>
169
+ $grid: VxeGridConstructor<D> | null | undefined
170
+ $gantt: VxeGanttConstructor<D> | null | undefined
157
171
  }) => number)
158
172
  message?: string | ((params: {
159
173
  data: any
160
- $grid: VxeGridConstructor<D>
174
+ $table: VxeTableConstructor<D>
175
+ $grid: VxeGridConstructor<D> | null | undefined
176
+ $gantt: VxeGanttConstructor<D> | null | undefined
161
177
  }) => string)
162
178
  }
163
179
  ajax?: {
@@ -268,14 +284,14 @@ export interface VxeGridProps<D = any> extends VxeTableProps<D> {
268
284
  zoomConfig?: VxeGridPropTypes.ZoomConfig
269
285
  }
270
286
 
271
- export interface GridPrivateComputed {
272
- computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyOpts>
287
+ export interface GridPrivateComputed<D = any> {
288
+ computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyConfig<D>>
273
289
  computePagerOpts: ComputedRef<VxeGridPropTypes.PagerOpts>
274
290
  computeFormOpts: ComputedRef<VxeGridPropTypes.FormOpts>
275
291
  computeToolbarOpts: ComputedRef<VxeGridPropTypes.ToolbarOpts>
276
292
  computeZoomOpts: ComputedRef<VxeGridPropTypes.ZoomOpts>
277
293
  }
278
- export interface VxeGridPrivateComputed extends GridPrivateComputed { }
294
+ export interface VxeGridPrivateComputed<D = any> extends GridPrivateComputed<D> { }
279
295
 
280
296
  export interface GridReactData<D = any> {
281
297
  tableLoading: boolean
@@ -322,12 +338,12 @@ export interface GridMethods<D = any> {
322
338
  /**
323
339
  * 对表单进行校验,返回校验结果 promise
324
340
  */
325
- validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams>
341
+ validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
326
342
  /**
327
343
  * 对表单指定项进行校验,返回校验结果 promise
328
344
  * @param field 字段名
329
345
  */
330
- validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams>
346
+ validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
331
347
  /**
332
348
  * 手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
333
349
  * @param field 字段名
@@ -457,7 +473,9 @@ export type VxeGridEmits = [
457
473
 
458
474
  export namespace VxeGridDefines {
459
475
  export interface GridEventParams<D = any> extends VxeComponentEventParams {
460
- $grid: VxeGridConstructor<D>
476
+ $table: VxeTableConstructor<D>
477
+ $grid: VxeGridConstructor<D> | null | undefined
478
+ $gantt: VxeGanttConstructor<D> | null | undefined
461
479
  }
462
480
 
463
481
  export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> { }
@@ -781,6 +799,7 @@ export namespace VxeGridSlotTypes {
781
799
  export interface DefaultSlotParams<D = any> {
782
800
  $table: VxeTableConstructor<D>
783
801
  $grid: VxeGridConstructor<D> | null | undefined
802
+ $gantt: VxeGanttConstructor<D> | null | undefined
784
803
  rowid: string
785
804
  /**
786
805
  * 当前行对象,支持数据双向绑定
@@ -846,6 +865,7 @@ export namespace VxeGridSlotTypes {
846
865
  export interface BaseSlotParams<D = any> {
847
866
  $table: VxeTableConstructor<D>
848
867
  $grid: VxeGridConstructor<D> | null | undefined
868
+ $gantt: VxeGanttConstructor<D> | null | undefined
849
869
  }
850
870
  export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
851
871
  export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}
@@ -1,5 +1,5 @@
1
1
  import { RenderFunction, SetupContext, Ref } from 'vue'
2
- import { VxeComponentBaseOptions } from '@vxe-ui/core'
2
+ import { VxeComponentBaseOptions, DefineVxeComponentInstance } from '@vxe-ui/core'
3
3
  import { VxeTableDefines, VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from '../table'
4
4
 
5
5
  /* eslint-disable no-use-before-define */
@@ -15,6 +15,7 @@ export interface VxeTableCustomPanelConstructor extends VxeComponentBaseOptions,
15
15
 
16
16
  xeTable: VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods
17
17
  }
18
+ export type VxeTableCustomPanelInstance = DefineVxeComponentInstance<VxeTableCustomPanelProps, VxeTableCustomPanelConstructor>
18
19
 
19
20
  interface VxeTableCustomPanelProps {
20
21
  customStore?: VxeTableDefines.VxeTableCustomStoreObj