vxe-pc-ui 4.8.8 → 4.8.10
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 +1 -0
- package/es/color-picker/src/color-picker.js +12 -0
- package/es/color-picker/style.css +2 -5
- package/es/color-picker/style.min.css +1 -1
- package/es/components.js +3 -0
- package/es/form/src/form.js +16 -10
- package/es/gantt/index.js +12 -0
- package/es/gantt/src/gantt.js +61 -0
- package/es/gantt/style.css +0 -0
- package/es/gantt/style.min.css +0 -0
- package/es/icon/style.css +1 -1
- package/es/list/src/list.js +59 -55
- package/es/number-input/src/number-input.js +2 -2
- package/es/select/src/select.js +24 -20
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/src/tree.js +44 -31
- package/es/tree-select/src/tree-select.js +9 -5
- package/es/ui/index.js +4 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-color-picker/style.css +2 -5
- package/es/vxe-color-picker/style.min.css +1 -1
- package/es/vxe-gantt/index.js +3 -0
- package/es/vxe-gantt/style.css +0 -0
- package/es/vxe-gantt/style.min.css +0 -0
- package/lib/color-picker/src/color-picker.js +12 -0
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/color-picker/style/style.css +2 -5
- package/lib/color-picker/style/style.min.css +1 -1
- package/lib/components.js +13 -1
- package/lib/components.min.js +1 -1
- package/lib/form/src/form.js +15 -9
- package/lib/form/src/form.min.js +1 -1
- package/lib/gantt/index.js +19 -0
- package/lib/gantt/index.min.js +1 -0
- package/lib/gantt/src/gantt.js +72 -0
- package/lib/gantt/src/gantt.min.js +1 -0
- package/lib/gantt/style/index.js +1 -0
- package/lib/gantt/style/style.css +0 -0
- package/lib/gantt/style/style.min.css +0 -0
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +265 -132
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +66 -62
- package/lib/list/src/list.min.js +1 -1
- package/lib/number-input/src/number-input.js +2 -2
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/select/src/select.js +24 -20
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/src/tree.js +46 -30
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +9 -5
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +4 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-color-picker/style/style.css +2 -5
- package/lib/vxe-color-picker/style/style.min.css +1 -1
- package/lib/vxe-gantt/index.js +22 -0
- package/lib/vxe-gantt/index.min.js +1 -0
- package/lib/vxe-gantt/style/index.js +1 -0
- package/lib/vxe-gantt/style/style.css +0 -0
- package/lib/vxe-gantt/style/style.min.css +0 -0
- package/package.json +1 -1
- package/packages/color-picker/src/color-picker.ts +12 -0
- package/packages/components.ts +3 -0
- package/packages/form/src/form.ts +18 -10
- package/packages/gantt/index.ts +16 -0
- package/packages/gantt/src/gantt.ts +87 -0
- package/packages/list/src/list.ts +61 -56
- package/packages/number-input/src/number-input.ts +2 -2
- package/packages/select/src/select.ts +27 -22
- package/packages/tree/src/tree.ts +47 -35
- package/packages/tree-select/src/tree-select.ts +10 -5
- package/packages/ui/index.ts +3 -1
- package/styles/all.scss +1 -0
- package/styles/components/color-picker.scss +2 -5
- package/styles/components/gantt.scss +0 -0
- package/types/all.d.ts +3 -0
- package/types/components/gantt.d.ts +77 -0
- package/types/components/grid.d.ts +3 -0
- package/types/components/number-input.d.ts +4 -0
- package/types/ui/global-config.d.ts +2 -0
- /package/es/icon/{iconfont.1754439880814.ttf → iconfont.1754474084337.ttf} +0 -0
- /package/es/icon/{iconfont.1754439880814.woff → iconfont.1754474084337.woff} +0 -0
- /package/es/icon/{iconfont.1754439880814.woff2 → iconfont.1754474084337.woff2} +0 -0
- /package/es/{iconfont.1754439880814.ttf → iconfont.1754474084337.ttf} +0 -0
- /package/es/{iconfont.1754439880814.woff → iconfont.1754474084337.woff} +0 -0
- /package/es/{iconfont.1754439880814.woff2 → iconfont.1754474084337.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1754439880814.ttf → iconfont.1754474084337.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1754439880814.woff → iconfont.1754474084337.woff} +0 -0
- /package/lib/icon/style/{iconfont.1754439880814.woff2 → iconfont.1754474084337.woff2} +0 -0
- /package/lib/{iconfont.1754439880814.ttf → iconfont.1754474084337.ttf} +0 -0
- /package/lib/{iconfont.1754439880814.woff → iconfont.1754474084337.woff} +0 -0
- /package/lib/{iconfont.1754439880814.woff2 → iconfont.1754474084337.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1919,6 +1919,7 @@ __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; },
|
|
1922
1923
|
Icon: function() { return /* reexport */ Icon; },
|
|
1923
1924
|
IconPicker: function() { return /* reexport */ IconPicker; },
|
|
1924
1925
|
Image: function() { return /* reexport */ image_Image; },
|
|
@@ -2002,6 +2003,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2002
2003
|
VxeFormGather: function() { return /* reexport */ VxeFormGather; },
|
|
2003
2004
|
VxeFormGroup: function() { return /* reexport */ VxeFormGroup; },
|
|
2004
2005
|
VxeFormItem: function() { return /* reexport */ VxeFormItem; },
|
|
2006
|
+
VxeGantt: function() { return /* reexport */ VxeGantt; },
|
|
2005
2007
|
VxeIcon: function() { return /* reexport */ VxeIcon; },
|
|
2006
2008
|
VxeIconPicker: function() { return /* reexport */ VxeIconPicker; },
|
|
2007
2009
|
VxeImage: function() { return /* reexport */ VxeImage; },
|
|
@@ -2142,6 +2144,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
2142
2144
|
FormGroup: function() { return FormGroup; },
|
|
2143
2145
|
FormItem: function() { return FormItem; },
|
|
2144
2146
|
GLOBAL_EVENT_KEYS: function() { return GLOBAL_EVENT_KEYS; },
|
|
2147
|
+
Gantt: function() { return Gantt; },
|
|
2145
2148
|
Icon: function() { return Icon; },
|
|
2146
2149
|
IconPicker: function() { return IconPicker; },
|
|
2147
2150
|
Image: function() { return image_Image; },
|
|
@@ -2225,6 +2228,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
2225
2228
|
VxeFormGather: function() { return VxeFormGather; },
|
|
2226
2229
|
VxeFormGroup: function() { return VxeFormGroup; },
|
|
2227
2230
|
VxeFormItem: function() { return VxeFormItem; },
|
|
2231
|
+
VxeGantt: function() { return VxeGantt; },
|
|
2228
2232
|
VxeIcon: function() { return VxeIcon; },
|
|
2229
2233
|
VxeIconPicker: function() { return VxeIconPicker; },
|
|
2230
2234
|
VxeImage: function() { return VxeImage; },
|
|
@@ -4320,14 +4324,14 @@ function checkDynamic() {
|
|
|
4320
4324
|
}
|
|
4321
4325
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4322
4326
|
|
|
4323
|
-
const log_version = `ui v${"4.8.
|
|
4327
|
+
const log_version = `ui v${"4.8.10"}`;
|
|
4324
4328
|
const warnLog = log.create('warn', log_version);
|
|
4325
4329
|
const errLog = log.create('error', log_version);
|
|
4326
4330
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4327
4331
|
|
|
4328
4332
|
|
|
4329
4333
|
|
|
4330
|
-
const ui_version = "4.8.
|
|
4334
|
+
const ui_version = "4.8.10";
|
|
4331
4335
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4332
4336
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4333
4337
|
function config(options) {
|
|
@@ -4474,6 +4478,7 @@ setConfig({
|
|
|
4474
4478
|
formGroup: {},
|
|
4475
4479
|
formItem: {},
|
|
4476
4480
|
formView: {},
|
|
4481
|
+
gantt: {},
|
|
4477
4482
|
icon: {},
|
|
4478
4483
|
iconPicker: {
|
|
4479
4484
|
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']
|
|
@@ -4573,7 +4578,8 @@ setConfig({
|
|
|
4573
4578
|
enabled: true,
|
|
4574
4579
|
layout: 'right',
|
|
4575
4580
|
showButton: true,
|
|
4576
|
-
isWheel: true
|
|
4581
|
+
isWheel: true,
|
|
4582
|
+
isArrow: true
|
|
4577
4583
|
}
|
|
4578
4584
|
},
|
|
4579
4585
|
optgroup: {},
|
|
@@ -14391,7 +14397,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
14391
14397
|
} = props;
|
|
14392
14398
|
const controlOpts = computeControlOpts.value;
|
|
14393
14399
|
const {
|
|
14394
|
-
|
|
14400
|
+
isArrow
|
|
14395
14401
|
} = controlOpts;
|
|
14396
14402
|
const inputReadonly = computeInputReadonly.value;
|
|
14397
14403
|
const isControlKey = hasControlKey(evnt);
|
|
@@ -14409,7 +14415,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
14409
14415
|
if (isEsc) {
|
|
14410
14416
|
afterCheckValue();
|
|
14411
14417
|
} else if (isUpArrow || isDwArrow) {
|
|
14412
|
-
if (isEnableConf(controlOpts) && (controls === false ? controls :
|
|
14418
|
+
if (isEnableConf(controlOpts) && (controls === false ? controls : isArrow) && !inputReadonly) {
|
|
14413
14419
|
numberKeydownEvent(evnt);
|
|
14414
14420
|
}
|
|
14415
14421
|
}
|
|
@@ -15607,6 +15613,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
15607
15613
|
maxLength: 3,
|
|
15608
15614
|
placeholder: '',
|
|
15609
15615
|
modelValue: rValue,
|
|
15616
|
+
controlConfig: {
|
|
15617
|
+
showButton: false
|
|
15618
|
+
},
|
|
15610
15619
|
'onUpdate:modelValue'(val) {
|
|
15611
15620
|
reactData.rValue = val;
|
|
15612
15621
|
},
|
|
@@ -15620,6 +15629,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
15620
15629
|
maxLength: 3,
|
|
15621
15630
|
placeholder: '',
|
|
15622
15631
|
modelValue: gValue,
|
|
15632
|
+
controlConfig: {
|
|
15633
|
+
showButton: false
|
|
15634
|
+
},
|
|
15623
15635
|
'onUpdate:modelValue'(val) {
|
|
15624
15636
|
reactData.gValue = val;
|
|
15625
15637
|
},
|
|
@@ -15633,6 +15645,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
15633
15645
|
maxLength: 3,
|
|
15634
15646
|
placeholder: '',
|
|
15635
15647
|
modelValue: bValue,
|
|
15648
|
+
controlConfig: {
|
|
15649
|
+
showButton: false
|
|
15650
|
+
},
|
|
15636
15651
|
'onUpdate:modelValue'(val) {
|
|
15637
15652
|
reactData.bValue = val;
|
|
15638
15653
|
},
|
|
@@ -15647,6 +15662,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
15647
15662
|
maxLength: 4,
|
|
15648
15663
|
placeholder: '',
|
|
15649
15664
|
modelValue: aValue,
|
|
15665
|
+
controlConfig: {
|
|
15666
|
+
showButton: false
|
|
15667
|
+
},
|
|
15650
15668
|
'onUpdate:modelValue'(val) {
|
|
15651
15669
|
reactData.aValue = val;
|
|
15652
15670
|
},
|
|
@@ -21812,6 +21830,17 @@ function checkRuleStatus(rule, val) {
|
|
|
21812
21830
|
}
|
|
21813
21831
|
return true;
|
|
21814
21832
|
}
|
|
21833
|
+
function createInternalData() {
|
|
21834
|
+
return {
|
|
21835
|
+
meTimeout: undefined,
|
|
21836
|
+
stTimeout: undefined,
|
|
21837
|
+
tooltipStore: {
|
|
21838
|
+
item: null,
|
|
21839
|
+
visible: false
|
|
21840
|
+
},
|
|
21841
|
+
itemFormatCache: {}
|
|
21842
|
+
};
|
|
21843
|
+
}
|
|
21815
21844
|
/* harmony default export */ var src_form = (defineVxeComponent({
|
|
21816
21845
|
name: 'VxeForm',
|
|
21817
21846
|
props: {
|
|
@@ -21911,15 +21940,7 @@ function checkRuleStatus(rule, val) {
|
|
|
21911
21940
|
staticItems: [],
|
|
21912
21941
|
formItems: []
|
|
21913
21942
|
});
|
|
21914
|
-
const internalData = (
|
|
21915
|
-
meTimeout: undefined,
|
|
21916
|
-
stTimeout: undefined,
|
|
21917
|
-
tooltipStore: {
|
|
21918
|
-
item: null,
|
|
21919
|
-
visible: false
|
|
21920
|
-
},
|
|
21921
|
-
itemFormatCache: {}
|
|
21922
|
-
});
|
|
21943
|
+
const internalData = createInternalData();
|
|
21923
21944
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
21924
21945
|
const refTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
21925
21946
|
let formMethods = {};
|
|
@@ -22584,6 +22605,9 @@ function checkRuleStatus(rule, val) {
|
|
|
22584
22605
|
}
|
|
22585
22606
|
});
|
|
22586
22607
|
});
|
|
22608
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
22609
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, createInternalData());
|
|
22610
|
+
});
|
|
22587
22611
|
if (props.items) {
|
|
22588
22612
|
loadItem(props.items);
|
|
22589
22613
|
}
|
|
@@ -23592,6 +23616,85 @@ dynamicApp.use(VxeFormItem);
|
|
|
23592
23616
|
index_esm_VxeUI.component(form_item);
|
|
23593
23617
|
const FormItem = VxeFormItem;
|
|
23594
23618
|
/* 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);
|
|
23595
23698
|
;// CONCATENATED MODULE: ./packages/icon/index.ts
|
|
23596
23699
|
|
|
23597
23700
|
|
|
@@ -25944,6 +26047,21 @@ const Link = VxeLink;
|
|
|
25944
26047
|
|
|
25945
26048
|
|
|
25946
26049
|
|
|
26050
|
+
function list_createInternalData() {
|
|
26051
|
+
return {
|
|
26052
|
+
resizeObserver: undefined,
|
|
26053
|
+
fullData: [],
|
|
26054
|
+
lastScrollLeft: 0,
|
|
26055
|
+
lastScrollTop: 0,
|
|
26056
|
+
scrollYStore: {
|
|
26057
|
+
startIndex: 0,
|
|
26058
|
+
endIndex: 0,
|
|
26059
|
+
visibleSize: 0,
|
|
26060
|
+
offsetSize: 0,
|
|
26061
|
+
rowHeight: 0
|
|
26062
|
+
}
|
|
26063
|
+
};
|
|
26064
|
+
}
|
|
25947
26065
|
/* harmony default export */ var list = (defineVxeComponent({
|
|
25948
26066
|
name: 'VxeList',
|
|
25949
26067
|
props: {
|
|
@@ -25984,19 +26102,7 @@ const Link = VxeLink;
|
|
|
25984
26102
|
topSpaceHeight: 0,
|
|
25985
26103
|
items: []
|
|
25986
26104
|
});
|
|
25987
|
-
const internalData =
|
|
25988
|
-
resizeObserver: undefined,
|
|
25989
|
-
fullData: [],
|
|
25990
|
-
lastScrollLeft: 0,
|
|
25991
|
-
lastScrollTop: 0,
|
|
25992
|
-
scrollYStore: {
|
|
25993
|
-
startIndex: 0,
|
|
25994
|
-
endIndex: 0,
|
|
25995
|
-
visibleSize: 0,
|
|
25996
|
-
offsetSize: 0,
|
|
25997
|
-
rowHeight: 0
|
|
25998
|
-
}
|
|
25999
|
-
};
|
|
26105
|
+
const internalData = list_createInternalData();
|
|
26000
26106
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
26001
26107
|
const refVirtualWrapper = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
26002
26108
|
const refVirtualBody = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -26277,6 +26383,55 @@ const Link = VxeLink;
|
|
|
26277
26383
|
clearScroll
|
|
26278
26384
|
};
|
|
26279
26385
|
Object.assign($xeList, listMethods);
|
|
26386
|
+
const renderVN = () => {
|
|
26387
|
+
const {
|
|
26388
|
+
className,
|
|
26389
|
+
loading
|
|
26390
|
+
} = props;
|
|
26391
|
+
const {
|
|
26392
|
+
bodyHeight,
|
|
26393
|
+
topSpaceHeight,
|
|
26394
|
+
items
|
|
26395
|
+
} = reactData;
|
|
26396
|
+
const defaultSlot = slots.default;
|
|
26397
|
+
const vSize = computeSize.value;
|
|
26398
|
+
const styles = computeStyles.value;
|
|
26399
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26400
|
+
ref: refElem,
|
|
26401
|
+
class: ['vxe-list', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
26402
|
+
$list: $xeList
|
|
26403
|
+
}) : className : '', {
|
|
26404
|
+
[`size--${vSize}`]: vSize,
|
|
26405
|
+
'is--loading': loading
|
|
26406
|
+
}]
|
|
26407
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26408
|
+
ref: refVirtualWrapper,
|
|
26409
|
+
class: 'vxe-list--virtual-wrapper',
|
|
26410
|
+
style: styles,
|
|
26411
|
+
onScroll: scrollEvent
|
|
26412
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26413
|
+
class: 'vxe-list--y-space',
|
|
26414
|
+
style: {
|
|
26415
|
+
height: bodyHeight ? `${bodyHeight}px` : ''
|
|
26416
|
+
}
|
|
26417
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26418
|
+
ref: refVirtualBody,
|
|
26419
|
+
class: 'vxe-list--body',
|
|
26420
|
+
style: {
|
|
26421
|
+
marginTop: topSpaceHeight ? `${topSpaceHeight}px` : ''
|
|
26422
|
+
}
|
|
26423
|
+
}, defaultSlot ? defaultSlot({
|
|
26424
|
+
items,
|
|
26425
|
+
$list: $xeList
|
|
26426
|
+
}) : [])]),
|
|
26427
|
+
/**
|
|
26428
|
+
* 加载中
|
|
26429
|
+
*/
|
|
26430
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_loading, {
|
|
26431
|
+
class: 'vxe-list--loading',
|
|
26432
|
+
modelValue: loading
|
|
26433
|
+
})]);
|
|
26434
|
+
};
|
|
26280
26435
|
const dataFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
26281
26436
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.data ? props.data.length : -1, () => {
|
|
26282
26437
|
dataFlag.value++;
|
|
@@ -26326,56 +26481,8 @@ const Link = VxeLink;
|
|
|
26326
26481
|
resizeObserver.disconnect();
|
|
26327
26482
|
}
|
|
26328
26483
|
globalEvents.off($xeList, 'resize');
|
|
26484
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, list_createInternalData());
|
|
26329
26485
|
});
|
|
26330
|
-
const renderVN = () => {
|
|
26331
|
-
const {
|
|
26332
|
-
className,
|
|
26333
|
-
loading
|
|
26334
|
-
} = props;
|
|
26335
|
-
const {
|
|
26336
|
-
bodyHeight,
|
|
26337
|
-
topSpaceHeight,
|
|
26338
|
-
items
|
|
26339
|
-
} = reactData;
|
|
26340
|
-
const defaultSlot = slots.default;
|
|
26341
|
-
const vSize = computeSize.value;
|
|
26342
|
-
const styles = computeStyles.value;
|
|
26343
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26344
|
-
ref: refElem,
|
|
26345
|
-
class: ['vxe-list', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
26346
|
-
$list: $xeList
|
|
26347
|
-
}) : className : '', {
|
|
26348
|
-
[`size--${vSize}`]: vSize,
|
|
26349
|
-
'is--loading': loading
|
|
26350
|
-
}]
|
|
26351
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26352
|
-
ref: refVirtualWrapper,
|
|
26353
|
-
class: 'vxe-list--virtual-wrapper',
|
|
26354
|
-
style: styles,
|
|
26355
|
-
onScroll: scrollEvent
|
|
26356
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26357
|
-
class: 'vxe-list--y-space',
|
|
26358
|
-
style: {
|
|
26359
|
-
height: bodyHeight ? `${bodyHeight}px` : ''
|
|
26360
|
-
}
|
|
26361
|
-
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
26362
|
-
ref: refVirtualBody,
|
|
26363
|
-
class: 'vxe-list--body',
|
|
26364
|
-
style: {
|
|
26365
|
-
marginTop: topSpaceHeight ? `${topSpaceHeight}px` : ''
|
|
26366
|
-
}
|
|
26367
|
-
}, defaultSlot ? defaultSlot({
|
|
26368
|
-
items,
|
|
26369
|
-
$list: $xeList
|
|
26370
|
-
}) : [])]),
|
|
26371
|
-
/**
|
|
26372
|
-
* 加载中
|
|
26373
|
-
*/
|
|
26374
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_loading, {
|
|
26375
|
-
class: 'vxe-list--loading',
|
|
26376
|
-
modelValue: loading
|
|
26377
|
-
})]);
|
|
26378
|
-
};
|
|
26379
26486
|
$xeList.renderVN = renderVN;
|
|
26380
26487
|
return $xeList;
|
|
26381
26488
|
},
|
|
@@ -28887,6 +28994,28 @@ function isOptionVisible(option) {
|
|
|
28887
28994
|
function getOptUniqueId() {
|
|
28888
28995
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('opt_');
|
|
28889
28996
|
}
|
|
28997
|
+
function select_createInternalData() {
|
|
28998
|
+
return {
|
|
28999
|
+
synchData: [],
|
|
29000
|
+
fullData: [],
|
|
29001
|
+
afterVisibleList: [],
|
|
29002
|
+
optAddMaps: {},
|
|
29003
|
+
optGroupKeyMaps: {},
|
|
29004
|
+
optFullValMaps: {},
|
|
29005
|
+
remoteValMaps: {},
|
|
29006
|
+
lastScrollLeft: 0,
|
|
29007
|
+
lastScrollTop: 0,
|
|
29008
|
+
scrollYStore: {
|
|
29009
|
+
startIndex: 0,
|
|
29010
|
+
endIndex: 0,
|
|
29011
|
+
visibleSize: 0,
|
|
29012
|
+
offsetSize: 0,
|
|
29013
|
+
rowHeight: 0
|
|
29014
|
+
},
|
|
29015
|
+
lastScrollTime: 0,
|
|
29016
|
+
hpTimeout: undefined
|
|
29017
|
+
};
|
|
29018
|
+
}
|
|
28890
29019
|
/* harmony default export */ var src_select = (defineVxeComponent({
|
|
28891
29020
|
name: 'VxeSelect',
|
|
28892
29021
|
props: {
|
|
@@ -29011,26 +29140,7 @@ function getOptUniqueId() {
|
|
|
29011
29140
|
isAniVisible: false,
|
|
29012
29141
|
isActivated: false
|
|
29013
29142
|
});
|
|
29014
|
-
const internalData =
|
|
29015
|
-
synchData: [],
|
|
29016
|
-
fullData: [],
|
|
29017
|
-
afterVisibleList: [],
|
|
29018
|
-
optAddMaps: {},
|
|
29019
|
-
optGroupKeyMaps: {},
|
|
29020
|
-
optFullValMaps: {},
|
|
29021
|
-
remoteValMaps: {},
|
|
29022
|
-
lastScrollLeft: 0,
|
|
29023
|
-
lastScrollTop: 0,
|
|
29024
|
-
scrollYStore: {
|
|
29025
|
-
startIndex: 0,
|
|
29026
|
-
endIndex: 0,
|
|
29027
|
-
visibleSize: 0,
|
|
29028
|
-
offsetSize: 0,
|
|
29029
|
-
rowHeight: 0
|
|
29030
|
-
},
|
|
29031
|
-
lastScrollTime: 0,
|
|
29032
|
-
hpTimeout: undefined
|
|
29033
|
-
};
|
|
29143
|
+
const internalData = select_createInternalData();
|
|
29034
29144
|
const refMaps = {
|
|
29035
29145
|
refElem
|
|
29036
29146
|
};
|
|
@@ -30413,6 +30523,7 @@ function getOptUniqueId() {
|
|
|
30413
30523
|
globalEvents.off($xeSelect, 'keydown');
|
|
30414
30524
|
globalEvents.off($xeSelect, 'blur');
|
|
30415
30525
|
globalEvents.off($xeSelect, 'resize');
|
|
30526
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, select_createInternalData());
|
|
30416
30527
|
});
|
|
30417
30528
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeSelect', $xeSelect);
|
|
30418
30529
|
$xeSelect.renderVN = renderVN;
|
|
@@ -37771,6 +37882,31 @@ function calcTreeLine($xeTree, node, prevNode) {
|
|
|
37771
37882
|
function getNodeUniqueId() {
|
|
37772
37883
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('node_');
|
|
37773
37884
|
}
|
|
37885
|
+
function tree_createInternalData() {
|
|
37886
|
+
return {
|
|
37887
|
+
// initialized: false,
|
|
37888
|
+
// lastFilterValue: '',
|
|
37889
|
+
treeFullData: [],
|
|
37890
|
+
afterTreeList: [],
|
|
37891
|
+
afterVisibleList: [],
|
|
37892
|
+
nodeMaps: {},
|
|
37893
|
+
selectCheckboxMaps: {},
|
|
37894
|
+
indeterminateRowMaps: {},
|
|
37895
|
+
treeExpandedMaps: {},
|
|
37896
|
+
treeExpandLazyLoadedMaps: {},
|
|
37897
|
+
lastScrollLeft: 0,
|
|
37898
|
+
lastScrollTop: 0,
|
|
37899
|
+
scrollYStore: {
|
|
37900
|
+
startIndex: 0,
|
|
37901
|
+
endIndex: 0,
|
|
37902
|
+
visibleSize: 0,
|
|
37903
|
+
offsetSize: 0,
|
|
37904
|
+
rowHeight: 0
|
|
37905
|
+
},
|
|
37906
|
+
lastScrollTime: 0
|
|
37907
|
+
// hpTimeout: undefined
|
|
37908
|
+
};
|
|
37909
|
+
}
|
|
37774
37910
|
/* harmony default export */ var tree = (defineVxeComponent({
|
|
37775
37911
|
name: 'VxeTree',
|
|
37776
37912
|
props: {
|
|
@@ -37912,29 +38048,7 @@ function getNodeUniqueId() {
|
|
|
37912
38048
|
updateExpandedFlag: 1,
|
|
37913
38049
|
updateCheckboxFlag: 1
|
|
37914
38050
|
});
|
|
37915
|
-
const internalData =
|
|
37916
|
-
// initialized: false,
|
|
37917
|
-
// lastFilterValue: '',
|
|
37918
|
-
treeFullData: [],
|
|
37919
|
-
afterTreeList: [],
|
|
37920
|
-
afterVisibleList: [],
|
|
37921
|
-
nodeMaps: {},
|
|
37922
|
-
selectCheckboxMaps: {},
|
|
37923
|
-
indeterminateRowMaps: {},
|
|
37924
|
-
treeExpandedMaps: {},
|
|
37925
|
-
treeExpandLazyLoadedMaps: {},
|
|
37926
|
-
lastScrollLeft: 0,
|
|
37927
|
-
lastScrollTop: 0,
|
|
37928
|
-
scrollYStore: {
|
|
37929
|
-
startIndex: 0,
|
|
37930
|
-
endIndex: 0,
|
|
37931
|
-
visibleSize: 0,
|
|
37932
|
-
offsetSize: 0,
|
|
37933
|
-
rowHeight: 0
|
|
37934
|
-
},
|
|
37935
|
-
lastScrollTime: 0
|
|
37936
|
-
// hpTimeout: undefined
|
|
37937
|
-
};
|
|
38051
|
+
const internalData = tree_createInternalData();
|
|
37938
38052
|
const refMaps = {
|
|
37939
38053
|
refElem
|
|
37940
38054
|
};
|
|
@@ -38613,7 +38727,7 @@ function getNodeUniqueId() {
|
|
|
38613
38727
|
}
|
|
38614
38728
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
38615
38729
|
};
|
|
38616
|
-
const loadYData =
|
|
38730
|
+
const loadYData = () => {
|
|
38617
38731
|
const {
|
|
38618
38732
|
scrollYStore
|
|
38619
38733
|
} = internalData;
|
|
@@ -38624,7 +38738,10 @@ function getNodeUniqueId() {
|
|
|
38624
38738
|
offsetSize,
|
|
38625
38739
|
rowHeight
|
|
38626
38740
|
} = scrollYStore;
|
|
38627
|
-
const scrollBodyElem =
|
|
38741
|
+
const scrollBodyElem = refVirtualWrapper.value;
|
|
38742
|
+
if (!scrollBodyElem) {
|
|
38743
|
+
return;
|
|
38744
|
+
}
|
|
38628
38745
|
const scrollTop = scrollBodyElem.scrollTop;
|
|
38629
38746
|
const toVisibleIndex = Math.floor(scrollTop / rowHeight);
|
|
38630
38747
|
const offsetStartIndex = Math.max(0, toVisibleIndex - 1 - offsetSize);
|
|
@@ -38646,7 +38763,7 @@ function getNodeUniqueId() {
|
|
|
38646
38763
|
internalData.lastScrollTop = scrollTop;
|
|
38647
38764
|
internalData.lastScrollLeft = scrollLeft;
|
|
38648
38765
|
if (reactData.scrollYLoad) {
|
|
38649
|
-
loadYData(
|
|
38766
|
+
loadYData();
|
|
38650
38767
|
}
|
|
38651
38768
|
internalData.lastScrollTime = Date.now();
|
|
38652
38769
|
dispatchEvent('scroll', {
|
|
@@ -39411,6 +39528,10 @@ function getNodeUniqueId() {
|
|
|
39411
39528
|
transform
|
|
39412
39529
|
} = props;
|
|
39413
39530
|
const {
|
|
39531
|
+
scrollYLoad
|
|
39532
|
+
} = reactData;
|
|
39533
|
+
const {
|
|
39534
|
+
scrollYStore,
|
|
39414
39535
|
treeExpandedMaps
|
|
39415
39536
|
} = internalData;
|
|
39416
39537
|
const childrenField = computeChildrenField.value;
|
|
@@ -39430,9 +39551,17 @@ function getNodeUniqueId() {
|
|
|
39430
39551
|
internalData.treeExpandedMaps = {};
|
|
39431
39552
|
}
|
|
39432
39553
|
reactData.updateExpandedFlag++;
|
|
39554
|
+
reactData.topSpaceHeight = 0;
|
|
39555
|
+
scrollYStore.startIndex = 0;
|
|
39556
|
+
scrollYStore.endIndex = 1;
|
|
39433
39557
|
handleTreeToList();
|
|
39434
39558
|
handleData();
|
|
39435
|
-
return recalculate()
|
|
39559
|
+
return recalculate().then(() => {
|
|
39560
|
+
if (scrollYLoad) {
|
|
39561
|
+
loadYData();
|
|
39562
|
+
}
|
|
39563
|
+
return recalculate();
|
|
39564
|
+
});
|
|
39436
39565
|
},
|
|
39437
39566
|
reloadExpandNode(node) {
|
|
39438
39567
|
const {
|
|
@@ -39908,10 +40037,8 @@ function getNodeUniqueId() {
|
|
|
39908
40037
|
if (resizeObserver) {
|
|
39909
40038
|
resizeObserver.disconnect();
|
|
39910
40039
|
}
|
|
39911
|
-
internalData.treeExpandedMaps = {};
|
|
39912
|
-
internalData.indeterminateRowMaps = {};
|
|
39913
|
-
internalData.nodeMaps = {};
|
|
39914
40040
|
globalEvents.off($xeTree, 'resize');
|
|
40041
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, tree_createInternalData());
|
|
39915
40042
|
});
|
|
39916
40043
|
loadData(props.data || []);
|
|
39917
40044
|
$xeTree.renderVN = renderVN;
|
|
@@ -39949,6 +40076,13 @@ const Tree = VxeTree;
|
|
|
39949
40076
|
function tree_select_getOptUniqueId() {
|
|
39950
40077
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('node_');
|
|
39951
40078
|
}
|
|
40079
|
+
function tree_select_createInternalData() {
|
|
40080
|
+
return {
|
|
40081
|
+
// hpTimeout: undefined,
|
|
40082
|
+
fullOptionList: [],
|
|
40083
|
+
fullNodeMaps: {}
|
|
40084
|
+
};
|
|
40085
|
+
}
|
|
39952
40086
|
/* harmony default export */ var tree_select = (defineVxeComponent({
|
|
39953
40087
|
name: 'VxeTreeSelect',
|
|
39954
40088
|
props: {
|
|
@@ -40048,11 +40182,7 @@ function tree_select_getOptUniqueId() {
|
|
|
40048
40182
|
isAniVisible: false,
|
|
40049
40183
|
isActivated: false
|
|
40050
40184
|
});
|
|
40051
|
-
const internalData =
|
|
40052
|
-
// hpTimeout: undefined,
|
|
40053
|
-
fullOptionList: [],
|
|
40054
|
-
fullNodeMaps: {}
|
|
40055
|
-
};
|
|
40185
|
+
const internalData = tree_select_createInternalData();
|
|
40056
40186
|
const refMaps = {
|
|
40057
40187
|
refElem
|
|
40058
40188
|
};
|
|
@@ -40773,6 +40903,7 @@ function tree_select_getOptUniqueId() {
|
|
|
40773
40903
|
globalEvents.off($xeTreeSelect, 'mousedown');
|
|
40774
40904
|
globalEvents.off($xeTreeSelect, 'blur');
|
|
40775
40905
|
globalEvents.off($xeTreeSelect, 'resize');
|
|
40906
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, tree_select_createInternalData());
|
|
40776
40907
|
});
|
|
40777
40908
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTreeSelect', $xeTreeSelect);
|
|
40778
40909
|
$xeTreeSelect.renderVN = renderVN;
|
|
@@ -43084,7 +43215,8 @@ const Watermark = VxeWatermark;
|
|
|
43084
43215
|
|
|
43085
43216
|
|
|
43086
43217
|
|
|
43087
|
-
|
|
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];
|
|
43088
43220
|
function install(app, options) {
|
|
43089
43221
|
setConfig(options);
|
|
43090
43222
|
components_components.forEach(component => app.use(component));
|
|
@@ -43182,6 +43314,7 @@ const readFile = readLocalFile;
|
|
|
43182
43314
|
|
|
43183
43315
|
|
|
43184
43316
|
|
|
43317
|
+
|
|
43185
43318
|
|
|
43186
43319
|
|
|
43187
43320
|
;// CONCATENATED MODULE: ./index.ts
|