vxe-pc-ui 0.1.0 → 0.2.0
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 +7 -0
- package/es/anchor/src/anchor-link.js +2 -2
- package/es/anchor/src/util.js +1 -1
- package/es/checkbox/src/checkbox.js +3 -3
- package/es/checkbox/src/group.js +3 -3
- package/es/components.js +6 -0
- package/es/form/src/form-config-item.js +1 -1
- package/es/form/src/form-gather.js +1 -1
- package/es/form/src/form-item.js +4 -4
- package/es/form/src/form.js +3 -3
- package/es/input/src/input.js +3 -3
- package/es/layout-aside/src/layout-aside.js +4 -2
- package/es/layout-aside/style.css +3 -1
- package/es/layout-aside/style.min.css +1 -1
- package/es/layout-body/src/layout-body.js +7 -2
- package/es/layout-body/style.css +2 -0
- package/es/layout-body/style.min.css +1 -1
- package/es/layout-container/src/layout-container.js +2 -1
- package/es/layout-footer/src/layout-footer.js +5 -3
- package/es/layout-footer/style.css +3 -1
- package/es/layout-footer/style.min.css +1 -1
- package/es/layout-header/style.css +0 -1
- package/es/layout-header/style.min.css +1 -1
- package/es/radio/src/button.js +4 -4
- package/es/radio/src/group.js +4 -4
- package/es/radio/src/radio.js +4 -4
- package/es/select/src/optgroup.js +1 -1
- package/es/select/src/option.js +1 -1
- package/es/select/src/select.js +4 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/src/switch.js +3 -3
- package/es/tab-pane/index.js +8 -0
- package/es/tab-pane/style.css +0 -0
- package/es/tab-pane/style.min.css +0 -0
- package/es/tabs/index.js +8 -0
- package/es/tabs/src/tab-pane.js +64 -0
- package/es/tabs/src/tabs.js +195 -0
- package/es/tabs/src/util.js +17 -0
- package/es/tabs/style.css +113 -0
- package/es/tabs/style.min.css +1 -0
- package/es/textarea/src/textarea.js +3 -3
- package/es/ui/src/core.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-layout-aside/style.css +3 -1
- package/es/vxe-layout-aside/style.min.css +1 -1
- package/es/vxe-layout-body/style.css +2 -0
- package/es/vxe-layout-body/style.min.css +1 -1
- package/es/vxe-layout-footer/style.css +3 -1
- package/es/vxe-layout-footer/style.min.css +1 -1
- package/es/vxe-layout-header/style.css +0 -1
- package/es/vxe-layout-header/style.min.css +1 -1
- package/es/vxe-tab-pane/index.js +3 -0
- package/es/vxe-tab-pane/style.css +0 -0
- package/es/vxe-tab-pane/style.min.css +0 -0
- package/es/vxe-tabs/index.js +3 -0
- package/es/vxe-tabs/style.css +113 -0
- package/es/vxe-tabs/style.min.css +1 -0
- package/lib/anchor/src/anchor-link.js +1 -1
- package/lib/anchor/src/anchor-link.min.js +1 -1
- package/lib/anchor/src/util.js +2 -2
- package/lib/anchor/src/util.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +3 -3
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +3 -3
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/components.js +25 -1
- package/lib/components.min.js +1 -1
- package/lib/form/src/form-config-item.js +1 -1
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +1 -1
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +4 -4
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +3 -3
- package/lib/form/src/form.min.js +1 -1
- package/lib/index.umd.js +421 -55
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +3 -3
- package/lib/input/src/input.min.js +1 -1
- package/lib/layout-aside/src/layout-aside.js +5 -2
- package/lib/layout-aside/src/layout-aside.min.js +1 -1
- package/lib/layout-aside/style/style.css +3 -1
- package/lib/layout-aside/style/style.min.css +1 -1
- package/lib/layout-body/src/layout-body.js +9 -2
- package/lib/layout-body/src/layout-body.min.js +1 -1
- package/lib/layout-body/style/style.css +2 -0
- package/lib/layout-body/style/style.min.css +1 -1
- package/lib/layout-container/src/layout-container.js +4 -1
- package/lib/layout-container/src/layout-container.min.js +1 -1
- package/lib/layout-footer/src/layout-footer.js +8 -3
- package/lib/layout-footer/src/layout-footer.min.js +1 -1
- package/lib/layout-footer/style/style.css +3 -1
- package/lib/layout-footer/style/style.min.css +1 -1
- package/lib/layout-header/style/style.css +0 -1
- package/lib/layout-header/style/style.min.css +1 -1
- package/lib/radio/src/button.js +4 -4
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/group.js +4 -4
- package/lib/radio/src/group.min.js +1 -1
- package/lib/radio/src/radio.js +4 -4
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/select/src/optgroup.js +1 -1
- package/lib/select/src/optgroup.min.js +1 -1
- package/lib/select/src/option.js +1 -1
- package/lib/select/src/option.min.js +1 -1
- package/lib/select/src/select.js +4 -4
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +3 -3
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/tab-pane/index.js +15 -0
- package/lib/tab-pane/index.min.js +1 -0
- package/lib/tab-pane/style/index.js +1 -0
- package/lib/tab-pane/style/style.css +0 -0
- package/lib/tab-pane/style/style.min.css +0 -0
- package/lib/tabs/index.js +15 -0
- package/lib/tabs/index.min.js +1 -0
- package/lib/tabs/src/tab-pane.js +73 -0
- package/lib/tabs/src/tab-pane.min.js +1 -0
- package/lib/tabs/src/tabs.js +240 -0
- package/lib/tabs/src/tabs.min.js +1 -0
- package/lib/tabs/src/util.js +27 -0
- package/lib/tabs/src/util.min.js +1 -0
- package/lib/tabs/style/index.js +1 -0
- package/lib/tabs/style/style.css +113 -0
- package/lib/tabs/style/style.min.css +1 -0
- package/lib/textarea/src/textarea.js +3 -3
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/ui/src/core.js +1 -1
- package/lib/ui/src/core.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-layout-aside/style/style.css +3 -1
- package/lib/vxe-layout-aside/style/style.min.css +1 -1
- package/lib/vxe-layout-body/style/style.css +2 -0
- package/lib/vxe-layout-body/style/style.min.css +1 -1
- package/lib/vxe-layout-footer/style/style.css +3 -1
- package/lib/vxe-layout-footer/style/style.min.css +1 -1
- package/lib/vxe-layout-header/style/style.css +0 -1
- package/lib/vxe-layout-header/style/style.min.css +1 -1
- package/lib/vxe-tab-pane/index.js +22 -0
- package/lib/vxe-tab-pane/index.min.js +1 -0
- package/lib/vxe-tab-pane/style/index.js +1 -0
- package/lib/vxe-tab-pane/style/style.css +0 -0
- package/lib/vxe-tab-pane/style/style.min.css +0 -0
- package/lib/vxe-tabs/index.js +22 -0
- package/lib/vxe-tabs/index.min.js +1 -0
- package/lib/vxe-tabs/style/index.js +1 -0
- package/lib/vxe-tabs/style/style.css +113 -0
- package/lib/vxe-tabs/style/style.min.css +1 -0
- package/package.json +1 -1
- package/packages/anchor/src/anchor-link.ts +2 -2
- package/packages/anchor/src/util.ts +1 -1
- package/packages/checkbox/src/checkbox.ts +3 -3
- package/packages/checkbox/src/group.ts +3 -3
- package/packages/components.ts +6 -0
- package/packages/form/src/form-config-item.ts +1 -1
- package/packages/form/src/form-gather.ts +1 -1
- package/packages/form/src/form-item.ts +4 -4
- package/packages/form/src/form.ts +4 -3
- package/packages/input/src/input.ts +3 -3
- package/packages/layout-aside/src/layout-aside.ts +8 -6
- package/packages/layout-body/src/layout-body.ts +9 -4
- package/packages/layout-container/src/layout-container.ts +5 -4
- package/packages/layout-footer/src/layout-footer.ts +7 -5
- package/packages/layout-header/src/layout-header.ts +3 -3
- package/packages/radio/src/button.ts +4 -4
- package/packages/radio/src/group.ts +4 -4
- package/packages/radio/src/radio.ts +4 -4
- package/packages/select/src/optgroup.ts +1 -1
- package/packages/select/src/option.ts +1 -1
- package/packages/select/src/select.ts +4 -4
- package/packages/switch/src/switch.ts +3 -3
- package/packages/tab-pane/index.ts +11 -0
- package/packages/tabs/index.ts +11 -0
- package/packages/tabs/src/tab-pane.ts +85 -0
- package/packages/tabs/src/tabs.ts +223 -0
- package/packages/tabs/src/util.ts +21 -0
- package/packages/textarea/src/textarea.ts +3 -3
- package/styles/all.scss +2 -0
- package/styles/components/layout-aside.scss +3 -1
- package/styles/components/layout-body.scss +3 -1
- package/styles/components/layout-footer.scss +3 -1
- package/styles/components/layout-header.scss +0 -1
- package/styles/components/tab-pane.scss +0 -0
- package/styles/components/tabs.scss +116 -0
- package/types/all.d.ts +2 -0
- package/types/components/layout-aside.d.ts +10 -1
- package/types/components/layout-body.d.ts +4 -1
- package/types/components/layout-container.d.ts +4 -1
- package/types/components/layout-footer.d.ts +7 -2
- package/types/components/layout-header.d.ts +4 -1
- package/types/components/tab-pane.d.ts +84 -0
- package/types/components/tabs.d.ts +80 -0
- package/types/tool/common.d.ts +5 -0
package/lib/index.umd.js
CHANGED
|
@@ -1702,6 +1702,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1702
1702
|
Row: function() { return /* reexport */ Row; },
|
|
1703
1703
|
Select: function() { return /* reexport */ Select; },
|
|
1704
1704
|
Switch: function() { return /* reexport */ Switch; },
|
|
1705
|
+
TabPane: function() { return /* reexport */ TabPane; },
|
|
1706
|
+
Tabs: function() { return /* reexport */ Tabs; },
|
|
1705
1707
|
Textarea: function() { return /* reexport */ Textarea; },
|
|
1706
1708
|
Tooltip: function() { return /* reexport */ Tooltip; },
|
|
1707
1709
|
VxeCheckbox: function() { return /* reexport */ VxeCheckbox; },
|
|
@@ -1772,6 +1774,8 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1772
1774
|
Row: function() { return Row; },
|
|
1773
1775
|
Select: function() { return Select; },
|
|
1774
1776
|
Switch: function() { return Switch; },
|
|
1777
|
+
TabPane: function() { return TabPane; },
|
|
1778
|
+
Tabs: function() { return Tabs; },
|
|
1775
1779
|
Textarea: function() { return Textarea; },
|
|
1776
1780
|
Tooltip: function() { return Tooltip; },
|
|
1777
1781
|
VxeCheckbox: function() { return VxeCheckbox; },
|
|
@@ -2159,7 +2163,7 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
|
2159
2163
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
2160
2164
|
|
|
2161
2165
|
function getLog(message, params) {
|
|
2162
|
-
return `[vxe-table v${"0.
|
|
2166
|
+
return `[vxe-table v${"0.2.0"}] ${getI18n(message, params)}`;
|
|
2163
2167
|
}
|
|
2164
2168
|
function outLog(type) {
|
|
2165
2169
|
return function (message, params) {
|
|
@@ -2374,7 +2378,7 @@ function setIcon(options) {
|
|
|
2374
2378
|
function getIcon(key) {
|
|
2375
2379
|
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconStore, key) : iconStore;
|
|
2376
2380
|
}
|
|
2377
|
-
const version = "0.
|
|
2381
|
+
const version = "0.2.0";
|
|
2378
2382
|
const VxeCore = {
|
|
2379
2383
|
version,
|
|
2380
2384
|
setConfig,
|
|
@@ -2530,7 +2534,7 @@ function isNodeElement(elem) {
|
|
|
2530
2534
|
}
|
|
2531
2535
|
;// CONCATENATED MODULE: ./packages/anchor/src/util.ts
|
|
2532
2536
|
|
|
2533
|
-
function
|
|
2537
|
+
function assembleAnchorLink($xeAnchor, elem, linkConfig, $xeParentAnchorLink) {
|
|
2534
2538
|
const staticLinks = $xeAnchor.reactData.staticLinks;
|
|
2535
2539
|
const parentElem = elem.parentNode;
|
|
2536
2540
|
const parentLinkConfig = $xeParentAnchorLink ? $xeParentAnchorLink.linkConfig : null;
|
|
@@ -2611,7 +2615,7 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
|
|
|
2611
2615
|
});
|
|
2612
2616
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
2613
2617
|
if ($xeAnchor && refElem.value) {
|
|
2614
|
-
|
|
2618
|
+
assembleAnchorLink($xeAnchor, refElem.value, linkConfig, $xeParentAnchorLink);
|
|
2615
2619
|
}
|
|
2616
2620
|
});
|
|
2617
2621
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
@@ -3806,7 +3810,7 @@ const ButtonGroup = VxeButtonGroup;
|
|
|
3806
3810
|
emit
|
|
3807
3811
|
} = context;
|
|
3808
3812
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
3809
|
-
const
|
|
3813
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
3810
3814
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
3811
3815
|
const $xecheckbox = {
|
|
3812
3816
|
xID,
|
|
@@ -3859,8 +3863,8 @@ const ButtonGroup = VxeButtonGroup;
|
|
|
3859
3863
|
emit('update:modelValue', value);
|
|
3860
3864
|
checkboxMethods.dispatchEvent('change', params, evnt);
|
|
3861
3865
|
// 自动更新校验状态
|
|
3862
|
-
if ($xeform &&
|
|
3863
|
-
$xeform.triggerItemEvent(evnt,
|
|
3866
|
+
if ($xeform && formItemInfo) {
|
|
3867
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
3864
3868
|
}
|
|
3865
3869
|
}
|
|
3866
3870
|
}
|
|
@@ -3977,7 +3981,7 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
3977
3981
|
emit
|
|
3978
3982
|
} = context;
|
|
3979
3983
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
3980
|
-
const
|
|
3984
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
3981
3985
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
3982
3986
|
const computeIsMaximize = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
3983
3987
|
const {
|
|
@@ -4042,8 +4046,8 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
4042
4046
|
checklist
|
|
4043
4047
|
}, params), evnt);
|
|
4044
4048
|
// 自动更新校验状态
|
|
4045
|
-
if ($xeform &&
|
|
4046
|
-
$xeform.triggerItemEvent(evnt,
|
|
4049
|
+
if ($xeform && formItemInfo) {
|
|
4050
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checklist);
|
|
4047
4051
|
}
|
|
4048
4052
|
}
|
|
4049
4053
|
};
|
|
@@ -4848,7 +4852,7 @@ const VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
4848
4852
|
const xeformiteminfo = {
|
|
4849
4853
|
itemConfig: props.itemConfig
|
|
4850
4854
|
};
|
|
4851
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('
|
|
4855
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', xeformiteminfo);
|
|
4852
4856
|
const renderVN = () => {
|
|
4853
4857
|
const {
|
|
4854
4858
|
reactData
|
|
@@ -5216,6 +5220,7 @@ function getResetValue(value, resetValue) {
|
|
|
5216
5220
|
visible: false
|
|
5217
5221
|
}
|
|
5218
5222
|
});
|
|
5223
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', null);
|
|
5219
5224
|
const $xegrid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xegrid', null);
|
|
5220
5225
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
5221
5226
|
const refTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -5820,9 +5825,8 @@ function getResetValue(value, resetValue) {
|
|
|
5820
5825
|
};
|
|
5821
5826
|
$xeform.renderVN = renderVN;
|
|
5822
5827
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeForm', $xeform);
|
|
5823
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$
|
|
5824
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$
|
|
5825
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeFormItemInfo', null);
|
|
5828
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeFormGather', null);
|
|
5829
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeFormItem', null);
|
|
5826
5830
|
return $xeform;
|
|
5827
5831
|
},
|
|
5828
5832
|
render() {
|
|
@@ -6274,13 +6278,13 @@ const formItemProps = {
|
|
|
6274
6278
|
}) {
|
|
6275
6279
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
6276
6280
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', {});
|
|
6277
|
-
const formGather = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$
|
|
6281
|
+
const formGather = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeFormGather', null);
|
|
6278
6282
|
const formItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(createItem($xeform, props));
|
|
6279
6283
|
formItem.slots = slots;
|
|
6280
6284
|
const formItemInfo = {
|
|
6281
6285
|
itemConfig: formItem
|
|
6282
6286
|
};
|
|
6283
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('
|
|
6287
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', formItemInfo);
|
|
6284
6288
|
watchItem(props, formItem);
|
|
6285
6289
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
6286
6290
|
assemItem($xeform, refElem.value, formItem, formGather);
|
|
@@ -6437,8 +6441,8 @@ const formItemProps = {
|
|
|
6437
6441
|
formItem,
|
|
6438
6442
|
renderVN
|
|
6439
6443
|
};
|
|
6440
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$
|
|
6441
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$
|
|
6444
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeFormItem', $xeformitem);
|
|
6445
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeFormGather', null);
|
|
6442
6446
|
return $xeformitem;
|
|
6443
6447
|
},
|
|
6444
6448
|
render() {
|
|
@@ -6465,7 +6469,7 @@ const formItemProps = {
|
|
|
6465
6469
|
const formItemInfo = {
|
|
6466
6470
|
itemConfig: formItem
|
|
6467
6471
|
};
|
|
6468
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('
|
|
6472
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', formItemInfo);
|
|
6469
6473
|
watchItem(props, formItem);
|
|
6470
6474
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
6471
6475
|
assemItem($xeForm, refElem.value, formItem, parentFormGather);
|
|
@@ -6741,7 +6745,7 @@ const quarterSize = 8;
|
|
|
6741
6745
|
emit
|
|
6742
6746
|
} = context;
|
|
6743
6747
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
6744
|
-
const
|
|
6748
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
6745
6749
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
6746
6750
|
const computeSize = useSize(props);
|
|
6747
6751
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
@@ -7309,8 +7313,8 @@ const quarterSize = 8;
|
|
|
7309
7313
|
value
|
|
7310
7314
|
}, evnt);
|
|
7311
7315
|
// 自动更新校验状态
|
|
7312
|
-
if ($xeform &&
|
|
7313
|
-
$xeform.triggerItemEvent(evnt,
|
|
7316
|
+
if ($xeform && formItemInfo) {
|
|
7317
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
7314
7318
|
}
|
|
7315
7319
|
}
|
|
7316
7320
|
};
|
|
@@ -9166,7 +9170,8 @@ dynamicApp.component(input.name, input);
|
|
|
9166
9170
|
props: {
|
|
9167
9171
|
width: [String, Number],
|
|
9168
9172
|
collapsed: Boolean,
|
|
9169
|
-
collapseWidth: [String, Number]
|
|
9173
|
+
collapseWidth: [String, Number],
|
|
9174
|
+
padding: Boolean
|
|
9170
9175
|
},
|
|
9171
9176
|
emits: [],
|
|
9172
9177
|
setup(props, context) {
|
|
@@ -9208,13 +9213,15 @@ dynamicApp.component(input.name, input);
|
|
|
9208
9213
|
const renderVN = () => {
|
|
9209
9214
|
const {
|
|
9210
9215
|
width,
|
|
9211
|
-
collapsed
|
|
9216
|
+
collapsed,
|
|
9217
|
+
padding
|
|
9212
9218
|
} = props;
|
|
9213
9219
|
const wrapperWidth = computeWrapperWidth.value;
|
|
9214
9220
|
const defaultSlot = slots.default;
|
|
9215
9221
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9216
9222
|
ref: refElem,
|
|
9217
9223
|
class: ['vxe-layout-aside', {
|
|
9224
|
+
'is--padding': padding,
|
|
9218
9225
|
'is--default-width': !width,
|
|
9219
9226
|
'is--collapse': collapsed
|
|
9220
9227
|
}],
|
|
@@ -9245,7 +9252,9 @@ const LayoutAside = VxeLayoutAside;
|
|
|
9245
9252
|
|
|
9246
9253
|
/* harmony default export */ var layout_body = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
9247
9254
|
name: 'VxeLayoutBody',
|
|
9248
|
-
props: {
|
|
9255
|
+
props: {
|
|
9256
|
+
padding: Boolean
|
|
9257
|
+
},
|
|
9249
9258
|
emits: [],
|
|
9250
9259
|
setup(props, context) {
|
|
9251
9260
|
const {
|
|
@@ -9267,10 +9276,15 @@ const LayoutAside = VxeLayoutAside;
|
|
|
9267
9276
|
getComputeMaps: () => computeMaps
|
|
9268
9277
|
};
|
|
9269
9278
|
const renderVN = () => {
|
|
9279
|
+
const {
|
|
9280
|
+
padding
|
|
9281
|
+
} = props;
|
|
9270
9282
|
const defaultSlot = slots.default;
|
|
9271
9283
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9272
9284
|
ref: refElem,
|
|
9273
|
-
class: 'vxe-layout-body'
|
|
9285
|
+
class: ['vxe-layout-body', {
|
|
9286
|
+
'is--padding': padding
|
|
9287
|
+
}]
|
|
9274
9288
|
}, defaultSlot ? defaultSlot({}) : []);
|
|
9275
9289
|
};
|
|
9276
9290
|
$xeLayoutBody.renderVN = renderVN;
|
|
@@ -9318,11 +9332,14 @@ const LayoutBody = VxeLayoutBody;
|
|
|
9318
9332
|
getComputeMaps: () => computeMaps
|
|
9319
9333
|
};
|
|
9320
9334
|
const renderVN = () => {
|
|
9335
|
+
const {
|
|
9336
|
+
vertical
|
|
9337
|
+
} = props;
|
|
9321
9338
|
const defaultSlot = slots.default;
|
|
9322
9339
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9323
9340
|
ref: refElem,
|
|
9324
9341
|
class: ['vxe-layout-container', {
|
|
9325
|
-
'is--vertical':
|
|
9342
|
+
'is--vertical': vertical
|
|
9326
9343
|
}]
|
|
9327
9344
|
}, defaultSlot ? defaultSlot({}) : []);
|
|
9328
9345
|
};
|
|
@@ -9348,7 +9365,8 @@ const LayoutContainer = VxeLayoutContainer;
|
|
|
9348
9365
|
/* harmony default export */ var layout_footer = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
9349
9366
|
name: 'VxeLayoutFooter',
|
|
9350
9367
|
props: {
|
|
9351
|
-
fixed: Boolean
|
|
9368
|
+
fixed: Boolean,
|
|
9369
|
+
align: String
|
|
9352
9370
|
},
|
|
9353
9371
|
emits: [],
|
|
9354
9372
|
setup(props, context) {
|
|
@@ -9371,11 +9389,15 @@ const LayoutContainer = VxeLayoutContainer;
|
|
|
9371
9389
|
getComputeMaps: () => computeMaps
|
|
9372
9390
|
};
|
|
9373
9391
|
const renderVN = () => {
|
|
9392
|
+
const {
|
|
9393
|
+
fixed,
|
|
9394
|
+
align
|
|
9395
|
+
} = props;
|
|
9374
9396
|
const defaultSlot = slots.default;
|
|
9375
9397
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9376
9398
|
ref: refElem,
|
|
9377
|
-
class: ['vxe-layout-footer', {
|
|
9378
|
-
'is--fixed':
|
|
9399
|
+
class: ['vxe-layout-footer', align ? `align--${align}` : '', {
|
|
9400
|
+
'is--fixed': fixed
|
|
9379
9401
|
}]
|
|
9380
9402
|
}, defaultSlot ? defaultSlot({}) : []);
|
|
9381
9403
|
};
|
|
@@ -10746,7 +10768,7 @@ function destroyOption($xeselect, option) {
|
|
|
10746
10768
|
slots
|
|
10747
10769
|
}) {
|
|
10748
10770
|
const elem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
10749
|
-
const $xeselect = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$
|
|
10771
|
+
const $xeselect = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeSelect', {});
|
|
10750
10772
|
const option = createOption($xeselect, props);
|
|
10751
10773
|
const xeoption = {
|
|
10752
10774
|
option
|
|
@@ -10800,7 +10822,7 @@ dynamicApp.component(optgroup.name, optgroup);
|
|
|
10800
10822
|
slots
|
|
10801
10823
|
}) {
|
|
10802
10824
|
const elem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
10803
|
-
const $xeselect = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$
|
|
10825
|
+
const $xeselect = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeSelect', {});
|
|
10804
10826
|
const optgroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeoptgroup', null);
|
|
10805
10827
|
const option = createOption($xeselect, props);
|
|
10806
10828
|
option.slots = slots;
|
|
@@ -10905,7 +10927,7 @@ function getOptUniqueId() {
|
|
|
10905
10927
|
emit
|
|
10906
10928
|
} = context;
|
|
10907
10929
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
10908
|
-
const
|
|
10930
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
10909
10931
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
10910
10932
|
const computeSize = useSize(props);
|
|
10911
10933
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
@@ -11294,8 +11316,8 @@ function getOptUniqueId() {
|
|
|
11294
11316
|
value: selectValue
|
|
11295
11317
|
}, evnt);
|
|
11296
11318
|
// 自动更新校验状态
|
|
11297
|
-
if ($xeform &&
|
|
11298
|
-
$xeform.triggerItemEvent(evnt,
|
|
11319
|
+
if ($xeform && formItemInfo) {
|
|
11320
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, selectValue);
|
|
11299
11321
|
}
|
|
11300
11322
|
}
|
|
11301
11323
|
};
|
|
@@ -11921,7 +11943,7 @@ function getOptUniqueId() {
|
|
|
11921
11943
|
}, footerSlot({})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])] : [])])]);
|
|
11922
11944
|
};
|
|
11923
11945
|
$xeselect.renderVN = renderVN;
|
|
11924
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$
|
|
11946
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeSelect', $xeselect);
|
|
11925
11947
|
return $xeselect;
|
|
11926
11948
|
},
|
|
11927
11949
|
render() {
|
|
@@ -12936,7 +12958,7 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
12936
12958
|
emit
|
|
12937
12959
|
} = context;
|
|
12938
12960
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
12939
|
-
const
|
|
12961
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
12940
12962
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
12941
12963
|
const $xeradio = {
|
|
12942
12964
|
xID,
|
|
@@ -12944,7 +12966,7 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
12944
12966
|
context
|
|
12945
12967
|
};
|
|
12946
12968
|
const computeSize = useSize(props);
|
|
12947
|
-
const $xeradiogroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$
|
|
12969
|
+
const $xeradiogroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeRadioGroup', null);
|
|
12948
12970
|
let radioMethods = {};
|
|
12949
12971
|
const computeDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
12950
12972
|
return props.disabled || $xeradiogroup && $xeradiogroup.props.disabled;
|
|
@@ -12973,8 +12995,8 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
12973
12995
|
label
|
|
12974
12996
|
}, evnt);
|
|
12975
12997
|
// 自动更新校验状态
|
|
12976
|
-
if ($xeform &&
|
|
12977
|
-
$xeform.triggerItemEvent(evnt,
|
|
12998
|
+
if ($xeform && formItemInfo) {
|
|
12999
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, label);
|
|
12978
13000
|
}
|
|
12979
13001
|
}
|
|
12980
13002
|
};
|
|
@@ -13079,7 +13101,7 @@ dynamicApp.component(src_radio.name, src_radio);
|
|
|
13079
13101
|
emit
|
|
13080
13102
|
} = context;
|
|
13081
13103
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
13082
|
-
const
|
|
13104
|
+
const xeFormItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
13083
13105
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
13084
13106
|
const computeSize = useSize(props);
|
|
13085
13107
|
const $xeradiobutton = {
|
|
@@ -13088,7 +13110,7 @@ dynamicApp.component(src_radio.name, src_radio);
|
|
|
13088
13110
|
context
|
|
13089
13111
|
};
|
|
13090
13112
|
let radioButtonMethods = {};
|
|
13091
|
-
const $xeradiogroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$
|
|
13113
|
+
const $xeradiogroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeRadioGroup', null);
|
|
13092
13114
|
const computeDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13093
13115
|
return props.disabled || $xeradiogroup && $xeradiogroup.props.disabled;
|
|
13094
13116
|
});
|
|
@@ -13125,8 +13147,8 @@ dynamicApp.component(src_radio.name, src_radio);
|
|
|
13125
13147
|
label
|
|
13126
13148
|
}, evnt);
|
|
13127
13149
|
// 自动更新校验状态
|
|
13128
|
-
if ($xeform &&
|
|
13129
|
-
$xeform.triggerItemEvent(evnt,
|
|
13150
|
+
if ($xeform && xeFormItemInfo) {
|
|
13151
|
+
$xeform.triggerItemEvent(evnt, xeFormItemInfo.itemConfig.field, label);
|
|
13130
13152
|
}
|
|
13131
13153
|
}
|
|
13132
13154
|
};
|
|
@@ -13217,7 +13239,7 @@ dynamicApp.component(radio_src_button.name, radio_src_button);
|
|
|
13217
13239
|
emit
|
|
13218
13240
|
} = context;
|
|
13219
13241
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
13220
|
-
const
|
|
13242
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
13221
13243
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
13222
13244
|
const $xeradiogroup = {
|
|
13223
13245
|
xID,
|
|
@@ -13247,8 +13269,8 @@ dynamicApp.component(radio_src_button.name, radio_src_button);
|
|
|
13247
13269
|
emit('update:modelValue', params.label);
|
|
13248
13270
|
radioGroupMethods.dispatchEvent('change', params);
|
|
13249
13271
|
// 自动更新校验状态
|
|
13250
|
-
if ($xeform &&
|
|
13251
|
-
$xeform.triggerItemEvent(evnt,
|
|
13272
|
+
if ($xeform && formItemInfo) {
|
|
13273
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, params.label);
|
|
13252
13274
|
}
|
|
13253
13275
|
}
|
|
13254
13276
|
};
|
|
@@ -13284,7 +13306,7 @@ dynamicApp.component(radio_src_button.name, radio_src_button);
|
|
|
13284
13306
|
renderVN,
|
|
13285
13307
|
dispatchEvent
|
|
13286
13308
|
});
|
|
13287
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$
|
|
13309
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeRadioGroup', $xeradiogroup);
|
|
13288
13310
|
return renderVN;
|
|
13289
13311
|
}
|
|
13290
13312
|
}));
|
|
@@ -13418,7 +13440,7 @@ const Row = VxeRow;
|
|
|
13418
13440
|
emit
|
|
13419
13441
|
} = context;
|
|
13420
13442
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
13421
|
-
const
|
|
13443
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
13422
13444
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
13423
13445
|
const computeSize = useSize(props);
|
|
13424
13446
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
@@ -13455,8 +13477,8 @@ const Row = VxeRow;
|
|
|
13455
13477
|
value
|
|
13456
13478
|
}, evnt);
|
|
13457
13479
|
// 自动更新校验状态
|
|
13458
|
-
if ($xeform &&
|
|
13459
|
-
$xeform.triggerItemEvent(evnt,
|
|
13480
|
+
if ($xeform && formItemInfo) {
|
|
13481
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
13460
13482
|
}
|
|
13461
13483
|
_atimeout = setTimeout(() => {
|
|
13462
13484
|
reactData.hasAnimat = false;
|
|
@@ -13550,6 +13572,346 @@ const VxeSwitch = Object.assign(src_switch, {
|
|
|
13550
13572
|
const Switch = VxeSwitch;
|
|
13551
13573
|
dynamicApp.component(src_switch.name, src_switch);
|
|
13552
13574
|
/* harmony default export */ var packages_switch = (VxeSwitch);
|
|
13575
|
+
;// CONCATENATED MODULE: ./packages/tabs/src/util.ts
|
|
13576
|
+
|
|
13577
|
+
function assembleAnchorTab($xeTabs, elem, tabConfig) {
|
|
13578
|
+
const staticLinks = $xeTabs.reactData.staticTabs;
|
|
13579
|
+
const parentElem = elem.parentNode;
|
|
13580
|
+
if (parentElem) {
|
|
13581
|
+
staticLinks.splice(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayIndexOf(parentElem.children, elem), 0, tabConfig);
|
|
13582
|
+
$xeTabs.reactData.staticTabs = staticLinks.slice(0);
|
|
13583
|
+
}
|
|
13584
|
+
}
|
|
13585
|
+
function destroyAnchorTab($xeTabs, tabConfig) {
|
|
13586
|
+
const staticTabs = $xeTabs.reactData.staticTabs;
|
|
13587
|
+
const matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(staticTabs, item => item.id === tabConfig.id, {
|
|
13588
|
+
children: 'children'
|
|
13589
|
+
});
|
|
13590
|
+
if (matchObj) {
|
|
13591
|
+
matchObj.items.splice(matchObj.index, 1);
|
|
13592
|
+
}
|
|
13593
|
+
$xeTabs.reactData.staticTabs = staticTabs.slice(0);
|
|
13594
|
+
}
|
|
13595
|
+
;// CONCATENATED MODULE: ./packages/tabs/src/tab-pane.ts
|
|
13596
|
+
|
|
13597
|
+
|
|
13598
|
+
|
|
13599
|
+
/* harmony default export */ var tab_pane = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
13600
|
+
name: 'VxeTabPane',
|
|
13601
|
+
props: {
|
|
13602
|
+
title: [String, Number],
|
|
13603
|
+
name: [String, Number, Boolean]
|
|
13604
|
+
},
|
|
13605
|
+
emits: [],
|
|
13606
|
+
setup(props, context) {
|
|
13607
|
+
const {
|
|
13608
|
+
slots
|
|
13609
|
+
} = context;
|
|
13610
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
13611
|
+
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
13612
|
+
const $xeTabs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTabs', null);
|
|
13613
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
13614
|
+
const tabConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
13615
|
+
id: xID,
|
|
13616
|
+
title: props.title,
|
|
13617
|
+
name: props.name,
|
|
13618
|
+
slots: {
|
|
13619
|
+
default: slots.default
|
|
13620
|
+
}
|
|
13621
|
+
});
|
|
13622
|
+
const refMaps = {
|
|
13623
|
+
refElem
|
|
13624
|
+
};
|
|
13625
|
+
const computeMaps = {};
|
|
13626
|
+
const $xeTabPane = {
|
|
13627
|
+
xID,
|
|
13628
|
+
props,
|
|
13629
|
+
context,
|
|
13630
|
+
reactData,
|
|
13631
|
+
getRefMaps: () => refMaps,
|
|
13632
|
+
getComputeMaps: () => computeMaps
|
|
13633
|
+
};
|
|
13634
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.title, val => {
|
|
13635
|
+
tabConfig.title = val;
|
|
13636
|
+
});
|
|
13637
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.name, val => {
|
|
13638
|
+
tabConfig.name = val;
|
|
13639
|
+
});
|
|
13640
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
13641
|
+
if ($xeTabs && refElem.value) {
|
|
13642
|
+
assembleAnchorTab($xeTabs, refElem.value, tabConfig);
|
|
13643
|
+
}
|
|
13644
|
+
});
|
|
13645
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
13646
|
+
if ($xeTabs) {
|
|
13647
|
+
destroyAnchorTab($xeTabs, tabConfig);
|
|
13648
|
+
}
|
|
13649
|
+
});
|
|
13650
|
+
const renderVN = () => {
|
|
13651
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13652
|
+
ref: refElem
|
|
13653
|
+
}, []);
|
|
13654
|
+
};
|
|
13655
|
+
$xeTabPane.renderVN = renderVN;
|
|
13656
|
+
return $xeTabPane;
|
|
13657
|
+
},
|
|
13658
|
+
render() {
|
|
13659
|
+
return this.renderVN();
|
|
13660
|
+
}
|
|
13661
|
+
}));
|
|
13662
|
+
;// CONCATENATED MODULE: ./packages/tab-pane/index.ts
|
|
13663
|
+
|
|
13664
|
+
const VxeTabPane = Object.assign({}, tab_pane, {
|
|
13665
|
+
install(app) {
|
|
13666
|
+
app.component(tab_pane.name, tab_pane);
|
|
13667
|
+
}
|
|
13668
|
+
});
|
|
13669
|
+
const TabPane = VxeTabPane;
|
|
13670
|
+
/* harmony default export */ var packages_tab_pane = (VxeTabPane);
|
|
13671
|
+
;// CONCATENATED MODULE: ./packages/tabs/src/tabs.ts
|
|
13672
|
+
|
|
13673
|
+
|
|
13674
|
+
|
|
13675
|
+
|
|
13676
|
+
|
|
13677
|
+
/* harmony default export */ var tabs = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
13678
|
+
name: 'VxeTabs',
|
|
13679
|
+
props: {
|
|
13680
|
+
modelValue: [String, Number, Boolean],
|
|
13681
|
+
options: Array,
|
|
13682
|
+
destroyOnClose: Boolean,
|
|
13683
|
+
type: String
|
|
13684
|
+
},
|
|
13685
|
+
emits: [],
|
|
13686
|
+
setup(props, context) {
|
|
13687
|
+
const {
|
|
13688
|
+
slots
|
|
13689
|
+
} = context;
|
|
13690
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
13691
|
+
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
13692
|
+
const refHeaderElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
13693
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
13694
|
+
staticTabs: [],
|
|
13695
|
+
activeName: props.modelValue,
|
|
13696
|
+
initNames: props.modelValue ? [props.modelValue] : [],
|
|
13697
|
+
lintLeft: 0,
|
|
13698
|
+
lintWidth: 0
|
|
13699
|
+
});
|
|
13700
|
+
const refMaps = {
|
|
13701
|
+
refElem
|
|
13702
|
+
};
|
|
13703
|
+
const computeActiveOptionTab = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13704
|
+
const {
|
|
13705
|
+
options
|
|
13706
|
+
} = props;
|
|
13707
|
+
const {
|
|
13708
|
+
activeName
|
|
13709
|
+
} = reactData;
|
|
13710
|
+
return options ? options.find(item => item.name === activeName) : null;
|
|
13711
|
+
});
|
|
13712
|
+
const computeActiveDefaultTab = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
13713
|
+
const {
|
|
13714
|
+
staticTabs,
|
|
13715
|
+
activeName
|
|
13716
|
+
} = reactData;
|
|
13717
|
+
return staticTabs.find(item => item.name === activeName);
|
|
13718
|
+
});
|
|
13719
|
+
const computeMaps = {};
|
|
13720
|
+
const $xeTabs = {
|
|
13721
|
+
xID,
|
|
13722
|
+
props,
|
|
13723
|
+
context,
|
|
13724
|
+
reactData,
|
|
13725
|
+
getRefMaps: () => refMaps,
|
|
13726
|
+
getComputeMaps: () => computeMaps
|
|
13727
|
+
};
|
|
13728
|
+
const callSlot = (slotFunc, params) => {
|
|
13729
|
+
if (slotFunc) {
|
|
13730
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(slotFunc)) {
|
|
13731
|
+
slotFunc = slots[slotFunc] || null;
|
|
13732
|
+
}
|
|
13733
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(slotFunc)) {
|
|
13734
|
+
return getSlotVNs(slotFunc(params));
|
|
13735
|
+
}
|
|
13736
|
+
}
|
|
13737
|
+
return [];
|
|
13738
|
+
};
|
|
13739
|
+
const updateLineStyle = () => {
|
|
13740
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
13741
|
+
const {
|
|
13742
|
+
type,
|
|
13743
|
+
options
|
|
13744
|
+
} = props;
|
|
13745
|
+
const {
|
|
13746
|
+
staticTabs,
|
|
13747
|
+
activeName
|
|
13748
|
+
} = reactData;
|
|
13749
|
+
const headerWrapperEl = refHeaderElem.value;
|
|
13750
|
+
if (headerWrapperEl && !type) {
|
|
13751
|
+
const index = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(staticTabs.length ? staticTabs : options, item => item.name === activeName);
|
|
13752
|
+
if (index > -1) {
|
|
13753
|
+
const tabEl = headerWrapperEl.children[index];
|
|
13754
|
+
const tabWidth = tabEl.clientWidth;
|
|
13755
|
+
const lintWidth = Math.max(4, Math.floor(tabWidth * 0.6));
|
|
13756
|
+
reactData.lintLeft = tabEl.offsetLeft + Math.floor((tabWidth - lintWidth) / 2);
|
|
13757
|
+
reactData.lintWidth = lintWidth;
|
|
13758
|
+
}
|
|
13759
|
+
}
|
|
13760
|
+
});
|
|
13761
|
+
};
|
|
13762
|
+
const clickEvent = (evnt, item) => {
|
|
13763
|
+
const {
|
|
13764
|
+
initNames
|
|
13765
|
+
} = reactData;
|
|
13766
|
+
const {
|
|
13767
|
+
name
|
|
13768
|
+
} = item;
|
|
13769
|
+
if (!initNames.includes(name)) {
|
|
13770
|
+
initNames.push(name);
|
|
13771
|
+
}
|
|
13772
|
+
reactData.activeName = name;
|
|
13773
|
+
updateLineStyle();
|
|
13774
|
+
};
|
|
13775
|
+
const renderTabHeader = list => {
|
|
13776
|
+
const {
|
|
13777
|
+
type
|
|
13778
|
+
} = props;
|
|
13779
|
+
const {
|
|
13780
|
+
activeName,
|
|
13781
|
+
lintLeft,
|
|
13782
|
+
lintWidth
|
|
13783
|
+
} = reactData;
|
|
13784
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13785
|
+
class: 'vxe-tabs-header'
|
|
13786
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13787
|
+
ref: refHeaderElem,
|
|
13788
|
+
class: 'vxe-tabs-header--wrapper'
|
|
13789
|
+
}, list.map(item => {
|
|
13790
|
+
const {
|
|
13791
|
+
title,
|
|
13792
|
+
name,
|
|
13793
|
+
slots
|
|
13794
|
+
} = item;
|
|
13795
|
+
const tabSlot = slots ? slots.tab : null;
|
|
13796
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13797
|
+
class: ['vxe-tab-header--item', {
|
|
13798
|
+
'is--active': activeName === name
|
|
13799
|
+
}],
|
|
13800
|
+
onClick(evnt) {
|
|
13801
|
+
clickEvent(evnt, item);
|
|
13802
|
+
}
|
|
13803
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13804
|
+
class: 'vxe-tab-header--item-name'
|
|
13805
|
+
}, tabSlot ? callSlot(tabSlot, {
|
|
13806
|
+
name,
|
|
13807
|
+
title
|
|
13808
|
+
}) : `${title}`)]);
|
|
13809
|
+
})), type ? null : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
13810
|
+
class: 'vxe-tabs-header--active-line',
|
|
13811
|
+
style: {
|
|
13812
|
+
left: `${lintLeft}px`,
|
|
13813
|
+
width: `${lintWidth}px`
|
|
13814
|
+
}
|
|
13815
|
+
})]);
|
|
13816
|
+
};
|
|
13817
|
+
const renderOptionPane = item => {
|
|
13818
|
+
const {
|
|
13819
|
+
initNames,
|
|
13820
|
+
activeName
|
|
13821
|
+
} = reactData;
|
|
13822
|
+
const {
|
|
13823
|
+
name,
|
|
13824
|
+
slots
|
|
13825
|
+
} = item;
|
|
13826
|
+
const defaultSlot = slots ? slots.default : null;
|
|
13827
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tab_pane, item, {
|
|
13828
|
+
default() {
|
|
13829
|
+
return name && initNames.includes(name) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13830
|
+
class: ['vxe-tab-pane--item', {
|
|
13831
|
+
'is--visible': activeName === name
|
|
13832
|
+
}]
|
|
13833
|
+
}, callSlot(defaultSlot, {})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
13834
|
+
}
|
|
13835
|
+
});
|
|
13836
|
+
};
|
|
13837
|
+
const renderOptionContent = options => {
|
|
13838
|
+
const {
|
|
13839
|
+
destroyOnClose
|
|
13840
|
+
} = props;
|
|
13841
|
+
const activeOptionTab = computeActiveOptionTab.value;
|
|
13842
|
+
if (destroyOnClose) {
|
|
13843
|
+
return activeOptionTab ? renderOptionPane(activeOptionTab) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
13844
|
+
}
|
|
13845
|
+
return options.map(renderOptionPane);
|
|
13846
|
+
};
|
|
13847
|
+
const renderDefaultPane = item => {
|
|
13848
|
+
const {
|
|
13849
|
+
initNames,
|
|
13850
|
+
activeName
|
|
13851
|
+
} = reactData;
|
|
13852
|
+
const {
|
|
13853
|
+
name,
|
|
13854
|
+
slots
|
|
13855
|
+
} = item;
|
|
13856
|
+
const defaultSlot = slots ? slots.default : null;
|
|
13857
|
+
return name && initNames.includes(name) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13858
|
+
class: ['vxe-tab-pane--item', {
|
|
13859
|
+
'is--visible': activeName === name
|
|
13860
|
+
}]
|
|
13861
|
+
}, callSlot(defaultSlot, {})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
13862
|
+
};
|
|
13863
|
+
const renderDefaultContent = staticTabs => {
|
|
13864
|
+
const {
|
|
13865
|
+
destroyOnClose
|
|
13866
|
+
} = props;
|
|
13867
|
+
const activeDefaultTab = computeActiveDefaultTab.value;
|
|
13868
|
+
if (destroyOnClose) {
|
|
13869
|
+
return activeDefaultTab ? renderDefaultPane(activeDefaultTab) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
13870
|
+
}
|
|
13871
|
+
return staticTabs.map(renderDefaultPane);
|
|
13872
|
+
};
|
|
13873
|
+
const renderVN = () => {
|
|
13874
|
+
const {
|
|
13875
|
+
type,
|
|
13876
|
+
options
|
|
13877
|
+
} = props;
|
|
13878
|
+
const {
|
|
13879
|
+
staticTabs
|
|
13880
|
+
} = reactData;
|
|
13881
|
+
const defaultSlot = slots.default;
|
|
13882
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13883
|
+
ref: refElem,
|
|
13884
|
+
class: ['vxe-tabs', `vxe-tabs--${type || 'default'}`]
|
|
13885
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13886
|
+
class: 'vxe-tabs-slots'
|
|
13887
|
+
}, defaultSlot ? defaultSlot({}) : []), renderTabHeader(defaultSlot ? staticTabs : options || []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
13888
|
+
class: 'vxe-tabs-pane'
|
|
13889
|
+
}, defaultSlot ? renderDefaultContent(staticTabs) : renderOptionContent(options || []))]);
|
|
13890
|
+
};
|
|
13891
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
13892
|
+
reactData.activeName = val;
|
|
13893
|
+
updateLineStyle();
|
|
13894
|
+
});
|
|
13895
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
13896
|
+
updateLineStyle();
|
|
13897
|
+
});
|
|
13898
|
+
$xeTabs.renderVN = renderVN;
|
|
13899
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTabs', $xeTabs);
|
|
13900
|
+
return $xeTabs;
|
|
13901
|
+
},
|
|
13902
|
+
render() {
|
|
13903
|
+
return this.renderVN();
|
|
13904
|
+
}
|
|
13905
|
+
}));
|
|
13906
|
+
;// CONCATENATED MODULE: ./packages/tabs/index.ts
|
|
13907
|
+
|
|
13908
|
+
const VxeTabs = Object.assign({}, tabs, {
|
|
13909
|
+
install(app) {
|
|
13910
|
+
app.component(tabs.name, tabs);
|
|
13911
|
+
}
|
|
13912
|
+
});
|
|
13913
|
+
const Tabs = VxeTabs;
|
|
13914
|
+
/* harmony default export */ var packages_tabs = (VxeTabs);
|
|
13553
13915
|
;// CONCATENATED MODULE: ./packages/textarea/src/textarea.ts
|
|
13554
13916
|
|
|
13555
13917
|
|
|
@@ -13602,7 +13964,7 @@ let autoTxtElem;
|
|
|
13602
13964
|
emit
|
|
13603
13965
|
} = context;
|
|
13604
13966
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
|
|
13605
|
-
const
|
|
13967
|
+
const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
|
|
13606
13968
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
13607
13969
|
const computeSize = useSize(props);
|
|
13608
13970
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
@@ -13701,8 +14063,8 @@ let autoTxtElem;
|
|
|
13701
14063
|
value
|
|
13702
14064
|
}, evnt);
|
|
13703
14065
|
// 自动更新校验状态
|
|
13704
|
-
if ($xeform &&
|
|
13705
|
-
$xeform.triggerItemEvent(evnt,
|
|
14066
|
+
if ($xeform && formItemInfo) {
|
|
14067
|
+
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
13706
14068
|
}
|
|
13707
14069
|
}
|
|
13708
14070
|
};
|
|
@@ -14353,6 +14715,8 @@ dynamicApp.component(src_textarea.name, src_textarea);
|
|
|
14353
14715
|
|
|
14354
14716
|
|
|
14355
14717
|
|
|
14718
|
+
|
|
14719
|
+
|
|
14356
14720
|
|
|
14357
14721
|
|
|
14358
14722
|
|
|
@@ -14360,7 +14724,7 @@ dynamicApp.component(src_textarea.name, src_textarea);
|
|
|
14360
14724
|
setConfig({
|
|
14361
14725
|
i18n: (key, args) => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(zh_CN, key), args)
|
|
14362
14726
|
});
|
|
14363
|
-
const components = [packages_anchor, packages_anchor_link, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_checkbox, checkbox_group, packages_col, packages_form, packages_form_design, packages_form_gather, packages_form_item, packages_icon, packages_input, packages_layout_aside, packages_layout_body, packages_layout_container, packages_layout_footer, packages_layout_header, packages_list_design, packages_loading, packages_modal, packages_optgroup, packages_option, packages_pager, packages_pulldown, packages_radio, radio_button, radio_group, packages_row, packages_select, packages_switch, packages_textarea, packages_tooltip];
|
|
14727
|
+
const components = [packages_anchor, packages_anchor_link, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_checkbox, checkbox_group, packages_col, packages_form, packages_form_design, packages_form_gather, packages_form_item, packages_icon, packages_input, packages_layout_aside, packages_layout_body, packages_layout_container, packages_layout_footer, packages_layout_header, packages_list_design, packages_loading, packages_modal, packages_optgroup, packages_option, packages_pager, packages_pulldown, packages_radio, radio_button, radio_group, packages_row, packages_select, packages_switch, packages_tab_pane, packages_tabs, packages_textarea, packages_tooltip];
|
|
14364
14728
|
function install(app, options) {
|
|
14365
14729
|
setConfig(options);
|
|
14366
14730
|
components.forEach(component => app.use(component));
|
|
@@ -14399,6 +14763,8 @@ function install(app, options) {
|
|
|
14399
14763
|
|
|
14400
14764
|
|
|
14401
14765
|
|
|
14766
|
+
|
|
14767
|
+
|
|
14402
14768
|
|
|
14403
14769
|
|
|
14404
14770
|
|