vxe-pc-ui 4.9.11 → 4.9.13
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/README.md +2 -1
- package/es/form/render/index.js +11 -9
- package/es/form/src/form.js +13 -3
- package/es/icon/style.css +1 -1
- package/es/select/src/select.js +0 -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/ui/src/vn.js +4 -4
- package/lib/form/render/index.js +15 -11
- package/lib/form/render/index.min.js +1 -1
- package/lib/form/src/form.js +13 -3
- package/lib/form/src/form.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 +34 -21
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +0 -1
- package/lib/select/src/select.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/ui/src/vn.js +4 -4
- package/lib/ui/src/vn.min.js +1 -1
- package/package.json +1 -1
- package/packages/form/render/index.ts +33 -31
- package/packages/form/src/form.ts +14 -3
- package/packages/select/src/select.ts +0 -1
- package/packages/ui/src/vn.ts +6 -4
- package/types/components/form-design.d.ts +2 -0
- /package/es/icon/{iconfont.1756629711656.ttf → iconfont.1756803060105.ttf} +0 -0
- /package/es/icon/{iconfont.1756629711656.woff → iconfont.1756803060105.woff} +0 -0
- /package/es/icon/{iconfont.1756629711656.woff2 → iconfont.1756803060105.woff2} +0 -0
- /package/es/{iconfont.1756629711656.ttf → iconfont.1756803060105.ttf} +0 -0
- /package/es/{iconfont.1756629711656.woff → iconfont.1756803060105.woff} +0 -0
- /package/es/{iconfont.1756629711656.woff2 → iconfont.1756803060105.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1756629711656.ttf → iconfont.1756803060105.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1756629711656.woff → iconfont.1756803060105.woff} +0 -0
- /package/lib/icon/style/{iconfont.1756629711656.woff2 → iconfont.1756803060105.woff2} +0 -0
- /package/lib/{iconfont.1756629711656.ttf → iconfont.1756803060105.ttf} +0 -0
- /package/lib/{iconfont.1756629711656.woff → iconfont.1756803060105.woff} +0 -0
- /package/lib/{iconfont.1756629711656.woff2 → iconfont.1756803060105.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3588,14 +3588,14 @@ function checkDynamic() {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3590
3590
|
|
|
3591
|
-
const log_version = `ui v${"4.9.
|
|
3591
|
+
const log_version = `ui v${"4.9.13"}`;
|
|
3592
3592
|
const warnLog = log.create('warn', log_version);
|
|
3593
3593
|
const errLog = log.create('error', log_version);
|
|
3594
3594
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3595
3595
|
|
|
3596
3596
|
|
|
3597
3597
|
|
|
3598
|
-
const ui_version = "4.9.
|
|
3598
|
+
const ui_version = "4.9.13";
|
|
3599
3599
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3600
3600
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3601
3601
|
function config(options) {
|
|
@@ -4981,8 +4981,8 @@ setIcon({
|
|
|
4981
4981
|
function getOnName(type) {
|
|
4982
4982
|
return 'on' + type.substring(0, 1).toLocaleUpperCase() + type.substring(1);
|
|
4983
4983
|
}
|
|
4984
|
-
function getModelEvent(
|
|
4985
|
-
switch (name) {
|
|
4984
|
+
function getModelEvent(renderOpts) {
|
|
4985
|
+
switch (renderOpts.name) {
|
|
4986
4986
|
case 'input':
|
|
4987
4987
|
case 'textarea':
|
|
4988
4988
|
return 'input';
|
|
@@ -4991,8 +4991,8 @@ function getModelEvent(name) {
|
|
|
4991
4991
|
}
|
|
4992
4992
|
return 'update:modelValue';
|
|
4993
4993
|
}
|
|
4994
|
-
function getChangeEvent(
|
|
4995
|
-
switch (name) {
|
|
4994
|
+
function getChangeEvent(renderOpts) {
|
|
4995
|
+
switch (renderOpts.name) {
|
|
4996
4996
|
case 'input':
|
|
4997
4997
|
case 'textarea':
|
|
4998
4998
|
case 'VxeInput':
|
|
@@ -21782,12 +21782,13 @@ const componentDefaultModelProp = 'modelValue';
|
|
|
21782
21782
|
* @deprecated
|
|
21783
21783
|
*/
|
|
21784
21784
|
function getOldComponentName(name) {
|
|
21785
|
-
return `vxe-${name
|
|
21785
|
+
return `vxe-${`${name || ''}`.replace('$', '')}`;
|
|
21786
21786
|
}
|
|
21787
|
-
function getDefaultComponent({
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21787
|
+
function getDefaultComponent(renderOpts) {
|
|
21788
|
+
const {
|
|
21789
|
+
name
|
|
21790
|
+
} = renderOpts;
|
|
21791
|
+
return getComponent(name) || (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)(`${name}`);
|
|
21791
21792
|
}
|
|
21792
21793
|
/**
|
|
21793
21794
|
* 已废弃
|
|
@@ -21826,8 +21827,8 @@ function getNativeElementOns(renderOpts, params, modelFunc, changeFunc) {
|
|
|
21826
21827
|
const {
|
|
21827
21828
|
events
|
|
21828
21829
|
} = renderOpts;
|
|
21829
|
-
const modelEvent = getModelEvent(renderOpts
|
|
21830
|
-
const changeEvent = getChangeEvent(renderOpts
|
|
21830
|
+
const modelEvent = getModelEvent(renderOpts);
|
|
21831
|
+
const changeEvent = getChangeEvent(renderOpts);
|
|
21831
21832
|
const isSameEvent = changeEvent === modelEvent;
|
|
21832
21833
|
const ons = {};
|
|
21833
21834
|
if (events) {
|
|
@@ -21873,8 +21874,8 @@ function getComponentOns(renderOpts, params, eFns, eventOns) {
|
|
|
21873
21874
|
model: modelFunc,
|
|
21874
21875
|
change: changeFunc
|
|
21875
21876
|
} = eFns || {};
|
|
21876
|
-
const modelEvent = getModelEvent(renderOpts
|
|
21877
|
-
const changeEvent = getChangeEvent(renderOpts
|
|
21877
|
+
const modelEvent = getModelEvent(renderOpts);
|
|
21878
|
+
const changeEvent = getChangeEvent(renderOpts);
|
|
21878
21879
|
const ons = {};
|
|
21879
21880
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(events, (func, key) => {
|
|
21880
21881
|
ons[getOnName(key)] = function (...args) {
|
|
@@ -21965,7 +21966,7 @@ function nativeItemRender(renderOpts, params) {
|
|
|
21965
21966
|
} = renderOpts;
|
|
21966
21967
|
const attrs = getNativeAttrs(renderOpts);
|
|
21967
21968
|
const itemValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(data, field);
|
|
21968
|
-
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(name
|
|
21969
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(`${name}`, {
|
|
21969
21970
|
class: `vxe-default-${name}`,
|
|
21970
21971
|
...attrs,
|
|
21971
21972
|
value: attrs && name === 'input' && (attrs.type === 'submit' || attrs.type === 'reset') ? null : itemValue,
|
|
@@ -22013,7 +22014,10 @@ function oldButtonItemRender(renderOpts, params) {
|
|
|
22013
22014
|
* @deprecated
|
|
22014
22015
|
*/
|
|
22015
22016
|
function oldButtonsItemRender(renderOpts, params) {
|
|
22016
|
-
|
|
22017
|
+
const {
|
|
22018
|
+
children
|
|
22019
|
+
} = renderOpts;
|
|
22020
|
+
return children ? children.map(childRenderOpts => oldButtonItemRender(childRenderOpts, params)[0]) : [];
|
|
22017
22021
|
}
|
|
22018
22022
|
/**
|
|
22019
22023
|
* 渲染原生的 select 标签
|
|
@@ -23374,6 +23378,18 @@ function createInternalData() {
|
|
|
23374
23378
|
...tooltipOpts
|
|
23375
23379
|
})]);
|
|
23376
23380
|
};
|
|
23381
|
+
const recalcFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
23382
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.vertical, () => {
|
|
23383
|
+
recalcFlag.value++;
|
|
23384
|
+
});
|
|
23385
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.titleWidth, () => {
|
|
23386
|
+
recalcFlag.value++;
|
|
23387
|
+
});
|
|
23388
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(recalcFlag, () => {
|
|
23389
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
23390
|
+
recalculate();
|
|
23391
|
+
});
|
|
23392
|
+
});
|
|
23377
23393
|
const staticItemFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
23378
23394
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.staticItems.length, () => {
|
|
23379
23395
|
staticItemFlag.value++;
|
|
@@ -23383,9 +23399,7 @@ function createInternalData() {
|
|
|
23383
23399
|
});
|
|
23384
23400
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(staticItemFlag, () => {
|
|
23385
23401
|
reactData.formItems = reactData.staticItems;
|
|
23386
|
-
|
|
23387
|
-
recalculate();
|
|
23388
|
-
});
|
|
23402
|
+
recalcFlag.value++;
|
|
23389
23403
|
});
|
|
23390
23404
|
const itemFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
23391
23405
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.items ? props.items.length : -1, () => {
|
|
@@ -29627,7 +29641,6 @@ function select_createInternalData() {
|
|
|
29627
29641
|
dispatchEvent('all-change', {
|
|
29628
29642
|
value: multipleValue
|
|
29629
29643
|
}, $event);
|
|
29630
|
-
hideOptionPanel();
|
|
29631
29644
|
}
|
|
29632
29645
|
};
|
|
29633
29646
|
const clearCheckedPanelEvent = params => {
|