vxe-pc-ui 4.9.13 → 4.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.
- package/es/countdown/src/countdown.js +2 -1
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +1 -1
- package/es/radio/src/button.js +26 -13
- package/es/radio/src/group.js +3 -3
- package/es/radio/src/radio.js +26 -13
- package/es/slider/src/slider.js +7 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/countdown/src/countdown.js +4 -1
- package/lib/countdown/src/countdown.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +99 -38
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +1 -1
- package/lib/input/src/input.min.js +1 -1
- package/lib/radio/src/button.js +36 -14
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/group.js +4 -3
- package/lib/radio/src/group.min.js +1 -1
- package/lib/radio/src/radio.js +37 -14
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/slider/src/slider.js +13 -1
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/countdown/src/countdown.ts +2 -1
- package/packages/input/src/input.ts +1 -1
- package/packages/radio/src/button.ts +28 -14
- package/packages/radio/src/group.ts +3 -3
- package/packages/radio/src/radio.ts +28 -14
- package/packages/slider/src/slider.ts +7 -1
- package/types/components/gantt-plugins/extend-gantt-chart.d.ts +22 -0
- package/types/components/gantt-plugins/index.d.ts +1 -0
- package/types/components/gantt.d.ts +43 -0
- package/types/components/radio-button.d.ts +12 -2
- package/types/components/radio-group.d.ts +9 -2
- package/types/components/radio.d.ts +7 -1
- package/types/components/slider.d.ts +28 -1
- package/types/components/table-plugins/extend-cell-area.d.ts +2 -0
- package/types/components/table.d.ts +10 -0
- /package/es/icon/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
- /package/es/icon/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
- /package/es/icon/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
- /package/es/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
- /package/es/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
- /package/es/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
- /package/lib/icon/style/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
- /package/lib/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
- /package/lib/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
- /package/lib/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
26
26
|
});
|
|
27
27
|
var _dynamics = require("../dynamics");
|
|
28
28
|
var _log = require("./src/log");
|
|
29
|
-
const version = exports.version = "4.9.
|
|
29
|
+
const version = exports.version = "4.9.15";
|
|
30
30
|
_core.VxeUI.uiVersion = version;
|
|
31
31
|
_core.VxeUI.dynamicApp = _dynamics.dynamicApp;
|
|
32
32
|
function config(options) {
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_log=require("./src/log");const version=exports.version="4.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:null,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"]},image:{showPreview:!0,showPrintButton:!0,maskClosable:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},split:{resize:!0,itemConfig:{minWidth:40,minHeight:40},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:{}});const iconPrefix="vxe-icon-";(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-down rotate180",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-down",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right"});var _default=exports.default=_core.VxeUI;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_log=require("./src/log");const version=exports.version="4.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:null,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"]},image:{showPreview:!0,showPrintButton:!0,maskClosable:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},split:{resize:!0,itemConfig:{minWidth:40,minHeight:40},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:{}});const iconPrefix="vxe-icon-";(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-down rotate180",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-down",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right"});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
|
-
const version = `ui v${"4.9.
|
|
8
|
+
const version = `ui v${"4.9.15"}`;
|
|
9
9
|
const warnLog = exports.warnLog = _core.log.create('warn', version);
|
|
10
10
|
const errLog = exports.errLog = _core.log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v4.9.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v4.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": "4.9.
|
|
3
|
+
"version": "4.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": "^4.2.
|
|
28
|
+
"@vxe-ui/core": "^4.2.12"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
@@ -68,7 +68,8 @@ export default defineVxeComponent({
|
|
|
68
68
|
|
|
69
69
|
const computeDiffConf = computed(() => {
|
|
70
70
|
const { currNum } = reactData
|
|
71
|
-
|
|
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
|
|
|
74
75
|
const computeFormatLabel = computed(() => {
|
|
@@ -2712,7 +2712,7 @@ export default defineVxeComponent({
|
|
|
2712
2712
|
} else if (['number', 'integer', 'float'].includes(type)) {
|
|
2713
2713
|
warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, `<vxe-number-input type="${type}" ... />`])
|
|
2714
2714
|
} else if (['password'].includes(type)) {
|
|
2715
|
-
warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`,
|
|
2715
|
+
warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, '<vxe-password-input ... />'])
|
|
2716
2716
|
}
|
|
2717
2717
|
globalEvents.on($xeInput, 'mousewheel', handleGlobalMousewheelEvent)
|
|
2718
2718
|
globalEvents.on($xeInput, 'mousedown', handleGlobalMousedownEvent)
|
|
@@ -10,9 +10,9 @@ export default defineVxeComponent({
|
|
|
10
10
|
name: 'VxeRadioButton',
|
|
11
11
|
props: {
|
|
12
12
|
modelValue: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.ModelValue>,
|
|
13
|
-
|
|
14
|
-
type: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.
|
|
15
|
-
default:
|
|
13
|
+
checkedValue: {
|
|
14
|
+
type: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.CheckedValue>,
|
|
15
|
+
default: undefined
|
|
16
16
|
},
|
|
17
17
|
title: [String, Number] as PropType<VxeRadioButtonPropTypes.Title>,
|
|
18
18
|
content: [String, Number] as PropType<VxeRadioButtonPropTypes.Content>,
|
|
@@ -27,6 +27,14 @@ export default defineVxeComponent({
|
|
|
27
27
|
size: {
|
|
28
28
|
type: String as PropType<VxeRadioButtonPropTypes.Size>,
|
|
29
29
|
default: () => getConfig().radioButton.size || getConfig().size
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 已废弃,被 checkedValue 替换
|
|
34
|
+
*/
|
|
35
|
+
label: {
|
|
36
|
+
type: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.Label>,
|
|
37
|
+
default: null
|
|
30
38
|
}
|
|
31
39
|
},
|
|
32
40
|
emits: [
|
|
@@ -74,8 +82,9 @@ export default defineVxeComponent({
|
|
|
74
82
|
})
|
|
75
83
|
|
|
76
84
|
const computeChecked = computed(() => {
|
|
77
|
-
const { label } = props
|
|
78
|
-
|
|
85
|
+
const { label, checkedValue } = props
|
|
86
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
87
|
+
return $xeRadioGroup ? $xeRadioGroup.props.modelValue === radioValue : props.modelValue === radioValue
|
|
79
88
|
})
|
|
80
89
|
|
|
81
90
|
const radioButtonMethods: RadioButtonMethods = {
|
|
@@ -89,15 +98,15 @@ export default defineVxeComponent({
|
|
|
89
98
|
|
|
90
99
|
Object.assign($xeRadioButton, radioButtonMethods, radioButtonPrivateMethods)
|
|
91
100
|
|
|
92
|
-
const handleValue = (
|
|
101
|
+
const handleValue = (checkedValue: VxeRadioButtonPropTypes.CheckedValue, evnt: Event) => {
|
|
93
102
|
if ($xeRadioGroup) {
|
|
94
|
-
$xeRadioGroup.handleChecked({ label }, evnt)
|
|
103
|
+
$xeRadioGroup.handleChecked({ label: checkedValue, checkedValue }, evnt)
|
|
95
104
|
} else {
|
|
96
|
-
emit('update:modelValue',
|
|
97
|
-
radioButtonMethods.dispatchEvent('change', { value:
|
|
105
|
+
emit('update:modelValue', checkedValue)
|
|
106
|
+
radioButtonMethods.dispatchEvent('change', { value: checkedValue, label: checkedValue }, evnt)
|
|
98
107
|
// 自动更新校验状态
|
|
99
108
|
if ($xeForm && formItemInfo) {
|
|
100
|
-
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field,
|
|
109
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checkedValue)
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
}
|
|
@@ -105,7 +114,9 @@ export default defineVxeComponent({
|
|
|
105
114
|
const changeEvent = (evnt: Event) => {
|
|
106
115
|
const isDisabled = computeIsDisabled.value
|
|
107
116
|
if (!isDisabled) {
|
|
108
|
-
|
|
117
|
+
const { label, checkedValue } = props
|
|
118
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
119
|
+
handleValue(radioValue, evnt)
|
|
109
120
|
}
|
|
110
121
|
}
|
|
111
122
|
|
|
@@ -113,21 +124,24 @@ export default defineVxeComponent({
|
|
|
113
124
|
const isDisabled = computeIsDisabled.value
|
|
114
125
|
const isStrict = computeStrict.value
|
|
115
126
|
if (!isDisabled && !isStrict) {
|
|
116
|
-
|
|
127
|
+
const { label, checkedValue } = props
|
|
128
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
129
|
+
if (radioValue === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
|
|
117
130
|
handleValue(null, evnt)
|
|
118
131
|
}
|
|
119
132
|
}
|
|
120
133
|
}
|
|
121
134
|
|
|
122
135
|
const renderVN = () => {
|
|
123
|
-
const { label } = props
|
|
136
|
+
const { label, checkedValue } = props
|
|
137
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
124
138
|
const vSize = computeSize.value
|
|
125
139
|
const isDisabled = computeIsDisabled.value
|
|
126
140
|
const name = computeName.value
|
|
127
141
|
const isChecked = computeChecked.value
|
|
128
142
|
|
|
129
143
|
return h('label', {
|
|
130
|
-
key:
|
|
144
|
+
key: radioValue,
|
|
131
145
|
class: ['vxe-radio vxe-radio--button', {
|
|
132
146
|
[`size--${vSize}`]: vSize,
|
|
133
147
|
'is--disabled': isDisabled
|
|
@@ -98,9 +98,9 @@ export default defineVxeComponent({
|
|
|
98
98
|
|
|
99
99
|
const radioGroupPrivateMethods: RadioGroupPrivateMethods = {
|
|
100
100
|
handleChecked (params, evnt) {
|
|
101
|
-
const value = params.
|
|
101
|
+
const value = params.checkedValue
|
|
102
102
|
emit('update:modelValue', value)
|
|
103
|
-
dispatchEvent('change', { value, label: value }, evnt)
|
|
103
|
+
dispatchEvent('change', { value, label: value, checkedValue: value }, evnt)
|
|
104
104
|
// 自动更新校验状态
|
|
105
105
|
if ($xeForm && formItemInfo) {
|
|
106
106
|
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value)
|
|
@@ -129,7 +129,7 @@ export default defineVxeComponent({
|
|
|
129
129
|
? options.map(item => {
|
|
130
130
|
return h(btnComp, {
|
|
131
131
|
key: item[valueField],
|
|
132
|
-
|
|
132
|
+
checkedValue: item[valueField],
|
|
133
133
|
content: item[labelField],
|
|
134
134
|
disabled: item[disabledField]
|
|
135
135
|
})
|
|
@@ -10,9 +10,9 @@ export default defineVxeComponent({
|
|
|
10
10
|
name: 'VxeRadio',
|
|
11
11
|
props: {
|
|
12
12
|
modelValue: [String, Number, Boolean] as PropType<VxeRadioPropTypes.ModelValue>,
|
|
13
|
-
|
|
14
|
-
type: [String, Number, Boolean] as PropType<VxeRadioPropTypes.
|
|
15
|
-
default:
|
|
13
|
+
checkedValue: {
|
|
14
|
+
type: [String, Number, Boolean] as PropType<VxeRadioPropTypes.CheckedValue>,
|
|
15
|
+
default: undefined
|
|
16
16
|
},
|
|
17
17
|
title: [String, Number] as PropType<VxeRadioPropTypes.Title>,
|
|
18
18
|
content: [String, Number] as PropType<VxeRadioPropTypes.Content>,
|
|
@@ -28,6 +28,14 @@ export default defineVxeComponent({
|
|
|
28
28
|
size: {
|
|
29
29
|
type: String as PropType<VxeRadioPropTypes.Size>,
|
|
30
30
|
default: () => getConfig().radio.size || getConfig().size
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 已废弃,被 checkedValue 替换
|
|
35
|
+
*/
|
|
36
|
+
label: {
|
|
37
|
+
type: [String, Number, Boolean] as PropType<VxeRadioPropTypes.Label>,
|
|
38
|
+
default: null
|
|
31
39
|
}
|
|
32
40
|
},
|
|
33
41
|
emits: [
|
|
@@ -75,19 +83,20 @@ export default defineVxeComponent({
|
|
|
75
83
|
})
|
|
76
84
|
|
|
77
85
|
const computeChecked = computed(() => {
|
|
78
|
-
const { label } = props
|
|
79
|
-
|
|
86
|
+
const { label, checkedValue } = props
|
|
87
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
88
|
+
return $xeRadioGroup ? $xeRadioGroup.props.modelValue === radioValue : props.modelValue === radioValue
|
|
80
89
|
})
|
|
81
90
|
|
|
82
|
-
const handleValue = (
|
|
91
|
+
const handleValue = (checkedValue: VxeRadioPropTypes.CheckedValue, evnt: Event) => {
|
|
83
92
|
if ($xeRadioGroup) {
|
|
84
|
-
$xeRadioGroup.handleChecked({ label }, evnt)
|
|
93
|
+
$xeRadioGroup.handleChecked({ label: checkedValue, checkedValue }, evnt)
|
|
85
94
|
} else {
|
|
86
|
-
emit('update:modelValue',
|
|
87
|
-
dispatchEvent('change', { value:
|
|
95
|
+
emit('update:modelValue', checkedValue)
|
|
96
|
+
dispatchEvent('change', { value: checkedValue, label: checkedValue, checkedValue }, evnt)
|
|
88
97
|
// 自动更新校验状态
|
|
89
98
|
if ($xeForm && formItemInfo) {
|
|
90
|
-
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field,
|
|
99
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checkedValue)
|
|
91
100
|
}
|
|
92
101
|
}
|
|
93
102
|
}
|
|
@@ -95,7 +104,9 @@ export default defineVxeComponent({
|
|
|
95
104
|
const changeEvent = (evnt: Event) => {
|
|
96
105
|
const isDisabled = computeIsDisabled.value
|
|
97
106
|
if (!isDisabled) {
|
|
98
|
-
|
|
107
|
+
const { label, checkedValue } = props
|
|
108
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
109
|
+
handleValue(radioValue, evnt)
|
|
99
110
|
}
|
|
100
111
|
}
|
|
101
112
|
|
|
@@ -103,7 +114,9 @@ export default defineVxeComponent({
|
|
|
103
114
|
const isDisabled = computeIsDisabled.value
|
|
104
115
|
const isStrict = computeStrict.value
|
|
105
116
|
if (!isDisabled && !isStrict) {
|
|
106
|
-
|
|
117
|
+
const { label, checkedValue } = props
|
|
118
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
119
|
+
if (radioValue === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
|
|
107
120
|
handleValue(null, evnt)
|
|
108
121
|
}
|
|
109
122
|
}
|
|
@@ -123,13 +136,14 @@ export default defineVxeComponent({
|
|
|
123
136
|
Object.assign($xeRadio, radioMethods, radioPrivateMethods)
|
|
124
137
|
|
|
125
138
|
const renderVN = () => {
|
|
126
|
-
const { label } = props
|
|
139
|
+
const { label, checkedValue } = props
|
|
140
|
+
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
127
141
|
const vSize = computeSize.value
|
|
128
142
|
const isDisabled = computeIsDisabled.value
|
|
129
143
|
const name = computeName.value
|
|
130
144
|
const isChecked = computeChecked.value
|
|
131
145
|
return h('label', {
|
|
132
|
-
key:
|
|
146
|
+
key: radioValue,
|
|
133
147
|
class: ['vxe-radio vxe-radio--default', {
|
|
134
148
|
[`size--${vSize}`]: vSize,
|
|
135
149
|
'is--checked': isChecked,
|
|
@@ -41,7 +41,10 @@ export default defineVxeComponent({
|
|
|
41
41
|
},
|
|
42
42
|
emits: [
|
|
43
43
|
'update:modelValue',
|
|
44
|
-
'change'
|
|
44
|
+
'change',
|
|
45
|
+
'track-dragstart',
|
|
46
|
+
'track-dragover',
|
|
47
|
+
'track-dragend'
|
|
45
48
|
] as VxeSliderEmits,
|
|
46
49
|
setup (props, context) {
|
|
47
50
|
const { emit } = context
|
|
@@ -206,15 +209,18 @@ export default defineVxeComponent({
|
|
|
206
209
|
} else {
|
|
207
210
|
reactData.startValue = XEUtils.floor(Math.max(minNum, Math.min(maxNum, trackWidth * (maxNum - minNum))))
|
|
208
211
|
}
|
|
212
|
+
dispatchEvent('track-dragover', { startValue: reactData.startValue, endValue: reactData.endValue }, evnt)
|
|
209
213
|
}
|
|
210
214
|
updateBarStyle()
|
|
211
215
|
}
|
|
212
216
|
document.onmouseup = (evnt: MouseEvent) => {
|
|
213
217
|
document.onmousemove = null
|
|
214
218
|
document.onmouseup = null
|
|
219
|
+
dispatchEvent('track-dragend', { startValue: reactData.startValue, endValue: reactData.endValue }, evnt)
|
|
215
220
|
changeEvent(evnt)
|
|
216
221
|
updateBarStyle()
|
|
217
222
|
}
|
|
223
|
+
dispatchEvent('track-dragstart', { startValue: reactData.startValue, endValue: reactData.endValue }, evnt)
|
|
218
224
|
}
|
|
219
225
|
}
|
|
220
226
|
|
|
@@ -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'
|
|
@@ -196,6 +196,46 @@ export namespace VxeGanttPropTypes {
|
|
|
196
196
|
$gantt: VxeGanttConstructor<D>
|
|
197
197
|
row: D
|
|
198
198
|
}) => BarStyleConfig)
|
|
199
|
+
/**
|
|
200
|
+
* 是否启用拖拽移动日期
|
|
201
|
+
*/
|
|
202
|
+
drag?: boolean
|
|
203
|
+
/**
|
|
204
|
+
* 是否启用拖拽调整日期
|
|
205
|
+
*/
|
|
206
|
+
resize?: boolean
|
|
207
|
+
}
|
|
208
|
+
export interface TaskResizeConfig<D = any> {
|
|
209
|
+
/**
|
|
210
|
+
* 拖拽开始时是否允许行拖拽调整任务条日期的方法,该方法的返回值用来决定是否允许被拖拽
|
|
211
|
+
*/
|
|
212
|
+
resizeStartMethod?(params: {
|
|
213
|
+
$gantt: VxeGanttConstructor<D>
|
|
214
|
+
row: D
|
|
215
|
+
}): boolean
|
|
216
|
+
/**
|
|
217
|
+
* 拖拽结束时是否允许行拖拽调整任务条日期的方法,该方法的返回值用来决定是否允许被拖拽调整日期范围
|
|
218
|
+
*/
|
|
219
|
+
resizeEndMethod?(params: {
|
|
220
|
+
$gantt: VxeGanttConstructor<D>
|
|
221
|
+
row: D
|
|
222
|
+
}): Promise<boolean> | boolean
|
|
223
|
+
}
|
|
224
|
+
export interface TaskDragConfig<D = any> {
|
|
225
|
+
/**
|
|
226
|
+
* 拖拽开始时是否允许行拖拽移动任务条日期的方法,该方法的返回值用来决定是否允许被拖拽
|
|
227
|
+
*/
|
|
228
|
+
dragStartMethod?(params: {
|
|
229
|
+
$gantt: VxeGanttConstructor<D>
|
|
230
|
+
row: D
|
|
231
|
+
}): boolean
|
|
232
|
+
/**
|
|
233
|
+
* 拖拽结束时是否允许行拖拽移动任务条日期的方法,该方法的返回值用来决定是否允许被拖拽移动到指定日期
|
|
234
|
+
*/
|
|
235
|
+
dragEndMethod?(params: {
|
|
236
|
+
$gantt: VxeGanttConstructor<D>
|
|
237
|
+
row: D
|
|
238
|
+
}): Promise<boolean> | boolean
|
|
199
239
|
}
|
|
200
240
|
}
|
|
201
241
|
|
|
@@ -206,6 +246,8 @@ export interface VxeGanttProps<D = any> extends Omit<VxeGridProps<D>, 'layouts'>
|
|
|
206
246
|
taskViewConfig?: VxeGanttPropTypes.TaskViewConfig<D>
|
|
207
247
|
taskSplitConfig?: VxeGanttPropTypes.TaskSplitConfig
|
|
208
248
|
taskBarConfig?: VxeGanttPropTypes.TaskBarConfig<D>
|
|
249
|
+
taskResizeConfig?: VxeGanttPropTypes.TaskResizeConfig<D>
|
|
250
|
+
taskDragConfig?: VxeGanttPropTypes.TaskDragConfig<D>
|
|
209
251
|
}
|
|
210
252
|
|
|
211
253
|
export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
|
|
@@ -446,6 +488,7 @@ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
|
|
|
446
488
|
}
|
|
447
489
|
|
|
448
490
|
export * from './gantt-module'
|
|
491
|
+
export * from './gantt-plugins'
|
|
449
492
|
|
|
450
493
|
export const Gantt: typeof VxeGantt
|
|
451
494
|
export default VxeGantt
|
|
@@ -27,10 +27,15 @@ export namespace VxeRadioButtonPropTypes {
|
|
|
27
27
|
export type Size = VxeRadioPropTypes.Size
|
|
28
28
|
export type ModelValue = any
|
|
29
29
|
export type Strict = boolean
|
|
30
|
-
export type
|
|
30
|
+
export type CheckedValue = VxeRadioPropTypes.CheckedValue
|
|
31
31
|
export type Title = string | number
|
|
32
32
|
export type Content = string | number
|
|
33
33
|
export type Disabled = boolean
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 已废弃,被 CheckedValue 替换
|
|
37
|
+
*/
|
|
38
|
+
export type Label = VxeRadioPropTypes.Label
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
export interface VxeRadioButtonProps {
|
|
@@ -40,10 +45,15 @@ export interface VxeRadioButtonProps {
|
|
|
40
45
|
* 严格模式,不允许取消
|
|
41
46
|
*/
|
|
42
47
|
strict?: VxeRadioButtonPropTypes.Strict
|
|
43
|
-
|
|
48
|
+
checkedValue?: VxeRadioButtonPropTypes.CheckedValue
|
|
44
49
|
title?: VxeRadioButtonPropTypes.Title
|
|
45
50
|
content?: VxeRadioButtonPropTypes.Content
|
|
46
51
|
disabled?: VxeRadioButtonPropTypes.Disabled
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 已废弃,被 checkedValue 替换
|
|
55
|
+
*/
|
|
56
|
+
label?: VxeRadioButtonPropTypes.Label
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
export interface RadioButtonPrivateComputed {
|
|
@@ -28,7 +28,7 @@ export namespace VxeRadioGroupPropTypes {
|
|
|
28
28
|
export type Size = VxeComponentSizeType
|
|
29
29
|
export type Type = 'button' | 'default' | '' | null
|
|
30
30
|
export type Options = {
|
|
31
|
-
value?: VxeRadioPropTypes.
|
|
31
|
+
value?: VxeRadioPropTypes.CheckedValue
|
|
32
32
|
label?: VxeRadioPropTypes.Content
|
|
33
33
|
|
|
34
34
|
[key: string]: any
|
|
@@ -70,7 +70,14 @@ export interface RadioGroupMethods {
|
|
|
70
70
|
export interface VxeRadioGroupMethods extends RadioGroupMethods { }
|
|
71
71
|
|
|
72
72
|
export interface RadioGroupPrivateMethods {
|
|
73
|
-
handleChecked(params: {
|
|
73
|
+
handleChecked(params: {
|
|
74
|
+
checkedValue: any
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
79
|
+
label: any
|
|
80
|
+
}, evnt: Event): void
|
|
74
81
|
}
|
|
75
82
|
export interface VxeRadioGroupPrivateMethods extends RadioGroupPrivateMethods { }
|
|
76
83
|
|
|
@@ -27,6 +27,7 @@ export namespace VxeRadioPropTypes {
|
|
|
27
27
|
export type Strict = boolean
|
|
28
28
|
export type ModelValue = any
|
|
29
29
|
export type Label = any
|
|
30
|
+
export type CheckedValue = any
|
|
30
31
|
export type Title = string | number
|
|
31
32
|
export type Content = string | number
|
|
32
33
|
export type Disabled = boolean
|
|
@@ -46,7 +47,7 @@ export interface VxeRadioProps {
|
|
|
46
47
|
/**
|
|
47
48
|
* 值
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
+
checkedValue?: VxeRadioPropTypes.CheckedValue
|
|
50
51
|
/**
|
|
51
52
|
* 原生 title 属性
|
|
52
53
|
*/
|
|
@@ -63,6 +64,11 @@ export interface VxeRadioProps {
|
|
|
63
64
|
* 原生 title 属性
|
|
64
65
|
*/
|
|
65
66
|
name?: VxeRadioPropTypes.Name
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 已废弃,被 checkedValue 替换
|
|
70
|
+
*/
|
|
71
|
+
label?: VxeRadioPropTypes.Label
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
export interface RadioPrivateComputed {
|
|
@@ -66,25 +66,52 @@ export interface VxeSliderPrivateMethods extends SliderPrivateMethods { }
|
|
|
66
66
|
|
|
67
67
|
export type VxeSliderEmits = [
|
|
68
68
|
'update:modelValue',
|
|
69
|
-
'change'
|
|
69
|
+
'change',
|
|
70
|
+
'track-dragstart',
|
|
71
|
+
'track-dragover',
|
|
72
|
+
'track-dragend'
|
|
70
73
|
]
|
|
71
74
|
|
|
72
75
|
export namespace VxeSliderDefines {
|
|
73
76
|
export interface SliderEventParams extends VxeComponentEventParams {
|
|
74
77
|
$slider: VxeSliderConstructor
|
|
75
78
|
}
|
|
79
|
+
|
|
80
|
+
export interface ChangeEventParams extends SliderEventParams {
|
|
81
|
+
startValue: number
|
|
82
|
+
endValue: number
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface TrackDragstartEventParams extends SliderEventParams {
|
|
86
|
+
startValue: number
|
|
87
|
+
endValue: number
|
|
88
|
+
}
|
|
89
|
+
export interface TrackDragoverEventParams extends TrackDragstartEventParams {}
|
|
90
|
+
export interface TrackDragendEventParams extends TrackDragstartEventParams {}
|
|
76
91
|
}
|
|
77
92
|
|
|
78
93
|
export type VxeSliderEventProps = {
|
|
79
94
|
'onUpdate:modelValue'?: VxeSliderEvents.UpdateModelValue
|
|
95
|
+
onChange?: VxeSliderEvents.Change
|
|
96
|
+
onTrackDragstart?: VxeSliderEvents.TrackDragstart
|
|
97
|
+
onTrackDragover?: VxeSliderEvents.TrackDragover
|
|
98
|
+
onTrackDragend?: VxeSliderEvents.TrackDragend
|
|
80
99
|
}
|
|
81
100
|
|
|
82
101
|
export interface VxeSliderListeners {
|
|
83
102
|
'update:modelValue'?: VxeSliderEvents.UpdateModelValue
|
|
103
|
+
change?: VxeSliderEvents.Change
|
|
104
|
+
trackDragstart?: VxeSliderEvents.TrackDragstart
|
|
105
|
+
trackDragover?: VxeSliderEvents.TrackDragover
|
|
106
|
+
trackDragend?: VxeSliderEvents.TrackDragend
|
|
84
107
|
}
|
|
85
108
|
|
|
86
109
|
export namespace VxeSliderEvents {
|
|
87
110
|
export type UpdateModelValue = (modelValue: VxeSliderPropTypes.ModelValue) => void
|
|
111
|
+
export type Change = (params: VxeSliderDefines.ChangeEventParams) => void
|
|
112
|
+
export type TrackDragstart = (params: VxeSliderDefines.TrackDragstartEventParams) => void
|
|
113
|
+
export type TrackDragover = (params: VxeSliderDefines.TrackDragoverEventParams) => void
|
|
114
|
+
export type TrackDragend = (params: VxeSliderDefines.TrackDragendEventParams) => void
|
|
88
115
|
}
|
|
89
116
|
|
|
90
117
|
export namespace VxeSliderSlotTypes {
|
|
@@ -4668,6 +4668,16 @@ export interface TableMethods<DT = any> {
|
|
|
4668
4668
|
* 设置行分组
|
|
4669
4669
|
*/
|
|
4670
4670
|
setRowGroups (fieldOrColumns: (VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo)[] | VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo | null): Promise<void>
|
|
4671
|
+
/**
|
|
4672
|
+
* 获取行分组列信息
|
|
4673
|
+
*/
|
|
4674
|
+
getRowGroups (): ({
|
|
4675
|
+
field: VxeColumnPropTypes.Field
|
|
4676
|
+
} | VxeTableDefines.ColumnInfo)[]
|
|
4677
|
+
/**
|
|
4678
|
+
* 获取行分组列字段
|
|
4679
|
+
*/
|
|
4680
|
+
getRowGroupFields (): VxeColumnPropTypes.Field[]
|
|
4671
4681
|
/**
|
|
4672
4682
|
* 清除行分组
|
|
4673
4683
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|