vxe-pc-ui 3.0.6 → 3.0.7
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/drawer/src/drawer.js +5 -2
- package/es/icon/style.css +1 -1
- package/es/link/src/link.js +10 -0
- package/es/modal/src/modal.js +5 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tag/src/tag.js +7 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/drawer/src/drawer.js +8 -2
- package/lib/drawer/src/drawer.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 +35 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/link/src/link.js +10 -0
- package/lib/link/src/link.min.js +1 -1
- package/lib/modal/src/modal.js +8 -2
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tag/src/tag.js +7 -0
- package/lib/tag/src/tag.min.js +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/drawer/src/drawer.ts +5 -2
- package/packages/link/src/link.ts +12 -0
- package/packages/modal/src/modal.ts +5 -2
- package/packages/tag/src/tag.ts +9 -0
- package/types/ui/renderer.d.ts +1 -14
- /package/es/icon/style/{iconfont.1726028460484.ttf → iconfont.1726043455850.ttf} +0 -0
- /package/es/icon/style/{iconfont.1726028460484.woff → iconfont.1726043455850.woff} +0 -0
- /package/es/icon/style/{iconfont.1726028460484.woff2 → iconfont.1726043455850.woff2} +0 -0
- /package/es/{iconfont.1726028460484.ttf → iconfont.1726043455850.ttf} +0 -0
- /package/es/{iconfont.1726028460484.woff → iconfont.1726043455850.woff} +0 -0
- /package/es/{iconfont.1726028460484.woff2 → iconfont.1726043455850.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1726028460484.ttf → iconfont.1726043455850.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1726028460484.woff → iconfont.1726043455850.woff} +0 -0
- /package/lib/icon/style/{iconfont.1726028460484.woff2 → iconfont.1726043455850.woff2} +0 -0
- /package/lib/{iconfont.1726028460484.ttf → iconfont.1726043455850.ttf} +0 -0
- /package/lib/{iconfont.1726028460484.woff → iconfont.1726043455850.woff} +0 -0
- /package/lib/{iconfont.1726028460484.woff2 → iconfont.1726043455850.woff2} +0 -0
package/lib/tag/src/tag.js
CHANGED
|
@@ -46,6 +46,10 @@ var _default2 = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
46
46
|
$tag: $xeTag
|
|
47
47
|
}, params));
|
|
48
48
|
},
|
|
49
|
+
clickEvent: function clickEvent(evnt) {
|
|
50
|
+
var $xeTag = this;
|
|
51
|
+
$xeTag.dispatchEvent('click', {}, evnt);
|
|
52
|
+
},
|
|
49
53
|
//
|
|
50
54
|
// Render
|
|
51
55
|
//
|
|
@@ -76,6 +80,9 @@ var _default2 = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
76
80
|
class: ['vxe-tag', _defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(status), status)],
|
|
77
81
|
attrs: {
|
|
78
82
|
title: title
|
|
83
|
+
},
|
|
84
|
+
on: {
|
|
85
|
+
click: $xeTag.clickEvent
|
|
79
86
|
}
|
|
80
87
|
}, $xeTag.renderContent(h));
|
|
81
88
|
}
|
package/lib/tag/src/tag.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_vn=require("../../ui/src/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,t,
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_vn=require("../../ui/src/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}var _default2=exports.default=(0,_comp.defineVxeComponent)({name:"VxeTag",mixins:[_ui.globalMixins.sizeMixin,_ui.globalMixins.permissionMixin],props:{status:String,title:[String,Number],icon:String,content:[String,Number],size:{type:String,default:function(){return(0,_ui.getConfig)().tag.size||(0,_ui.getConfig)().size}}},data:function(){return{xID:_xeUtils.default.uniqueId(),reactData:{}}},computed:Object.assign({},{}),methods:{dispatchEvent:function(e,t,i){this.$emit(e,(0,_ui.createEvent)(i,{$tag:this},t))},clickEvent:function(e){this.dispatchEvent("click",{},e)},renderContent:function(e){var t=this,i=t.$scopedSlots,n=t.icon,r=t.content,o=i.default,i=i.icon;return[i||n?e("span",{class:"vxe-tag--icon"},i?(0,_vn.getSlotVNs)(i({})):[e("i",{class:n})]):(0,_ui.renderEmptyElement)(t),e("span",{class:"vxe-tag--content"},o?o({}):_xeUtils.default.toValueString(r))]},renderVN:function(e){var t=this,i=t.status,n=t.title,r=t.computeSize;return e("span",{ref:"refElem",class:["vxe-tag",_defineProperty(_defineProperty({},"size--".concat(r),r),"theme--".concat(i),i)],attrs:{title:n},on:{click:t.clickEvent}},t.renderContent(e))}},render:function(e){return this.renderVN(e)}});
|
package/lib/ui/index.js
CHANGED
|
@@ -27,7 +27,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
27
27
|
var _dynamics = require("../dynamics");
|
|
28
28
|
var _utils = require("./src/utils");
|
|
29
29
|
var _log = require("./src/log");
|
|
30
|
-
var version = exports.version = "3.0.
|
|
30
|
+
var version = exports.version = "3.0.7";
|
|
31
31
|
_core.VxeUI.version = version;
|
|
32
32
|
_core.VxeUI.uiVersion = version;
|
|
33
33
|
_core.VxeUI.tableVersion = '';
|
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")),_utils=require("./src/utils"),_log=require("./src/log"),version=exports.version="3.0.
|
|
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")),_utils=require("./src/utils"),_log=require("./src/log"),version=exports.version="3.0.7";function config(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.version=version,_core.VxeUI.uiVersion=version,_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover"},buttonGroup:{},calendar:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1},card:{border:!0,padding:!0},carousel:{height:200,loop:!0,interval:5e3},carouselItem:{},checkbox:{},checkboxGroup:{},col:{},collapse:{},collapsePane:{},countdown:{},datePicker:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0},form:{validConfig:{showMessage:!0,autoPos:!0},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"]},image:{showPreview:!0,showPrintButton:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},listView:{},list:{scrollY:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},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,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},numberInput:{digits:2,controls:!0},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{},passwordInput:{},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},tabs:{},tag:{},text:{},textarea:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300},tree:{indent:20,minHeight:60,radioConfig:{strict:!0}},treeSelect:{treeConfig:{radioConfig:{},checkboxConfig:{}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,imageStyle:{}},table:{},colgroup:{},column:{},toolbar:{},grid:{}});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",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",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",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",NUMBER_INPUT_PREV_NUM:iconPrefix+"caret-up",NUMBER_INPUT_NEXT_NUM:iconPrefix+"caret-down",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",DRAWER_CLOSE:iconPrefix+"close",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
|
-
var version = "ui v".concat("3.0.
|
|
8
|
+
var version = "ui v".concat("3.0.7");
|
|
9
9
|
var warnLog = exports.warnLog = _core.log.create('warn', version);
|
|
10
10
|
var errLog = exports.errLog = _core.log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),version="ui v".concat("3.0.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),version="ui v".concat("3.0.7"),warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
|
package/package.json
CHANGED
|
@@ -285,7 +285,9 @@ export default defineVxeComponent({
|
|
|
285
285
|
if (lastDrawer) {
|
|
286
286
|
setTimeout(() => {
|
|
287
287
|
if (lastDrawer === $xeDrawer && lastDrawer.escClosable) {
|
|
288
|
-
|
|
288
|
+
const type = 'exit'
|
|
289
|
+
$xeDrawer.dispatchEvent('close', { type }, evnt)
|
|
290
|
+
$xeDrawer.closeDrawer(type)
|
|
289
291
|
}
|
|
290
292
|
}, 10)
|
|
291
293
|
}
|
|
@@ -400,7 +402,7 @@ export default defineVxeComponent({
|
|
|
400
402
|
const props = $xeDrawer
|
|
401
403
|
const slots = $xeDrawer.$scopedSlots
|
|
402
404
|
|
|
403
|
-
const { slots: propSlots = {}, showCancelButton, showConfirmButton } = props
|
|
405
|
+
const { slots: propSlots = {}, showCancelButton, showConfirmButton, loading } = props
|
|
404
406
|
const lfSlot = slots.leftfoot || propSlots.leftfoot
|
|
405
407
|
const rfSlot = slots.rightfoot || propSlots.rightfoot
|
|
406
408
|
const btnVNs = []
|
|
@@ -425,6 +427,7 @@ export default defineVxeComponent({
|
|
|
425
427
|
ref: 'refConfirmBtn',
|
|
426
428
|
props: {
|
|
427
429
|
status: 'primary',
|
|
430
|
+
loading: loading,
|
|
428
431
|
content: props.confirmButtonText || getI18n('vxe.button.confirm')
|
|
429
432
|
},
|
|
430
433
|
on: {
|
|
@@ -55,6 +55,12 @@ export default defineVxeComponent({
|
|
|
55
55
|
const $xeLink = this
|
|
56
56
|
$xeLink.$emit(type, createEvent(evnt, { $link: $xeLink }, params))
|
|
57
57
|
},
|
|
58
|
+
clickEvent (evnt: MouseEvent) {
|
|
59
|
+
const $xeLink = this
|
|
60
|
+
|
|
61
|
+
$xeLink.dispatchEvent('click', {}, evnt)
|
|
62
|
+
},
|
|
63
|
+
|
|
58
64
|
//
|
|
59
65
|
// Render
|
|
60
66
|
//
|
|
@@ -107,6 +113,9 @@ export default defineVxeComponent({
|
|
|
107
113
|
title,
|
|
108
114
|
target,
|
|
109
115
|
to: routerLink
|
|
116
|
+
},
|
|
117
|
+
on: {
|
|
118
|
+
click: $xeLink.clickEvent
|
|
110
119
|
}
|
|
111
120
|
}, $xeLink.renderContent(h))
|
|
112
121
|
}
|
|
@@ -121,6 +130,9 @@ export default defineVxeComponent({
|
|
|
121
130
|
href,
|
|
122
131
|
target,
|
|
123
132
|
title
|
|
133
|
+
},
|
|
134
|
+
on: {
|
|
135
|
+
click: $xeLink.clickEvent
|
|
124
136
|
}
|
|
125
137
|
}, $xeLink.renderContent(h))
|
|
126
138
|
}
|
|
@@ -864,7 +864,9 @@ export default defineVxeComponent({
|
|
|
864
864
|
if (lastModal) {
|
|
865
865
|
setTimeout(() => {
|
|
866
866
|
if (lastModal === $xeModal && lastModal.escClosable) {
|
|
867
|
-
|
|
867
|
+
const type = 'exit'
|
|
868
|
+
$xeModal.dispatchEvent('close', { type }, evnt)
|
|
869
|
+
$xeModal.closeModal(type)
|
|
868
870
|
}
|
|
869
871
|
}, 10)
|
|
870
872
|
}
|
|
@@ -1325,7 +1327,7 @@ export default defineVxeComponent({
|
|
|
1325
1327
|
const props = $xeModal
|
|
1326
1328
|
const slots = $xeModal.$scopedSlots
|
|
1327
1329
|
|
|
1328
|
-
const { slots: propSlots = {}, showCancelButton, showConfirmButton, type } = props
|
|
1330
|
+
const { slots: propSlots = {}, showCancelButton, showConfirmButton, type, loading } = props
|
|
1329
1331
|
const lfSlot = slots.leftfoot || propSlots.leftfoot
|
|
1330
1332
|
const rfSlot = slots.rightfoot || propSlots.rightfoot
|
|
1331
1333
|
const btnVNs = []
|
|
@@ -1350,6 +1352,7 @@ export default defineVxeComponent({
|
|
|
1350
1352
|
ref: 'refConfirmBtn',
|
|
1351
1353
|
props: {
|
|
1352
1354
|
status: 'primary',
|
|
1355
|
+
loading: loading,
|
|
1353
1356
|
content: props.confirmButtonText || getI18n('vxe.button.confirm')
|
|
1354
1357
|
},
|
|
1355
1358
|
on: {
|
package/packages/tag/src/tag.ts
CHANGED
|
@@ -44,6 +44,12 @@ export default defineVxeComponent({
|
|
|
44
44
|
const $xeTag = this
|
|
45
45
|
$xeTag.$emit(type, createEvent(evnt, { $tag: $xeTag }, params))
|
|
46
46
|
},
|
|
47
|
+
clickEvent (evnt: MouseEvent) {
|
|
48
|
+
const $xeTag = this
|
|
49
|
+
|
|
50
|
+
$xeTag.dispatchEvent('click', {}, evnt)
|
|
51
|
+
},
|
|
52
|
+
|
|
47
53
|
//
|
|
48
54
|
// Render
|
|
49
55
|
//
|
|
@@ -86,6 +92,9 @@ export default defineVxeComponent({
|
|
|
86
92
|
}],
|
|
87
93
|
attrs: {
|
|
88
94
|
title
|
|
95
|
+
},
|
|
96
|
+
on: {
|
|
97
|
+
click: $xeTag.clickEvent
|
|
89
98
|
}
|
|
90
99
|
}, $xeTag.renderContent(h))
|
|
91
100
|
}
|
package/types/ui/renderer.d.ts
CHANGED
|
@@ -367,20 +367,7 @@ declare module '@vxe-ui/core' {
|
|
|
367
367
|
* @deprecated
|
|
368
368
|
*/
|
|
369
369
|
export interface RenderEditParams<D = any> extends RenderTableEditParams<D> {}
|
|
370
|
-
export interface RenderTableEditParams<D = any> {
|
|
371
|
-
$table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
|
|
372
|
-
$grid: VxeGridConstructor<D> | null
|
|
373
|
-
column: VxeTableDefines.ColumnInfo<D>
|
|
374
|
-
columnIndex: number
|
|
375
|
-
$columnIndex: number
|
|
376
|
-
rowid: string
|
|
377
|
-
row: D
|
|
378
|
-
rowIndex: number
|
|
379
|
-
$rowIndex: number
|
|
380
|
-
isHidden: boolean
|
|
381
|
-
fixed: VxeColumnPropTypes.Fixed
|
|
382
|
-
type: string
|
|
383
|
-
}
|
|
370
|
+
export interface RenderTableEditParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> {}
|
|
384
371
|
|
|
385
372
|
/**
|
|
386
373
|
* @deprecated
|
|
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
|