vxe-pc-ui 4.8.10 → 4.8.12
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/components.js +0 -3
- package/es/form/src/form-config-item.js +1 -0
- package/es/form/src/form-group.js +1 -0
- package/es/form/src/form-item.js +1 -0
- package/es/form/src/form.js +66 -9
- package/es/form/src/render.js +5 -5
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +3 -3
- package/es/ui/src/dom.js +9 -0
- package/es/ui/src/log.js +1 -1
- package/lib/components.js +1 -13
- package/lib/components.min.js +1 -1
- package/lib/form/src/form-config-item.js +1 -0
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-group.js +1 -0
- package/lib/form/src/form-group.min.js +1 -1
- package/lib/form/src/form-item.js +1 -0
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +74 -8
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +6 -3
- package/lib/form/src/render.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 +101 -104
- 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 +3 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +10 -0
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/components.ts +0 -3
- package/packages/form/src/form-config-item.ts +1 -0
- package/packages/form/src/form-group.ts +1 -0
- package/packages/form/src/form-item.ts +1 -0
- package/packages/form/src/form.ts +69 -10
- package/packages/form/src/render.ts +11 -11
- package/packages/ui/index.ts +3 -2
- package/packages/ui/src/dom.ts +10 -0
- package/styles/all.scss +0 -1
- package/types/all.d.ts +6 -2
- package/types/components/form.d.ts +11 -2
- package/types/components/table.d.ts +5 -0
- package/types/ui/global-config.d.ts +20 -10
- package/es/gantt/index.js +0 -12
- package/es/gantt/src/gantt.js +0 -61
- package/es/gantt/style.css +0 -0
- package/es/gantt/style.min.css +0 -0
- package/es/vxe-gantt/index.js +0 -3
- package/es/vxe-gantt/style.css +0 -0
- package/es/vxe-gantt/style.min.css +0 -0
- package/lib/gantt/index.js +0 -19
- package/lib/gantt/index.min.js +0 -1
- package/lib/gantt/src/gantt.js +0 -72
- package/lib/gantt/src/gantt.min.js +0 -1
- package/lib/gantt/style/index.js +0 -1
- package/lib/gantt/style/style.css +0 -0
- package/lib/gantt/style/style.min.css +0 -0
- package/lib/vxe-gantt/index.js +0 -22
- package/lib/vxe-gantt/index.min.js +0 -1
- package/lib/vxe-gantt/style/index.js +0 -1
- package/lib/vxe-gantt/style/style.css +0 -0
- package/lib/vxe-gantt/style/style.min.css +0 -0
- package/packages/gantt/index.ts +0 -16
- package/packages/gantt/src/gantt.ts +0 -87
- package/styles/components/gantt.scss +0 -0
- /package/es/icon/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/es/icon/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/es/icon/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
- /package/es/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/es/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/es/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/lib/icon/style/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
- /package/lib/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/lib/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/lib/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1919,7 +1919,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1919
1919
|
FormGroup: function() { return /* reexport */ FormGroup; },
|
|
1920
1920
|
FormItem: function() { return /* reexport */ FormItem; },
|
|
1921
1921
|
GLOBAL_EVENT_KEYS: function() { return /* reexport */ GLOBAL_EVENT_KEYS; },
|
|
1922
|
-
Gantt: function() { return /* reexport */ Gantt; },
|
|
1923
1922
|
Icon: function() { return /* reexport */ Icon; },
|
|
1924
1923
|
IconPicker: function() { return /* reexport */ IconPicker; },
|
|
1925
1924
|
Image: function() { return /* reexport */ image_Image; },
|
|
@@ -2003,7 +2002,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2003
2002
|
VxeFormGather: function() { return /* reexport */ VxeFormGather; },
|
|
2004
2003
|
VxeFormGroup: function() { return /* reexport */ VxeFormGroup; },
|
|
2005
2004
|
VxeFormItem: function() { return /* reexport */ VxeFormItem; },
|
|
2006
|
-
VxeGantt: function() { return /* reexport */ VxeGantt; },
|
|
2007
2005
|
VxeIcon: function() { return /* reexport */ VxeIcon; },
|
|
2008
2006
|
VxeIconPicker: function() { return /* reexport */ VxeIconPicker; },
|
|
2009
2007
|
VxeImage: function() { return /* reexport */ VxeImage; },
|
|
@@ -2144,7 +2142,6 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
2144
2142
|
FormGroup: function() { return FormGroup; },
|
|
2145
2143
|
FormItem: function() { return FormItem; },
|
|
2146
2144
|
GLOBAL_EVENT_KEYS: function() { return GLOBAL_EVENT_KEYS; },
|
|
2147
|
-
Gantt: function() { return Gantt; },
|
|
2148
2145
|
Icon: function() { return Icon; },
|
|
2149
2146
|
IconPicker: function() { return IconPicker; },
|
|
2150
2147
|
Image: function() { return image_Image; },
|
|
@@ -2228,7 +2225,6 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
2228
2225
|
VxeFormGather: function() { return VxeFormGather; },
|
|
2229
2226
|
VxeFormGroup: function() { return VxeFormGroup; },
|
|
2230
2227
|
VxeFormItem: function() { return VxeFormItem; },
|
|
2231
|
-
VxeGantt: function() { return VxeGantt; },
|
|
2232
2228
|
VxeIcon: function() { return VxeIcon; },
|
|
2233
2229
|
VxeIconPicker: function() { return VxeIconPicker; },
|
|
2234
2230
|
VxeImage: function() { return VxeImage; },
|
|
@@ -2352,12 +2348,13 @@ if (typeof window !== 'undefined') {
|
|
|
2352
2348
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2353
2349
|
var es_array_push = __webpack_require__(4114);
|
|
2354
2350
|
;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/core.js
|
|
2355
|
-
const coreVersion = "4.2.
|
|
2351
|
+
const coreVersion = "4.2.9";
|
|
2356
2352
|
const VxeCore = {
|
|
2357
2353
|
coreVersion,
|
|
2358
2354
|
uiVersion: '',
|
|
2359
2355
|
tableVersion: '',
|
|
2360
|
-
designVersion: ''
|
|
2356
|
+
designVersion: '',
|
|
2357
|
+
ganttVersion: ''
|
|
2361
2358
|
};
|
|
2362
2359
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
2363
2360
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
@@ -2951,7 +2948,7 @@ function createLog(type, name) {
|
|
|
2951
2948
|
return msg;
|
|
2952
2949
|
};
|
|
2953
2950
|
}
|
|
2954
|
-
const version = "4.2.
|
|
2951
|
+
const version = "4.2.9";
|
|
2955
2952
|
const log = {
|
|
2956
2953
|
create: createLog,
|
|
2957
2954
|
warn: createLog('warn', `v${version}`),
|
|
@@ -4324,14 +4321,14 @@ function checkDynamic() {
|
|
|
4324
4321
|
}
|
|
4325
4322
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4326
4323
|
|
|
4327
|
-
const log_version = `ui v${"4.8.
|
|
4324
|
+
const log_version = `ui v${"4.8.12"}`;
|
|
4328
4325
|
const warnLog = log.create('warn', log_version);
|
|
4329
4326
|
const errLog = log.create('error', log_version);
|
|
4330
4327
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4331
4328
|
|
|
4332
4329
|
|
|
4333
4330
|
|
|
4334
|
-
const ui_version = "4.8.
|
|
4331
|
+
const ui_version = "4.8.12";
|
|
4335
4332
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4336
4333
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4337
4334
|
function config(options) {
|
|
@@ -4478,7 +4475,6 @@ setConfig({
|
|
|
4478
4475
|
formGroup: {},
|
|
4479
4476
|
formItem: {},
|
|
4480
4477
|
formView: {},
|
|
4481
|
-
gantt: {},
|
|
4482
4478
|
icon: {},
|
|
4483
4479
|
iconPicker: {
|
|
4484
4480
|
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']
|
|
@@ -4733,7 +4729,8 @@ setConfig({
|
|
|
4733
4729
|
colgroup: {},
|
|
4734
4730
|
column: {},
|
|
4735
4731
|
toolbar: {},
|
|
4736
|
-
grid: {}
|
|
4732
|
+
grid: {},
|
|
4733
|
+
gantt: {}
|
|
4737
4734
|
});
|
|
4738
4735
|
const iconPrefix = 'vxe-icon-';
|
|
4739
4736
|
setIcon({
|
|
@@ -5198,6 +5195,15 @@ function getPaddingTopBottomSize(elem) {
|
|
|
5198
5195
|
}
|
|
5199
5196
|
return 0;
|
|
5200
5197
|
}
|
|
5198
|
+
function getPaddingLeftRightSize(elem) {
|
|
5199
|
+
if (elem) {
|
|
5200
|
+
const computedStyle = getComputedStyle(elem);
|
|
5201
|
+
const paddingLeft = XEUtils.toNumber(computedStyle.paddingLeft);
|
|
5202
|
+
const paddingRight = XEUtils.toNumber(computedStyle.paddingRight);
|
|
5203
|
+
return paddingLeft + paddingRight;
|
|
5204
|
+
}
|
|
5205
|
+
return 0;
|
|
5206
|
+
}
|
|
5201
5207
|
const scrollIntoViewIfNeeded = 'scrollIntoViewIfNeeded';
|
|
5202
5208
|
const scrollIntoView = 'scrollIntoView';
|
|
5203
5209
|
function scrollToView(elem) {
|
|
@@ -21486,11 +21492,14 @@ function renderTitle($xeForm, item, isGroup) {
|
|
|
21486
21492
|
},
|
|
21487
21493
|
onMouseleave: $xeForm.handleTitleTipLeaveEvent
|
|
21488
21494
|
} : {};
|
|
21495
|
+
const itStyle = Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(titleStyle) ? titleStyle(params) : titleStyle);
|
|
21496
|
+
if (titleWidth && titleWidth !== 'auto' && showContent !== false) {
|
|
21497
|
+
itStyle.width = toCssUnit(titleWidth);
|
|
21498
|
+
}
|
|
21489
21499
|
return isTitle ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21490
21500
|
class: [isGroup || hasGroup ? 'vxe-form--group-title' : '', 'vxe-form--item-title', titleAlign ? `align--${titleAlign}` : '', hasEllipsis ? 'is--ellipsis' : '', itemTitleClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemTitleClassName) ? itemTitleClassName(params) : itemTitleClassName : '', titleClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(titleClassName) ? titleClassName(params) : titleClassName : ''],
|
|
21491
|
-
style:
|
|
21492
|
-
|
|
21493
|
-
} : null),
|
|
21501
|
+
style: itStyle,
|
|
21502
|
+
itemid: item.id,
|
|
21494
21503
|
title: ovTitle ? getFuncText(title) : null,
|
|
21495
21504
|
...ons
|
|
21496
21505
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -21672,6 +21681,7 @@ const VxeFormConfigItem = defineVxeComponent({
|
|
|
21672
21681
|
}
|
|
21673
21682
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21674
21683
|
key: item.id,
|
|
21684
|
+
itemid: item.id,
|
|
21675
21685
|
class: getItemClass($xeForm, item),
|
|
21676
21686
|
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
21677
21687
|
}, [renderTitle($xeForm, item), showContent === false ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -21938,7 +21948,8 @@ function createInternalData() {
|
|
|
21938
21948
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
21939
21949
|
collapseAll: props.collapseStatus,
|
|
21940
21950
|
staticItems: [],
|
|
21941
|
-
formItems: []
|
|
21951
|
+
formItems: [],
|
|
21952
|
+
itemWidth: 0
|
|
21942
21953
|
});
|
|
21943
21954
|
const internalData = createInternalData();
|
|
21944
21955
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -21953,6 +21964,34 @@ function createInternalData() {
|
|
|
21953
21964
|
const computeCollapseOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21954
21965
|
return Object.assign({}, getConfig().form.collapseConfig, props.collapseConfig);
|
|
21955
21966
|
});
|
|
21967
|
+
const computeAutoItemWidthList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
21968
|
+
const {
|
|
21969
|
+
titleWidth: allTitleWidth,
|
|
21970
|
+
vertical: allVertical
|
|
21971
|
+
} = props;
|
|
21972
|
+
const {
|
|
21973
|
+
formItems
|
|
21974
|
+
} = reactData;
|
|
21975
|
+
const itemList = [];
|
|
21976
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(formItems, item => {
|
|
21977
|
+
const {
|
|
21978
|
+
titleWidth,
|
|
21979
|
+
vertical
|
|
21980
|
+
} = item;
|
|
21981
|
+
if (titleWidth === 'auto') {
|
|
21982
|
+
itemList.push(item);
|
|
21983
|
+
} else {
|
|
21984
|
+
const itemVertical = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(vertical) ? allVertical : vertical;
|
|
21985
|
+
const itemTitleWidth = itemVertical ? null : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(titleWidth) ? allTitleWidth : titleWidth;
|
|
21986
|
+
if (itemTitleWidth === 'auto' && (!item.children || !item.children.length)) {
|
|
21987
|
+
itemList.push(item);
|
|
21988
|
+
}
|
|
21989
|
+
}
|
|
21990
|
+
}, {
|
|
21991
|
+
children: 'children'
|
|
21992
|
+
});
|
|
21993
|
+
return itemList;
|
|
21994
|
+
});
|
|
21956
21995
|
const refMaps = {
|
|
21957
21996
|
refElem
|
|
21958
21997
|
};
|
|
@@ -21960,7 +21999,8 @@ function createInternalData() {
|
|
|
21960
21999
|
computeSize,
|
|
21961
22000
|
computeValidOpts,
|
|
21962
22001
|
computeTooltipOpts,
|
|
21963
|
-
computeCollapseOpts
|
|
22002
|
+
computeCollapseOpts,
|
|
22003
|
+
computeAutoItemWidthList
|
|
21964
22004
|
};
|
|
21965
22005
|
const $xeForm = {
|
|
21966
22006
|
xID,
|
|
@@ -22001,7 +22041,9 @@ function createInternalData() {
|
|
|
22001
22041
|
children: 'children'
|
|
22002
22042
|
});
|
|
22003
22043
|
internalData.itemFormatCache = {};
|
|
22004
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)()
|
|
22044
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
22045
|
+
return recalculate();
|
|
22046
|
+
});
|
|
22005
22047
|
};
|
|
22006
22048
|
const getItems = () => {
|
|
22007
22049
|
const itemList = [];
|
|
@@ -22041,6 +22083,7 @@ function createInternalData() {
|
|
|
22041
22083
|
data: props.data
|
|
22042
22084
|
}, evnt);
|
|
22043
22085
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
22086
|
+
recalculate();
|
|
22044
22087
|
if ($xeGrid) {
|
|
22045
22088
|
$xeGrid.recalculate();
|
|
22046
22089
|
}
|
|
@@ -22128,7 +22171,8 @@ function createInternalData() {
|
|
|
22128
22171
|
});
|
|
22129
22172
|
}
|
|
22130
22173
|
internalData.itemFormatCache = {};
|
|
22131
|
-
|
|
22174
|
+
clearValidate();
|
|
22175
|
+
return recalculate();
|
|
22132
22176
|
};
|
|
22133
22177
|
const resetEvent = evnt => {
|
|
22134
22178
|
evnt.preventDefault();
|
|
@@ -22359,7 +22403,10 @@ function createInternalData() {
|
|
|
22359
22403
|
if (readonly) {
|
|
22360
22404
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
22361
22405
|
}
|
|
22362
|
-
return beginValidate(getItems(), '', callback)
|
|
22406
|
+
return beginValidate(getItems(), '', callback).then(params => {
|
|
22407
|
+
recalculate();
|
|
22408
|
+
return params;
|
|
22409
|
+
});
|
|
22363
22410
|
};
|
|
22364
22411
|
const validateField = (fieldOrItem, callback) => {
|
|
22365
22412
|
const {
|
|
@@ -22376,7 +22423,10 @@ function createInternalData() {
|
|
|
22376
22423
|
fields = [fieldOrItem];
|
|
22377
22424
|
}
|
|
22378
22425
|
}
|
|
22379
|
-
return beginValidate(fields.map(field => handleFieldOrItem($xeForm, field)), '', callback)
|
|
22426
|
+
return beginValidate(fields.map(field => handleFieldOrItem($xeForm, field)), '', callback).then(params => {
|
|
22427
|
+
recalculate();
|
|
22428
|
+
return params;
|
|
22429
|
+
});
|
|
22380
22430
|
};
|
|
22381
22431
|
const submitEvent = evnt => {
|
|
22382
22432
|
const {
|
|
@@ -22389,6 +22439,7 @@ function createInternalData() {
|
|
|
22389
22439
|
formMethods.dispatchEvent('submit', {
|
|
22390
22440
|
data: props.data
|
|
22391
22441
|
}, evnt);
|
|
22442
|
+
recalculate();
|
|
22392
22443
|
return;
|
|
22393
22444
|
}
|
|
22394
22445
|
beginValidate(getItems()).then(errMap => {
|
|
@@ -22402,6 +22453,7 @@ function createInternalData() {
|
|
|
22402
22453
|
data: props.data
|
|
22403
22454
|
}, evnt);
|
|
22404
22455
|
}
|
|
22456
|
+
recalculate();
|
|
22405
22457
|
});
|
|
22406
22458
|
}
|
|
22407
22459
|
};
|
|
@@ -22489,6 +22541,25 @@ function createInternalData() {
|
|
|
22489
22541
|
} = scope;
|
|
22490
22542
|
return triggerItemEvent(new Event('change'), field, itemValue);
|
|
22491
22543
|
};
|
|
22544
|
+
const recalculate = () => {
|
|
22545
|
+
const autoItemWidthList = computeAutoItemWidthList.value;
|
|
22546
|
+
const el = refElem.value;
|
|
22547
|
+
if (el && autoItemWidthList.length) {
|
|
22548
|
+
const itemElList = el.querySelectorAll(autoItemWidthList.map(item => `.vxe-form--item-title[itemid="${item.id}"]`).join(','));
|
|
22549
|
+
let maxItemWidth = 0;
|
|
22550
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(itemElList, itemEl => {
|
|
22551
|
+
itemEl.style.width = '';
|
|
22552
|
+
maxItemWidth = Math.max(maxItemWidth, Math.ceil(itemEl.clientWidth + 2));
|
|
22553
|
+
});
|
|
22554
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(itemElList, itemEl => {
|
|
22555
|
+
itemEl.style.width = `${maxItemWidth}px`;
|
|
22556
|
+
});
|
|
22557
|
+
}
|
|
22558
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
22559
|
+
};
|
|
22560
|
+
const handleGlobalResizeEvent = () => {
|
|
22561
|
+
recalculate();
|
|
22562
|
+
};
|
|
22492
22563
|
formMethods = {
|
|
22493
22564
|
dispatchEvent(type, params, evnt) {
|
|
22494
22565
|
emit(type, createEvent(evnt, {
|
|
@@ -22504,7 +22575,8 @@ function createInternalData() {
|
|
|
22504
22575
|
toggleCollapse,
|
|
22505
22576
|
getItems,
|
|
22506
22577
|
getItemByField,
|
|
22507
|
-
closeTooltip
|
|
22578
|
+
closeTooltip,
|
|
22579
|
+
recalculate
|
|
22508
22580
|
};
|
|
22509
22581
|
const formPrivateMethods = {
|
|
22510
22582
|
callSlot,
|
|
@@ -22525,7 +22597,6 @@ function createInternalData() {
|
|
|
22525
22597
|
const {
|
|
22526
22598
|
formItems
|
|
22527
22599
|
} = reactData;
|
|
22528
|
-
// const formItems: any[] = []
|
|
22529
22600
|
const vSize = computeSize.value;
|
|
22530
22601
|
const tooltipOpts = computeTooltipOpts.value;
|
|
22531
22602
|
const defaultSlot = slots.default;
|
|
@@ -22578,6 +22649,9 @@ function createInternalData() {
|
|
|
22578
22649
|
});
|
|
22579
22650
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(staticItemFlag, () => {
|
|
22580
22651
|
reactData.formItems = reactData.staticItems;
|
|
22652
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
22653
|
+
recalculate();
|
|
22654
|
+
});
|
|
22581
22655
|
});
|
|
22582
22656
|
const itemFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
22583
22657
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.items ? props.items.length : -1, () => {
|
|
@@ -22604,8 +22678,10 @@ function createInternalData() {
|
|
|
22604
22678
|
errLog('vxe.error.errConflicts', ['custom-layout', 'items']);
|
|
22605
22679
|
}
|
|
22606
22680
|
});
|
|
22681
|
+
globalEvents.on($xeForm, 'resize', handleGlobalResizeEvent);
|
|
22607
22682
|
});
|
|
22608
22683
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
22684
|
+
globalEvents.off($xeForm, 'resize');
|
|
22609
22685
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, createInternalData());
|
|
22610
22686
|
});
|
|
22611
22687
|
if (props.items) {
|
|
@@ -23441,6 +23517,7 @@ const formItemProps = {
|
|
|
23441
23517
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
23442
23518
|
ref: refElem,
|
|
23443
23519
|
key: item.id,
|
|
23520
|
+
itemid: item.id,
|
|
23444
23521
|
class: getItemClass($xeForm, item),
|
|
23445
23522
|
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
23446
23523
|
}, [renderTitle($xeForm, item), showContent === false ? renderEmptyElement($xeFormitem) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -23538,6 +23615,7 @@ const formItemProps = {
|
|
|
23538
23615
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
23539
23616
|
ref: refElem,
|
|
23540
23617
|
key: item.id,
|
|
23618
|
+
itemid: item.id,
|
|
23541
23619
|
class: getItemClass($xeForm, item, true),
|
|
23542
23620
|
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
23543
23621
|
}, [renderTitle($xeForm, item, true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -23616,85 +23694,6 @@ dynamicApp.use(VxeFormItem);
|
|
|
23616
23694
|
index_esm_VxeUI.component(form_item);
|
|
23617
23695
|
const FormItem = VxeFormItem;
|
|
23618
23696
|
/* harmony default export */ var packages_form_item = (VxeFormItem);
|
|
23619
|
-
;// CONCATENATED MODULE: ./packages/gantt/src/gantt.ts
|
|
23620
|
-
|
|
23621
|
-
|
|
23622
|
-
|
|
23623
|
-
|
|
23624
|
-
function gantt_createInternalData() {
|
|
23625
|
-
return {};
|
|
23626
|
-
}
|
|
23627
|
-
/* harmony default export */ var gantt = (defineVxeComponent({
|
|
23628
|
-
name: 'VxeGantt',
|
|
23629
|
-
props: {
|
|
23630
|
-
size: {
|
|
23631
|
-
type: String,
|
|
23632
|
-
default: () => getConfig().gantt.size || getConfig().size
|
|
23633
|
-
}
|
|
23634
|
-
},
|
|
23635
|
-
emits: [],
|
|
23636
|
-
setup(props, context) {
|
|
23637
|
-
const {
|
|
23638
|
-
emit
|
|
23639
|
-
} = context;
|
|
23640
|
-
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
23641
|
-
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
23642
|
-
const refTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
23643
|
-
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
23644
|
-
const internalData = gantt_createInternalData();
|
|
23645
|
-
const refMaps = {
|
|
23646
|
-
refElem,
|
|
23647
|
-
refTable
|
|
23648
|
-
};
|
|
23649
|
-
const computeMaps = {};
|
|
23650
|
-
const $xeGantt = {
|
|
23651
|
-
xID,
|
|
23652
|
-
props,
|
|
23653
|
-
context,
|
|
23654
|
-
reactData,
|
|
23655
|
-
internalData,
|
|
23656
|
-
getRefMaps: () => refMaps,
|
|
23657
|
-
getComputeMaps: () => computeMaps
|
|
23658
|
-
};
|
|
23659
|
-
const dispatchEvent = (type, params, evnt) => {
|
|
23660
|
-
emit(type, createEvent(evnt, {
|
|
23661
|
-
$gantt: $xeGantt
|
|
23662
|
-
}, params));
|
|
23663
|
-
};
|
|
23664
|
-
const ganttMethods = {
|
|
23665
|
-
dispatchEvent
|
|
23666
|
-
};
|
|
23667
|
-
const ganttPrivateMethods = {};
|
|
23668
|
-
Object.assign($xeGantt, ganttMethods, ganttPrivateMethods);
|
|
23669
|
-
const renderVN = () => {
|
|
23670
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
23671
|
-
ref: refElem,
|
|
23672
|
-
class: 'vxe-gantt'
|
|
23673
|
-
});
|
|
23674
|
-
};
|
|
23675
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
23676
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, gantt_createInternalData());
|
|
23677
|
-
});
|
|
23678
|
-
$xeGantt.renderVN = renderVN;
|
|
23679
|
-
return $xeGantt;
|
|
23680
|
-
},
|
|
23681
|
-
render() {
|
|
23682
|
-
return this.renderVN();
|
|
23683
|
-
}
|
|
23684
|
-
}));
|
|
23685
|
-
;// CONCATENATED MODULE: ./packages/gantt/index.ts
|
|
23686
|
-
|
|
23687
|
-
|
|
23688
|
-
|
|
23689
|
-
const VxeGantt = Object.assign({}, gantt, {
|
|
23690
|
-
install(app) {
|
|
23691
|
-
app.component(gantt.name, gantt);
|
|
23692
|
-
}
|
|
23693
|
-
});
|
|
23694
|
-
dynamicApp.use(VxeGantt);
|
|
23695
|
-
index_esm_VxeUI.component(gantt);
|
|
23696
|
-
const Gantt = VxeGantt;
|
|
23697
|
-
/* harmony default export */ var packages_gantt = (VxeGantt);
|
|
23698
23697
|
;// CONCATENATED MODULE: ./packages/icon/index.ts
|
|
23699
23698
|
|
|
23700
23699
|
|
|
@@ -43215,8 +43214,7 @@ const Watermark = VxeWatermark;
|
|
|
43215
43214
|
|
|
43216
43215
|
|
|
43217
43216
|
|
|
43218
|
-
|
|
43219
|
-
const components_components = [packages_alert, packages_anchor, packages_anchor_link, packages_avatar, packages_badge, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_calendar, packages_card, packages_carousel, packages_carousel_item, packages_checkbox, checkbox_button, checkbox_group, packages_col, packages_collapse, packages_collapse_pane, packages_color_picker, packages_countdown, packages_date_panel, packages_date_picker, packages_date_range_picker, packages_drawer, packages_empty, packages_form, form_gather, packages_form_group, packages_form_item, packages_gantt, packages_icon, packages_icon_picker, packages_image, image_group, image_preview, packages_input, packages_layout_aside, packages_layout_body, packages_layout_container, packages_layout_footer, packages_layout_header, packages_link, packages_list, loading, packages_menu, packages_modal, packages_notice_bar, packages_number_input, packages_optgroup, packages_option, packages_pager, packages_password_input, print_page_break, packages_print, packages_pulldown, packages_radio, radio_button, radio_group, packages_rate, packages_result, packages_row, packages_select, packages_split, packages_split_pane, packages_slider, packages_steps, packages_switch, packages_tab_pane, packages_table_select, packages_tabs, packages_tag, packages_text_ellipsis, packages_text, packages_textarea, packages_tip, packages_tooltip, packages_tree, packages_tree_select, packages_upload, packages_watermark];
|
|
43217
|
+
const components_components = [packages_alert, packages_anchor, packages_anchor_link, packages_avatar, packages_badge, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_calendar, packages_card, packages_carousel, packages_carousel_item, packages_checkbox, checkbox_button, checkbox_group, packages_col, packages_collapse, packages_collapse_pane, packages_color_picker, packages_countdown, packages_date_panel, packages_date_picker, packages_date_range_picker, packages_drawer, packages_empty, packages_form, form_gather, packages_form_group, packages_form_item, packages_icon, packages_icon_picker, packages_image, image_group, image_preview, packages_input, packages_layout_aside, packages_layout_body, packages_layout_container, packages_layout_footer, packages_layout_header, packages_link, packages_list, loading, packages_menu, packages_modal, packages_notice_bar, packages_number_input, packages_optgroup, packages_option, packages_pager, packages_password_input, print_page_break, packages_print, packages_pulldown, packages_radio, radio_button, radio_group, packages_rate, packages_result, packages_row, packages_select, packages_split, packages_split_pane, packages_slider, packages_steps, packages_switch, packages_tab_pane, packages_table_select, packages_tabs, packages_tag, packages_text_ellipsis, packages_text, packages_textarea, packages_tip, packages_tooltip, packages_tree, packages_tree_select, packages_upload, packages_watermark];
|
|
43220
43218
|
function install(app, options) {
|
|
43221
43219
|
setConfig(options);
|
|
43222
43220
|
components_components.forEach(component => app.use(component));
|
|
@@ -43314,7 +43312,6 @@ const readFile = readLocalFile;
|
|
|
43314
43312
|
|
|
43315
43313
|
|
|
43316
43314
|
|
|
43317
|
-
|
|
43318
43315
|
|
|
43319
43316
|
|
|
43320
43317
|
;// CONCATENATED MODULE: ./index.ts
|