vxe-pc-ui 3.17.20 → 3.17.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/es/icon/style.css +1 -1
- package/es/slider/src/slider.js +189 -80
- package/es/slider/style.css +8 -15
- package/es/slider/style.min.css +1 -1
- package/es/space/src/space.js +34 -12
- package/es/space/style.css +1 -0
- package/es/space/style.min.css +1 -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/es/vxe-slider/style.css +8 -15
- package/es/vxe-slider/style.min.css +1 -1
- package/es/vxe-space/style.css +1 -0
- package/es/vxe-space/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +250 -105
- package/lib/index.umd.min.js +1 -1
- package/lib/slider/src/slider.js +204 -87
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +8 -15
- package/lib/slider/style/style.min.css +1 -1
- package/lib/space/src/space.js +40 -13
- package/lib/space/src/space.min.js +1 -1
- package/lib/space/style/style.css +1 -0
- package/lib/space/style/style.min.css +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/lib/vxe-slider/style/style.css +8 -15
- package/lib/vxe-slider/style/style.min.css +1 -1
- package/lib/vxe-space/style/style.css +1 -0
- package/lib/vxe-space/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/slider/src/slider.ts +187 -79
- package/packages/space/src/space.ts +39 -12
- package/styles/components/slider.scss +8 -13
- package/styles/components/space.scss +1 -0
- package/types/components/slider.d.ts +9 -2
- package/types/components/space.d.ts +2 -0
- /package/es/icon/{iconfont.1787911531497.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/es/icon/{iconfont.1787911531497.woff → iconfont.1787994741699.woff} +0 -0
- /package/es/icon/{iconfont.1787911531497.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/es/{iconfont.1787911531497.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/es/{iconfont.1787911531497.woff → iconfont.1787994741699.woff} +0 -0
- /package/es/{iconfont.1787911531497.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787911531497.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787911531497.woff → iconfont.1787994741699.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787911531497.woff2 → iconfont.1787994741699.woff2} +0 -0
- /package/lib/{iconfont.1787911531497.ttf → iconfont.1787994741699.ttf} +0 -0
- /package/lib/{iconfont.1787911531497.woff → iconfont.1787994741699.woff} +0 -0
- /package/lib/{iconfont.1787911531497.woff2 → iconfont.1787994741699.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
26
26
|
});
|
|
27
27
|
var _dynamics = require("../dynamics");
|
|
28
28
|
var _log = require("./src/log");
|
|
29
|
-
var version = exports.version = "3.17.
|
|
29
|
+
var version = exports.version = "3.17.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"),version=exports.version="3.17.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:!0,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{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:{rowConfig:{contentField:"label"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:60}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,negative:!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:{emptyValue:null,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},actionConfig:{autoHideButton:!0}},splitterPanel:{},slider:{max:100,min:0},space:{},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,defaultPlacement:"top"},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300},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:{}});var iconPrefix="vxe-icon-",_default=((0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-right",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",TEXTAREA_CLEAR:iconPrefix+"error-circle-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"}),exports.default=_core.VxeUI);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_log=require("./src/log"),version=exports.version="3.17.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:!0,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{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:{rowConfig:{contentField:"label"},dragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},virtualYConfig:{enabled:!0,gt:60}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,negative:!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:{emptyValue:null,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},actionConfig:{autoHideButton:!0}},splitterPanel:{},slider:{max:100,min:0},space:{},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,defaultPlacement:"top"},transfer:{},tree:{indent:20,minHeight:60,showOverflow:!0,radioConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,leaveDelay:300},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:{}});var iconPrefix="vxe-icon-",_default=((0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-right",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",TEXTAREA_CLEAR:iconPrefix+"error-circle-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"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.createComponentLog = createComponentLog;
|
|
|
7
7
|
exports.warnLog = exports.errLog = void 0;
|
|
8
8
|
var _core = require("@vxe-ui/core");
|
|
9
9
|
var log = _core.VxeUI.log;
|
|
10
|
-
var uiVersion = "ui v".concat("3.17.
|
|
10
|
+
var uiVersion = "ui v".concat("3.17.21");
|
|
11
11
|
function createComponentLog(name) {
|
|
12
12
|
var tableVersion = _core.VxeUI.tableVersion ? "table v".concat(_core.VxeUI.tableVersion) : '';
|
|
13
13
|
var ganttVersion = _core.VxeUI.ganttVersion ? "gantt v".concat(_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"),log=_core.VxeUI.log,uiVersion="ui v".concat("3.17.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,uiVersion="ui v".concat("3.17.21");function createComponentLog(e){var r=_core.VxeUI.tableVersion?"table v".concat(_core.VxeUI.tableVersion):"",o=_core.VxeUI.ganttVersion?"gantt v".concat(_core.VxeUI.ganttVersion):"",n=_core.VxeUI.designVersion?"design v".concat(_core.VxeUI.designVersion):"",r=[uiVersion,r,o,n].filter(function(e){return e}).join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}var warnLog=exports.warnLog=log.create("warn",uiVersion),errLog=exports.errLog=log.create("error",uiVersion);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.vxe-slider {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: block;
|
|
4
|
-
padding: 0.
|
|
4
|
+
padding: 0.8em;
|
|
5
5
|
}
|
|
6
6
|
.vxe-slider.theme--primary .vxe-slider--bar-track {
|
|
7
7
|
background-color: var(--vxe-ui-font-primary-color);
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
cursor: pointer;
|
|
84
84
|
}
|
|
85
85
|
.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:hover {
|
|
86
|
-
transform: scale(1.2);
|
|
86
|
+
transform: translate(-50%, -50%) scale(1.2);
|
|
87
87
|
}
|
|
88
88
|
.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:active {
|
|
89
|
-
transform: scale(1.1);
|
|
89
|
+
transform: translate(-50%, -50%) scale(1.1);
|
|
90
90
|
}
|
|
91
91
|
.vxe-slider.is--readonly .vxe-slider--bar-wrapper,
|
|
92
92
|
.vxe-slider.is--readonly .vxe-slider--inner {
|
|
@@ -123,21 +123,14 @@
|
|
|
123
123
|
|
|
124
124
|
.vxe-slider--bar-btn {
|
|
125
125
|
position: absolute;
|
|
126
|
-
width:
|
|
127
|
-
height:
|
|
128
|
-
top:
|
|
126
|
+
width: 1.2em;
|
|
127
|
+
height: 1.2em;
|
|
128
|
+
top: 50%;
|
|
129
|
+
transform: translate(-50%, -50%);
|
|
129
130
|
border-radius: 50%;
|
|
130
|
-
border:
|
|
131
|
+
border: 2px solid var(--vxe-ui-font-primary-color);
|
|
131
132
|
background-color: #fff;
|
|
132
133
|
cursor: pointer;
|
|
133
134
|
z-index: 1;
|
|
134
135
|
transition: transform 0.1s ease-in-out;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.vxe-slider--start-btn {
|
|
138
|
-
left: -0.45em;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.vxe-slider--end-btn {
|
|
142
|
-
right: -0.45em;
|
|
143
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-slider{position:relative;display:block;padding:.
|
|
1
|
+
.vxe-slider{position:relative;display:block;padding:.8em}.vxe-slider.theme--primary .vxe-slider--bar-track{background-color:var(--vxe-ui-font-primary-color)}.vxe-slider.theme--primary .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-font-primary-lighten-color)}.vxe-slider.theme--primary .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-font-primary-darken-color)}.vxe-slider.theme--primary .vxe-slider--bar-btn{background-color:var(--vxe-ui-font-primary-color)}.vxe-slider.theme--success .vxe-slider--bar-track{background-color:var(--vxe-ui-status-success-color)}.vxe-slider.theme--success .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-success-lighten-color)}.vxe-slider.theme--success .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-success-darken-color)}.vxe-slider.theme--success .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-success-color)}.vxe-slider.theme--info .vxe-slider--bar-track{background-color:var(--vxe-ui-status-info-color)}.vxe-slider.theme--info .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-info-lighten-color)}.vxe-slider.theme--info .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-info-darken-color)}.vxe-slider.theme--info .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-info-color)}.vxe-slider.theme--warning .vxe-slider--bar-track{background-color:var(--vxe-ui-status-warning-color)}.vxe-slider.theme--warning .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-warning-lighten-color)}.vxe-slider.theme--warning .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-warning-darken-color)}.vxe-slider.theme--warning .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-warning-color)}.vxe-slider.theme--danger .vxe-slider--bar-track{background-color:var(--vxe-ui-status-danger-color)}.vxe-slider.theme--danger .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-danger-lighten-color)}.vxe-slider.theme--danger .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-danger-darken-color)}.vxe-slider.theme--danger .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-danger-color)}.vxe-slider.theme--error .vxe-slider--bar-track{background-color:var(--vxe-ui-status-error-color)}.vxe-slider.theme--error .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-error-lighten-color)}.vxe-slider.theme--error .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-error-darken-color)}.vxe-slider.theme--error .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-error-color)}.vxe-slider.is--disabled .vxe-slider--bar-btn{cursor:not-allowed}.vxe-slider:not(.is--disabled) .vxe-slider--bar-wrapper,.vxe-slider:not(.is--disabled) .vxe-slider--inner{cursor:pointer}.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:hover{transform:translate(-50%,-50%) scale(1.2)}.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:active{transform:translate(-50%,-50%) scale(1.1)}.vxe-slider.is--readonly .vxe-slider--bar-wrapper,.vxe-slider.is--readonly .vxe-slider--inner{cursor:default}.vxe-slider--inner{position:relative}.vxe-slider--bar-wrapper{background-color:#e4e7ed}.vxe-slider--bar-track{position:absolute;left:0;top:0;z-index:1;background-color:var(--vxe-ui-font-primary-color)}.vxe-slider--bar-track:hover{background-color:var(--vxe-ui-font-primary-lighten-color)}.vxe-slider--bar-track:active{background-color:var(--vxe-ui-font-primary-darken-color)}.vxe-slider--bar-track,.vxe-slider--bar-wrapper{height:.3em;border-radius:var(--vxe-ui-base-border-radius)}.vxe-slider--bar-btn{position:absolute;width:1.2em;height:1.2em;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:2px solid var(--vxe-ui-font-primary-color);background-color:#fff;cursor:pointer;z-index:1;transition:transform .1s ease-in-out}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-space{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-default);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-default)}.vxe-space.size--xlarge{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-xlarge);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-xlarge)}.vxe-space.size--large{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-large);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-large)}.vxe-space.size--medium{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-medium);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-medium)}.vxe-space.size--small{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-small);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-small)}.vxe-space.size--mini{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-mini);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-mini)}.vxe-space{display:inline-flex;flex-direction:row;gap:var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap)}.vxe-space.is--wrap{flex-wrap:wrap}.vxe-space.is--vertical{flex-direction:column}
|
|
1
|
+
.vxe-space{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-default);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-default)}.vxe-space.size--xlarge{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-xlarge);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-xlarge)}.vxe-space.size--large{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-large);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-large)}.vxe-space.size--medium{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-medium);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-medium)}.vxe-space.size--small{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-small);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-small)}.vxe-space.size--mini{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-mini);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-mini)}.vxe-space{display:inline-flex;flex-direction:row;align-items:center;gap:var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap)}.vxe-space.is--wrap{flex-wrap:wrap}.vxe-space.is--vertical{flex-direction:column}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-pc-ui",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.21",
|
|
4
4
|
"description": "A vue based PC component library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"style": "lib/style.css",
|
|
26
26
|
"typings": "types/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@vxe-ui/core": "^3.4.
|
|
28
|
+
"@vxe-ui/core": "^3.4.21"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
@@ -7,14 +7,15 @@ import type { SliderReactData, SliderInternalData, VxeSliderEmits, ValueOf, VxeS
|
|
|
7
7
|
|
|
8
8
|
function createInternalData (): SliderInternalData {
|
|
9
9
|
return {
|
|
10
|
-
// _isUp: false
|
|
10
|
+
// _isUp: false,
|
|
11
|
+
currValue: 0,
|
|
12
|
+
startValue: 0,
|
|
13
|
+
endValue: 0
|
|
11
14
|
}
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
function createReactData (): SliderReactData {
|
|
15
18
|
return {
|
|
16
|
-
startValue: 0,
|
|
17
|
-
endValue: 0
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -26,6 +27,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
26
27
|
},
|
|
27
28
|
props: {
|
|
28
29
|
value: [String, Number, Array] as PropType<VxeSliderPropTypes.ModelValue>,
|
|
30
|
+
startValue: [String, Number] as PropType<VxeSliderPropTypes.StartValue>,
|
|
31
|
+
endValue: [String, Number] as PropType<VxeSliderPropTypes.EndValue>,
|
|
29
32
|
vertical: Boolean as PropType<VxeSliderPropTypes.Vertical>,
|
|
30
33
|
max: {
|
|
31
34
|
type: [String, Number] as PropType<VxeSliderPropTypes.Max>,
|
|
@@ -125,6 +128,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
125
128
|
const props = $xeSlider
|
|
126
129
|
|
|
127
130
|
return XEUtils.toNumber(props.min || 0)
|
|
131
|
+
},
|
|
132
|
+
computeMVal () {
|
|
133
|
+
const $xeSlider = this
|
|
134
|
+
const props = $xeSlider
|
|
135
|
+
|
|
136
|
+
const { range, startValue, endValue } = props
|
|
137
|
+
return range ? `${startValue || ''}${endValue || ''}` : ''
|
|
128
138
|
}
|
|
129
139
|
},
|
|
130
140
|
methods: {
|
|
@@ -147,138 +157,220 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
147
157
|
$xeSlider.$emit('model-value', value)
|
|
148
158
|
}
|
|
149
159
|
},
|
|
150
|
-
|
|
160
|
+
getBarPercent (currValue: number) {
|
|
151
161
|
const $xeSlider = this
|
|
152
|
-
const props = $xeSlider
|
|
153
162
|
|
|
154
|
-
const { range } = props
|
|
155
163
|
const maxNum = $xeSlider.computeMaxNum
|
|
156
164
|
const minNum = $xeSlider.computeMinNum
|
|
157
|
-
|
|
165
|
+
if (maxNum === minNum) {
|
|
166
|
+
return 0
|
|
167
|
+
}
|
|
168
|
+
if (currValue < minNum) {
|
|
169
|
+
currValue = minNum
|
|
170
|
+
}
|
|
171
|
+
if (currValue > maxNum) {
|
|
172
|
+
currValue = maxNum
|
|
173
|
+
}
|
|
174
|
+
return ((currValue - minNum) / (maxNum - minNum)) * 100
|
|
158
175
|
},
|
|
159
|
-
|
|
176
|
+
parseFields (startValue?: VxeSliderPropTypes.StartValue, endValue?: VxeSliderPropTypes.EndValue) {
|
|
160
177
|
const $xeSlider = this
|
|
161
|
-
const
|
|
178
|
+
const internalData = $xeSlider.internalData
|
|
162
179
|
|
|
163
|
-
const
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
180
|
+
const [sVal, eVal] = XEUtils.orderBy([XEUtils.toNumber(startValue), XEUtils.toNumber(endValue)])
|
|
181
|
+
const currValue = XEUtils.floor(XEUtils.toNumber(sVal || 0))
|
|
182
|
+
internalData.currValue = currValue
|
|
183
|
+
internalData.startValue = currValue
|
|
184
|
+
internalData.endValue = XEUtils.floor(XEUtils.toNumber(eVal || 0))
|
|
167
185
|
},
|
|
168
|
-
|
|
186
|
+
parseArrs (arrVals: number[]) {
|
|
187
|
+
const $xeSlider = this
|
|
188
|
+
const internalData = $xeSlider.internalData
|
|
189
|
+
|
|
190
|
+
const [sVal, eVal] = XEUtils.orderBy(arrVals)
|
|
191
|
+
const currValue = XEUtils.floor(XEUtils.toNumber(sVal || 0))
|
|
192
|
+
internalData.currValue = currValue
|
|
193
|
+
internalData.startValue = currValue
|
|
194
|
+
internalData.endValue = XEUtils.floor(XEUtils.toNumber(eVal || 0))
|
|
195
|
+
},
|
|
196
|
+
parseNum (val: VxeSliderPropTypes.ModelValue | undefined) {
|
|
197
|
+
const $xeSlider = this
|
|
198
|
+
const internalData = $xeSlider.internalData
|
|
199
|
+
|
|
200
|
+
const currValue = XEUtils.floor(XEUtils.toNumber(val || 0))
|
|
201
|
+
internalData.currValue = currValue
|
|
202
|
+
internalData.startValue = 0
|
|
203
|
+
internalData.endValue = currValue
|
|
204
|
+
},
|
|
205
|
+
updateModelValue (umType?: 1 | 2) {
|
|
169
206
|
const $xeSlider = this
|
|
170
207
|
const props = $xeSlider
|
|
171
|
-
const reactData = $xeSlider.reactData
|
|
172
208
|
|
|
173
|
-
const { value } = props
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
209
|
+
const { range, value: modelValue, startValue, endValue } = props
|
|
210
|
+
if (!umType) {
|
|
211
|
+
if (range) {
|
|
212
|
+
if (XEUtils.eqNull(modelValue)) {
|
|
213
|
+
if (startValue || endValue) {
|
|
214
|
+
$xeSlider.parseFields(startValue, endValue)
|
|
215
|
+
}
|
|
216
|
+
} else {
|
|
217
|
+
if (XEUtils.isArray(modelValue)) {
|
|
218
|
+
$xeSlider.parseArrs(modelValue.map(num => XEUtils.toNumber(num)))
|
|
219
|
+
} else {
|
|
220
|
+
$xeSlider.parseNum(modelValue)
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
} else {
|
|
224
|
+
$xeSlider.parseNum(modelValue)
|
|
225
|
+
}
|
|
226
|
+
} else if (range && umType === 2) {
|
|
227
|
+
$xeSlider.parseFields(startValue, endValue)
|
|
178
228
|
} else {
|
|
179
|
-
|
|
180
|
-
|
|
229
|
+
if (XEUtils.isArray(modelValue)) {
|
|
230
|
+
$xeSlider.parseArrs(modelValue.map(num => XEUtils.toNumber(num)))
|
|
231
|
+
} else {
|
|
232
|
+
$xeSlider.parseNum(modelValue)
|
|
233
|
+
}
|
|
181
234
|
}
|
|
235
|
+
$xeSlider.updateBarStyle()
|
|
236
|
+
$xeSlider.updateTrackStyle()
|
|
182
237
|
},
|
|
183
238
|
updateBarStyle () {
|
|
184
239
|
const $xeSlider = this
|
|
185
|
-
const
|
|
240
|
+
const props = $xeSlider
|
|
241
|
+
const internalData = $xeSlider.internalData
|
|
186
242
|
|
|
187
|
-
const {
|
|
188
|
-
const
|
|
243
|
+
const { range } = props
|
|
244
|
+
const { currValue, startValue, endValue } = internalData
|
|
189
245
|
const startBtnElem = $xeSlider.$refs.refStartBtnElem as HTMLDivElement
|
|
190
246
|
const endBtnElem = $xeSlider.$refs.refEndBtnElem as HTMLDivElement
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
247
|
+
if (range) {
|
|
248
|
+
const [sVal, eVal] = XEUtils.orderBy([startValue, endValue])
|
|
249
|
+
if (startBtnElem) {
|
|
250
|
+
startBtnElem.style.left = $xeSlider.getBarPercent(sVal) + '%'
|
|
251
|
+
}
|
|
252
|
+
if (endBtnElem) {
|
|
253
|
+
endBtnElem.style.left = $xeSlider.getBarPercent(eVal) + '%'
|
|
254
|
+
}
|
|
196
255
|
} else {
|
|
197
|
-
|
|
198
|
-
|
|
256
|
+
if (endBtnElem) {
|
|
257
|
+
endBtnElem.style.left = $xeSlider.getBarPercent(currValue) + '%'
|
|
258
|
+
}
|
|
199
259
|
}
|
|
260
|
+
},
|
|
261
|
+
updateTrackStyle () {
|
|
262
|
+
const $xeSlider = this
|
|
263
|
+
const props = $xeSlider
|
|
264
|
+
const internalData = $xeSlider.internalData
|
|
265
|
+
|
|
266
|
+
const { range } = props
|
|
267
|
+
const { currValue, startValue, endValue } = internalData
|
|
268
|
+
const trackElem = $xeSlider.$refs.refTrackElem as HTMLDivElement
|
|
200
269
|
if (trackElem) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
270
|
+
if (range) {
|
|
271
|
+
const [sVal, eVal] = XEUtils.orderBy([startValue, endValue])
|
|
272
|
+
trackElem.style.left = $xeSlider.getBarPercent(sVal) + '%'
|
|
273
|
+
trackElem.style.width = $xeSlider.getBarPercent(eVal - sVal) + '%'
|
|
274
|
+
} else {
|
|
275
|
+
trackElem.style.left = '0'
|
|
276
|
+
trackElem.style.width = $xeSlider.getBarPercent(currValue) + '%'
|
|
277
|
+
}
|
|
209
278
|
}
|
|
210
279
|
},
|
|
211
280
|
changeEvent (evnt: MouseEvent) {
|
|
212
281
|
const $xeSlider = this
|
|
213
282
|
const props = $xeSlider
|
|
214
|
-
const
|
|
283
|
+
const internalData = $xeSlider.internalData
|
|
215
284
|
const $xeForm = $xeSlider.$xeForm
|
|
216
285
|
const formItemInfo = $xeSlider.formItemInfo
|
|
217
286
|
|
|
218
287
|
const { range } = props
|
|
219
|
-
const { startValue, endValue } =
|
|
220
|
-
const
|
|
288
|
+
const { currValue, startValue, endValue } = internalData
|
|
289
|
+
const vals = range ? XEUtils.orderBy([startValue, endValue]) : []
|
|
290
|
+
const value = range ? vals : currValue
|
|
221
291
|
$xeSlider.emitModel(value)
|
|
292
|
+
if (range) {
|
|
293
|
+
$xeSlider.$emit('update:startValue', vals[0] || 0)
|
|
294
|
+
$xeSlider.$emit('update:endValue', vals[1] || 0)
|
|
295
|
+
}
|
|
222
296
|
$xeSlider.dispatchEvent('change', { value }, evnt)
|
|
223
297
|
// 自动更新校验状态
|
|
224
298
|
if ($xeForm && formItemInfo) {
|
|
225
299
|
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value)
|
|
226
300
|
}
|
|
227
301
|
},
|
|
228
|
-
|
|
302
|
+
getValueByLeft (offsetLeft: number, barWidth: number) {
|
|
303
|
+
const $xeSlider = this
|
|
304
|
+
|
|
305
|
+
const maxNum = $xeSlider.computeMaxNum
|
|
306
|
+
const minNum = $xeSlider.computeMinNum
|
|
307
|
+
if (barWidth === 0) {
|
|
308
|
+
return minNum
|
|
309
|
+
}
|
|
310
|
+
const clamped = Math.max(0, Math.min(barWidth, offsetLeft))
|
|
311
|
+
const ratio = clamped / barWidth
|
|
312
|
+
const raw = minNum + ratio * (maxNum - minNum)
|
|
313
|
+
return Math.floor(raw)
|
|
314
|
+
},
|
|
315
|
+
handleBtnMousedownEvent (evnt: MouseEvent) {
|
|
229
316
|
const $xeSlider = this
|
|
230
317
|
const props = $xeSlider
|
|
231
|
-
const
|
|
318
|
+
const internalData = $xeSlider.internalData
|
|
232
319
|
|
|
233
|
-
const { immediate } = props
|
|
320
|
+
const { range, immediate } = props
|
|
321
|
+
const btnElem = evnt.currentTarget as HTMLDivElement
|
|
234
322
|
const formReadonly = $xeSlider.computeFormReadonly
|
|
235
323
|
const isDisabled = $xeSlider.computeIsDisabled
|
|
236
|
-
const maxNum = $xeSlider.computeMaxNum
|
|
237
|
-
const minNum = $xeSlider.computeMinNum
|
|
238
324
|
if (!(formReadonly || isDisabled)) {
|
|
239
325
|
evnt.preventDefault()
|
|
240
326
|
document.onmousemove = evnt => {
|
|
241
327
|
evnt.preventDefault()
|
|
328
|
+
const el = $xeSlider.$refs.refElem as HTMLDivElement
|
|
242
329
|
const barElem = $xeSlider.$refs.refBarElem as HTMLDivElement
|
|
243
|
-
if (barElem) {
|
|
330
|
+
if (el && barElem) {
|
|
331
|
+
const btnType = btnElem.getAttribute('data-type')
|
|
244
332
|
const barRect = barElem.getBoundingClientRect()
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
333
|
+
const barWidth = barRect.width
|
|
334
|
+
const offsetLeft = Math.min(barWidth, Math.max(0, evnt.clientX - barRect.left))
|
|
335
|
+
const currValue = $xeSlider.getValueByLeft(offsetLeft, barWidth)
|
|
336
|
+
if (range) {
|
|
337
|
+
if (btnType === '1') {
|
|
338
|
+
internalData.startValue = currValue
|
|
339
|
+
} else {
|
|
340
|
+
internalData.endValue = currValue
|
|
341
|
+
}
|
|
250
342
|
}
|
|
251
|
-
|
|
343
|
+
internalData.currValue = currValue
|
|
344
|
+
btnElem.style.left = $xeSlider.getBarPercent(currValue) + '%'
|
|
345
|
+
$xeSlider.dispatchEvent('track-dragover', {
|
|
346
|
+
currentValue: internalData.currValue,
|
|
347
|
+
startValue: internalData.startValue,
|
|
348
|
+
endValue: internalData.endValue
|
|
349
|
+
}, evnt)
|
|
252
350
|
}
|
|
253
351
|
if (immediate) {
|
|
254
352
|
$xeSlider.changeEvent(evnt)
|
|
255
353
|
}
|
|
256
|
-
$xeSlider.
|
|
354
|
+
$xeSlider.updateTrackStyle()
|
|
257
355
|
}
|
|
258
356
|
document.onmouseup = (evnt: MouseEvent) => {
|
|
259
357
|
document.onmousemove = null
|
|
260
358
|
document.onmouseup = null
|
|
261
|
-
$xeSlider.dispatchEvent('track-dragend', {
|
|
359
|
+
$xeSlider.dispatchEvent('track-dragend', {
|
|
360
|
+
currentValue: internalData.currValue,
|
|
361
|
+
startValue: internalData.startValue,
|
|
362
|
+
endValue: internalData.endValue
|
|
363
|
+
}, evnt)
|
|
262
364
|
$xeSlider.changeEvent(evnt)
|
|
263
|
-
$xeSlider.
|
|
365
|
+
$xeSlider.updateTrackStyle()
|
|
264
366
|
}
|
|
265
|
-
$xeSlider.dispatchEvent('track-dragstart', {
|
|
367
|
+
$xeSlider.dispatchEvent('track-dragstart', {
|
|
368
|
+
currentValue: internalData.currValue,
|
|
369
|
+
startValue: internalData.startValue,
|
|
370
|
+
endValue: internalData.endValue
|
|
371
|
+
}, evnt)
|
|
266
372
|
}
|
|
267
373
|
},
|
|
268
|
-
handleStartMousedownEvent (evnt: MouseEvent) {
|
|
269
|
-
const $xeSlider = this
|
|
270
|
-
|
|
271
|
-
const endBtnElem = $xeSlider.$refs.refEndBtnElem as HTMLDivElement
|
|
272
|
-
const startBtnElem = evnt.currentTarget as HTMLDivElement
|
|
273
|
-
$xeSlider.handleMousedownEvent(evnt, endBtnElem ? endBtnElem.offsetLeft < startBtnElem.offsetLeft : false)
|
|
274
|
-
},
|
|
275
|
-
handleEndMousedownEvent (evnt: MouseEvent) {
|
|
276
|
-
const $xeSlider = this
|
|
277
|
-
|
|
278
|
-
const startBtnElem = $xeSlider.$refs.refStartBtnElem as HTMLDivElement
|
|
279
|
-
const endBtnElem = evnt.currentTarget as HTMLDivElement
|
|
280
|
-
$xeSlider.handleMousedownEvent(evnt, startBtnElem ? endBtnElem.offsetLeft > startBtnElem.offsetLeft : true)
|
|
281
|
-
},
|
|
282
374
|
|
|
283
375
|
//
|
|
284
376
|
// Render
|
|
@@ -315,18 +407,24 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
315
407
|
? renderEmptyElement($xeSlider)
|
|
316
408
|
: h('div', {
|
|
317
409
|
ref: 'refStartBtnElem',
|
|
318
|
-
class: 'vxe-slider--bar-btn
|
|
410
|
+
class: 'vxe-slider--bar-btn',
|
|
411
|
+
attrs: {
|
|
412
|
+
'data-type': '1'
|
|
413
|
+
},
|
|
319
414
|
on: {
|
|
320
|
-
mousedown: $xeSlider.
|
|
415
|
+
mousedown: $xeSlider.handleBtnMousedownEvent
|
|
321
416
|
}
|
|
322
417
|
}),
|
|
323
418
|
formReadonly
|
|
324
419
|
? renderEmptyElement($xeSlider)
|
|
325
420
|
: h('div', {
|
|
326
421
|
ref: 'refEndBtnElem',
|
|
327
|
-
class: 'vxe-slider--bar-btn
|
|
422
|
+
class: 'vxe-slider--bar-btn',
|
|
423
|
+
attrs: {
|
|
424
|
+
'data-type': '2'
|
|
425
|
+
},
|
|
328
426
|
on: {
|
|
329
|
-
mousedown: $xeSlider.
|
|
427
|
+
mousedown: $xeSlider.handleBtnMousedownEvent
|
|
330
428
|
}
|
|
331
429
|
})
|
|
332
430
|
])
|
|
@@ -339,7 +437,16 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
339
437
|
const internalData = $xeSlider.internalData
|
|
340
438
|
|
|
341
439
|
if (!internalData._isUp) {
|
|
342
|
-
$xeSlider.
|
|
440
|
+
$xeSlider.updateModelValue(1)
|
|
441
|
+
}
|
|
442
|
+
internalData._isUp = false
|
|
443
|
+
},
|
|
444
|
+
computeMVal () {
|
|
445
|
+
const $xeSlider = this
|
|
446
|
+
const internalData = $xeSlider.internalData
|
|
447
|
+
|
|
448
|
+
if (!internalData._isUp) {
|
|
449
|
+
$xeSlider.updateModelValue(2)
|
|
343
450
|
}
|
|
344
451
|
internalData._isUp = false
|
|
345
452
|
}
|
|
@@ -349,12 +456,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
349
456
|
|
|
350
457
|
$xeSlider.internalData = createInternalData()
|
|
351
458
|
|
|
352
|
-
$xeSlider.
|
|
459
|
+
$xeSlider.updateModelValue()
|
|
353
460
|
},
|
|
354
461
|
mounted () {
|
|
355
462
|
const $xeSlider = this
|
|
356
463
|
|
|
357
464
|
$xeSlider.updateBarStyle()
|
|
465
|
+
$xeSlider.updateTrackStyle()
|
|
358
466
|
},
|
|
359
467
|
beforeDestroy () {
|
|
360
468
|
const $xeSlider = this
|