vxe-pc-ui 3.8.13 → 3.8.14

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 (42) hide show
  1. package/es/form/index.js +0 -1
  2. package/es/form/src/form.js +1 -0
  3. package/es/icon/style.css +1 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/form/index.js +0 -1
  9. package/lib/form/index.min.js +1 -1
  10. package/lib/form/src/form.js +1 -0
  11. package/lib/form/src/form.min.js +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +1573 -1573
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/ui/index.js +1 -1
  19. package/lib/ui/index.min.js +1 -1
  20. package/lib/ui/src/log.js +1 -1
  21. package/lib/ui/src/log.min.js +1 -1
  22. package/package.json +1 -1
  23. package/packages/form/index.ts +0 -1
  24. package/packages/form/src/form.ts +2 -0
  25. package/types/components/gantt-module/gantt-view.d.ts +158 -0
  26. package/types/components/gantt-module/index.d.ts +1 -0
  27. package/types/components/gantt.d.ts +113 -30
  28. package/types/components/grid.d.ts +31 -11
  29. package/types/components/table.d.ts +31 -8
  30. package/types/ui/commands.d.ts +3 -1
  31. /package/es/icon/{iconfont.1754641135399.ttf → iconfont.1754905493232.ttf} +0 -0
  32. /package/es/icon/{iconfont.1754641135399.woff → iconfont.1754905493232.woff} +0 -0
  33. /package/es/icon/{iconfont.1754641135399.woff2 → iconfont.1754905493232.woff2} +0 -0
  34. /package/es/{iconfont.1754641135399.ttf → iconfont.1754905493232.ttf} +0 -0
  35. /package/es/{iconfont.1754641135399.woff → iconfont.1754905493232.woff} +0 -0
  36. /package/es/{iconfont.1754641135399.woff2 → iconfont.1754905493232.woff2} +0 -0
  37. /package/lib/icon/style/{iconfont.1754641135399.ttf → iconfont.1754905493232.ttf} +0 -0
  38. /package/lib/icon/style/{iconfont.1754641135399.woff → iconfont.1754905493232.woff} +0 -0
  39. /package/lib/icon/style/{iconfont.1754641135399.woff2 → iconfont.1754905493232.woff2} +0 -0
  40. /package/lib/{iconfont.1754641135399.ttf → iconfont.1754905493232.ttf} +0 -0
  41. /package/lib/{iconfont.1754641135399.woff → iconfont.1754905493232.woff} +0 -0
  42. /package/lib/{iconfont.1754641135399.woff2 → iconfont.1754905493232.woff2} +0 -0
package/lib/ui/index.js CHANGED
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
26
26
  });
27
27
  var _dynamics = require("../dynamics");
28
28
  var _log = require("./src/log");
29
- var version = exports.version = "3.8.13";
29
+ var version = exports.version = "3.8.14";
30
30
  _core.VxeUI.uiVersion = version;
31
31
  _core.VxeUI.dynamicApp = _dynamics.dynamicApp;
32
32
  function config(options) {
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_log=require("./src/log"),version=exports.version="3.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:!0,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:60}},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:{}});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",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"}),exports.default=_core.VxeUI);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_log=require("./src/log"),version=exports.version="3.8.14";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:!0,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:60}},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:{}});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",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"}),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.8.13");
8
+ var version = "ui v".concat("3.8.14");
9
9
  var warnLog = exports.warnLog = _core.log.create('warn', version);
10
10
  var errLog = exports.errLog = _core.log.create('error', version);
@@ -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.8.13"),warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),version="ui v".concat("3.8.14"),warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-pc-ui",
3
- "version": "3.8.13",
3
+ "version": "3.8.14",
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 { VueConstructor } 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: VueConstructor) {
@@ -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 { VxeFormPropTypes, VxeFormEmits, VxeComponentSizeType, ValueOf, FormReactData, VxeFormDefines, VxeFormItemPropTypes, FormInternalData, VxeTooltipConstructor } from '../../../types'
15
17
  import type { VxeGridConstructor, VxeGridPrivateMethods } from '../../../types/components/grid'
16
18
 
@@ -0,0 +1,158 @@
1
+ import { DefineVxeComponentInstance } from '@vxe-ui/core'
2
+ import { VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from '../table'
3
+ import { VxeGanttPropTypes } from '../gantt'
4
+
5
+ /* eslint-disable no-use-before-define */
6
+
7
+ export type VxeGanttViewInstance = DefineVxeComponentInstance<{
8
+ reactData: GanttViewReactData
9
+ internalData: GanttViewInternalData
10
+ }, VxeGanttViewProps, GanttViewPrivateComputed, VxeGanttViewMethods>
11
+
12
+ export type VxeGanttViewConstructor = VxeGanttViewInstance
13
+
14
+ interface VxeGanttViewProps {
15
+ }
16
+
17
+ export interface GanttViewReactData {
18
+ // 是否启用了横向 X 可视渲染方式加载
19
+ scrollXLoad: boolean
20
+ // 是否启用了纵向 Y 可视渲染方式加载
21
+ scrollYLoad: boolean
22
+ // 是否存在纵向滚动条
23
+ overflowY: boolean
24
+ // 是否存在横向滚动条
25
+ overflowX: boolean
26
+ // 纵向滚动条的宽度
27
+ scrollbarWidth: number
28
+ // 横向滚动条的高度
29
+ scrollbarHeight: number
30
+
31
+ lazScrollLoading: boolean
32
+
33
+ scrollVMLoading: boolean
34
+ scrollYHeight: number
35
+ scrollYTop: number
36
+ isScrollYBig: boolean
37
+ scrollXLeft: number
38
+ scrollXWidth: number
39
+ isScrollXBig: boolean
40
+
41
+ minViewDate: Date | null
42
+ maxViewDate: Date | null
43
+ tableData: any[]
44
+ tableColumn: VxeGanttPropTypes.Column[]
45
+ headerGroups: VxeGanttPropTypes.Column[][]
46
+
47
+ rowHeightStore: {
48
+ large: number
49
+ default: number
50
+ medium: number
51
+ small: number
52
+ mini: number
53
+ }
54
+ }
55
+
56
+ export interface GanttViewInternalData {
57
+ xeTable: (VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods) | null
58
+ startMaps: Record<string, any>
59
+ endMaps: Record<string, any>
60
+ elemStore: {
61
+ [key: string]: HTMLElement | null
62
+ }
63
+ // 存放横向 X 虚拟滚动相关的信息
64
+ scrollXStore: {
65
+ preloadSize: number
66
+ offsetSize: number
67
+ visibleSize: number
68
+ visibleStartIndex: number
69
+ visibleEndIndex: number
70
+ startIndex: number
71
+ endIndex: number
72
+ }
73
+ // 存放纵向 Y 虚拟滚动相关信息
74
+ scrollYStore: {
75
+ adaptive?: boolean
76
+ preloadSize: number
77
+ offsetSize: number
78
+ visibleSize: number
79
+ visibleStartIndex: number
80
+ visibleEndIndex: number
81
+ startIndex: number
82
+ endIndex: number
83
+ }
84
+
85
+ // 滚动属性
86
+ intoRunScroll?: boolean
87
+ inVirtualScroll?: boolean
88
+ inWheelScroll?: boolean
89
+
90
+ inHeaderScroll?: boolean
91
+ inBodyScroll?: boolean
92
+ inFooterScroll?: boolean
93
+ scrollRenderType?: '' | 'left' | 'right'
94
+ // 同步滚动
95
+ lcsTimeout?: undefined | number
96
+ lcsRunTime?: undefined | number
97
+
98
+ // 横向虚拟
99
+ lxRunTime?: undefined | number
100
+ lxTimeout?: undefined | number
101
+ // 纵向虚拟
102
+ lyRunTime?: undefined | number
103
+ lyTimeout?: undefined | number
104
+ }
105
+
106
+ export interface GanttViewPrivateRef {
107
+ }
108
+
109
+ export interface GanttViewPrivateComputed {
110
+ }
111
+
112
+ export interface VxeGanttViewPrivateMethods {
113
+ /**
114
+ * @private
115
+ */
116
+ handleUpdateStyle(): void
117
+ /**
118
+ * @private
119
+ */
120
+ handleLazyRecalculate(): Promise<void>
121
+ /**
122
+ * @private
123
+ */
124
+ triggerHeaderScrollEvent(evnt: Event): void
125
+ /**
126
+ * @private
127
+ */
128
+ triggerBodyScrollEvent(evnt: Event): void
129
+ /**
130
+ * @private
131
+ */
132
+ triggerFooterScrollEvent(evnt: Event): void
133
+ /**
134
+ * @private
135
+ */
136
+ triggerVirtualScrollXEvent(evnt: Event): void
137
+ /**
138
+ * @private
139
+ */
140
+ triggerVirtualScrollYEvent(evnt: Event): void
141
+ /**
142
+ * @private
143
+ */
144
+ updateScrollXSpace(): void
145
+ /**
146
+ * @private
147
+ */
148
+ updateScrollYSpace(): void
149
+ }
150
+
151
+ export interface VxeGanttViewMethods {
152
+ updateViewData(): Promise<void>
153
+ connectUpdate(params: {
154
+ $table: VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods
155
+ }): Promise<void>
156
+ }
157
+
158
+ type VxeGanttViewEmits = []
@@ -0,0 +1 @@
1
+ export * from './gantt-view'
@@ -1,68 +1,151 @@
1
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
1
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
2
+ import { GridPrivateRef, VxeGridProps, VxeGridPropTypes, GridPrivateComputed, GridReactData, GridInternalData, GridMethods, GridPrivateMethods, VxeGridEmits, VxeGridSlots, VxeGridListeners, VxeGridEventProps, VxeGridMethods } from './grid'
3
+ import { VxeTablePropTypes } from './table'
2
4
 
3
- /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
5
+ /* eslint-disable no-use-before-define,@typescript-eslint/ban-types,@typescript-eslint/no-unused-vars */
4
6
 
5
7
  export declare const VxeGantt: DefineVxeComponentApp<VxeGanttProps, VxeGanttEventProps, VxeGanttSlots, VxeGanttMethods>
6
8
  export type VxeGanttComponent = DefineVxeComponentOptions<VxeGanttProps>
7
9
 
8
- export type VxeGanttInstance = DefineVxeComponentInstance<{
9
- reactData: GanttReactData
10
+ export type VxeGanttInstance<D = any> = DefineVxeComponentInstance<{
11
+ reactData: GanttReactData<D>
10
12
  internalData: GanttInternalData
11
- }, VxeGanttProps, VxeGanttPrivateComputed, VxeGanttMethods>
13
+ }, VxeGanttProps<D>, VxeGanttPrivateComputed<D>, VxeGanttMethods<D>>
12
14
 
13
- export type VxeGanttConstructor = VxeGanttInstance
15
+ export type VxeGanttConstructor<D = any> = VxeGanttInstance<D>
14
16
 
15
- export interface GanttPrivateRef {
17
+ export interface GanttPrivateRef<D = any> extends GridPrivateRef<D> {
16
18
  }
17
- export interface VxeGanttPrivateRef extends GanttPrivateRef { }
19
+ export interface VxeGanttPrivateRef<D = any> extends GanttPrivateRef<D> { }
18
20
 
19
21
  export namespace VxeGanttPropTypes {
20
- export type Size = VxeComponentSizeType
21
- }
22
-
23
- export type VxeGanttProps = {
24
- size?: VxeGanttPropTypes.Size
22
+ export type Size = VxeGridPropTypes.Size
23
+ export type Layouts = VxeGridPropTypes.Layouts
24
+ export type Column<D = any> = VxeGridPropTypes.Column<D>
25
+ export type Columns<D = any> = Column<D>[]
26
+ export interface PagerConfig extends VxeGridPropTypes.PagerConfig {}
27
+ export interface ProxyConfig<D = any> extends VxeGridPropTypes.ProxyConfig<D> {}
28
+ export interface ToolbarConfig extends VxeGridPropTypes.ToolbarConfig {}
29
+ export interface FormConfig extends VxeGridPropTypes.FormConfig {}
30
+ export interface ZoomConfig extends VxeGridPropTypes.ZoomConfig {}
31
+
32
+ export interface TaskConfig {
33
+ /**
34
+ * 标题的字段名
35
+ */
36
+ titleField?: string
37
+ /**
38
+ * 开始日期的字段名
39
+ */
40
+ startField?: string
41
+ /**
42
+ * 结束日期的字段名
43
+ */
44
+ endField?: string
45
+ /**
46
+ * 进度的字段名
47
+ */
48
+ progressField?: string
49
+ }
50
+ export interface TaskViewConfig<D = any> {
51
+ /**
52
+ * 视图的渲染模式
53
+ */
54
+ mode?: 'day' | 'week' | 'month' | 'quarter' | 'year'
55
+ /**
56
+ * 表格样式
57
+ */
58
+ tableStyle?: {
59
+ width?: number | string
60
+ minWidth?: number | string
61
+ maxWidth?: number | string
62
+ }
63
+ /**
64
+ * 视图样式
65
+ */
66
+ viewStyle?: {
67
+ width?: number | string
68
+ minWidth?: number | string
69
+ maxWidth?: number | string
70
+ }
71
+ }
72
+ export interface TaskBarConfig<D = any> {
73
+ /**
74
+ * 是否在进度条显示标题
75
+ */
76
+ showTitle?: boolean
77
+ /**
78
+ * 自定义标题的方法
79
+ */
80
+ titleMethod?(params: {
81
+ title: string
82
+ row: D
83
+ }): string | number
84
+ }
25
85
  }
26
86
 
27
- export interface GanttPrivateComputed {
87
+ export interface VxeGanttProps<D = any> extends VxeGridProps<D> {}
88
+
89
+ export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
90
+ computeTaskOpts: VxeGanttPropTypes.TaskConfig
91
+ computeTaskViewOpts: VxeGanttPropTypes.TaskViewConfig
92
+ computeTaskBarOpts: VxeGanttPropTypes.TaskBarConfig
93
+ computeTitleField: string
94
+ computeStartField: string
95
+ computeEndField: string
96
+ computeProgressField: string
97
+ computeScrollbarOpts: VxeTablePropTypes.ScrollbarConfig
98
+ computeScrollbarXToTop: boolean
99
+ computeScrollbarYToLeft: boolean
28
100
  }
29
- export interface VxeGanttPrivateComputed extends GanttPrivateComputed { }
101
+ export interface VxeGanttPrivateComputed<D = any> extends GanttPrivateComputed<D> { }
30
102
 
31
- export interface GanttReactData {
103
+ export interface GanttReactData<D = any> extends GridReactData<D> {
32
104
  }
33
105
 
34
- export interface GanttInternalData {
35
- }
106
+ export interface GanttInternalData extends GridInternalData {}
36
107
 
37
- export interface GanttMethods {
108
+ export interface GanttMethods<D = any> extends Omit<GridMethods<D>, 'dispatchEvent'> {
38
109
  dispatchEvent(type: ValueOf<VxeGanttEmits>, params: Record<string, any>, evnt: Event | null): void
39
110
  }
40
- export interface VxeGanttMethods extends GanttMethods { }
111
+ export interface VxeGanttMethods<D = any> extends GanttMethods<D>, Omit<VxeGridMethods<D>, 'dispatchEvent'> { }
41
112
 
42
- export interface GanttPrivateMethods { }
113
+ export interface GanttPrivateMethods extends GridPrivateMethods {
114
+ }
43
115
  export interface VxeGanttPrivateMethods extends GanttPrivateMethods { }
44
116
 
45
- export type VxeGanttEmits = []
117
+ export type VxeGanttEmits = [
118
+ ...VxeGridEmits
119
+ ]
46
120
 
47
121
  export namespace VxeGanttDefines {
48
- export interface GanttEventParams extends VxeComponentEventParams {
49
- $gantt: VxeGanttConstructor
122
+ export interface GanttEventParams<D = any> extends VxeComponentEventParams {
123
+ $gantt: VxeGanttConstructor<D>
124
+ }
125
+
126
+ export interface GroupHeaderColumn<D = any> extends VxeGanttPropTypes.Column<D> {
127
+ children: VxeGanttPropTypes.Column<D>[]
50
128
  }
51
129
  }
52
130
 
53
- export type VxeGanttEventProps = {}
131
+ export interface VxeGanttEventProps<D = any> extends VxeGridEventProps<D> {}
54
132
 
55
- export interface VxeGanttListeners { }
133
+ export interface VxeGanttListeners<D = any> extends VxeGridListeners<D> {
134
+ }
56
135
 
57
- export namespace VxeGanttEvents { }
136
+ export namespace VxeGanttEvents {
137
+ }
58
138
 
59
139
  export namespace VxeGanttSlotTypes {
60
- export interface DefaultSlotParams {}
140
+ export interface DefaultSlotParams<D = any> {
141
+ $gantt: VxeGanttConstructor<D>
142
+ }
61
143
  }
62
144
 
63
- export interface VxeGanttSlots {
64
- default?: (params: VxeGanttSlotTypes.DefaultSlotParams) => any
145
+ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
65
146
  }
66
147
 
148
+ export * from './gantt-module'
149
+
67
150
  export const Gantt: typeof VxeGantt
68
151
  export default VxeGantt
@@ -6,6 +6,7 @@ import { VxeColumnPropTypes } from './column'
6
6
  import { VxePagerProps, VxePagerDefines, VxePagerSlotTypes } from './pager'
7
7
  import { 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,@typescript-eslint/no-unused-vars */
11
12
 
@@ -69,7 +70,9 @@ export namespace VxeGridPropTypes {
69
70
  }
70
71
 
71
72
  interface ProxyAjaxQueryParams<D = any> {
72
- $grid: VxeGridConstructor<D>
73
+ $table: VxeTableConstructor<D>
74
+ $grid: VxeGridConstructor<D> | null | undefined
75
+ $gantt: VxeGanttConstructor<D> | null | undefined
73
76
  page: ProxyAjaxQueryPageParams
74
77
  sort: ProxyAjaxQuerySortCheckedParams<D>
75
78
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
@@ -81,7 +84,8 @@ export namespace VxeGridPropTypes {
81
84
 
82
85
  interface ProxyAjaxQueryAllParams<D = any> {
83
86
  $table: VxeTableConstructor<D>
84
- $grid: VxeGridConstructor<D>
87
+ $grid: VxeGridConstructor<D> | null | undefined
88
+ $gantt: VxeGanttConstructor<D> | null | undefined
85
89
  sort: ProxyAjaxQuerySortCheckedParams<D>
86
90
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
87
91
  filters: VxeTableDefines.FilterCheckedParams[]
@@ -92,14 +96,18 @@ export namespace VxeGridPropTypes {
92
96
  }
93
97
 
94
98
  interface ProxyAjaxDeleteParams<D = any> {
95
- $grid: VxeGridConstructor<D>
99
+ $table: VxeTableConstructor<D>
100
+ $grid: VxeGridConstructor<D> | null | undefined
101
+ $gantt: VxeGanttConstructor<D> | null | undefined
96
102
  body: {
97
103
  removeRecords: D[]
98
104
  }
99
105
  }
100
106
 
101
107
  interface ProxyAjaxSaveParams<D = any> {
102
- $grid: VxeGridConstructor<D>
108
+ $table: VxeTableConstructor<D>
109
+ $grid: VxeGridConstructor<D> | null | undefined
110
+ $gantt: VxeGanttConstructor<D> | null | undefined
103
111
  body: {
104
112
  insertRecords: D[]
105
113
  updateRecords: D[]
@@ -135,19 +143,27 @@ export namespace VxeGridPropTypes {
135
143
  response?: {
136
144
  list?: string | null | ((params: {
137
145
  data: any
138
- $grid: VxeGridConstructor<D>
146
+ $table: VxeTableConstructor<D>
147
+ $grid: VxeGridConstructor<D> | null | undefined
148
+ $gantt: VxeGanttConstructor<D> | null | undefined
139
149
  }) => any[])
140
150
  result?: string | ((params: {
141
151
  data: any
142
- $grid: VxeGridConstructor<D>
152
+ $table: VxeTableConstructor<D>
153
+ $grid: VxeGridConstructor<D> | null | undefined
154
+ $gantt: VxeGanttConstructor<D> | null | undefined
143
155
  }) => any[])
144
156
  total?: string | ((params: {
145
157
  data: any
146
- $grid: VxeGridConstructor<D>
158
+ $table: VxeTableConstructor<D>
159
+ $grid: VxeGridConstructor<D> | null | undefined
160
+ $gantt: VxeGanttConstructor<D> | null | undefined
147
161
  }) => number)
148
162
  message?: string | ((params: {
149
163
  data: any
150
- $grid: VxeGridConstructor<D>
164
+ $table: VxeTableConstructor<D>
165
+ $grid: VxeGridConstructor<D> | null | undefined
166
+ $gantt: VxeGanttConstructor<D> | null | undefined
151
167
  }) => string)
152
168
  }
153
169
  ajax?: {
@@ -318,12 +334,12 @@ export interface GridMethods<D = any> {
318
334
  /**
319
335
  * 只对 form-config 有效,对表单进行校验,返回校验结果 promise
320
336
  */
321
- validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams>
337
+ validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
322
338
  /**
323
339
  * 只对 form-config 有效,对表单指定项进行校验,返回校验结果 promise
324
340
  * @param field 字段名
325
341
  */
326
- validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams>
342
+ validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
327
343
  /**
328
344
  * 只对 form-config 有效,手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
329
345
  * @param field 字段名
@@ -453,7 +469,9 @@ export type VxeGridEmits = [
453
469
 
454
470
  export namespace VxeGridDefines {
455
471
  export interface GridEventParams<D = any> extends VxeComponentEventParams {
456
- $grid: VxeGridConstructor<D>
472
+ $table: VxeTableConstructor<D>
473
+ $grid: VxeGridConstructor<D> | null | undefined
474
+ $gantt: VxeGanttConstructor<D> | null | undefined
457
475
  }
458
476
 
459
477
  export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> { }
@@ -777,6 +795,7 @@ export namespace VxeGridSlotTypes {
777
795
  export interface DefaultSlotParams<D = any> {
778
796
  $table: VxeTableConstructor<D>
779
797
  $grid: VxeGridConstructor<D> | null | undefined
798
+ $gantt: VxeGanttConstructor<D> | null | undefined
780
799
  rowid: string
781
800
  /**
782
801
  * 当前行对象,支持数据双向绑定
@@ -842,6 +861,7 @@ export namespace VxeGridSlotTypes {
842
861
  export interface BaseSlotParams<D = any> {
843
862
  $table: VxeTableConstructor<D>
844
863
  $grid: VxeGridConstructor<D> | null | undefined
864
+ $gantt: VxeGanttConstructor<D> | null | undefined
845
865
  }
846
866
  export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
847
867
  export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}