vxe-pc-ui 3.9.13 → 3.9.15

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 (60) hide show
  1. package/es/countdown/src/countdown.js +2 -1
  2. package/es/icon/style.css +1 -1
  3. package/es/input/src/input.js +1 -1
  4. package/es/radio/src/button.js +26 -13
  5. package/es/radio/src/group.js +3 -3
  6. package/es/radio/src/radio.js +26 -13
  7. package/es/slider/src/slider.js +3 -0
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/lib/countdown/src/countdown.js +4 -1
  13. package/lib/countdown/src/countdown.min.js +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/index.umd.js +89 -37
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/input/src/input.js +1 -1
  19. package/lib/input/src/input.min.js +1 -1
  20. package/lib/radio/src/button.js +32 -14
  21. package/lib/radio/src/button.min.js +1 -1
  22. package/lib/radio/src/group.js +4 -3
  23. package/lib/radio/src/group.min.js +1 -1
  24. package/lib/radio/src/radio.js +32 -14
  25. package/lib/radio/src/radio.min.js +1 -1
  26. package/lib/slider/src/slider.js +12 -0
  27. package/lib/slider/src/slider.min.js +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +1 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/package.json +2 -2
  35. package/packages/countdown/src/countdown.ts +2 -1
  36. package/packages/input/src/input.ts +1 -1
  37. package/packages/radio/src/button.ts +28 -14
  38. package/packages/radio/src/group.ts +4 -4
  39. package/packages/radio/src/radio.ts +28 -14
  40. package/packages/slider/src/slider.ts +3 -0
  41. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +22 -0
  42. package/types/components/gantt-plugins/index.d.ts +1 -0
  43. package/types/components/gantt.d.ts +43 -0
  44. package/types/components/radio-button.d.ts +12 -2
  45. package/types/components/radio-group.d.ts +9 -2
  46. package/types/components/radio.d.ts +7 -1
  47. package/types/components/slider.d.ts +35 -4
  48. package/types/components/table-plugins/extend-cell-area.d.ts +2 -0
  49. /package/es/icon/{iconfont.1756803054725.ttf → iconfont.1757057039752.ttf} +0 -0
  50. /package/es/icon/{iconfont.1756803054725.woff → iconfont.1757057039752.woff} +0 -0
  51. /package/es/icon/{iconfont.1756803054725.woff2 → iconfont.1757057039752.woff2} +0 -0
  52. /package/es/{iconfont.1756803054725.ttf → iconfont.1757057039752.ttf} +0 -0
  53. /package/es/{iconfont.1756803054725.woff → iconfont.1757057039752.woff} +0 -0
  54. /package/es/{iconfont.1756803054725.woff2 → iconfont.1757057039752.woff2} +0 -0
  55. /package/lib/icon/style/{iconfont.1756803054725.ttf → iconfont.1757057039752.ttf} +0 -0
  56. /package/lib/icon/style/{iconfont.1756803054725.woff → iconfont.1757057039752.woff} +0 -0
  57. /package/lib/icon/style/{iconfont.1756803054725.woff2 → iconfont.1757057039752.woff2} +0 -0
  58. /package/lib/{iconfont.1756803054725.ttf → iconfont.1757057039752.ttf} +0 -0
  59. /package/lib/{iconfont.1756803054725.woff → iconfont.1757057039752.woff} +0 -0
  60. /package/lib/{iconfont.1756803054725.woff2 → iconfont.1757057039752.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.9.13";
29
+ var version = exports.version = "3.9.15";
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.9.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},resizeConfig:{showTip:!0}},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.9.15";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},resizeConfig:{showTip:!0}},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.9.13");
8
+ var version = "ui v".concat("3.9.15");
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.9.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.9.15"),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.9.13",
3
+ "version": "3.9.15",
4
4
  "description": "A vue based PC component library",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -25,7 +25,7 @@
25
25
  "style": "lib/style.css",
26
26
  "typings": "types/index.d.ts",
27
27
  "dependencies": {
28
- "@vxe-ui/core": "^3.2.11"
28
+ "@vxe-ui/core": "^3.2.12"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@typescript-eslint/eslint-plugin": "^6.21.0",
@@ -68,7 +68,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
68
68
  const reactData = $xeCountdown.reactData
69
69
 
70
70
  const { currNum } = reactData
71
- return XEUtils.getDateDiff(Date.now(), Date.now() + currNum)
71
+ const diffRest = XEUtils.getDateDiff(Date.now(), Date.now() + currNum)
72
+ return Object.assign(diffRest, { done: !(XEUtils.isBoolean(diffRest.status) ? diffRest.status : diffRest.done) })
72
73
  },
73
74
  computeFormatLabel () {
74
75
  const $xeCountdown = this
@@ -3113,7 +3113,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
3113
3113
  } else if (['number', 'integer', 'float'].includes(type)) {
3114
3114
  warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, `<vxe-number-input type="${type}" ... />`])
3115
3115
  } else if (['password'].includes(type)) {
3116
- warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, `<vxe-password-input type="${type}" ... />`])
3116
+ warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, '<vxe-password-input ... />'])
3117
3117
  }
3118
3118
  globalEvents.on($xeInput, 'mousewheel', $xeInput.handleGlobalMousewheelEvent)
3119
3119
  globalEvents.on($xeInput, 'mousedown', $xeInput.handleGlobalMousedownEvent)
@@ -14,9 +14,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
14
14
  ],
15
15
  props: {
16
16
  value: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.ModelValue>,
17
- label: {
18
- type: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.Label>,
19
- default: null
17
+ checkedValue: {
18
+ type: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.CheckedValue>,
19
+ default: undefined
20
20
  },
21
21
  title: [String, Number] as PropType<VxeRadioButtonPropTypes.Title>,
22
22
  content: [String, Number] as PropType<VxeRadioButtonPropTypes.Content>,
@@ -31,6 +31,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
31
31
  size: {
32
32
  type: String as PropType<VxeRadioButtonPropTypes.Size>,
33
33
  default: () => getConfig().radioButton.size || getConfig().size
34
+ },
35
+
36
+ /**
37
+ * 已废弃,被 checkedValue 替换
38
+ */
39
+ label: {
40
+ type: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.Label>,
41
+ default: null
34
42
  }
35
43
  },
36
44
  inject: {
@@ -91,8 +99,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
91
99
  const props = $xeRadioButton
92
100
  const $xeRadioGroup = $xeRadioButton.$xeRadioGroup
93
101
 
94
- const { label } = props
95
- return $xeRadioGroup ? $xeRadioGroup.value === label : props.value === label
102
+ const { label, checkedValue } = props
103
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
104
+ return $xeRadioGroup ? $xeRadioGroup.value === radioValue : props.value === radioValue
96
105
  }
97
106
  },
98
107
  methods: {
@@ -114,20 +123,20 @@ export default /* define-vxe-component start */ defineVxeComponent({
114
123
  $xeRadioButton.$emit('model-value', value)
115
124
  }
116
125
  },
117
- handleValue (label: VxeRadioButtonPropTypes.Label, evnt: Event) {
126
+ handleValue (checkedValue: VxeRadioButtonPropTypes.CheckedValue, evnt: Event) {
118
127
  const $xeRadioButton = this
119
128
  const $xeForm = $xeRadioButton.$xeForm
120
129
  const $xeRadioGroup = $xeRadioButton.$xeRadioGroup
121
130
  const formItemInfo = $xeRadioButton.formItemInfo
122
131
 
123
132
  if ($xeRadioGroup) {
124
- $xeRadioGroup.handleChecked({ label }, evnt)
133
+ $xeRadioGroup.handleChecked({ label: checkedValue, checkedValue }, evnt)
125
134
  } else {
126
- $xeRadioButton.emitModel(label)
127
- $xeRadioButton.dispatchEvent('change', { value: label, label }, evnt)
135
+ $xeRadioButton.emitModel(checkedValue)
136
+ $xeRadioButton.dispatchEvent('change', { value: checkedValue, label: checkedValue }, evnt)
128
137
  // 自动更新校验状态
129
138
  if ($xeForm && formItemInfo) {
130
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, label)
139
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checkedValue)
131
140
  }
132
141
  }
133
142
  },
@@ -137,7 +146,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
137
146
 
138
147
  const isDisabled = $xeRadioButton.computeIsDisabled
139
148
  if (!isDisabled) {
140
- $xeRadioButton.handleValue(props.label, evnt)
149
+ const { label, checkedValue } = props
150
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
151
+ $xeRadioButton.handleValue(radioValue, evnt)
141
152
  }
142
153
  },
143
154
  clickEvent (evnt: Event) {
@@ -148,7 +159,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
148
159
  const isDisabled = $xeRadioButton.computeIsDisabled
149
160
  const isStrict = $xeRadioButton.computeStrict
150
161
  if (!isDisabled && !isStrict) {
151
- if (props.label === ($xeRadioGroup ? $xeRadioGroup.value : props.value)) {
162
+ const { label, checkedValue } = props
163
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
164
+ if (radioValue === ($xeRadioGroup ? $xeRadioGroup.value : props.value)) {
152
165
  $xeRadioButton.handleValue(null, evnt)
153
166
  }
154
167
  }
@@ -162,14 +175,15 @@ export default /* define-vxe-component start */ defineVxeComponent({
162
175
  const props = $xeRadioButton
163
176
  const slots = $xeRadioButton.$scopedSlots
164
177
 
165
- const { label } = props
178
+ const { label, checkedValue } = props
179
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
166
180
  const vSize = $xeRadioButton.computeSize
167
181
  const isDisabled = $xeRadioButton.computeIsDisabled
168
182
  const name = $xeRadioButton.computeName
169
183
  const isChecked = $xeRadioButton.computeChecked
170
184
 
171
185
  return h('label', {
172
- key: label,
186
+ key: radioValue,
173
187
  class: ['vxe-radio vxe-radio--button', {
174
188
  [`size--${vSize}`]: vSize,
175
189
  'is--disabled': isDisabled
@@ -122,15 +122,15 @@ export default /* define-vxe-component start */ defineVxeComponent({
122
122
  }
123
123
  },
124
124
  handleChecked (params: {
125
- label: any
125
+ checkedValue: any
126
126
  }, evnt: Event) {
127
127
  const $xeRadioGroup = this
128
128
  const $xeForm = $xeRadioGroup.$xeForm
129
129
  const formItemInfo = $xeRadioGroup.formItemInfo
130
130
 
131
- const value = params.label
131
+ const value = params.checkedValue
132
132
  $xeRadioGroup.emitModel(value)
133
- $xeRadioGroup.dispatchEvent('change', { value, label: value }, evnt)
133
+ $xeRadioGroup.dispatchEvent('change', { value, label: value, checkedValue: value }, evnt)
134
134
  // 自动更新校验状态
135
135
  if ($xeForm && formItemInfo) {
136
136
  $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value)
@@ -164,7 +164,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
164
164
  return h(btnComp, {
165
165
  key: item[valueField],
166
166
  props: {
167
- label: item[valueField],
167
+ checkedValue: item[valueField],
168
168
  content: item[labelField],
169
169
  disabled: item[disabledField]
170
170
  }
@@ -14,9 +14,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
14
14
  ],
15
15
  props: {
16
16
  value: [String, Number, Boolean] as PropType<VxeRadioPropTypes.ModelValue>,
17
- label: {
18
- type: [String, Number, Boolean] as PropType<VxeRadioPropTypes.Label>,
19
- default: null
17
+ checkedValue: {
18
+ type: [String, Number, Boolean] as PropType<VxeRadioPropTypes.CheckedValue>,
19
+ default: undefined
20
20
  },
21
21
  title: [String, Number] as PropType<VxeRadioPropTypes.Title>,
22
22
  content: [String, Number] as PropType<VxeRadioPropTypes.Content>,
@@ -32,6 +32,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
32
32
  size: {
33
33
  type: String as PropType<VxeRadioPropTypes.Size>,
34
34
  default: () => getConfig().radio.size || getConfig().size
35
+ },
36
+
37
+ /**
38
+ * 已废弃,被 checkedValue 替换
39
+ */
40
+ label: {
41
+ type: [String, Number, Boolean] as PropType<VxeRadioPropTypes.Label>,
42
+ default: null
35
43
  }
36
44
  },
37
45
  inject: {
@@ -93,8 +101,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
93
101
  const props = $xeRadio
94
102
 
95
103
  const $xeRadioGroup = $xeRadio.$xeRadioGroup
96
- const { label } = props
97
- return $xeRadioGroup ? $xeRadioGroup.value === label : props.value === label
104
+ const { label, checkedValue } = props
105
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
106
+ return $xeRadioGroup ? $xeRadioGroup.value === radioValue : props.value === radioValue
98
107
  }
99
108
  },
100
109
  methods: {
@@ -116,20 +125,20 @@ export default /* define-vxe-component start */ defineVxeComponent({
116
125
  $xeRadio.$emit('model-value', value)
117
126
  }
118
127
  },
119
- handleValue (label: VxeRadioPropTypes.Label, evnt: Event) {
128
+ handleValue (checkedValue: VxeRadioPropTypes.CheckedValue, evnt: Event) {
120
129
  const $xeRadio = this
121
130
  const formItemInfo = $xeRadio.formItemInfo
122
131
  const $xeForm = $xeRadio.$xeForm
123
132
  const $xeRadioGroup = $xeRadio.$xeRadioGroup
124
133
 
125
134
  if ($xeRadioGroup) {
126
- $xeRadioGroup.handleChecked({ label }, evnt)
135
+ $xeRadioGroup.handleChecked({ label: checkedValue, checkedValue }, evnt)
127
136
  } else {
128
- $xeRadio.emitModel(label)
129
- $xeRadio.dispatchEvent('change', { value: label, label }, evnt)
137
+ $xeRadio.emitModel(checkedValue)
138
+ $xeRadio.dispatchEvent('change', { value: checkedValue, label: checkedValue }, evnt)
130
139
  // 自动更新校验状态
131
140
  if ($xeForm && formItemInfo) {
132
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, label)
141
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checkedValue)
133
142
  }
134
143
  }
135
144
  },
@@ -139,7 +148,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
139
148
 
140
149
  const isDisabled = $xeRadio.computeIsDisabled
141
150
  if (!isDisabled) {
142
- $xeRadio.handleValue(props.label, evnt)
151
+ const { label, checkedValue } = props
152
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
153
+ $xeRadio.handleValue(radioValue, evnt)
143
154
  }
144
155
  },
145
156
  clickEvent (evnt: Event) {
@@ -150,7 +161,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
150
161
  const isDisabled = $xeRadio.computeIsDisabled
151
162
  const isStrict = $xeRadio.computeStrict
152
163
  if (!isDisabled && !isStrict) {
153
- if (props.label === ($xeRadioGroup ? $xeRadioGroup.value : props.value)) {
164
+ const { label, checkedValue } = props
165
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
166
+ if (radioValue === ($xeRadioGroup ? $xeRadioGroup.value : props.value)) {
154
167
  $xeRadio.handleValue(null, evnt)
155
168
  }
156
169
  }
@@ -164,7 +177,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
164
177
  const $xeRadio = this
165
178
  const props = $xeRadio
166
179
 
167
- const { label } = props
180
+ const { label, checkedValue } = props
181
+ const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
168
182
  const slots = $xeRadio.$scopedSlots
169
183
  const vSize = $xeRadio.computeSize
170
184
  const isDisabled = $xeRadio.computeIsDisabled
@@ -172,7 +186,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
172
186
  const isChecked = $xeRadio.computeChecked
173
187
 
174
188
  return h('label', {
175
- key: label,
189
+ key: radioValue,
176
190
  class: ['vxe-radio vxe-radio--default', {
177
191
  [`size--${vSize}`]: vSize,
178
192
  'is--checked': isChecked,
@@ -227,15 +227,18 @@ export default /* define-vxe-component start */ defineVxeComponent({
227
227
  } else {
228
228
  reactData.startValue = XEUtils.floor(Math.max(minNum, Math.min(maxNum, trackWidth * (maxNum - minNum))))
229
229
  }
230
+ $xeSlider.dispatchEvent('track-dragover', { startValue: reactData.startValue, endValue: reactData.endValue }, evnt)
230
231
  }
231
232
  $xeSlider.updateBarStyle()
232
233
  }
233
234
  document.onmouseup = (evnt: MouseEvent) => {
234
235
  document.onmousemove = null
235
236
  document.onmouseup = null
237
+ $xeSlider.dispatchEvent('track-dragend', { startValue: reactData.startValue, endValue: reactData.endValue }, evnt)
236
238
  $xeSlider.changeEvent(evnt)
237
239
  $xeSlider.updateBarStyle()
238
240
  }
241
+ $xeSlider.dispatchEvent('track-dragstart', { startValue: reactData.startValue, endValue: reactData.endValue }, evnt)
239
242
  }
240
243
  },
241
244
  handleStartMousedownEvent (evnt: MouseEvent) {
@@ -0,0 +1,22 @@
1
+ /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/no-unused-vars */
2
+
3
+ export interface VxeGanttExtendChartMethods<D = any> {
4
+ }
5
+
6
+ export interface VxeGanttExtendChartPrivateMethods<D = any> {
7
+ /**
8
+ * @private
9
+ */
10
+ handleTaskBarMousedownEvent(evnt: MouseEvent, params: {
11
+ row: any
12
+ }): void
13
+ }
14
+
15
+ declare module '../gantt' {
16
+ export interface GanttInternalData {
17
+ trialElem?: HTMLElement | null
18
+ }
19
+
20
+ export interface VxeGanttMethods<D = any> extends VxeGanttExtendChartMethods<D> { }
21
+ export interface VxeGanttPrivateMethods<D = any> extends VxeGanttExtendChartPrivateMethods<D> { }
22
+ }
@@ -0,0 +1 @@
1
+ export * from './extend-gantt-chart'
@@ -190,6 +190,46 @@ export namespace VxeGanttPropTypes {
190
190
  $gantt: VxeGanttConstructor<D>
191
191
  row: D
192
192
  }) => BarStyleConfig)
193
+ /**
194
+ * 是否启用拖拽移动日期
195
+ */
196
+ drag?: boolean
197
+ /**
198
+ * 是否启用拖拽调整日期
199
+ */
200
+ resize?: boolean
201
+ }
202
+ export interface TaskResizeConfig<D = any> {
203
+ /**
204
+ * 拖拽开始时是否允许行拖拽调整任务条日期的方法,该方法的返回值用来决定是否允许被拖拽
205
+ */
206
+ resizeStartMethod?(params: {
207
+ $gantt: VxeGanttConstructor<D>
208
+ row: D
209
+ }): boolean
210
+ /**
211
+ * 拖拽结束时是否允许行拖拽调整任务条日期的方法,该方法的返回值用来决定是否允许被拖拽调整日期范围
212
+ */
213
+ resizeEndMethod?(params: {
214
+ $gantt: VxeGanttConstructor<D>
215
+ row: D
216
+ }): Promise<boolean> | boolean
217
+ }
218
+ export interface TaskDragConfig<D = any> {
219
+ /**
220
+ * 拖拽开始时是否允许行拖拽移动任务条日期的方法,该方法的返回值用来决定是否允许被拖拽
221
+ */
222
+ dragStartMethod?(params: {
223
+ $gantt: VxeGanttConstructor<D>
224
+ row: D
225
+ }): boolean
226
+ /**
227
+ * 拖拽结束时是否允许行拖拽移动任务条日期的方法,该方法的返回值用来决定是否允许被拖拽移动到指定日期
228
+ */
229
+ dragEndMethod?(params: {
230
+ $gantt: VxeGanttConstructor<D>
231
+ row: D
232
+ }): Promise<boolean> | boolean
193
233
  }
194
234
  }
195
235
 
@@ -200,6 +240,8 @@ export interface VxeGanttProps<D = any> extends Omit<VxeGridProps<D>, 'layouts'>
200
240
  taskViewConfig?: VxeGanttPropTypes.TaskViewConfig<D>
201
241
  taskSplitConfig?: VxeGanttPropTypes.TaskSplitConfig
202
242
  taskBarConfig?: VxeGanttPropTypes.TaskBarConfig<D>
243
+ taskResizeConfig?: VxeGanttPropTypes.TaskResizeConfig<D>
244
+ taskDragConfig?: VxeGanttPropTypes.TaskDragConfig<D>
203
245
  }
204
246
 
205
247
  export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
@@ -444,6 +486,7 @@ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
444
486
  }
445
487
 
446
488
  export * from './gantt-module'
489
+ export * from './gantt-plugins'
447
490
 
448
491
  export const Gantt: typeof VxeGantt
449
492
  export default VxeGantt
@@ -20,10 +20,15 @@ export namespace VxeRadioButtonPropTypes {
20
20
  export type Size = VxeRadioPropTypes.Size
21
21
  export type ModelValue = any
22
22
  export type Strict = boolean
23
- export type Label = VxeRadioPropTypes.Label
23
+ export type CheckedValue = VxeRadioPropTypes.CheckedValue
24
24
  export type Title = string | number
25
25
  export type Content = string | number
26
26
  export type Disabled = boolean
27
+
28
+ /**
29
+ * 已废弃,被 CheckedValue 替换
30
+ */
31
+ export type Label = VxeRadioPropTypes.Label
27
32
  }
28
33
 
29
34
  export interface VxeRadioButtonProps {
@@ -33,10 +38,15 @@ export interface VxeRadioButtonProps {
33
38
  * 严格模式,不允许取消
34
39
  */
35
40
  strict?: VxeRadioButtonPropTypes.Strict
36
- label?: VxeRadioButtonPropTypes.Label
41
+ checkedValue?: VxeRadioButtonPropTypes.CheckedValue
37
42
  title?: VxeRadioButtonPropTypes.Title
38
43
  content?: VxeRadioButtonPropTypes.Content
39
44
  disabled?: VxeRadioButtonPropTypes.Disabled
45
+
46
+ /**
47
+ * 已废弃,被 checkedValue 替换
48
+ */
49
+ label?: VxeRadioButtonPropTypes.Label
40
50
  }
41
51
 
42
52
  export interface RadioButtonPrivateComputed {
@@ -21,7 +21,7 @@ export namespace VxeRadioGroupPropTypes {
21
21
  export type Size = VxeComponentSizeType
22
22
  export type Type = 'button' | 'default' | '' | null
23
23
  export type Options = {
24
- value?: VxeRadioPropTypes.Label
24
+ value?: VxeRadioPropTypes.CheckedValue
25
25
  label?: VxeRadioPropTypes.Content
26
26
 
27
27
  [key: string]: any
@@ -63,7 +63,14 @@ export interface RadioGroupMethods {
63
63
  export interface VxeRadioGroupMethods extends RadioGroupMethods { }
64
64
 
65
65
  export interface RadioGroupPrivateMethods {
66
- handleChecked(params: { label: any }, evnt: Event): void
66
+ handleChecked(params: {
67
+ checkedValue: any
68
+
69
+ /**
70
+ * @deprecated
71
+ */
72
+ label: any
73
+ }, evnt: Event): void
67
74
  }
68
75
  export interface VxeRadioGroupPrivateMethods extends RadioGroupPrivateMethods { }
69
76
 
@@ -20,6 +20,7 @@ export namespace VxeRadioPropTypes {
20
20
  export type Strict = boolean
21
21
  export type ModelValue = any
22
22
  export type Label = any
23
+ export type CheckedValue = any
23
24
  export type Title = string | number
24
25
  export type Content = string | number
25
26
  export type Disabled = boolean
@@ -39,7 +40,7 @@ export interface VxeRadioProps {
39
40
  /**
40
41
  * 值
41
42
  */
42
- label?: VxeRadioPropTypes.Label
43
+ checkedValue?: VxeRadioPropTypes.CheckedValue
43
44
  /**
44
45
  * 原生 title 属性
45
46
  */
@@ -56,6 +57,11 @@ export interface VxeRadioProps {
56
57
  * 原生 title 属性
57
58
  */
58
59
  name?: VxeRadioPropTypes.Name
60
+
61
+ /**
62
+ * 已废弃,被 checkedValue 替换
63
+ */
64
+ label?: VxeRadioPropTypes.Label
59
65
  }
60
66
 
61
67
  export interface RadioPrivateComputed {
@@ -59,20 +59,51 @@ export interface VxeSliderPrivateMethods extends SliderPrivateMethods { }
59
59
 
60
60
  export type VxeSliderEmits = [
61
61
  'modelValue',
62
- 'change'
62
+ 'change',
63
+ 'track-dragstart',
64
+ 'track-dragover',
65
+ 'track-dragend'
63
66
  ]
64
67
 
65
68
  export namespace VxeSliderDefines {
66
69
  export interface SliderEventParams extends VxeComponentEventParams {
67
70
  $slider: VxeSliderConstructor
68
71
  }
72
+
73
+ export interface ChangeEventParams extends SliderEventParams {
74
+ startValue: number
75
+ endValue: number
76
+ }
77
+
78
+ export interface TrackDragstartEventParams extends SliderEventParams {
79
+ startValue: number
80
+ endValue: number
81
+ }
82
+ export interface TrackDragoverEventParams extends TrackDragstartEventParams {}
83
+ export interface TrackDragendEventParams extends TrackDragstartEventParams {}
69
84
  }
70
85
 
71
- export type VxeSliderEventProps = {}
86
+ export type VxeSliderEventProps = {
87
+ onChange?: VxeSliderEvents.Change
88
+ onTrackDragstart?: VxeSliderEvents.TrackDragstart
89
+ onTrackDragover?: VxeSliderEvents.TrackDragover
90
+ onTrackDragend?: VxeSliderEvents.TrackDragend
91
+ }
72
92
 
73
- export interface VxeSliderListeners { }
93
+ export interface VxeSliderListeners {
94
+ change?: VxeSliderEvents.Change
95
+ trackDragstart?: VxeSliderEvents.TrackDragstart
96
+ trackDragover?: VxeSliderEvents.TrackDragover
97
+ trackDragend?: VxeSliderEvents.TrackDragend
98
+ }
74
99
 
75
- export namespace VxeSliderEvents { }
100
+ export namespace VxeSliderEvents {
101
+ export type UpdateModelValue = (modelValue: VxeSliderPropTypes.ModelValue) => void
102
+ export type Change = (params: VxeSliderDefines.ChangeEventParams) => void
103
+ export type TrackDragstart = (params: VxeSliderDefines.TrackDragstartEventParams) => void
104
+ export type TrackDragover = (params: VxeSliderDefines.TrackDragoverEventParams) => void
105
+ export type TrackDragend = (params: VxeSliderDefines.TrackDragendEventParams) => void
106
+ }
76
107
 
77
108
  export namespace VxeSliderSlotTypes {
78
109
  export interface DefaultSlotParams {}
@@ -178,6 +178,8 @@ declare module '../table' {
178
178
  _r?: boolean
179
179
  } | null
180
180
 
181
+ trialElem?: HTMLElement | null
182
+
181
183
  _msTout?: any
182
184
  _isCAEd?: boolean
183
185