vxe-pc-ui 4.16.4 → 4.16.5
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 +17 -19
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +15 -17
- package/es/icon-picker/style.css +3 -8
- 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-icon-picker/style.css +3 -8
- package/es/vxe-icon-picker/style.min.css +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 +39 -45
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/icon-picker/style/style.css +3 -8
- package/lib/icon-picker/style/style.min.css +1 -1
- package/lib/index.umd.js +41 -47
- 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-icon-picker/style/style.css +3 -8
- package/lib/vxe-icon-picker/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/icon-picker/src/icon-picker.ts +14 -16
- package/styles/components/icon-picker.scss +3 -8
- package/types/components/icon-picker.d.ts +7 -3
- /package/es/icon/{iconfont.1783654856324.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/es/icon/{iconfont.1783654856324.woff → iconfont.1783670404729.woff} +0 -0
- /package/es/icon/{iconfont.1783654856324.woff2 → iconfont.1783670404729.woff2} +0 -0
- /package/es/{iconfont.1783654856324.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/es/{iconfont.1783654856324.woff → iconfont.1783670404729.woff} +0 -0
- /package/es/{iconfont.1783654856324.woff2 → iconfont.1783670404729.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783654856324.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783654856324.woff → iconfont.1783670404729.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783654856324.woff2 → iconfont.1783670404729.woff2} +0 -0
- /package/lib/{iconfont.1783654856324.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/lib/{iconfont.1783654856324.woff → iconfont.1783670404729.woff} +0 -0
- /package/lib/{iconfont.1783654856324.woff2 → iconfont.1783670404729.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -81,7 +81,7 @@ function checkDynamic() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.16.
|
|
84
|
+
const uiVersion = `ui v${"4.16.5"}`;
|
|
85
85
|
function createComponentLog(name) {
|
|
86
86
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
87
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -95,7 +95,7 @@ function createComponentLog(name) {
|
|
|
95
95
|
const warnLog$h = log.create('warn', uiVersion);
|
|
96
96
|
log.create('error', uiVersion);
|
|
97
97
|
|
|
98
|
-
const version = "4.16.
|
|
98
|
+
const version = "4.16.5";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -26031,7 +26031,7 @@ function createReactData$b() {
|
|
|
26031
26031
|
isAniVisible: false,
|
|
26032
26032
|
isActivated: false,
|
|
26033
26033
|
searchValue: '',
|
|
26034
|
-
|
|
26034
|
+
iconList: []
|
|
26035
26035
|
};
|
|
26036
26036
|
}
|
|
26037
26037
|
function createInternalData$a() {
|
|
@@ -26163,9 +26163,9 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26163
26163
|
});
|
|
26164
26164
|
const computeWrapperStyle = computed(() => {
|
|
26165
26165
|
const popupOpts = computePopupOpts.value;
|
|
26166
|
-
const { chunkSize, height, maxHeight } = popupOpts;
|
|
26166
|
+
const { chunkSize, height, chunkWidth, maxHeight } = popupOpts;
|
|
26167
26167
|
const stys = {
|
|
26168
|
-
'--vxe-ui-icon-picker-item-width': `${100 / (chunkSize || 4)}%`
|
|
26168
|
+
'--vxe-ui-icon-picker-item-width': chunkWidth ? toCssUnit(chunkWidth) : `${100 / (chunkSize || 4)}%`
|
|
26169
26169
|
};
|
|
26170
26170
|
if (height) {
|
|
26171
26171
|
stys['--vxe-ui-icon-picker-panel-height'] = toCssUnit(height);
|
|
@@ -26217,7 +26217,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26217
26217
|
const panelElem = refOptionPanel.value;
|
|
26218
26218
|
const btnTransfer = computeBtnTransfer.value;
|
|
26219
26219
|
const popupOpts = computePopupOpts.value;
|
|
26220
|
-
const { width
|
|
26220
|
+
const { width } = popupOpts;
|
|
26221
26221
|
const handleStyle = () => {
|
|
26222
26222
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
26223
26223
|
placement: popupOpts.placement || placement,
|
|
@@ -26225,12 +26225,12 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26225
26225
|
teleportTo: btnTransfer
|
|
26226
26226
|
});
|
|
26227
26227
|
const panelStyle = Object.assign(ppObj.style, {
|
|
26228
|
-
zIndex: panelIndex
|
|
26228
|
+
zIndex: panelIndex,
|
|
26229
|
+
minWidth: undefined
|
|
26229
26230
|
});
|
|
26230
26231
|
if (width) {
|
|
26231
26232
|
Object.assign(panelStyle, {
|
|
26232
|
-
width: toCssUnit(width)
|
|
26233
|
-
minWidth: transfer ? undefined : toCssUnit(width)
|
|
26233
|
+
width: toCssUnit(width)
|
|
26234
26234
|
});
|
|
26235
26235
|
}
|
|
26236
26236
|
reactData.panelStyle = panelStyle;
|
|
@@ -26282,8 +26282,6 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26282
26282
|
const { searchValue } = reactData;
|
|
26283
26283
|
const filterOpts = computeFilterOpts.value;
|
|
26284
26284
|
const { filterMethod } = filterOpts;
|
|
26285
|
-
const popupOpts = computePopupOpts.value;
|
|
26286
|
-
const { chunkSize } = popupOpts;
|
|
26287
26285
|
const iconList = computeIconList.value;
|
|
26288
26286
|
let visibleList = iconList;
|
|
26289
26287
|
if (searchValue) {
|
|
@@ -26295,7 +26293,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26295
26293
|
return (item.title && `${item.title}`.toLowerCase().indexOf(searchTxt) > -1) || (item.icon && `${item.icon}`.indexOf(searchTxt) > -1);
|
|
26296
26294
|
});
|
|
26297
26295
|
}
|
|
26298
|
-
reactData.
|
|
26296
|
+
reactData.iconList = visibleList;
|
|
26299
26297
|
};
|
|
26300
26298
|
const changeEvent = (evnt, selectValue) => {
|
|
26301
26299
|
reactData.selectIcon = selectValue;
|
|
@@ -26494,18 +26492,18 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26494
26492
|
Object.assign($xeIconPicker, iconPickerMethods);
|
|
26495
26493
|
const renderIconWrapper = () => {
|
|
26496
26494
|
const { showIconTitle } = props;
|
|
26497
|
-
const { selectIcon,
|
|
26498
|
-
if (!
|
|
26495
|
+
const { selectIcon, iconList } = reactData;
|
|
26496
|
+
if (!iconList.length) {
|
|
26499
26497
|
return h('div', {
|
|
26500
26498
|
class: 'vxe-ico-picker--empty-placeholder'
|
|
26501
26499
|
}, getI18n$2('vxe.iconPicker.emptyText'));
|
|
26502
26500
|
}
|
|
26503
26501
|
return h('div', {
|
|
26504
26502
|
class: 'vxe-ico-picker--list-wrapper'
|
|
26505
|
-
},
|
|
26506
|
-
|
|
26503
|
+
}, [
|
|
26504
|
+
h('div', {
|
|
26507
26505
|
class: 'vxe-ico-picker--list'
|
|
26508
|
-
},
|
|
26506
|
+
}, iconList.map(item => {
|
|
26509
26507
|
const { iconRender } = item;
|
|
26510
26508
|
const compConf = iconRender ? renderer.get(iconRender.name) : null;
|
|
26511
26509
|
const iconMethod = compConf ? compConf.renderIconPickerOptionIcon : null;
|
|
@@ -26539,8 +26537,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26539
26537
|
: renderEmptyElement($xeIconPicker)
|
|
26540
26538
|
])
|
|
26541
26539
|
]);
|
|
26542
|
-
}))
|
|
26543
|
-
|
|
26540
|
+
}))
|
|
26541
|
+
]);
|
|
26544
26542
|
};
|
|
26545
26543
|
const renderIconView = () => {
|
|
26546
26544
|
const { selectIcon } = reactData;
|