vxe-pc-ui 4.15.20 → 4.15.21
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/dist/all.esm.js +102 -54
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/checkbox/src/button.js +9 -1
- package/es/checkbox/src/checkbox.js +27 -7
- package/es/icon/style.css +1 -1
- package/es/radio/src/button.js +27 -15
- package/es/radio/src/radio.js +27 -15
- 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/checkbox/src/button.js +10 -0
- package/lib/checkbox/src/button.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +37 -10
- package/lib/checkbox/src/checkbox.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 +111 -62
- package/lib/index.umd.min.js +1 -1
- package/lib/radio/src/button.js +31 -25
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/radio.js +31 -25
- package/lib/radio/src/radio.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 +1 -1
- package/packages/checkbox/src/button.ts +11 -1
- package/packages/checkbox/src/checkbox.ts +30 -7
- package/packages/radio/src/button.ts +30 -15
- package/packages/radio/src/radio.ts +30 -15
- package/types/components/checkbox-button.d.ts +3 -0
- package/types/components/checkbox.d.ts +6 -1
- package/types/components/radio-button.d.ts +3 -1
- package/types/components/radio.d.ts +6 -1
- /package/es/icon/{iconfont.1782978164206.ttf → iconfont.1783046335286.ttf} +0 -0
- /package/es/icon/{iconfont.1782978164206.woff → iconfont.1783046335286.woff} +0 -0
- /package/es/icon/{iconfont.1782978164206.woff2 → iconfont.1783046335286.woff2} +0 -0
- /package/es/{iconfont.1782978164206.ttf → iconfont.1783046335286.ttf} +0 -0
- /package/es/{iconfont.1782978164206.woff → iconfont.1783046335286.woff} +0 -0
- /package/es/{iconfont.1782978164206.woff2 → iconfont.1783046335286.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1782978164206.ttf → iconfont.1783046335286.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1782978164206.woff → iconfont.1783046335286.woff} +0 -0
- /package/lib/icon/style/{iconfont.1782978164206.woff2 → iconfont.1783046335286.woff2} +0 -0
- /package/lib/{iconfont.1782978164206.ttf → iconfont.1783046335286.ttf} +0 -0
- /package/lib/{iconfont.1782978164206.woff → iconfont.1783046335286.woff} +0 -0
- /package/lib/{iconfont.1782978164206.woff2 → iconfont.1783046335286.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.15.
|
|
29
|
+
const version = exports.version = "4.15.21";
|
|
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
|
-
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");let version=exports.version="4.15.20";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:{},backtop:{showIcon:!0,showContent:!0,showTop:!0,showBottom:!0,shadow:!0,threshold:20},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0},showDropdownIcon:!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:{},cascader:{showFullLabel:!0,treeConfig:{showIcon:!0},filterConfig:{autoExpandMode:"first"}},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},contextMenu:{autoLocate:!0},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:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),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:{showErrorMessage:!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"],popupConfig:{}},image:{draggable:null,showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0,maskClosable:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{backtopConfig:{}},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},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:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},segmented:{},select:{multiCharOverflow:8,radioConfig:{showIcon:!0,trigger:"option"},checkboxConfig:{showIcon:!0,trigger:"option"},remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},splitter:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0}},splitterPanel:{},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}}},tableTransfer:{},tabs:{},tag:{},textEllipsis:{underline:!0},text:{copyConfig:{showMessage:!0}},textarea:{resize:"none"},timeline:{},timelineItem:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300,defaultPlacement:"top"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{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,previewImageConfig:{}},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});let 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_VALID_ERROR_ICON:iconPrefix+"warning-circle-fill",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_DRAG:iconPrefix+"drag-handle",TREE_DRAG_STATUS_NODE:iconPrefix+"sort",TREE_DRAG_STATUS_SUB_NODE:iconPrefix+"add-sub",TREE_DRAG_DISABLED:iconPrefix+"no-drop",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",TAG_CLOSE:iconPrefix+"close",TAG_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",BACKTOP_TOP:iconPrefix+"top",CONTEXT_MENU_OPTION_LOADING:iconPrefix+"spinner roll",CONTEXT_MENU_CHILDREN:iconPrefix+"arrow-right",CASCADER_NODE_OPEN:iconPrefix+"arrow-right",CASCADER_NODE_CLOSE:iconPrefix+"arrow-right",CASCADER_NODE_LOADED:iconPrefix+"spinner roll",LIST_DRAG:iconPrefix+"drag-handle",LIST_DRAG_STATUS_NODE:iconPrefix+"sort",LIST_DRAG_DISABLED:iconPrefix+"no-drop"});var _default=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");let version=exports.version="4.15.21";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:{},backtop:{showIcon:!0,showContent:!0,showTop:!0,showBottom:!0,shadow:!0,threshold:20},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0},showDropdownIcon:!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:{},cascader:{showFullLabel:!0,treeConfig:{showIcon:!0},filterConfig:{autoExpandMode:"first"}},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},contextMenu:{autoLocate:!0},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:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),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:{showErrorMessage:!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"],popupConfig:{}},image:{draggable:null,showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0,maskClosable:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{backtopConfig:{}},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},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:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},segmented:{},select:{multiCharOverflow:8,radioConfig:{showIcon:!0,trigger:"option"},checkboxConfig:{showIcon:!0,trigger:"option"},remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},splitter:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0}},splitterPanel:{},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}}},tableTransfer:{},tabs:{},tag:{},textEllipsis:{underline:!0},text:{copyConfig:{showMessage:!0}},textarea:{resize:"none"},timeline:{},timelineItem:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300,defaultPlacement:"top"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{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,previewImageConfig:{}},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});let 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_VALID_ERROR_ICON:iconPrefix+"warning-circle-fill",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_DRAG:iconPrefix+"drag-handle",TREE_DRAG_STATUS_NODE:iconPrefix+"sort",TREE_DRAG_STATUS_SUB_NODE:iconPrefix+"add-sub",TREE_DRAG_DISABLED:iconPrefix+"no-drop",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",TAG_CLOSE:iconPrefix+"close",TAG_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",BACKTOP_TOP:iconPrefix+"top",CONTEXT_MENU_OPTION_LOADING:iconPrefix+"spinner roll",CONTEXT_MENU_CHILDREN:iconPrefix+"arrow-right",CASCADER_NODE_OPEN:iconPrefix+"arrow-right",CASCADER_NODE_CLOSE:iconPrefix+"arrow-right",CASCADER_NODE_LOADED:iconPrefix+"spinner roll",LIST_DRAG:iconPrefix+"drag-handle",LIST_DRAG_STATUS_NODE:iconPrefix+"sort",LIST_DRAG_DISABLED:iconPrefix+"no-drop"});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -9,7 +9,7 @@ var _core = require("@vxe-ui/core");
|
|
|
9
9
|
const {
|
|
10
10
|
log
|
|
11
11
|
} = _core.VxeUI;
|
|
12
|
-
const uiVersion = `ui v${"4.15.
|
|
12
|
+
const uiVersion = `ui v${"4.15.21"}`;
|
|
13
13
|
function createComponentLog(name) {
|
|
14
14
|
const tableVersion = _core.VxeUI.tableVersion ? `table v${_core.VxeUI.tableVersion}` : '';
|
|
15
15
|
const ganttVersion = _core.VxeUI.ganttVersion ? `gantt v${_core.VxeUI.ganttVersion}` : '';
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,uiVersion="ui v4.15.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,uiVersion="ui v4.15.21";function createComponentLog(e){var r=_core.VxeUI.tableVersion?"table v"+_core.VxeUI.tableVersion:"",o=_core.VxeUI.ganttVersion?"gantt v"+_core.VxeUI.ganttVersion:"",n=_core.VxeUI.designVersion?"design v"+_core.VxeUI.designVersion:"",r=[uiVersion,r,o,n].join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}let warnLog=exports.warnLog=log.create("warn",uiVersion),errLog=exports.errLog=log.create("error",uiVersion);
|
package/package.json
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { h, computed, reactive, inject, PropType } from 'vue'
|
|
1
|
+
import { h, computed, reactive, inject, PropType, onMounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { getFuncText } from '../../ui/src/utils'
|
|
5
5
|
import { getConfig, createEvent, useSize, renderEmptyElement } from '../../ui'
|
|
6
|
+
import { createComponentLog } from '../../ui/src/log'
|
|
6
7
|
|
|
7
8
|
import type { VxeCheckboxButtonPropTypes, VxeCheckboxGroupConstructor, CheckboxButtonReactData, CheckboxButtonPrivateMethods, VxeCheckboxButtonConstructor, VxeCheckboxButtonEmits, VxeCheckboxGroupPrivateMethods, CheckboxButtonMethods, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines } from '../../../types'
|
|
8
9
|
|
|
10
|
+
const { warnLog } = createComponentLog('checkbox-button')
|
|
11
|
+
|
|
9
12
|
export default defineVxeComponent({
|
|
10
13
|
name: 'VxeCheckboxButton',
|
|
11
14
|
props: {
|
|
12
15
|
modelValue: [String, Number, Boolean] as PropType<VxeCheckboxButtonPropTypes.ModelValue>,
|
|
13
16
|
/**
|
|
14
17
|
* 已废弃,被 checkedValue 替换
|
|
18
|
+
* @deprecated
|
|
15
19
|
*/
|
|
16
20
|
label: {
|
|
17
21
|
type: [String, Number, Boolean] as PropType<VxeCheckboxButtonPropTypes.Label>,
|
|
@@ -204,6 +208,12 @@ export default defineVxeComponent({
|
|
|
204
208
|
])
|
|
205
209
|
}
|
|
206
210
|
|
|
211
|
+
onMounted(() => {
|
|
212
|
+
if (props.label !== null) {
|
|
213
|
+
warnLog('vxe.error.delProp', ['label', 'checked-value'])
|
|
214
|
+
}
|
|
215
|
+
})
|
|
216
|
+
|
|
207
217
|
$xeCheckboxButton.renderVN = renderVN
|
|
208
218
|
|
|
209
219
|
return renderVN
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import { h, computed, inject, PropType, reactive } from 'vue'
|
|
1
|
+
import { h, computed, inject, PropType, reactive, onMounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { getFuncText } from '../../ui/src/utils'
|
|
5
5
|
import { getConfig, createEvent, useSize, getIcon, renderEmptyElement } from '../../ui'
|
|
6
|
+
import { createComponentLog } from '../../ui/src/log'
|
|
6
7
|
|
|
7
8
|
import type { VxeCheckboxConstructor, VxeCheckboxGroupConstructor, CheckboxReactData, VxeCheckboxEmits, ValueOf, VxeCheckboxGroupPrivateMethods, CheckboxMethods, VxeCheckboxPropTypes, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines } from '../../../types'
|
|
8
9
|
|
|
10
|
+
const { warnLog } = createComponentLog('checkbox')
|
|
11
|
+
|
|
9
12
|
export default defineVxeComponent({
|
|
10
13
|
name: 'VxeCheckbox',
|
|
11
14
|
props: {
|
|
12
15
|
modelValue: [String, Number, Boolean] as PropType<VxeCheckboxPropTypes.ModelValue>,
|
|
16
|
+
/**
|
|
17
|
+
* 已废弃,被 checkedValue 替换
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
13
20
|
label: {
|
|
14
21
|
type: [String, Number] as PropType<VxeCheckboxPropTypes.Label>,
|
|
15
22
|
default: null
|
|
@@ -61,9 +68,15 @@ export default defineVxeComponent({
|
|
|
61
68
|
|
|
62
69
|
const { computeSize } = useSize(props)
|
|
63
70
|
|
|
71
|
+
const computeCheckValue = computed(() => {
|
|
72
|
+
const { checkedValue, label } = props
|
|
73
|
+
return XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
74
|
+
})
|
|
75
|
+
|
|
64
76
|
const computeIsChecked = computed(() => {
|
|
77
|
+
const checkValue = computeCheckValue.value
|
|
65
78
|
if ($xeCheckboxGroup) {
|
|
66
|
-
return XEUtils.includes($xeCheckboxGroup.props.modelValue,
|
|
79
|
+
return XEUtils.includes($xeCheckboxGroup.props.modelValue, checkValue)
|
|
67
80
|
}
|
|
68
81
|
return props.modelValue === props.checkedValue
|
|
69
82
|
})
|
|
@@ -84,15 +97,18 @@ export default defineVxeComponent({
|
|
|
84
97
|
})
|
|
85
98
|
|
|
86
99
|
const changeEvent = (evnt: Event & { target: { checked: boolean } }) => {
|
|
87
|
-
const {
|
|
100
|
+
const { uncheckedValue } = props
|
|
88
101
|
const isDisabled = computeIsDisabled.value
|
|
102
|
+
const checkValue = computeCheckValue.value
|
|
89
103
|
if (!isDisabled) {
|
|
90
104
|
const checked = evnt.target.checked
|
|
91
|
-
const value = checked ? checkedValue : uncheckedValue
|
|
92
|
-
const params = { checked, value, label: props.label }
|
|
93
105
|
if ($xeCheckboxGroup) {
|
|
106
|
+
const value = checkValue
|
|
107
|
+
const params = { checked, value, label: value }
|
|
94
108
|
$xeCheckboxGroup.handleChecked(params, evnt)
|
|
95
109
|
} else {
|
|
110
|
+
const value = checked ? checkValue : uncheckedValue
|
|
111
|
+
const params = { checked, value, label: value }
|
|
96
112
|
emit('update:modelValue', value)
|
|
97
113
|
checkboxMethods.dispatchEvent('change', params, evnt)
|
|
98
114
|
// 自动更新校验状态
|
|
@@ -114,10 +130,11 @@ export default defineVxeComponent({
|
|
|
114
130
|
Object.assign($xeCheckbox, checkboxMethods)
|
|
115
131
|
|
|
116
132
|
const renderVN = () => {
|
|
117
|
-
const {
|
|
133
|
+
const { content } = props
|
|
118
134
|
const vSize = computeSize.value
|
|
119
135
|
const isDisabled = computeIsDisabled.value
|
|
120
136
|
const isChecked = computeIsChecked.value
|
|
137
|
+
const checkValue = computeCheckValue.value
|
|
121
138
|
const indeterminate = !isChecked && props.indeterminate
|
|
122
139
|
const defaultSlot = slots.default
|
|
123
140
|
|
|
@@ -141,7 +158,7 @@ export default defineVxeComponent({
|
|
|
141
158
|
}
|
|
142
159
|
}
|
|
143
160
|
return h('label', {
|
|
144
|
-
key:
|
|
161
|
+
key: `${checkValue}`,
|
|
145
162
|
class: ['vxe-checkbox vxe-checkbox--default', {
|
|
146
163
|
[`size--${vSize}`]: vSize,
|
|
147
164
|
'is--indeterminate': indeterminate,
|
|
@@ -166,6 +183,12 @@ export default defineVxeComponent({
|
|
|
166
183
|
])
|
|
167
184
|
}
|
|
168
185
|
|
|
186
|
+
onMounted(() => {
|
|
187
|
+
if (props.label !== null) {
|
|
188
|
+
warnLog('vxe.error.delProp', ['label', 'checked-value'])
|
|
189
|
+
}
|
|
190
|
+
})
|
|
191
|
+
|
|
169
192
|
$xeCheckbox.renderVN = renderVN
|
|
170
193
|
|
|
171
194
|
return $xeCheckbox
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { h, computed, reactive, inject, PropType } from 'vue'
|
|
1
|
+
import { h, computed, reactive, inject, PropType, onMounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { getFuncText } from '../../ui/src/utils'
|
|
5
5
|
import { getConfig, createEvent, useSize, renderEmptyElement } from '../../ui'
|
|
6
|
+
import { createComponentLog } from '../../ui/src/log'
|
|
6
7
|
|
|
7
8
|
import type { VxeRadioButtonPropTypes, VxeRadioGroupConstructor, RadioButtonReactData, RadioButtonPrivateMethods, VxeRadioButtonConstructor, VxeRadioButtonEmits, VxeRadioGroupPrivateMethods, RadioButtonMethods, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines, ValueOf } from '../../../types'
|
|
8
9
|
|
|
10
|
+
const { warnLog } = createComponentLog('radio-button')
|
|
11
|
+
|
|
9
12
|
export default defineVxeComponent({
|
|
10
13
|
name: 'VxeRadioButton',
|
|
11
14
|
props: {
|
|
@@ -32,6 +35,7 @@ export default defineVxeComponent({
|
|
|
32
35
|
|
|
33
36
|
/**
|
|
34
37
|
* 已废弃,被 checkedValue 替换
|
|
38
|
+
* @deprecated
|
|
35
39
|
*/
|
|
36
40
|
label: {
|
|
37
41
|
type: [String, Number, Boolean] as PropType<VxeRadioButtonPropTypes.Label>,
|
|
@@ -63,6 +67,11 @@ export default defineVxeComponent({
|
|
|
63
67
|
reactData
|
|
64
68
|
} as unknown as VxeRadioButtonConstructor
|
|
65
69
|
|
|
70
|
+
const computeCheckValue = computed(() => {
|
|
71
|
+
const { checkedValue, label } = props
|
|
72
|
+
return XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
73
|
+
})
|
|
74
|
+
|
|
66
75
|
const computeIsDisabled = computed(() => {
|
|
67
76
|
const { disabled } = props
|
|
68
77
|
if (disabled === null) {
|
|
@@ -84,10 +93,12 @@ export default defineVxeComponent({
|
|
|
84
93
|
return $xeRadioGroup ? $xeRadioGroup.props.strict : props.strict
|
|
85
94
|
})
|
|
86
95
|
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
96
|
+
const computeIsChecked = computed(() => {
|
|
97
|
+
const checkValue = computeCheckValue.value
|
|
98
|
+
if ($xeRadioGroup) {
|
|
99
|
+
return $xeRadioGroup.props.modelValue === checkValue
|
|
100
|
+
}
|
|
101
|
+
return props.modelValue === checkValue
|
|
91
102
|
})
|
|
92
103
|
|
|
93
104
|
const dispatchEvent = (type: ValueOf<VxeRadioButtonEmits>, params: Record<string, any>, evnt: Event | null) => {
|
|
@@ -120,9 +131,8 @@ export default defineVxeComponent({
|
|
|
120
131
|
const changeEvent = (evnt: Event) => {
|
|
121
132
|
const isDisabled = computeIsDisabled.value
|
|
122
133
|
if (!isDisabled) {
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
handleValue(radioValue, evnt)
|
|
134
|
+
const checkValue = computeCheckValue.value
|
|
135
|
+
handleValue(checkValue, evnt)
|
|
126
136
|
}
|
|
127
137
|
}
|
|
128
138
|
|
|
@@ -130,21 +140,20 @@ export default defineVxeComponent({
|
|
|
130
140
|
const isDisabled = computeIsDisabled.value
|
|
131
141
|
const isStrict = computeStrict.value
|
|
132
142
|
if (!isDisabled && !isStrict) {
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
if (radioValue === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
|
|
143
|
+
const isChecked = computeIsChecked.value
|
|
144
|
+
if (isChecked) {
|
|
136
145
|
handleValue(null, evnt)
|
|
137
146
|
}
|
|
138
147
|
}
|
|
139
148
|
}
|
|
140
149
|
|
|
141
150
|
const renderVN = () => {
|
|
142
|
-
const {
|
|
143
|
-
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
151
|
+
const { icon, content } = props
|
|
144
152
|
const vSize = computeSize.value
|
|
145
153
|
const isDisabled = computeIsDisabled.value
|
|
146
154
|
const name = computeName.value
|
|
147
|
-
const isChecked =
|
|
155
|
+
const isChecked = computeIsChecked.value
|
|
156
|
+
const checkValue = computeCheckValue.value
|
|
148
157
|
const defaultSlot = slots.default
|
|
149
158
|
|
|
150
159
|
if ($xeRadioGroup) {
|
|
@@ -182,7 +191,7 @@ export default defineVxeComponent({
|
|
|
182
191
|
}
|
|
183
192
|
}
|
|
184
193
|
return h('label', {
|
|
185
|
-
key:
|
|
194
|
+
key: `${checkValue}`,
|
|
186
195
|
class: ['vxe-radio vxe-radio--button', {
|
|
187
196
|
[`size--${vSize}`]: vSize,
|
|
188
197
|
'is--disabled': isDisabled
|
|
@@ -221,6 +230,12 @@ export default defineVxeComponent({
|
|
|
221
230
|
])
|
|
222
231
|
}
|
|
223
232
|
|
|
233
|
+
onMounted(() => {
|
|
234
|
+
if (props.label !== null) {
|
|
235
|
+
warnLog('vxe.error.delProp', ['label', 'checked-value'])
|
|
236
|
+
}
|
|
237
|
+
})
|
|
238
|
+
|
|
224
239
|
$xeRadioButton.renderVN = renderVN
|
|
225
240
|
|
|
226
241
|
return renderVN
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { h, computed, inject, PropType, reactive } from 'vue'
|
|
1
|
+
import { h, computed, inject, PropType, reactive, onMounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { getFuncText } from '../../ui/src/utils'
|
|
5
5
|
import { getConfig, createEvent, useSize, getIcon, renderEmptyElement } from '../../ui'
|
|
6
|
+
import { createComponentLog } from '../../ui/src/log'
|
|
6
7
|
|
|
7
8
|
import type { VxeRadioPropTypes, VxeRadioConstructor, VxeRadioEmits, RadioReactData, RadioPrivateMethods, VxeRadioGroupConstructor, VxeRadioGroupPrivateMethods, RadioMethods, VxeFormConstructor, ValueOf, VxeFormPrivateMethods, VxeFormDefines } from '../../../types'
|
|
8
9
|
|
|
10
|
+
const { warnLog } = createComponentLog('radio')
|
|
11
|
+
|
|
9
12
|
export default defineVxeComponent({
|
|
10
13
|
name: 'VxeRadio',
|
|
11
14
|
props: {
|
|
@@ -32,6 +35,7 @@ export default defineVxeComponent({
|
|
|
32
35
|
|
|
33
36
|
/**
|
|
34
37
|
* 已废弃,被 checkedValue 替换
|
|
38
|
+
* @deprecated
|
|
35
39
|
*/
|
|
36
40
|
label: {
|
|
37
41
|
type: [String, Number, Boolean] as PropType<VxeRadioPropTypes.Label>,
|
|
@@ -63,6 +67,11 @@ export default defineVxeComponent({
|
|
|
63
67
|
|
|
64
68
|
const { computeSize } = useSize(props)
|
|
65
69
|
|
|
70
|
+
const computeCheckValue = computed(() => {
|
|
71
|
+
const { checkedValue, label } = props
|
|
72
|
+
return XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
73
|
+
})
|
|
74
|
+
|
|
66
75
|
const computeIsDisabled = computed(() => {
|
|
67
76
|
const { disabled } = props
|
|
68
77
|
if (disabled === null) {
|
|
@@ -84,10 +93,12 @@ export default defineVxeComponent({
|
|
|
84
93
|
return $xeRadioGroup ? $xeRadioGroup.props.strict : props.strict
|
|
85
94
|
})
|
|
86
95
|
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
96
|
+
const computeIsChecked = computed(() => {
|
|
97
|
+
const checkValue = computeCheckValue.value
|
|
98
|
+
if ($xeRadioGroup) {
|
|
99
|
+
return $xeRadioGroup.props.modelValue === checkValue
|
|
100
|
+
}
|
|
101
|
+
return props.modelValue === checkValue
|
|
91
102
|
})
|
|
92
103
|
|
|
93
104
|
const handleValue = (checkedValue: VxeRadioPropTypes.CheckedValue, evnt: Event) => {
|
|
@@ -107,9 +118,8 @@ export default defineVxeComponent({
|
|
|
107
118
|
const changeEvent = (evnt: Event) => {
|
|
108
119
|
const isDisabled = computeIsDisabled.value
|
|
109
120
|
if (!isDisabled) {
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
handleValue(radioValue, evnt)
|
|
121
|
+
const checkValue = computeCheckValue.value
|
|
122
|
+
handleValue(checkValue, evnt)
|
|
113
123
|
}
|
|
114
124
|
}
|
|
115
125
|
|
|
@@ -117,9 +127,8 @@ export default defineVxeComponent({
|
|
|
117
127
|
const isDisabled = computeIsDisabled.value
|
|
118
128
|
const isStrict = computeStrict.value
|
|
119
129
|
if (!isDisabled && !isStrict) {
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
if (radioValue === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
|
|
130
|
+
const isChecked = computeIsChecked.value
|
|
131
|
+
if (isChecked) {
|
|
123
132
|
handleValue(null, evnt)
|
|
124
133
|
}
|
|
125
134
|
}
|
|
@@ -139,12 +148,12 @@ export default defineVxeComponent({
|
|
|
139
148
|
Object.assign($xeRadio, radioMethods, radioPrivateMethods)
|
|
140
149
|
|
|
141
150
|
const renderVN = () => {
|
|
142
|
-
const {
|
|
143
|
-
const radioValue = XEUtils.isUndefined(checkedValue) ? label : checkedValue
|
|
151
|
+
const { content } = props
|
|
144
152
|
const vSize = computeSize.value
|
|
145
153
|
const isDisabled = computeIsDisabled.value
|
|
146
154
|
const name = computeName.value
|
|
147
|
-
const isChecked =
|
|
155
|
+
const isChecked = computeIsChecked.value
|
|
156
|
+
const checkValue = computeCheckValue.value
|
|
148
157
|
const defaultSlot = slots.default
|
|
149
158
|
|
|
150
159
|
if ($xeRadioGroup) {
|
|
@@ -167,7 +176,7 @@ export default defineVxeComponent({
|
|
|
167
176
|
}
|
|
168
177
|
}
|
|
169
178
|
return h('label', {
|
|
170
|
-
key:
|
|
179
|
+
key: `${checkValue}`,
|
|
171
180
|
class: ['vxe-radio vxe-radio--default', {
|
|
172
181
|
[`size--${vSize}`]: vSize,
|
|
173
182
|
'is--checked': isChecked,
|
|
@@ -193,6 +202,12 @@ export default defineVxeComponent({
|
|
|
193
202
|
])
|
|
194
203
|
}
|
|
195
204
|
|
|
205
|
+
onMounted(() => {
|
|
206
|
+
if (props.label !== null) {
|
|
207
|
+
warnLog('vxe.error.delProp', ['label', 'checked-value'])
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
196
211
|
$xeRadio.renderVN = renderVN
|
|
197
212
|
|
|
198
213
|
return $xeRadio
|
|
@@ -28,6 +28,7 @@ export namespace VxeCheckboxButtonPropTypes {
|
|
|
28
28
|
export type ModelValue = any
|
|
29
29
|
/**
|
|
30
30
|
* 已废弃,被 CheckedValue 替换
|
|
31
|
+
* @deprecated
|
|
31
32
|
*/
|
|
32
33
|
export type Label = VxeCheckboxPropTypes.Label
|
|
33
34
|
export type Title = VxeCheckboxPropTypes.Title
|
|
@@ -43,6 +44,7 @@ export interface VxeCheckboxButtonProps {
|
|
|
43
44
|
modelValue?: VxeCheckboxButtonPropTypes.ModelValue
|
|
44
45
|
/**
|
|
45
46
|
* 已废弃,被 checked-value 替换
|
|
47
|
+
* @deprecated
|
|
46
48
|
*/
|
|
47
49
|
label?: VxeCheckboxButtonPropTypes.Label
|
|
48
50
|
title?: VxeCheckboxButtonPropTypes.Title
|
|
@@ -79,6 +81,7 @@ export namespace VxeCheckboxButtonDefines {
|
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
export interface ChangeParams {
|
|
84
|
+
value: any
|
|
82
85
|
label: any
|
|
83
86
|
}
|
|
84
87
|
export interface ChangeEventParams extends CheckboxButtonEventParams, ChangeParams { }
|
|
@@ -25,6 +25,10 @@ export interface VxeCheckboxPrivateRef extends CheckboxPrivateRef { }
|
|
|
25
25
|
export namespace VxeCheckboxPropTypes {
|
|
26
26
|
export type Size = VxeComponentSizeType
|
|
27
27
|
export type ModelValue = string | number | boolean | null
|
|
28
|
+
/**
|
|
29
|
+
* 已废弃,被 CheckedValue 替换
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
28
32
|
export type Label = string | number
|
|
29
33
|
export type Indeterminate = boolean
|
|
30
34
|
export type Title = string | number
|
|
@@ -41,7 +45,8 @@ export type VxeCheckboxProps = {
|
|
|
41
45
|
*/
|
|
42
46
|
modelValue?: VxeCheckboxPropTypes.ModelValue
|
|
43
47
|
/**
|
|
44
|
-
*
|
|
48
|
+
* 已废弃,被 checked-value 替换
|
|
49
|
+
* @deprecated
|
|
45
50
|
*/
|
|
46
51
|
label?: VxeCheckboxPropTypes.Label
|
|
47
52
|
/**
|
|
@@ -35,6 +35,7 @@ export namespace VxeRadioButtonPropTypes {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* 已废弃,被 CheckedValue 替换
|
|
38
|
+
* @deprecated
|
|
38
39
|
*/
|
|
39
40
|
export type Label = VxeRadioPropTypes.Label
|
|
40
41
|
}
|
|
@@ -53,7 +54,8 @@ export interface VxeRadioButtonProps {
|
|
|
53
54
|
disabled?: VxeRadioButtonPropTypes.Disabled
|
|
54
55
|
|
|
55
56
|
/**
|
|
56
|
-
* 已废弃,被
|
|
57
|
+
* 已废弃,被 checked-value 替换
|
|
58
|
+
* @deprecated
|
|
57
59
|
*/
|
|
58
60
|
label?: VxeRadioButtonPropTypes.Label
|
|
59
61
|
}
|
|
@@ -26,6 +26,10 @@ export namespace VxeRadioPropTypes {
|
|
|
26
26
|
export type Size = VxeComponentSizeType
|
|
27
27
|
export type Strict = boolean
|
|
28
28
|
export type ModelValue = any
|
|
29
|
+
/**
|
|
30
|
+
* 已废弃,被 CheckedValue 替换
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
29
33
|
export type Label = any
|
|
30
34
|
export type CheckedValue = any
|
|
31
35
|
export type Title = string | number
|
|
@@ -66,7 +70,8 @@ export interface VxeRadioProps {
|
|
|
66
70
|
name?: VxeRadioPropTypes.Name
|
|
67
71
|
|
|
68
72
|
/**
|
|
69
|
-
* 已废弃,被
|
|
73
|
+
* 已废弃,被 checked-value 替换
|
|
74
|
+
* @deprecated
|
|
70
75
|
*/
|
|
71
76
|
label?: VxeRadioPropTypes.Label
|
|
72
77
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|