vxe-pc-ui 3.7.1 → 3.7.3
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/button/src/button.js +21 -3
- package/es/button/style.css +7 -0
- package/es/button/style.min.css +1 -1
- package/es/dynamics/index.js +2 -2
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +47 -14
- package/es/icon-picker/style.css +10 -0
- package/es/icon-picker/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-button/style.css +7 -0
- package/es/vxe-button/style.min.css +1 -1
- package/es/vxe-icon-picker/style.css +10 -0
- package/es/vxe-icon-picker/style.min.css +1 -1
- package/lib/button/src/button.js +23 -2
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +7 -0
- package/lib/button/style/style.min.css +1 -1
- package/lib/dynamics/index.js +3 -2
- package/lib/dynamics/index.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +46 -7
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/icon-picker/style/style.css +10 -0
- package/lib/icon-picker/style/style.min.css +1 -1
- package/lib/index.umd.js +85 -17
- package/lib/index.umd.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/lib/vxe-button/style/style.css +7 -0
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-icon-picker/style/style.css +10 -0
- package/lib/vxe-icon-picker/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +25 -3
- package/packages/dynamics/index.ts +2 -3
- package/packages/icon-picker/src/icon-picker.ts +55 -15
- package/styles/components/button.scss +9 -0
- package/styles/components/icon-picker.scss +11 -1
- package/types/components/button.d.ts +9 -0
- package/types/components/icon-picker.d.ts +7 -0
- package/types/ui/renderer.d.ts +47 -0
- /package/es/icon/{iconfont.1752026770368.ttf → iconfont.1752132980911.ttf} +0 -0
- /package/es/icon/{iconfont.1752026770368.woff → iconfont.1752132980911.woff} +0 -0
- /package/es/icon/{iconfont.1752026770368.woff2 → iconfont.1752132980911.woff2} +0 -0
- /package/es/{iconfont.1752026770368.ttf → iconfont.1752132980911.ttf} +0 -0
- /package/es/{iconfont.1752026770368.woff → iconfont.1752132980911.woff} +0 -0
- /package/es/{iconfont.1752026770368.woff2 → iconfont.1752132980911.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1752026770368.ttf → iconfont.1752132980911.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1752026770368.woff → iconfont.1752132980911.woff} +0 -0
- /package/lib/icon/style/{iconfont.1752026770368.woff2 → iconfont.1752132980911.woff2} +0 -0
- /package/lib/{iconfont.1752026770368.ttf → iconfont.1752132980911.ttf} +0 -0
- /package/lib/{iconfont.1752026770368.woff → iconfont.1752132980911.woff} +0 -0
- /package/lib/{iconfont.1752026770368.woff2 → iconfont.1752132980911.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -13026,16 +13026,12 @@ setTheme();
|
|
|
13026
13026
|
});
|
|
13027
13027
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
13028
13028
|
var es_array_map = __webpack_require__(2062);
|
|
13029
|
-
;// CONCATENATED MODULE: ./packages/ui/src/comp.ts
|
|
13030
|
-
var defineVxeComponent = function defineVxeComponent(options) {
|
|
13031
|
-
return options;
|
|
13032
|
-
};
|
|
13033
13029
|
;// CONCATENATED MODULE: ./packages/dynamics/index.ts
|
|
13034
13030
|
|
|
13035
13031
|
|
|
13036
13032
|
|
|
13037
13033
|
var dynamicContainerElem;
|
|
13038
|
-
var DynamicApp =
|
|
13034
|
+
var DynamicApp = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
13039
13035
|
data: function data() {
|
|
13040
13036
|
var modals = [];
|
|
13041
13037
|
var drawers = [];
|
|
@@ -13097,16 +13093,20 @@ function checkDynamic() {
|
|
|
13097
13093
|
dynamicStore.$mount(dynamicContainerElem);
|
|
13098
13094
|
}
|
|
13099
13095
|
}
|
|
13096
|
+
;// CONCATENATED MODULE: ./packages/ui/src/comp.ts
|
|
13097
|
+
var defineVxeComponent = function defineVxeComponent(options) {
|
|
13098
|
+
return options;
|
|
13099
|
+
};
|
|
13100
13100
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
13101
13101
|
|
|
13102
|
-
var log_version = "ui v".concat("3.7.
|
|
13102
|
+
var log_version = "ui v".concat("3.7.3");
|
|
13103
13103
|
var warnLog = log.create('warn', log_version);
|
|
13104
13104
|
var errLog = log.create('error', log_version);
|
|
13105
13105
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
13106
13106
|
|
|
13107
13107
|
|
|
13108
13108
|
|
|
13109
|
-
var ui_version = "3.7.
|
|
13109
|
+
var ui_version = "3.7.3";
|
|
13110
13110
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
13111
13111
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
13112
13112
|
function config(options) {
|
|
@@ -15701,14 +15701,17 @@ function _toConsumableArray(r) {
|
|
|
15701
15701
|
* 按钮的前缀图标,属于 prefix-icon 的简写
|
|
15702
15702
|
*/
|
|
15703
15703
|
icon: String,
|
|
15704
|
+
iconRender: Object,
|
|
15704
15705
|
/**
|
|
15705
15706
|
* 按钮的前缀图标
|
|
15706
15707
|
*/
|
|
15707
15708
|
prefixIcon: String,
|
|
15709
|
+
prefixIconRender: Object,
|
|
15708
15710
|
/**
|
|
15709
15711
|
* 按钮的后缀图标
|
|
15710
15712
|
*/
|
|
15711
15713
|
suffixIcon: String,
|
|
15714
|
+
suffixIconRender: Object,
|
|
15712
15715
|
/**
|
|
15713
15716
|
* 圆角边框
|
|
15714
15717
|
*/
|
|
@@ -16202,8 +16205,10 @@ function _toConsumableArray(r) {
|
|
|
16202
16205
|
suffixIcon = props.suffixIcon,
|
|
16203
16206
|
loading = props.loading,
|
|
16204
16207
|
prefixTooltip = props.prefixTooltip,
|
|
16205
|
-
suffixTooltip = props.suffixTooltip
|
|
16208
|
+
suffixTooltip = props.suffixTooltip,
|
|
16209
|
+
suffixIconRender = props.suffixIconRender;
|
|
16206
16210
|
var prefixIcon = props.prefixIcon || props.icon;
|
|
16211
|
+
var prefixIconRender = props.prefixIconRender || props.iconRender;
|
|
16207
16212
|
var prefixTipOpts = $xeButton.computePrefixTipOpts;
|
|
16208
16213
|
var suffixTipOpts = $xeButton.computeSuffixTipOpts;
|
|
16209
16214
|
var prefixIconSlot = slots.prefix || slots.icon;
|
|
@@ -16221,6 +16226,14 @@ function _toConsumableArray(r) {
|
|
|
16221
16226
|
contVNs.push(h('span', {
|
|
16222
16227
|
class: 'vxe-button--item vxe-button--custom-prefix-icon'
|
|
16223
16228
|
}, prefixIconSlot.call($xeButton, {})));
|
|
16229
|
+
} else if (prefixIconRender) {
|
|
16230
|
+
var compConf = renderer.get(prefixIconRender.name);
|
|
16231
|
+
var pIconMethod = compConf ? compConf.renderButtonPrefixIcon : null;
|
|
16232
|
+
contVNs.push(h('span', {
|
|
16233
|
+
class: ['vxe-button--item vxe-button--custom-prefix-icon']
|
|
16234
|
+
}, pIconMethod ? getSlotVNs(pIconMethod.call($xeButton, h, prefixIconRender, {
|
|
16235
|
+
$button: $xeButton
|
|
16236
|
+
})) : []));
|
|
16224
16237
|
} else if (prefixIcon) {
|
|
16225
16238
|
contVNs.push(h('i', {
|
|
16226
16239
|
class: ['vxe-button--item vxe-button--prefix-icon', prefixIcon]
|
|
@@ -16239,6 +16252,14 @@ function _toConsumableArray(r) {
|
|
|
16239
16252
|
contVNs.push(h('span', {
|
|
16240
16253
|
class: 'vxe-button--item vxe-button--custom-suffix-icon'
|
|
16241
16254
|
}, suffixIconSlot.call($xeButton, {})));
|
|
16255
|
+
} else if (suffixIconRender) {
|
|
16256
|
+
var _compConf = renderer.get(suffixIconRender.name);
|
|
16257
|
+
var sIconMethod = _compConf ? _compConf.renderButtonSuffixIcon : null;
|
|
16258
|
+
contVNs.push(h('span', {
|
|
16259
|
+
class: ['vxe-button--item vxe-button--custom-suffix-icon']
|
|
16260
|
+
}, sIconMethod ? getSlotVNs(sIconMethod.call($xeButton, h, suffixIconRender, {
|
|
16261
|
+
$button: $xeButton
|
|
16262
|
+
})) : []));
|
|
16242
16263
|
} else if (suffixIcon) {
|
|
16243
16264
|
contVNs.push(h('i', {
|
|
16244
16265
|
class: ['vxe-button--item vxe-button--suffix-icon', suffixIcon]
|
|
@@ -32999,6 +33020,10 @@ var Icon = VxeIcon;
|
|
|
32999
33020
|
|
|
33000
33021
|
|
|
33001
33022
|
|
|
33023
|
+
|
|
33024
|
+
|
|
33025
|
+
|
|
33026
|
+
|
|
33002
33027
|
/* harmony default export */ var icon_picker = (/* define-vxe-component start */defineVxeComponent({
|
|
33003
33028
|
name: 'VxeIconPicker',
|
|
33004
33029
|
mixins: [globalMixins.sizeMixin],
|
|
@@ -33158,7 +33183,8 @@ var Icon = VxeIcon;
|
|
|
33158
33183
|
}
|
|
33159
33184
|
return {
|
|
33160
33185
|
title: "".concat(item.title || ''),
|
|
33161
|
-
icon: item.icon || ''
|
|
33186
|
+
icon: item.icon || '',
|
|
33187
|
+
iconRender: item.iconRender
|
|
33162
33188
|
};
|
|
33163
33189
|
});
|
|
33164
33190
|
},
|
|
@@ -33166,6 +33192,15 @@ var Icon = VxeIcon;
|
|
|
33166
33192
|
var $xeIconPicker = this;
|
|
33167
33193
|
var iconList = $xeIconPicker.computeIconList;
|
|
33168
33194
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().chunk(iconList, 4);
|
|
33195
|
+
},
|
|
33196
|
+
computeSelectIconItem: function computeSelectIconItem() {
|
|
33197
|
+
var $xeIconPicker = this;
|
|
33198
|
+
var reactData = $xeIconPicker.reactData;
|
|
33199
|
+
var selectIcon = reactData.selectIcon;
|
|
33200
|
+
var iconList = $xeIconPicker.computeIconList;
|
|
33201
|
+
return selectIcon ? iconList.find(function (item) {
|
|
33202
|
+
return item.icon === selectIcon;
|
|
33203
|
+
}) : null;
|
|
33169
33204
|
}
|
|
33170
33205
|
}),
|
|
33171
33206
|
methods: {
|
|
@@ -33519,6 +33554,9 @@ var Icon = VxeIcon;
|
|
|
33519
33554
|
return h('div', {
|
|
33520
33555
|
class: 'vxe-ico-picker--list'
|
|
33521
33556
|
}, list.map(function (item) {
|
|
33557
|
+
var iconRender = item.iconRender;
|
|
33558
|
+
var compConf = iconRender ? renderer.get(iconRender.name) : null;
|
|
33559
|
+
var oIconMethod = compConf ? compConf.renderIconPickerOptionIcon : null;
|
|
33522
33560
|
return h('div', {
|
|
33523
33561
|
class: 'vxe-ico-picker--item',
|
|
33524
33562
|
on: {
|
|
@@ -33530,7 +33568,10 @@ var Icon = VxeIcon;
|
|
|
33530
33568
|
}
|
|
33531
33569
|
}, [h('div', {
|
|
33532
33570
|
class: 'vxe-ico-picker--item-icon'
|
|
33533
|
-
},
|
|
33571
|
+
}, oIconMethod && iconRender ? getSlotVNs(oIconMethod.call($xeIconPicker, h, iconRender, {
|
|
33572
|
+
$iconPicker: $xeIconPicker,
|
|
33573
|
+
option: item
|
|
33574
|
+
})) : [h('i', {
|
|
33534
33575
|
class: item.icon || ''
|
|
33535
33576
|
})]), showIconTitle ? h('div', {
|
|
33536
33577
|
class: 'vxe-ico-picker--item-title'
|
|
@@ -33538,6 +33579,32 @@ var Icon = VxeIcon;
|
|
|
33538
33579
|
}));
|
|
33539
33580
|
}));
|
|
33540
33581
|
},
|
|
33582
|
+
renderIconView: function renderIconView(h) {
|
|
33583
|
+
var $xeIconPicker = this;
|
|
33584
|
+
var reactData = $xeIconPicker.reactData;
|
|
33585
|
+
var selectIcon = reactData.selectIcon;
|
|
33586
|
+
var selectIconItem = $xeIconPicker.computeSelectIconItem;
|
|
33587
|
+
if (selectIconItem) {
|
|
33588
|
+
var iconRender = selectIconItem.iconRender;
|
|
33589
|
+
var compConf = iconRender ? renderer.get(iconRender.name) : null;
|
|
33590
|
+
var oIconMethod = compConf ? compConf.renderIconPickerOptionIcon : null;
|
|
33591
|
+
if (oIconMethod && iconRender) {
|
|
33592
|
+
return h('div', {
|
|
33593
|
+
key: 'inc',
|
|
33594
|
+
class: 'vxe-ico-picker--icon'
|
|
33595
|
+
}, getSlotVNs(oIconMethod.call($xeIconPicker, h, iconRender, {
|
|
33596
|
+
$iconPicker: $xeIconPicker,
|
|
33597
|
+
option: selectIconItem
|
|
33598
|
+
})));
|
|
33599
|
+
}
|
|
33600
|
+
}
|
|
33601
|
+
return h('div', {
|
|
33602
|
+
key: 'ind',
|
|
33603
|
+
class: 'vxe-ico-picker--icon'
|
|
33604
|
+
}, [h('i', {
|
|
33605
|
+
class: selectIcon
|
|
33606
|
+
})]);
|
|
33607
|
+
},
|
|
33541
33608
|
renderVN: function renderVN(h) {
|
|
33542
33609
|
var $xeIconPicker = this;
|
|
33543
33610
|
var props = $xeIconPicker;
|
|
@@ -33580,11 +33647,7 @@ var Icon = VxeIcon;
|
|
|
33580
33647
|
focus: $xeIconPicker.focusEvent,
|
|
33581
33648
|
blur: $xeIconPicker.blurEvent
|
|
33582
33649
|
}
|
|
33583
|
-
}), selectIcon ? h('div', {
|
|
33584
|
-
class: 'vxe-ico-picker--icon'
|
|
33585
|
-
}, [h('i', {
|
|
33586
|
-
class: selectIcon
|
|
33587
|
-
})]) : h('div', {
|
|
33650
|
+
}), selectIcon ? $xeIconPicker.renderIconView(h) : h('div', {
|
|
33588
33651
|
class: 'vxe-ico-picker--placeholder'
|
|
33589
33652
|
}, inpPlaceholder), h('div', {
|
|
33590
33653
|
class: 'vxe-ico-picker--suffix'
|
|
@@ -54196,8 +54259,13 @@ var readFile = readLocalFile;
|
|
|
54196
54259
|
;// CONCATENATED MODULE: ./index.ts
|
|
54197
54260
|
|
|
54198
54261
|
|
|
54199
|
-
if (typeof window !== 'undefined'
|
|
54200
|
-
window.
|
|
54262
|
+
if (typeof window !== 'undefined') {
|
|
54263
|
+
if (window.VxeUI && !window.VxeUIAll) {
|
|
54264
|
+
window.VxeUIAll = components_namespaceObject;
|
|
54265
|
+
}
|
|
54266
|
+
if (window.Vue) {
|
|
54267
|
+
window.Vue.use(components_namespaceObject);
|
|
54268
|
+
}
|
|
54201
54269
|
}
|
|
54202
54270
|
|
|
54203
54271
|
/* harmony default export */ var index = (components_namespaceObject);
|