vxe-pc-ui 4.17.19 → 4.17.21
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 +492 -191
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/avatar/src/avatar.js +3 -3
- package/es/badge/src/badge.js +3 -3
- package/es/components.js +31 -1
- package/es/empty/src/empty.js +3 -3
- package/es/icon/style.css +1 -1
- package/es/rate/src/rate.js +3 -3
- package/es/result/src/result.js +3 -3
- package/es/slider/src/slider.js +191 -71
- package/es/slider/style.css +8 -15
- package/es/slider/style.min.css +1 -1
- package/es/space/index.js +12 -0
- package/es/space/src/space.js +143 -0
- package/es/space/style.css +37 -0
- package/es/space/style.min.css +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/dom.js +3 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-slider/style.css +8 -15
- package/es/vxe-slider/style.min.css +1 -1
- package/es/vxe-space/index.js +3 -0
- package/es/vxe-space/style.css +37 -0
- package/es/vxe-space/style.min.css +1 -0
- package/es/watermark/src/watermark.js +3 -3
- package/lib/avatar/src/avatar.js +3 -3
- package/lib/badge/src/badge.js +3 -3
- package/lib/components.js +41 -2
- package/lib/components.min.js +1 -1
- package/lib/empty/src/empty.js +3 -3
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +432 -99
- package/lib/index.umd.min.js +1 -1
- package/lib/rate/src/rate.js +3 -3
- package/lib/result/src/result.js +3 -3
- package/lib/slider/src/slider.js +196 -77
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +8 -15
- package/lib/slider/style/style.min.css +1 -1
- package/lib/space/index.js +19 -0
- package/lib/space/index.min.js +1 -0
- package/lib/space/src/space.js +167 -0
- package/lib/space/src/space.min.js +1 -0
- package/lib/space/style/index.js +1 -0
- package/lib/space/style/style.css +37 -0
- package/lib/space/style/style.min.css +1 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +4 -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/lib/vxe-slider/style/style.css +8 -15
- package/lib/vxe-slider/style/style.min.css +1 -1
- package/lib/vxe-space/index.js +21 -0
- package/lib/vxe-space/index.min.js +1 -0
- package/lib/vxe-space/style/index.js +1 -0
- package/lib/vxe-space/style/style.css +37 -0
- package/lib/vxe-space/style/style.min.css +1 -0
- package/lib/watermark/src/watermark.js +3 -3
- package/package.json +4 -3
- package/packages/avatar/src/avatar.ts +3 -3
- package/packages/badge/src/badge.ts +3 -3
- package/packages/components.ts +31 -1
- package/packages/empty/src/empty.ts +3 -3
- package/packages/rate/src/rate.ts +3 -3
- package/packages/result/src/result.ts +3 -3
- package/packages/slider/src/slider.ts +194 -73
- package/packages/space/index.ts +16 -0
- package/packages/space/src/space.ts +167 -0
- package/packages/ui/index.ts +1 -0
- package/packages/ui/src/dom.ts +4 -0
- package/packages/watermark/src/watermark.ts +3 -3
- package/styles/all.scss +1 -0
- package/styles/components/slider.scss +8 -13
- package/styles/components/space.scss +38 -0
- package/styles/theme/base.scss +20 -6
- package/types/all.d.ts +3 -0
- package/types/components/slider.d.ts +13 -0
- package/types/components/space.d.ts +112 -0
- package/types/ui/global-config.d.ts +2 -0
- /package/es/icon/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/icon/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/icon/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/es/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/{iconfont.1787739841308.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/{iconfont.1787739841308.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/{iconfont.1787739841308.woff2 → iconfont.1787994747472.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2906,6 +2906,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2906
2906
|
Segmented: function() { return /* reexport */ Segmented; },
|
|
2907
2907
|
Select: function() { return /* reexport */ Select; },
|
|
2908
2908
|
Slider: function() { return /* reexport */ Slider; },
|
|
2909
|
+
Space: function() { return /* reexport */ Space; },
|
|
2909
2910
|
Split: function() { return /* reexport */ Split; },
|
|
2910
2911
|
SplitPane: function() { return /* reexport */ SplitPane; },
|
|
2911
2912
|
Splitter: function() { return /* reexport */ Splitter; },
|
|
@@ -2998,6 +2999,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2998
2999
|
VxeSegmented: function() { return /* reexport */ VxeSegmented; },
|
|
2999
3000
|
VxeSelect: function() { return /* reexport */ VxeSelect; },
|
|
3000
3001
|
VxeSlider: function() { return /* reexport */ VxeSlider; },
|
|
3002
|
+
VxeSpace: function() { return /* reexport */ VxeSpace; },
|
|
3001
3003
|
VxeSplit: function() { return /* reexport */ VxeSplit; },
|
|
3002
3004
|
VxeSplitPane: function() { return /* reexport */ VxeSplitPane; },
|
|
3003
3005
|
VxeSplitter: function() { return /* reexport */ VxeSplitter; },
|
|
@@ -3154,6 +3156,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
3154
3156
|
Segmented: function() { return Segmented; },
|
|
3155
3157
|
Select: function() { return Select; },
|
|
3156
3158
|
Slider: function() { return Slider; },
|
|
3159
|
+
Space: function() { return Space; },
|
|
3157
3160
|
Split: function() { return Split; },
|
|
3158
3161
|
SplitPane: function() { return SplitPane; },
|
|
3159
3162
|
Splitter: function() { return Splitter; },
|
|
@@ -3246,6 +3249,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
3246
3249
|
VxeSegmented: function() { return VxeSegmented; },
|
|
3247
3250
|
VxeSelect: function() { return VxeSelect; },
|
|
3248
3251
|
VxeSlider: function() { return VxeSlider; },
|
|
3252
|
+
VxeSpace: function() { return VxeSpace; },
|
|
3249
3253
|
VxeSplit: function() { return VxeSplit; },
|
|
3250
3254
|
VxeSplitPane: function() { return VxeSplitPane; },
|
|
3251
3255
|
VxeSplitter: function() { return VxeSplitter; },
|
|
@@ -4658,7 +4662,7 @@ function checkDynamic() {
|
|
|
4658
4662
|
const {
|
|
4659
4663
|
log: log_log
|
|
4660
4664
|
} = VxeUI;
|
|
4661
|
-
const uiVersion = `ui v${"4.17.
|
|
4665
|
+
const uiVersion = `ui v${"4.17.21"}`;
|
|
4662
4666
|
function createComponentLog(name) {
|
|
4663
4667
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4664
4668
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4676,7 +4680,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4676
4680
|
|
|
4677
4681
|
|
|
4678
4682
|
|
|
4679
|
-
const ui_version = "4.17.
|
|
4683
|
+
const ui_version = "4.17.21";
|
|
4680
4684
|
VxeUI.uiVersion = ui_version;
|
|
4681
4685
|
VxeUI.dynamicApp = dynamicApp;
|
|
4682
4686
|
function config(options) {
|
|
@@ -5047,6 +5051,7 @@ setConfig({
|
|
|
5047
5051
|
max: 100,
|
|
5048
5052
|
min: 0
|
|
5049
5053
|
},
|
|
5054
|
+
space: {},
|
|
5050
5055
|
steps: {},
|
|
5051
5056
|
switch: {},
|
|
5052
5057
|
tabPane: {},
|
|
@@ -6439,6 +6444,9 @@ function getTpImg() {
|
|
|
6439
6444
|
}
|
|
6440
6445
|
return tpImgEl;
|
|
6441
6446
|
}
|
|
6447
|
+
function getPropClass(property, params) {
|
|
6448
|
+
return property ? (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(property) ? property(params) : property) || '' : '';
|
|
6449
|
+
}
|
|
6442
6450
|
const reClsMap = {};
|
|
6443
6451
|
function getClsRE(cls) {
|
|
6444
6452
|
if (!reClsMap[cls]) {
|
|
@@ -7203,11 +7211,11 @@ const AnchorLink = VxeAnchorLink;
|
|
|
7203
7211
|
$avatar: $xeAvatar
|
|
7204
7212
|
}, params));
|
|
7205
7213
|
};
|
|
7206
|
-
const
|
|
7214
|
+
const avatarMethods = {
|
|
7207
7215
|
dispatchEvent
|
|
7208
7216
|
};
|
|
7209
|
-
const
|
|
7210
|
-
Object.assign($xeAvatar,
|
|
7217
|
+
const avatarPrivateMethods = {};
|
|
7218
|
+
Object.assign($xeAvatar, avatarMethods, avatarPrivateMethods);
|
|
7211
7219
|
const renderContent = () => {
|
|
7212
7220
|
const {
|
|
7213
7221
|
icon,
|
|
@@ -9150,11 +9158,11 @@ const Backtop = VxeBacktop;
|
|
|
9150
9158
|
$badge: $xeBadge
|
|
9151
9159
|
}, params));
|
|
9152
9160
|
};
|
|
9153
|
-
const
|
|
9161
|
+
const badgeMethods = {
|
|
9154
9162
|
dispatchEvent
|
|
9155
9163
|
};
|
|
9156
|
-
const
|
|
9157
|
-
Object.assign($xeBadge,
|
|
9164
|
+
const badgePrivateMethods = {};
|
|
9165
|
+
Object.assign($xeBadge, badgeMethods, badgePrivateMethods);
|
|
9158
9166
|
const renderVN = () => {
|
|
9159
9167
|
const {
|
|
9160
9168
|
dot,
|
|
@@ -31030,11 +31038,11 @@ const Drawer = VxeDrawer;
|
|
|
31030
31038
|
$empty: $xeEmpty
|
|
31031
31039
|
}, params));
|
|
31032
31040
|
};
|
|
31033
|
-
const
|
|
31041
|
+
const emptyMethods = {
|
|
31034
31042
|
dispatchEvent
|
|
31035
31043
|
};
|
|
31036
|
-
const
|
|
31037
|
-
Object.assign($xeEmpty,
|
|
31044
|
+
const emptyPrivateMethods = {};
|
|
31045
|
+
Object.assign($xeEmpty, emptyMethods, emptyPrivateMethods);
|
|
31038
31046
|
const renderVN = () => {
|
|
31039
31047
|
const {
|
|
31040
31048
|
imageUrl,
|
|
@@ -44594,10 +44602,10 @@ const RadioGroup = VxeRadioGroup;
|
|
|
44594
44602
|
$rate: $xeRate
|
|
44595
44603
|
}, params));
|
|
44596
44604
|
};
|
|
44597
|
-
const
|
|
44605
|
+
const rateMethods = {
|
|
44598
44606
|
dispatchEvent
|
|
44599
44607
|
};
|
|
44600
|
-
const
|
|
44608
|
+
const ratePrivateMethods = {};
|
|
44601
44609
|
const emitModel = value => {
|
|
44602
44610
|
emit('update:modelValue', value);
|
|
44603
44611
|
};
|
|
@@ -44627,7 +44635,7 @@ const RadioGroup = VxeRadioGroup;
|
|
|
44627
44635
|
}
|
|
44628
44636
|
}
|
|
44629
44637
|
};
|
|
44630
|
-
Object.assign($xeRate,
|
|
44638
|
+
Object.assign($xeRate, rateMethods, ratePrivateMethods);
|
|
44631
44639
|
const renderVN = () => {
|
|
44632
44640
|
const {
|
|
44633
44641
|
status
|
|
@@ -44729,11 +44737,11 @@ const Rate = VxeRate;
|
|
|
44729
44737
|
$result: $xeResult
|
|
44730
44738
|
}, params));
|
|
44731
44739
|
};
|
|
44732
|
-
const
|
|
44740
|
+
const resultMethods = {
|
|
44733
44741
|
dispatchEvent
|
|
44734
44742
|
};
|
|
44735
|
-
const
|
|
44736
|
-
Object.assign($xeResult,
|
|
44743
|
+
const resultPrivateMethods = {};
|
|
44744
|
+
Object.assign($xeResult, resultMethods, resultPrivateMethods);
|
|
44737
44745
|
const renderVN = () => {
|
|
44738
44746
|
const {
|
|
44739
44747
|
imageUrl,
|
|
@@ -46428,10 +46436,25 @@ const SplitPane = VxeSplitPane;
|
|
|
46428
46436
|
|
|
46429
46437
|
|
|
46430
46438
|
|
|
46439
|
+
|
|
46440
|
+
|
|
46441
|
+
function slider_createInternalData() {
|
|
46442
|
+
return {
|
|
46443
|
+
// _isUp: false,
|
|
46444
|
+
currValue: 0,
|
|
46445
|
+
startValue: 0,
|
|
46446
|
+
endValue: 0
|
|
46447
|
+
};
|
|
46448
|
+
}
|
|
46449
|
+
function slider_createReactData() {
|
|
46450
|
+
return {};
|
|
46451
|
+
}
|
|
46431
46452
|
/* harmony default export */ var slider = (defineVxeComponent({
|
|
46432
46453
|
name: 'VxeSlider',
|
|
46433
46454
|
props: {
|
|
46434
46455
|
modelValue: [String, Number, Array],
|
|
46456
|
+
startValue: [String, Number],
|
|
46457
|
+
endValue: [String, Number],
|
|
46435
46458
|
vertical: Boolean,
|
|
46436
46459
|
max: {
|
|
46437
46460
|
type: [String, Number],
|
|
@@ -46460,9 +46483,13 @@ const SplitPane = VxeSplitPane;
|
|
|
46460
46483
|
disabled: {
|
|
46461
46484
|
type: Boolean,
|
|
46462
46485
|
default: null
|
|
46486
|
+
},
|
|
46487
|
+
immediate: {
|
|
46488
|
+
type: Boolean,
|
|
46489
|
+
default: () => getConfig().slider.immediate
|
|
46463
46490
|
}
|
|
46464
46491
|
},
|
|
46465
|
-
emits: ['update:modelValue', 'change', 'track-dragstart', 'track-dragover', 'track-dragend'],
|
|
46492
|
+
emits: ['update:modelValue', 'update:startValue', 'update:endValue', 'change', 'track-dragstart', 'track-dragover', 'track-dragend'],
|
|
46466
46493
|
setup(props, context) {
|
|
46467
46494
|
const {
|
|
46468
46495
|
emit
|
|
@@ -46478,10 +46505,8 @@ const SplitPane = VxeSplitPane;
|
|
|
46478
46505
|
const refTrackElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
46479
46506
|
const refStartBtnElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
46480
46507
|
const refEndBtnElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
46481
|
-
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(
|
|
46482
|
-
|
|
46483
|
-
endValue: 0
|
|
46484
|
-
});
|
|
46508
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(slider_createReactData());
|
|
46509
|
+
const internalData = slider_createInternalData();
|
|
46485
46510
|
const refMaps = {
|
|
46486
46511
|
refElem
|
|
46487
46512
|
};
|
|
@@ -46515,6 +46540,14 @@ const SplitPane = VxeSplitPane;
|
|
|
46515
46540
|
const computeMinNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
46516
46541
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.min || 0);
|
|
46517
46542
|
});
|
|
46543
|
+
const computeMVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
46544
|
+
const {
|
|
46545
|
+
range,
|
|
46546
|
+
startValue,
|
|
46547
|
+
endValue
|
|
46548
|
+
} = props;
|
|
46549
|
+
return range ? `${startValue || ''}${endValue || ''}` : '';
|
|
46550
|
+
});
|
|
46518
46551
|
const computeMaps = {};
|
|
46519
46552
|
const $xeSlider = {
|
|
46520
46553
|
xID,
|
|
@@ -46525,6 +46558,7 @@ const SplitPane = VxeSplitPane;
|
|
|
46525
46558
|
getComputeMaps: () => computeMaps
|
|
46526
46559
|
};
|
|
46527
46560
|
const emitModel = value => {
|
|
46561
|
+
internalData._isUp = true;
|
|
46528
46562
|
emit('update:modelValue', value);
|
|
46529
46563
|
};
|
|
46530
46564
|
const dispatchEvent = (type, params, evnt) => {
|
|
@@ -46535,61 +46569,119 @@ const SplitPane = VxeSplitPane;
|
|
|
46535
46569
|
const collapsePaneMethods = {
|
|
46536
46570
|
dispatchEvent
|
|
46537
46571
|
};
|
|
46538
|
-
const
|
|
46539
|
-
const {
|
|
46540
|
-
range
|
|
46541
|
-
} = props;
|
|
46572
|
+
const getBarPercent = currValue => {
|
|
46542
46573
|
const maxNum = computeMaxNum.value;
|
|
46543
46574
|
const minNum = computeMinNum.value;
|
|
46544
|
-
|
|
46575
|
+
if (maxNum === minNum) {
|
|
46576
|
+
return 0;
|
|
46577
|
+
}
|
|
46578
|
+
if (currValue < minNum) {
|
|
46579
|
+
currValue = minNum;
|
|
46580
|
+
}
|
|
46581
|
+
if (currValue > maxNum) {
|
|
46582
|
+
currValue = maxNum;
|
|
46583
|
+
}
|
|
46584
|
+
return (currValue - minNum) / (maxNum - minNum) * 100;
|
|
46545
46585
|
};
|
|
46546
|
-
const
|
|
46547
|
-
const
|
|
46548
|
-
|
|
46549
|
-
|
|
46550
|
-
|
|
46551
|
-
|
|
46552
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor((endValue - (range ? startValue : 0) - minNum) / external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(maxNum - minNum) * 100);
|
|
46586
|
+
const parseFields = (startValue, endValue) => {
|
|
46587
|
+
const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(startValue), external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(endValue)]);
|
|
46588
|
+
const currValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sVal || 0));
|
|
46589
|
+
internalData.currValue = currValue;
|
|
46590
|
+
internalData.startValue = currValue;
|
|
46591
|
+
internalData.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(eVal || 0));
|
|
46553
46592
|
};
|
|
46554
|
-
const
|
|
46593
|
+
const parseArrs = arrVals => {
|
|
46594
|
+
const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(arrVals);
|
|
46595
|
+
const currValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sVal || 0));
|
|
46596
|
+
internalData.currValue = currValue;
|
|
46597
|
+
internalData.startValue = currValue;
|
|
46598
|
+
internalData.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(eVal || 0));
|
|
46599
|
+
};
|
|
46600
|
+
const parseNum = val => {
|
|
46601
|
+
const currValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(val || 0));
|
|
46602
|
+
internalData.currValue = currValue;
|
|
46603
|
+
internalData.startValue = 0;
|
|
46604
|
+
internalData.endValue = currValue;
|
|
46605
|
+
};
|
|
46606
|
+
const updateModelValue = umType => {
|
|
46555
46607
|
const {
|
|
46556
|
-
|
|
46608
|
+
range,
|
|
46609
|
+
modelValue,
|
|
46610
|
+
startValue,
|
|
46611
|
+
endValue
|
|
46557
46612
|
} = props;
|
|
46558
|
-
if (
|
|
46559
|
-
|
|
46560
|
-
|
|
46561
|
-
|
|
46613
|
+
if (!umType) {
|
|
46614
|
+
if (range) {
|
|
46615
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(modelValue)) {
|
|
46616
|
+
if (startValue || endValue) {
|
|
46617
|
+
parseFields(startValue, endValue);
|
|
46618
|
+
}
|
|
46619
|
+
} else {
|
|
46620
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue)) {
|
|
46621
|
+
parseArrs(modelValue.map(num => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num)));
|
|
46622
|
+
} else {
|
|
46623
|
+
parseNum(modelValue);
|
|
46624
|
+
}
|
|
46625
|
+
}
|
|
46626
|
+
} else {
|
|
46627
|
+
parseNum(modelValue);
|
|
46628
|
+
}
|
|
46629
|
+
} else if (range && umType === 2) {
|
|
46630
|
+
parseFields(startValue, endValue);
|
|
46562
46631
|
} else {
|
|
46563
|
-
|
|
46564
|
-
|
|
46632
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue)) {
|
|
46633
|
+
parseArrs(modelValue.map(num => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num)));
|
|
46634
|
+
} else {
|
|
46635
|
+
parseNum(modelValue);
|
|
46636
|
+
}
|
|
46565
46637
|
}
|
|
46638
|
+
updateBarStyle();
|
|
46639
|
+
updateTrackStyle();
|
|
46566
46640
|
};
|
|
46567
46641
|
const updateBarStyle = () => {
|
|
46568
46642
|
const {
|
|
46643
|
+
range
|
|
46644
|
+
} = props;
|
|
46645
|
+
const {
|
|
46646
|
+
currValue,
|
|
46569
46647
|
startValue,
|
|
46570
46648
|
endValue
|
|
46571
|
-
} =
|
|
46572
|
-
const trackElem = refTrackElem.value;
|
|
46649
|
+
} = internalData;
|
|
46573
46650
|
const startBtnElem = refStartBtnElem.value;
|
|
46574
46651
|
const endBtnElem = refEndBtnElem.value;
|
|
46575
|
-
|
|
46576
|
-
|
|
46577
|
-
|
|
46578
|
-
|
|
46579
|
-
|
|
46652
|
+
if (range) {
|
|
46653
|
+
const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([startValue, endValue]);
|
|
46654
|
+
if (startBtnElem) {
|
|
46655
|
+
startBtnElem.style.left = getBarPercent(sVal) + '%';
|
|
46656
|
+
}
|
|
46657
|
+
if (endBtnElem) {
|
|
46658
|
+
endBtnElem.style.left = getBarPercent(eVal) + '%';
|
|
46659
|
+
}
|
|
46580
46660
|
} else {
|
|
46581
|
-
|
|
46582
|
-
|
|
46661
|
+
if (endBtnElem) {
|
|
46662
|
+
endBtnElem.style.left = getBarPercent(currValue) + '%';
|
|
46663
|
+
}
|
|
46583
46664
|
}
|
|
46665
|
+
};
|
|
46666
|
+
const updateTrackStyle = () => {
|
|
46667
|
+
const {
|
|
46668
|
+
range
|
|
46669
|
+
} = props;
|
|
46670
|
+
const {
|
|
46671
|
+
currValue,
|
|
46672
|
+
startValue,
|
|
46673
|
+
endValue
|
|
46674
|
+
} = internalData;
|
|
46675
|
+
const trackElem = refTrackElem.value;
|
|
46584
46676
|
if (trackElem) {
|
|
46585
|
-
|
|
46586
|
-
|
|
46587
|
-
|
|
46588
|
-
|
|
46589
|
-
|
|
46590
|
-
|
|
46591
|
-
|
|
46592
|
-
|
|
46677
|
+
if (range) {
|
|
46678
|
+
const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([startValue, endValue]);
|
|
46679
|
+
trackElem.style.left = getBarPercent(sVal) + '%';
|
|
46680
|
+
trackElem.style.width = getBarPercent(eVal - sVal) + '%';
|
|
46681
|
+
} else {
|
|
46682
|
+
trackElem.style.left = '0';
|
|
46683
|
+
trackElem.style.width = getBarPercent(currValue) + '%';
|
|
46684
|
+
}
|
|
46593
46685
|
}
|
|
46594
46686
|
};
|
|
46595
46687
|
const changeEvent = evnt => {
|
|
@@ -46597,11 +46689,17 @@ const SplitPane = VxeSplitPane;
|
|
|
46597
46689
|
range
|
|
46598
46690
|
} = props;
|
|
46599
46691
|
const {
|
|
46692
|
+
currValue,
|
|
46600
46693
|
startValue,
|
|
46601
46694
|
endValue
|
|
46602
|
-
} =
|
|
46603
|
-
const
|
|
46695
|
+
} = internalData;
|
|
46696
|
+
const vals = range ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([startValue, endValue]) : [];
|
|
46697
|
+
const value = range ? vals : currValue;
|
|
46604
46698
|
emitModel(value);
|
|
46699
|
+
if (range) {
|
|
46700
|
+
emit('update:startValue', vals[0] || 0);
|
|
46701
|
+
emit('update:endValue', vals[1] || 0);
|
|
46702
|
+
}
|
|
46605
46703
|
dispatchEvent('change', {
|
|
46606
46704
|
value
|
|
46607
46705
|
}, evnt);
|
|
@@ -46610,11 +46708,25 @@ const SplitPane = VxeSplitPane;
|
|
|
46610
46708
|
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
46611
46709
|
}
|
|
46612
46710
|
};
|
|
46613
|
-
const
|
|
46614
|
-
const formReadonly = computeFormReadonly.value;
|
|
46615
|
-
const isDisabled = computeIsDisabled.value;
|
|
46711
|
+
const getValueByLeft = (offsetLeft, barWidth) => {
|
|
46616
46712
|
const maxNum = computeMaxNum.value;
|
|
46617
46713
|
const minNum = computeMinNum.value;
|
|
46714
|
+
if (barWidth === 0) {
|
|
46715
|
+
return minNum;
|
|
46716
|
+
}
|
|
46717
|
+
const clamped = Math.max(0, Math.min(barWidth, offsetLeft));
|
|
46718
|
+
const ratio = clamped / barWidth;
|
|
46719
|
+
const raw = minNum + ratio * (maxNum - minNum);
|
|
46720
|
+
return Math.floor(raw);
|
|
46721
|
+
};
|
|
46722
|
+
const handleBtnMousedownEvent = evnt => {
|
|
46723
|
+
const {
|
|
46724
|
+
range,
|
|
46725
|
+
immediate
|
|
46726
|
+
} = props;
|
|
46727
|
+
const btnElem = evnt.currentTarget;
|
|
46728
|
+
const formReadonly = computeFormReadonly.value;
|
|
46729
|
+
const isDisabled = computeIsDisabled.value;
|
|
46618
46730
|
if (!(formReadonly || isDisabled)) {
|
|
46619
46731
|
evnt.preventDefault();
|
|
46620
46732
|
document.onmousemove = evnt => {
|
|
@@ -46622,46 +46734,49 @@ const SplitPane = VxeSplitPane;
|
|
|
46622
46734
|
const el = refElem.value;
|
|
46623
46735
|
const barElem = refBarElem.value;
|
|
46624
46736
|
if (el && barElem) {
|
|
46737
|
+
const btnType = btnElem.getAttribute('data-type');
|
|
46625
46738
|
const barRect = barElem.getBoundingClientRect();
|
|
46626
|
-
const
|
|
46627
|
-
|
|
46628
|
-
|
|
46629
|
-
|
|
46630
|
-
|
|
46739
|
+
const barWidth = barRect.width;
|
|
46740
|
+
const offsetLeft = Math.min(barWidth, Math.max(0, evnt.clientX - barRect.left));
|
|
46741
|
+
const currValue = getValueByLeft(offsetLeft, barWidth);
|
|
46742
|
+
if (range) {
|
|
46743
|
+
if (btnType === '1') {
|
|
46744
|
+
internalData.startValue = currValue;
|
|
46745
|
+
} else {
|
|
46746
|
+
internalData.endValue = currValue;
|
|
46747
|
+
}
|
|
46631
46748
|
}
|
|
46749
|
+
internalData.currValue = currValue;
|
|
46750
|
+
btnElem.style.left = getBarPercent(currValue) + '%';
|
|
46632
46751
|
dispatchEvent('track-dragover', {
|
|
46633
|
-
|
|
46634
|
-
|
|
46752
|
+
currentValue: internalData.currValue,
|
|
46753
|
+
startValue: internalData.startValue,
|
|
46754
|
+
endValue: internalData.endValue
|
|
46635
46755
|
}, evnt);
|
|
46636
46756
|
}
|
|
46637
|
-
|
|
46757
|
+
if (immediate) {
|
|
46758
|
+
changeEvent(evnt);
|
|
46759
|
+
}
|
|
46760
|
+
updateTrackStyle();
|
|
46638
46761
|
};
|
|
46639
46762
|
document.onmouseup = evnt => {
|
|
46640
46763
|
document.onmousemove = null;
|
|
46641
46764
|
document.onmouseup = null;
|
|
46642
46765
|
dispatchEvent('track-dragend', {
|
|
46643
|
-
|
|
46644
|
-
|
|
46766
|
+
currentValue: internalData.currValue,
|
|
46767
|
+
startValue: internalData.startValue,
|
|
46768
|
+
endValue: internalData.endValue
|
|
46645
46769
|
}, evnt);
|
|
46646
46770
|
changeEvent(evnt);
|
|
46647
|
-
|
|
46771
|
+
updateTrackStyle();
|
|
46648
46772
|
};
|
|
46649
46773
|
dispatchEvent('track-dragstart', {
|
|
46650
|
-
|
|
46651
|
-
|
|
46774
|
+
currentValue: internalData.currValue,
|
|
46775
|
+
startValue: internalData.startValue,
|
|
46776
|
+
endValue: internalData.endValue
|
|
46652
46777
|
}, evnt);
|
|
46653
46778
|
}
|
|
46654
46779
|
};
|
|
46655
|
-
const handleStartMousedownEvent = evnt => {
|
|
46656
|
-
const endBtnElem = refEndBtnElem.value;
|
|
46657
|
-
const startBtnElem = evnt.currentTarget;
|
|
46658
|
-
handleMousedownEvent(evnt, endBtnElem ? endBtnElem.offsetLeft < startBtnElem.offsetLeft : false);
|
|
46659
|
-
};
|
|
46660
|
-
const handleEndMousedownEvent = evnt => {
|
|
46661
|
-
const startBtnElem = refStartBtnElem.value;
|
|
46662
|
-
const endBtnElem = evnt.currentTarget;
|
|
46663
|
-
handleMousedownEvent(evnt, startBtnElem ? endBtnElem.offsetLeft > startBtnElem.offsetLeft : true);
|
|
46664
|
-
};
|
|
46665
46780
|
const collapsePanePrivateMethods = {};
|
|
46666
46781
|
Object.assign($xeSlider, collapsePaneMethods, collapsePanePrivateMethods);
|
|
46667
46782
|
const renderVN = () => {
|
|
@@ -46690,21 +46805,35 @@ const SplitPane = VxeSplitPane;
|
|
|
46690
46805
|
class: 'vxe-slider--bar-track'
|
|
46691
46806
|
}), formReadonly || !range ? renderEmptyElement($xeSlider) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46692
46807
|
ref: refStartBtnElem,
|
|
46693
|
-
class: 'vxe-slider--bar-btn
|
|
46694
|
-
|
|
46808
|
+
class: 'vxe-slider--bar-btn',
|
|
46809
|
+
'data-type': '1',
|
|
46810
|
+
onMousedown: handleBtnMousedownEvent
|
|
46695
46811
|
}), formReadonly ? renderEmptyElement($xeSlider) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46696
46812
|
ref: refEndBtnElem,
|
|
46697
|
-
class: 'vxe-slider--bar-btn
|
|
46698
|
-
|
|
46813
|
+
class: 'vxe-slider--bar-btn',
|
|
46814
|
+
'data-type': '2',
|
|
46815
|
+
onMousedown: handleBtnMousedownEvent
|
|
46699
46816
|
})])]);
|
|
46700
46817
|
};
|
|
46701
46818
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, () => {
|
|
46702
|
-
|
|
46819
|
+
if (!internalData._isUp) {
|
|
46820
|
+
updateModelValue(1);
|
|
46821
|
+
}
|
|
46822
|
+
internalData._isUp = false;
|
|
46823
|
+
});
|
|
46824
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeMVal, () => {
|
|
46825
|
+
if (!internalData._isUp) {
|
|
46826
|
+
updateModelValue(2);
|
|
46827
|
+
}
|
|
46828
|
+
internalData._isUp = false;
|
|
46703
46829
|
});
|
|
46704
46830
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
46705
|
-
|
|
46831
|
+
updateModelValue();
|
|
46832
|
+
});
|
|
46833
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
46834
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, slider_createReactData());
|
|
46835
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, slider_createInternalData());
|
|
46706
46836
|
});
|
|
46707
|
-
updateModel();
|
|
46708
46837
|
$xeSlider.renderVN = renderVN;
|
|
46709
46838
|
return $xeSlider;
|
|
46710
46839
|
},
|
|
@@ -46725,6 +46854,181 @@ dynamicApp.use(VxeSlider);
|
|
|
46725
46854
|
VxeUI.component(slider);
|
|
46726
46855
|
const Slider = VxeSlider;
|
|
46727
46856
|
/* harmony default export */ var packages_slider = (VxeSlider);
|
|
46857
|
+
;// ./packages/space/src/space.ts
|
|
46858
|
+
|
|
46859
|
+
|
|
46860
|
+
|
|
46861
|
+
|
|
46862
|
+
|
|
46863
|
+
|
|
46864
|
+
|
|
46865
|
+
/* harmony default export */ var space = (defineVxeComponent({
|
|
46866
|
+
name: 'VxeSpace',
|
|
46867
|
+
props: {
|
|
46868
|
+
size: {
|
|
46869
|
+
type: String,
|
|
46870
|
+
default: () => getConfig().space.size || getConfig().size
|
|
46871
|
+
},
|
|
46872
|
+
wrap: {
|
|
46873
|
+
type: Boolean,
|
|
46874
|
+
default: () => getConfig().space.wrap
|
|
46875
|
+
},
|
|
46876
|
+
gap: {
|
|
46877
|
+
type: [Number, String, Array, Object],
|
|
46878
|
+
default: () => getConfig().space.gap
|
|
46879
|
+
},
|
|
46880
|
+
vertical: {
|
|
46881
|
+
type: Boolean,
|
|
46882
|
+
default: () => getConfig().space.vertical
|
|
46883
|
+
},
|
|
46884
|
+
className: {
|
|
46885
|
+
type: String,
|
|
46886
|
+
default: () => getConfig().space.className
|
|
46887
|
+
},
|
|
46888
|
+
itemClassName: {
|
|
46889
|
+
type: String,
|
|
46890
|
+
default: () => getConfig().space.itemClassName
|
|
46891
|
+
},
|
|
46892
|
+
separator: {
|
|
46893
|
+
type: String,
|
|
46894
|
+
default: () => getConfig().space.separator
|
|
46895
|
+
},
|
|
46896
|
+
align: {
|
|
46897
|
+
type: String,
|
|
46898
|
+
default: () => getConfig().space.align
|
|
46899
|
+
}
|
|
46900
|
+
},
|
|
46901
|
+
emits: [],
|
|
46902
|
+
setup(props, context) {
|
|
46903
|
+
const {
|
|
46904
|
+
emit,
|
|
46905
|
+
slots
|
|
46906
|
+
} = context;
|
|
46907
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
46908
|
+
const {
|
|
46909
|
+
computeSize
|
|
46910
|
+
} = useSize(props);
|
|
46911
|
+
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
46912
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
46913
|
+
activeValue: null
|
|
46914
|
+
});
|
|
46915
|
+
const refMaps = {
|
|
46916
|
+
refElem
|
|
46917
|
+
};
|
|
46918
|
+
const computeWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
46919
|
+
const {
|
|
46920
|
+
align,
|
|
46921
|
+
gap
|
|
46922
|
+
} = props;
|
|
46923
|
+
const stys = {};
|
|
46924
|
+
let rowGap = '';
|
|
46925
|
+
let columGap = '';
|
|
46926
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(gap) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(gap)) {
|
|
46927
|
+
rowGap = gap;
|
|
46928
|
+
columGap = gap;
|
|
46929
|
+
} else if (gap) {
|
|
46930
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(gap)) {
|
|
46931
|
+
rowGap = gap[0];
|
|
46932
|
+
columGap = gap[1];
|
|
46933
|
+
} else {
|
|
46934
|
+
rowGap = gap.rowGap || '';
|
|
46935
|
+
columGap = gap.columGap || '';
|
|
46936
|
+
}
|
|
46937
|
+
}
|
|
46938
|
+
if (align) {
|
|
46939
|
+
stys['align-items'] = align;
|
|
46940
|
+
}
|
|
46941
|
+
if (!eqEmptyValue(rowGap)) {
|
|
46942
|
+
stys['--vxe-ui-space-current-row-gap'] = toCssUnit(rowGap);
|
|
46943
|
+
}
|
|
46944
|
+
if (!eqEmptyValue(columGap)) {
|
|
46945
|
+
stys['--vxe-ui-space-current-column-gap'] = toCssUnit(columGap);
|
|
46946
|
+
}
|
|
46947
|
+
return stys;
|
|
46948
|
+
});
|
|
46949
|
+
const computeMaps = {};
|
|
46950
|
+
const $xeSpace = {
|
|
46951
|
+
xID,
|
|
46952
|
+
props,
|
|
46953
|
+
context,
|
|
46954
|
+
reactData,
|
|
46955
|
+
getRefMaps: () => refMaps,
|
|
46956
|
+
getComputeMaps: () => computeMaps
|
|
46957
|
+
};
|
|
46958
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
46959
|
+
emit(type, createEvent(evnt, {
|
|
46960
|
+
$space: $xeSpace
|
|
46961
|
+
}, params));
|
|
46962
|
+
};
|
|
46963
|
+
const spaceMethods = {
|
|
46964
|
+
dispatchEvent
|
|
46965
|
+
};
|
|
46966
|
+
const spacePrivateMethods = {};
|
|
46967
|
+
Object.assign($xeSpace, spaceMethods, spacePrivateMethods);
|
|
46968
|
+
const renderItems = () => {
|
|
46969
|
+
const {
|
|
46970
|
+
separator,
|
|
46971
|
+
itemClassName
|
|
46972
|
+
} = props;
|
|
46973
|
+
const itemVNs = [];
|
|
46974
|
+
const defaultSlot = slots.default;
|
|
46975
|
+
const separatorSlot = slots.separator;
|
|
46976
|
+
if (defaultSlot) {
|
|
46977
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(defaultSlot({}), (itemVN, index, items) => {
|
|
46978
|
+
itemVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46979
|
+
key: 'i' + index,
|
|
46980
|
+
class: ['vxe-space--item', getPropClass(itemClassName, {
|
|
46981
|
+
index
|
|
46982
|
+
})]
|
|
46983
|
+
}, [itemVN]));
|
|
46984
|
+
if ((separator || separatorSlot) && index < items.length - 1) {
|
|
46985
|
+
itemVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
46986
|
+
key: 's' + index,
|
|
46987
|
+
class: 'vxe-space--separator'
|
|
46988
|
+
}, separatorSlot ? separatorSlot({}) : '' + separator));
|
|
46989
|
+
}
|
|
46990
|
+
});
|
|
46991
|
+
}
|
|
46992
|
+
return itemVNs;
|
|
46993
|
+
};
|
|
46994
|
+
const renderVN = () => {
|
|
46995
|
+
const {
|
|
46996
|
+
vertical,
|
|
46997
|
+
wrap,
|
|
46998
|
+
className
|
|
46999
|
+
} = props;
|
|
47000
|
+
const wrapperStyle = computeWrapperStyle.value;
|
|
47001
|
+
const vSize = computeSize.value;
|
|
47002
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
47003
|
+
ref: refElem,
|
|
47004
|
+
class: ['vxe-space', getPropClass(className, {}), {
|
|
47005
|
+
[`size--${vSize}`]: vSize,
|
|
47006
|
+
'is--wrap': wrap,
|
|
47007
|
+
'is--vertical': vertical
|
|
47008
|
+
}],
|
|
47009
|
+
style: wrapperStyle
|
|
47010
|
+
}, renderItems());
|
|
47011
|
+
};
|
|
47012
|
+
$xeSpace.renderVN = renderVN;
|
|
47013
|
+
return $xeSpace;
|
|
47014
|
+
},
|
|
47015
|
+
render() {
|
|
47016
|
+
return this.renderVN();
|
|
47017
|
+
}
|
|
47018
|
+
}));
|
|
47019
|
+
;// ./packages/space/index.ts
|
|
47020
|
+
|
|
47021
|
+
|
|
47022
|
+
|
|
47023
|
+
const VxeSpace = Object.assign({}, space, {
|
|
47024
|
+
install(app) {
|
|
47025
|
+
app.component(space.name, space);
|
|
47026
|
+
}
|
|
47027
|
+
});
|
|
47028
|
+
dynamicApp.use(VxeSpace);
|
|
47029
|
+
VxeUI.component(space);
|
|
47030
|
+
const Space = VxeSpace;
|
|
47031
|
+
/* harmony default export */ var packages_space = (VxeSpace);
|
|
46728
47032
|
;// ./packages/steps/src/steps.ts
|
|
46729
47033
|
|
|
46730
47034
|
|
|
@@ -58003,7 +58307,7 @@ function getContentUrl(content, defaultFontSize, options) {
|
|
|
58003
58307
|
$watermark: $xeWatermark
|
|
58004
58308
|
}, params));
|
|
58005
58309
|
};
|
|
58006
|
-
const
|
|
58310
|
+
const watermarkMethods = {
|
|
58007
58311
|
dispatchEvent
|
|
58008
58312
|
};
|
|
58009
58313
|
const updateMarkStyle = () => {
|
|
@@ -58028,8 +58332,8 @@ function getContentUrl(content, defaultFontSize, options) {
|
|
|
58028
58332
|
}
|
|
58029
58333
|
}
|
|
58030
58334
|
};
|
|
58031
|
-
const
|
|
58032
|
-
Object.assign($xeWatermark,
|
|
58335
|
+
const watermarkPrivateMethods = {};
|
|
58336
|
+
Object.assign($xeWatermark, watermarkMethods, watermarkPrivateMethods);
|
|
58033
58337
|
const renderVN = () => {
|
|
58034
58338
|
const wrapperStyle = computeWrapperStyle.value;
|
|
58035
58339
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -58197,6 +58501,7 @@ const Watermark = VxeWatermark;
|
|
|
58197
58501
|
|
|
58198
58502
|
|
|
58199
58503
|
|
|
58504
|
+
|
|
58200
58505
|
|
|
58201
58506
|
|
|
58202
58507
|
const {
|
|
@@ -58205,7 +58510,7 @@ const {
|
|
|
58205
58510
|
setTheme: components_setTheme,
|
|
58206
58511
|
setConfig: components_setConfig
|
|
58207
58512
|
} = VxeUI;
|
|
58208
|
-
const components_components = [packages_alert, packages_anchor, packages_anchor_link, packages_avatar, packages_backtop, packages_badge, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_calendar, packages_card, packages_carousel, packages_carousel_item, packages_cascader, packages_checkbox, checkbox_button, checkbox_group, packages_col, packages_collapse, packages_collapse_pane, packages_color_picker, packages_context_menu, 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, packages_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_segmented, packages_select, packages_splitter, packages_splitter_panel, split, split_pane, packages_slider, packages_steps, packages_switch, packages_tab_pane, packages_table_select, packages_table_transfer, packages_tabs, packages_tag, packages_text_ellipsis, packages_text, packages_textarea, packages_timeline, packages_timeline_item, packages_tip, packages_tooltip, packages_tour, packages_transfer, packages_tree, packages_tree_select, packages_upload, packages_watermark];
|
|
58513
|
+
const components_components = [packages_alert, packages_anchor, packages_anchor_link, packages_avatar, packages_backtop, packages_badge, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_calendar, packages_card, packages_carousel, packages_carousel_item, packages_cascader, packages_checkbox, checkbox_button, checkbox_group, packages_col, packages_collapse, packages_collapse_pane, packages_color_picker, packages_context_menu, 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, packages_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_segmented, packages_select, packages_splitter, packages_splitter_panel, split, split_pane, packages_slider, packages_space, packages_steps, packages_switch, packages_tab_pane, packages_table_select, packages_table_transfer, packages_tabs, packages_tag, packages_text_ellipsis, packages_text, packages_textarea, packages_timeline, packages_timeline_item, packages_tip, packages_tooltip, packages_tour, packages_transfer, packages_tree, packages_tree_select, packages_upload, packages_watermark];
|
|
58209
58514
|
function install(app, options) {
|
|
58210
58515
|
components_setConfig(options);
|
|
58211
58516
|
components_components.forEach(component => app.use(component));
|
|
@@ -58215,13 +58520,40 @@ const defaultLanguage = 'zh-CN';
|
|
|
58215
58520
|
components_setI18n(defaultLanguage, zh_CN);
|
|
58216
58521
|
components_setLanguage(defaultLanguage);
|
|
58217
58522
|
components_setTheme('light');
|
|
58218
|
-
|
|
58523
|
+
/**
|
|
58524
|
+
* 已废弃,被 VxeUI.loading 替换
|
|
58525
|
+
* @deprecated
|
|
58526
|
+
*/
|
|
58219
58527
|
const loading = LoadingController;
|
|
58528
|
+
/**
|
|
58529
|
+
* 已废弃,被 VxeUI.modal 替换
|
|
58530
|
+
* @deprecated
|
|
58531
|
+
*/
|
|
58220
58532
|
const components_modal = ModalController;
|
|
58533
|
+
/**
|
|
58534
|
+
* 已废弃,被 VxeUI.drawer 替换
|
|
58535
|
+
* @deprecated
|
|
58536
|
+
*/
|
|
58221
58537
|
const components_drawer = DrawerController;
|
|
58538
|
+
/**
|
|
58539
|
+
* 已废弃,被 VxeUI.watermark 替换
|
|
58540
|
+
* @deprecated
|
|
58541
|
+
*/
|
|
58222
58542
|
const components_watermark = WatermarkController;
|
|
58543
|
+
/**
|
|
58544
|
+
* 已废弃,被 VxeUI.print 替换
|
|
58545
|
+
* @deprecated
|
|
58546
|
+
*/
|
|
58223
58547
|
const components_print = printHtml;
|
|
58548
|
+
/**
|
|
58549
|
+
* 已废弃,被 VxeUI.saveFile 替换
|
|
58550
|
+
* @deprecated
|
|
58551
|
+
*/
|
|
58224
58552
|
const saveFile = saveLocalFile;
|
|
58553
|
+
/**
|
|
58554
|
+
* 已废弃,被 VxeUI.readFile 替换
|
|
58555
|
+
* @deprecated
|
|
58556
|
+
*/
|
|
58225
58557
|
const readFile = readLocalFile;
|
|
58226
58558
|
|
|
58227
58559
|
// Components
|
|
@@ -58314,6 +58646,7 @@ const readFile = readLocalFile;
|
|
|
58314
58646
|
|
|
58315
58647
|
|
|
58316
58648
|
|
|
58649
|
+
|
|
58317
58650
|
|
|
58318
58651
|
|
|
58319
58652
|
;// ./index.ts
|