vxe-pc-ui 4.16.26 → 4.16.27
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 +57 -21
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +6 -0
- package/es/list/src/list.js +14 -8
- package/es/number-input/src/number-input.js +4 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/textarea/src/textarea.js +6 -0
- package/es/tree/src/tree.js +17 -11
- package/es/tree-select/src/tree-select.js +8 -0
- package/es/tree-select/style.css +6 -0
- package/es/tree-select/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-tree-select/style.css +6 -0
- package/es/vxe-tree-select/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +65 -34
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +6 -0
- package/lib/input/src/input.min.js +1 -1
- package/lib/list/src/list.js +18 -14
- package/lib/list/src/list.min.js +1 -1
- package/lib/number-input/src/number-input.js +4 -0
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/textarea/src/textarea.js +5 -0
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/tree/src/tree.js +20 -18
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +10 -0
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/tree-select/style/style.css +6 -0
- package/lib/tree-select/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-tree-select/style/style.css +6 -0
- package/lib/vxe-tree-select/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/input/src/input.ts +6 -0
- package/packages/list/src/list.ts +14 -8
- package/packages/number-input/src/number-input.ts +4 -0
- package/packages/textarea/src/textarea.ts +5 -0
- package/packages/tree/src/tree.ts +17 -11
- package/packages/tree-select/src/tree-select.ts +8 -0
- package/styles/components/tree-select.scss +7 -0
- package/types/components/grid.d.ts +176 -0
- package/types/components/tree-select.d.ts +6 -1
- /package/es/icon/{iconfont.1785912579396.ttf → iconfont.1785940507447.ttf} +0 -0
- /package/es/icon/{iconfont.1785912579396.woff → iconfont.1785940507447.woff} +0 -0
- /package/es/icon/{iconfont.1785912579396.woff2 → iconfont.1785940507447.woff2} +0 -0
- /package/es/{iconfont.1785912579396.ttf → iconfont.1785940507447.ttf} +0 -0
- /package/es/{iconfont.1785912579396.woff → iconfont.1785940507447.woff} +0 -0
- /package/es/{iconfont.1785912579396.woff2 → iconfont.1785940507447.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1785912579396.ttf → iconfont.1785940507447.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1785912579396.woff → iconfont.1785940507447.woff} +0 -0
- /package/lib/icon/style/{iconfont.1785912579396.woff2 → iconfont.1785940507447.woff2} +0 -0
- /package/lib/{iconfont.1785912579396.ttf → iconfont.1785940507447.ttf} +0 -0
- /package/lib/{iconfont.1785912579396.woff → iconfont.1785940507447.woff} +0 -0
- /package/lib/{iconfont.1785912579396.woff2 → iconfont.1785940507447.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4657,7 +4657,7 @@ function checkDynamic() {
|
|
|
4657
4657
|
const {
|
|
4658
4658
|
log: log_log
|
|
4659
4659
|
} = VxeUI;
|
|
4660
|
-
const uiVersion = `ui v${"4.16.
|
|
4660
|
+
const uiVersion = `ui v${"4.16.27"}`;
|
|
4661
4661
|
function createComponentLog(name) {
|
|
4662
4662
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4663
4663
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4675,7 +4675,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4675
4675
|
|
|
4676
4676
|
|
|
4677
4677
|
|
|
4678
|
-
const ui_version = "4.16.
|
|
4678
|
+
const ui_version = "4.16.27";
|
|
4679
4679
|
VxeUI.uiVersion = ui_version;
|
|
4680
4680
|
VxeUI.dynamicApp = dynamicApp;
|
|
4681
4681
|
function config(options) {
|
|
@@ -14124,14 +14124,13 @@ let crossListDragRowObj = null;
|
|
|
14124
14124
|
}
|
|
14125
14125
|
return renderEmptyElement($xeList);
|
|
14126
14126
|
};
|
|
14127
|
-
const renderRadio = (row, rowid, isChecked) => {
|
|
14127
|
+
const renderRadio = (row, rowid, isDisabled, isChecked) => {
|
|
14128
14128
|
const {
|
|
14129
14129
|
showRadio
|
|
14130
14130
|
} = props;
|
|
14131
14131
|
const radioOpts = computeRadioOpts.value;
|
|
14132
14132
|
const {
|
|
14133
14133
|
showIcon,
|
|
14134
|
-
checkMethod,
|
|
14135
14134
|
visibleMethod
|
|
14136
14135
|
} = radioOpts;
|
|
14137
14136
|
const isVisible = !visibleMethod || visibleMethod({
|
|
@@ -14139,10 +14138,6 @@ let crossListDragRowObj = null;
|
|
|
14139
14138
|
row
|
|
14140
14139
|
});
|
|
14141
14140
|
if (showRadio && showIcon && isVisible) {
|
|
14142
|
-
const isDisabled = checkMethod ? !checkMethod({
|
|
14143
|
-
$list: $xeList,
|
|
14144
|
-
row
|
|
14145
|
-
}) : false;
|
|
14146
14141
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
14147
14142
|
key: 'ct2',
|
|
14148
14143
|
class: ['vxe-list--radio-option', {
|
|
@@ -14160,14 +14155,13 @@ let crossListDragRowObj = null;
|
|
|
14160
14155
|
}
|
|
14161
14156
|
return renderEmptyElement($xeList);
|
|
14162
14157
|
};
|
|
14163
|
-
const renderCheckbox = (row, rowid, isChecked) => {
|
|
14158
|
+
const renderCheckbox = (row, rowid, isDisabled, isChecked) => {
|
|
14164
14159
|
const {
|
|
14165
14160
|
showCheckbox
|
|
14166
14161
|
} = props;
|
|
14167
14162
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
14168
14163
|
const {
|
|
14169
14164
|
showIcon,
|
|
14170
|
-
checkMethod,
|
|
14171
14165
|
visibleMethod
|
|
14172
14166
|
} = checkboxOpts;
|
|
14173
14167
|
const isVisible = !visibleMethod || visibleMethod({
|
|
@@ -14175,10 +14169,6 @@ let crossListDragRowObj = null;
|
|
|
14175
14169
|
row
|
|
14176
14170
|
});
|
|
14177
14171
|
if (showCheckbox && showIcon && isVisible) {
|
|
14178
|
-
const isDisabled = checkMethod ? !checkMethod({
|
|
14179
|
-
$list: $xeList,
|
|
14180
|
-
row
|
|
14181
|
-
}) : false;
|
|
14182
14172
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
14183
14173
|
key: 'ct3',
|
|
14184
14174
|
class: ['vxe-list--checkbox-option', {
|
|
@@ -14219,6 +14209,8 @@ let crossListDragRowObj = null;
|
|
|
14219
14209
|
disabledMethod,
|
|
14220
14210
|
visibleMethod
|
|
14221
14211
|
} = dragOpts;
|
|
14212
|
+
const radioOpts = computeRadioOpts.value;
|
|
14213
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
14222
14214
|
const rowOpts = computeRowOpts.value;
|
|
14223
14215
|
const {
|
|
14224
14216
|
useKey,
|
|
@@ -14237,19 +14229,29 @@ let crossListDragRowObj = null;
|
|
|
14237
14229
|
$list: $xeList
|
|
14238
14230
|
};
|
|
14239
14231
|
let isRadioChecked = false;
|
|
14232
|
+
let isRadioDisabled = false;
|
|
14240
14233
|
if (showRadio) {
|
|
14241
14234
|
isRadioChecked = selectRadioRow && (row === selectRadioRow || eqRowByKey(selectRadioRow, rowKey));
|
|
14235
|
+
isRadioDisabled = radioOpts.checkMethod ? !radioOpts.checkMethod({
|
|
14236
|
+
$list: $xeList,
|
|
14237
|
+
row
|
|
14238
|
+
}) : false;
|
|
14242
14239
|
}
|
|
14243
14240
|
let isCheckboxChecked = false;
|
|
14241
|
+
let isCheckboxDisabled = false;
|
|
14244
14242
|
if (showCheckbox) {
|
|
14245
14243
|
isCheckboxChecked = !!(updateCheckboxFlag && selectCheckboxMaps[rowid]);
|
|
14244
|
+
isCheckboxDisabled = checkboxOpts.checkMethod ? !checkboxOpts.checkMethod({
|
|
14245
|
+
$list: $xeList,
|
|
14246
|
+
row
|
|
14247
|
+
}) : false;
|
|
14246
14248
|
}
|
|
14247
14249
|
const ctVNs = [];
|
|
14248
14250
|
if (showRadio) {
|
|
14249
|
-
ctVNs.push(renderRadio(row, rowid, isRadioChecked));
|
|
14251
|
+
ctVNs.push(renderRadio(row, rowid, isRadioDisabled, isRadioChecked));
|
|
14250
14252
|
}
|
|
14251
14253
|
if (showCheckbox) {
|
|
14252
|
-
ctVNs.push(renderCheckbox(row, rowid, isCheckboxChecked));
|
|
14254
|
+
ctVNs.push(renderCheckbox(row, rowid, isCheckboxDisabled, isCheckboxChecked));
|
|
14253
14255
|
}
|
|
14254
14256
|
let isDragDisabled = false;
|
|
14255
14257
|
if (isDrag && keyField && (!visibleMethod || visibleMethod(rowParams))) {
|
|
@@ -14309,7 +14311,9 @@ let crossListDragRowObj = null;
|
|
|
14309
14311
|
class: ['vxe-list--row', isRowFnCls ? rowClassName(rowParams) : rowClassName || '', {
|
|
14310
14312
|
'is--drag-disabled': isDragDisabled,
|
|
14311
14313
|
'is--current': currRowFlag && currentRow && eqRowByKey(currentRow, rowKey),
|
|
14314
|
+
'is-radio--disabled': isRadioDisabled,
|
|
14312
14315
|
'is-radio--checked': isRadioChecked,
|
|
14316
|
+
'is-checkbox--disabled': isCheckboxDisabled,
|
|
14313
14317
|
'is-checkbox--checked': isCheckboxChecked
|
|
14314
14318
|
}],
|
|
14315
14319
|
rowid: hasKey && keyField ? rowid : undefined,
|
|
@@ -15443,6 +15447,12 @@ const {
|
|
|
15443
15447
|
inputMethods.dispatchEvent('input', {
|
|
15444
15448
|
value
|
|
15445
15449
|
}, evnt);
|
|
15450
|
+
if (!$xeSelect && !$xeTreeSelect) {
|
|
15451
|
+
// 自动更新校验状态
|
|
15452
|
+
if ($xeForm && formItemInfo) {
|
|
15453
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
15454
|
+
}
|
|
15455
|
+
}
|
|
15446
15456
|
}
|
|
15447
15457
|
}
|
|
15448
15458
|
};
|
|
@@ -21665,6 +21675,10 @@ function hexToRgb(str) {
|
|
|
21665
21675
|
numberInputMethods.dispatchEvent('input', {
|
|
21666
21676
|
value
|
|
21667
21677
|
}, evnt);
|
|
21678
|
+
// 自动更新校验状态
|
|
21679
|
+
if ($xeForm && formItemInfo) {
|
|
21680
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
21681
|
+
}
|
|
21668
21682
|
}
|
|
21669
21683
|
};
|
|
21670
21684
|
const inputEvent = evnt => {
|
|
@@ -49556,6 +49570,11 @@ let autoTxtElem;
|
|
|
49556
49570
|
reactData.inputValue = value;
|
|
49557
49571
|
if (immediate) {
|
|
49558
49572
|
handleChange(value, evnt);
|
|
49573
|
+
} else {
|
|
49574
|
+
// 自动更新校验状态
|
|
49575
|
+
if ($xeForm && formItemInfo) {
|
|
49576
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
49577
|
+
}
|
|
49559
49578
|
}
|
|
49560
49579
|
$xeTextarea.dispatchEvent('input', {
|
|
49561
49580
|
value
|
|
@@ -53650,15 +53669,13 @@ let crossTreeDragNodeObj = null;
|
|
|
53650
53669
|
}
|
|
53651
53670
|
return true;
|
|
53652
53671
|
};
|
|
53653
|
-
const renderRadio = (node, nodeid, isExistChild, nLevel, isChecked) => {
|
|
53672
|
+
const renderRadio = (node, nodeid, isExistChild, nLevel, isDisabled, isChecked) => {
|
|
53654
53673
|
const {
|
|
53655
53674
|
showRadio
|
|
53656
53675
|
} = props;
|
|
53657
53676
|
const radioOpts = computeRadioOpts.value;
|
|
53658
53677
|
const {
|
|
53659
53678
|
showIcon,
|
|
53660
|
-
checkMode,
|
|
53661
|
-
checkMethod,
|
|
53662
53679
|
visibleMode,
|
|
53663
53680
|
visibleMethod
|
|
53664
53681
|
} = radioOpts;
|
|
@@ -53667,10 +53684,6 @@ let crossTreeDragNodeObj = null;
|
|
|
53667
53684
|
node
|
|
53668
53685
|
}) : handleVisibleOrCheckMode(visibleMode, isExistChild, nLevel);
|
|
53669
53686
|
if (showRadio && showIcon && isVisible) {
|
|
53670
|
-
const isDisabled = checkMethod ? !checkMethod({
|
|
53671
|
-
$tree: $xeTree,
|
|
53672
|
-
node
|
|
53673
|
-
}) : !handleVisibleOrCheckMode(checkMode, isExistChild, nLevel);
|
|
53674
53687
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
53675
53688
|
class: ['vxe-tree--radio-option', {
|
|
53676
53689
|
'is--checked': isChecked,
|
|
@@ -53687,15 +53700,13 @@ let crossTreeDragNodeObj = null;
|
|
|
53687
53700
|
}
|
|
53688
53701
|
return renderEmptyElement($xeTree);
|
|
53689
53702
|
};
|
|
53690
|
-
const renderCheckbox = (node, nodeid, isExistChild, nLevel, isChecked, isIndeterminate) => {
|
|
53703
|
+
const renderCheckbox = (node, nodeid, isExistChild, nLevel, isDisabled, isChecked, isIndeterminate) => {
|
|
53691
53704
|
const {
|
|
53692
53705
|
showCheckbox
|
|
53693
53706
|
} = props;
|
|
53694
53707
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
53695
53708
|
const {
|
|
53696
53709
|
showIcon,
|
|
53697
|
-
checkMode,
|
|
53698
|
-
checkMethod,
|
|
53699
53710
|
visibleMode,
|
|
53700
53711
|
visibleMethod
|
|
53701
53712
|
} = checkboxOpts;
|
|
@@ -53704,10 +53715,6 @@ let crossTreeDragNodeObj = null;
|
|
|
53704
53715
|
node
|
|
53705
53716
|
}) : handleVisibleOrCheckMode(visibleMode, isExistChild, nLevel);
|
|
53706
53717
|
if (showCheckbox && showIcon && isVisible) {
|
|
53707
|
-
const isDisabled = checkMethod ? !checkMethod({
|
|
53708
|
-
$tree: $xeTree,
|
|
53709
|
-
node
|
|
53710
|
-
}) : !handleVisibleOrCheckMode(checkMode, isExistChild, nLevel);
|
|
53711
53718
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
53712
53719
|
class: ['vxe-tree--checkbox-option', {
|
|
53713
53720
|
'is--checked': isChecked,
|
|
@@ -53754,6 +53761,8 @@ let crossTreeDragNodeObj = null;
|
|
|
53754
53761
|
const {
|
|
53755
53762
|
mode: tipMode
|
|
53756
53763
|
} = tooltipOpts;
|
|
53764
|
+
const radioOpts = computeRadioOpts.value;
|
|
53765
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
53757
53766
|
const childrenField = computeChildrenField.value;
|
|
53758
53767
|
const titleField = computeTitleField.value;
|
|
53759
53768
|
const hasChildField = computeHasChildField.value;
|
|
@@ -53767,14 +53776,24 @@ let crossTreeDragNodeObj = null;
|
|
|
53767
53776
|
const nodeTitle = getText(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(node, titleField));
|
|
53768
53777
|
const nLevel = nodeItem.level;
|
|
53769
53778
|
let isRadioChecked = false;
|
|
53779
|
+
let isRadioDisabled = false;
|
|
53770
53780
|
if (showRadio) {
|
|
53771
53781
|
isRadioChecked = nodeid === String(selectRadioKey);
|
|
53782
|
+
isRadioDisabled = radioOpts.checkMethod ? !radioOpts.checkMethod({
|
|
53783
|
+
$tree: $xeTree,
|
|
53784
|
+
node
|
|
53785
|
+
}) : !handleVisibleOrCheckMode(radioOpts.checkMode, isExistChild, nLevel);
|
|
53772
53786
|
}
|
|
53773
53787
|
let isCheckboxChecked = false;
|
|
53774
|
-
let
|
|
53788
|
+
let isCheckboxIndeterminate = false;
|
|
53789
|
+
let isCheckboxDisabled = false;
|
|
53775
53790
|
if (showCheckbox) {
|
|
53776
53791
|
isCheckboxChecked = isCheckedByCheckboxNodeId(nodeid);
|
|
53777
|
-
|
|
53792
|
+
isCheckboxIndeterminate = isIndeterminateByCheckboxNodeid(nodeid);
|
|
53793
|
+
isCheckboxDisabled = checkboxOpts.checkMethod ? !checkboxOpts.checkMethod({
|
|
53794
|
+
$tree: $xeTree,
|
|
53795
|
+
node
|
|
53796
|
+
}) : !handleVisibleOrCheckMode(checkboxOpts.checkMode, isExistChild, nLevel);
|
|
53778
53797
|
}
|
|
53779
53798
|
let hasLazyChilds = false;
|
|
53780
53799
|
let isLazyLoading = false;
|
|
@@ -53826,9 +53845,11 @@ let crossTreeDragNodeObj = null;
|
|
|
53826
53845
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
53827
53846
|
class: ['vxe-tree--node-item', {
|
|
53828
53847
|
'is--current': currentNode && nodeid === getNodeId(currentNode),
|
|
53848
|
+
'is-radio--disabled': isRadioDisabled,
|
|
53829
53849
|
'is-radio--checked': isRadioChecked,
|
|
53850
|
+
'is-checkbox--disabled': isCheckboxDisabled,
|
|
53830
53851
|
'is-checkbox--checked': isCheckboxChecked,
|
|
53831
|
-
'is-checkbox--indeterminate':
|
|
53852
|
+
'is-checkbox--indeterminate': isCheckboxIndeterminate
|
|
53832
53853
|
}]
|
|
53833
53854
|
}, [showLine ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
53834
53855
|
class: 'vxe-tree--node-line-wrapper'
|
|
@@ -53846,7 +53867,7 @@ let crossTreeDragNodeObj = null;
|
|
|
53846
53867
|
}
|
|
53847
53868
|
}, iconSlot ? vn_getSlotVNs(iconSlot(nParams)) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
53848
53869
|
class: isLazyLoading ? iconLoaded || tree_getIcon().TREE_NODE_LOADED : isExpand ? iconOpen || tree_getIcon().TREE_NODE_OPEN : iconClose || tree_getIcon().TREE_NODE_CLOSE
|
|
53849
|
-
})])] : []), renderRadio(node, nodeid, isExistChild, nLevel, isRadioChecked), renderCheckbox(node, nodeid, isExistChild, nLevel, isCheckboxChecked,
|
|
53870
|
+
})])] : []), renderRadio(node, nodeid, isExistChild, nLevel, isRadioDisabled, isRadioChecked), renderCheckbox(node, nodeid, isExistChild, nLevel, isCheckboxDisabled, isCheckboxChecked, isCheckboxIndeterminate), renderDragIcon(node, nodeid), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
53850
53871
|
class: 'vxe-tree--node-item-inner'
|
|
53851
53872
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
53852
53873
|
class: 'vxe-tree--node-item-wrapper'
|
|
@@ -54664,6 +54685,7 @@ function tree_select_createInternalData() {
|
|
|
54664
54685
|
const popupOpts = computePopupOpts.value;
|
|
54665
54686
|
const handleStyle = () => {
|
|
54666
54687
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
54688
|
+
isMinWidth: !popupOpts.width,
|
|
54667
54689
|
placement: popupOpts.placement || placement,
|
|
54668
54690
|
defaultPlacement: popupOpts.defaultPlacement,
|
|
54669
54691
|
teleportTo: btnTransfer
|
|
@@ -54713,6 +54735,15 @@ function tree_select_createInternalData() {
|
|
|
54713
54735
|
}
|
|
54714
54736
|
};
|
|
54715
54737
|
const hideOptionPanel = evnt => {
|
|
54738
|
+
const {
|
|
54739
|
+
filterable
|
|
54740
|
+
} = props;
|
|
54741
|
+
const filterOpts = computeFilterOpts.value;
|
|
54742
|
+
if (filterable) {
|
|
54743
|
+
if (filterOpts.clearOnClose) {
|
|
54744
|
+
reactData.searchValue = '';
|
|
54745
|
+
}
|
|
54746
|
+
}
|
|
54716
54747
|
reactData.visiblePanel = false;
|
|
54717
54748
|
internalData.hpTimeout = setTimeout(() => {
|
|
54718
54749
|
reactData.isAniVisible = false;
|