mali-ui-plus 1.0.151 → 1.0.152
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/lib/mali-ui-plus.common.js +261 -93
- package/lib/mali-ui-plus.umd.js +261 -93
- package/lib/mali-ui-plus.umd.min.js +14 -14
- package/package.json +1 -1
- package/types/export/index.d.ts +5 -0
- package/types/index.d.ts +3 -0
|
@@ -10765,7 +10765,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10765
10765
|
"default": function() { return /* binding */ entry_lib; }
|
|
10766
10766
|
});
|
|
10767
10767
|
|
|
10768
|
-
// UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliPermission, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlChunkStatistics, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlImageSwiper, MlInput, MlInvoiceType, MlModal, MlNotData, MlNumberInput, MlPager, MlPasswordInput, MlPopover, MlProvincesPicker, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextEllipsis, MlTextarea, MlTooltip, MlTree, MlTreeSelect, MlUpload, MlWeekPicker, components
|
|
10768
|
+
// UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliPermission, MaliStorage, MaliToast, MaliUI, MaliUtils, MaliXlsx, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlChunkStatistics, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlImageSwiper, MlInput, MlInvoiceType, MlModal, MlNotData, MlNumberInput, MlPager, MlPasswordInput, MlPopover, MlProvincesPicker, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSelectInput, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextEllipsis, MlTextarea, MlTooltip, MlTree, MlTreeSelect, MlUpload, MlWeekPicker, components
|
|
10769
10769
|
|
|
10770
10770
|
// NAMESPACE OBJECT: ./node_modules/vxe-table/es/all.js
|
|
10771
10771
|
var all_namespaceObject = {};
|
|
@@ -40362,6 +40362,111 @@ const MlInputvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
|
40362
40362
|
const MlInput_exports_ = MlInputvue_type_script_lang_ts_setup_true;
|
|
40363
40363
|
|
|
40364
40364
|
/* harmony default export */ var MlInput = (MlInput_exports_);
|
|
40365
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-search-input/MlSearchInput.vue?vue&type=script&lang=ts&setup=true
|
|
40366
|
+
|
|
40367
|
+
|
|
40368
|
+
const MlSearchInputvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
40369
|
+
key: 0,
|
|
40370
|
+
class: "ml-search-input is-readonly"
|
|
40371
|
+
};
|
|
40372
|
+
const _hoisted_2 = {
|
|
40373
|
+
key: 1,
|
|
40374
|
+
class: "ml-search-input"
|
|
40375
|
+
};
|
|
40376
|
+
|
|
40377
|
+
|
|
40378
|
+
/* harmony default export */ var MlSearchInputvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
40379
|
+
__name: 'MlSearchInput',
|
|
40380
|
+
props: {
|
|
40381
|
+
modelValue: {
|
|
40382
|
+
type: [String, Number],
|
|
40383
|
+
default: ''
|
|
40384
|
+
},
|
|
40385
|
+
maxLength: {
|
|
40386
|
+
type: [Number, String],
|
|
40387
|
+
default: 100
|
|
40388
|
+
},
|
|
40389
|
+
placeholder: {
|
|
40390
|
+
type: String,
|
|
40391
|
+
default: '请输入'
|
|
40392
|
+
},
|
|
40393
|
+
clearable: {
|
|
40394
|
+
type: Boolean,
|
|
40395
|
+
default: false
|
|
40396
|
+
},
|
|
40397
|
+
readonly: {
|
|
40398
|
+
type: Boolean,
|
|
40399
|
+
default: null
|
|
40400
|
+
},
|
|
40401
|
+
disabled: {
|
|
40402
|
+
type: Boolean,
|
|
40403
|
+
default: false
|
|
40404
|
+
}
|
|
40405
|
+
},
|
|
40406
|
+
emits: ["update:modelValue", "change", "search"],
|
|
40407
|
+
setup(__props, {
|
|
40408
|
+
emit
|
|
40409
|
+
}) {
|
|
40410
|
+
const props = __props;
|
|
40411
|
+
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
40412
|
+
const inpVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
40413
|
+
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
40414
|
+
if (props.readonly === null) {
|
|
40415
|
+
return $xeform ? $xeform.props.readonly : false;
|
|
40416
|
+
}
|
|
40417
|
+
return props.readonly;
|
|
40418
|
+
});
|
|
40419
|
+
const changeEvent = () => {
|
|
40420
|
+
const value = inpVal.value;
|
|
40421
|
+
emit('update:modelValue', value);
|
|
40422
|
+
emit('change', {
|
|
40423
|
+
value
|
|
40424
|
+
});
|
|
40425
|
+
};
|
|
40426
|
+
const searchEvent = () => {
|
|
40427
|
+
const value = inpVal.value;
|
|
40428
|
+
emit('search', {
|
|
40429
|
+
value
|
|
40430
|
+
});
|
|
40431
|
+
};
|
|
40432
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
40433
|
+
inpVal.value = xe_utils_default().toValueString(val);
|
|
40434
|
+
});
|
|
40435
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
40436
|
+
inpVal.value = xe_utils_default().toValueString(props.modelValue);
|
|
40437
|
+
});
|
|
40438
|
+
return (_ctx, _cache) => {
|
|
40439
|
+
const _component_MlInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlInput");
|
|
40440
|
+
const _component_MlButton = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlButton");
|
|
40441
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isReadonly) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", MlSearchInputvue_type_script_lang_ts_setup_true_hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(inpVal.value), 1)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlInput, {
|
|
40442
|
+
class: "ml-search-input-inp",
|
|
40443
|
+
modelValue: inpVal.value,
|
|
40444
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => inpVal.value = $event),
|
|
40445
|
+
placeholder: __props.placeholder,
|
|
40446
|
+
disabled: __props.disabled,
|
|
40447
|
+
readonly: __props.readonly,
|
|
40448
|
+
maxLength: __props.maxLength,
|
|
40449
|
+
allowClear: __props.clearable,
|
|
40450
|
+
onChange: changeEvent
|
|
40451
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxLength", "allowClear"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
40452
|
+
status: "primary",
|
|
40453
|
+
onClick: searchEvent
|
|
40454
|
+
}, {
|
|
40455
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("搜索")]),
|
|
40456
|
+
_: 1
|
|
40457
|
+
})]));
|
|
40458
|
+
};
|
|
40459
|
+
}
|
|
40460
|
+
}));
|
|
40461
|
+
;// CONCATENATED MODULE: ./components/ml-search-input/MlSearchInput.vue?vue&type=script&lang=ts&setup=true
|
|
40462
|
+
|
|
40463
|
+
;// CONCATENATED MODULE: ./components/ml-search-input/MlSearchInput.vue
|
|
40464
|
+
|
|
40465
|
+
|
|
40466
|
+
|
|
40467
|
+
const MlSearchInput_exports_ = MlSearchInputvue_type_script_lang_ts_setup_true;
|
|
40468
|
+
|
|
40469
|
+
/* harmony default export */ var MlSearchInput = (MlSearchInput_exports_);
|
|
40365
40470
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-textarea/MlTextarea.vue?vue&type=script&lang=ts&setup=true
|
|
40366
40471
|
|
|
40367
40472
|
|
|
@@ -40729,111 +40834,185 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
|
|
|
40729
40834
|
const MlSelect_exports_ = MlSelectvue_type_script_lang_ts_setup_true;
|
|
40730
40835
|
|
|
40731
40836
|
/* harmony default export */ var MlSelect = (MlSelect_exports_);
|
|
40732
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-
|
|
40837
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-select-input/MlSelectInput.vue?vue&type=script&lang=ts&setup=true
|
|
40733
40838
|
|
|
40734
40839
|
|
|
40735
|
-
const
|
|
40840
|
+
const MlSelectInputvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
40736
40841
|
key: 0,
|
|
40737
|
-
class: "ml-
|
|
40842
|
+
class: "ml-select-input"
|
|
40738
40843
|
};
|
|
40739
|
-
const
|
|
40844
|
+
const MlSelectInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
40740
40845
|
key: 1,
|
|
40741
|
-
class: "ml-
|
|
40846
|
+
class: "ml-select-input"
|
|
40742
40847
|
};
|
|
40743
40848
|
|
|
40744
|
-
|
|
40745
|
-
|
|
40746
|
-
__name: 'MlSearchInput',
|
|
40849
|
+
/* harmony default export */ var MlSelectInputvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
40850
|
+
__name: 'MlSelectInput',
|
|
40747
40851
|
props: {
|
|
40748
40852
|
modelValue: {
|
|
40749
|
-
type: [
|
|
40750
|
-
default:
|
|
40853
|
+
type: [Number, String],
|
|
40854
|
+
default: null
|
|
40751
40855
|
},
|
|
40752
|
-
|
|
40856
|
+
label: {
|
|
40753
40857
|
type: [Number, String],
|
|
40754
|
-
default:
|
|
40858
|
+
default: null
|
|
40859
|
+
},
|
|
40860
|
+
inputValue: {
|
|
40861
|
+
type: [Number, String],
|
|
40862
|
+
default: -1
|
|
40863
|
+
},
|
|
40864
|
+
options: {
|
|
40865
|
+
type: Array,
|
|
40866
|
+
default: () => []
|
|
40867
|
+
},
|
|
40868
|
+
optionProps: {
|
|
40869
|
+
type: Object,
|
|
40870
|
+
default: () => ({})
|
|
40755
40871
|
},
|
|
40756
40872
|
placeholder: {
|
|
40757
40873
|
type: String,
|
|
40758
|
-
default: '
|
|
40874
|
+
default: '请选择'
|
|
40875
|
+
},
|
|
40876
|
+
readonly: {
|
|
40877
|
+
type: Boolean,
|
|
40878
|
+
default: null
|
|
40759
40879
|
},
|
|
40760
40880
|
clearable: {
|
|
40761
40881
|
type: Boolean,
|
|
40762
40882
|
default: false
|
|
40763
40883
|
},
|
|
40764
|
-
|
|
40884
|
+
multiple: {
|
|
40765
40885
|
type: Boolean,
|
|
40766
|
-
default:
|
|
40886
|
+
default: false
|
|
40767
40887
|
},
|
|
40768
40888
|
disabled: {
|
|
40769
40889
|
type: Boolean,
|
|
40770
40890
|
default: false
|
|
40891
|
+
},
|
|
40892
|
+
transfer: {
|
|
40893
|
+
type: Boolean,
|
|
40894
|
+
default: true
|
|
40771
40895
|
}
|
|
40772
40896
|
},
|
|
40773
|
-
emits: ["update:modelValue", "
|
|
40897
|
+
emits: ["update:modelValue", "update:label", "select", "change"],
|
|
40774
40898
|
setup(__props, {
|
|
40775
40899
|
emit
|
|
40776
40900
|
}) {
|
|
40777
40901
|
const props = __props;
|
|
40778
40902
|
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
40779
|
-
const
|
|
40903
|
+
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
40904
|
+
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
40905
|
+
const inpValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
40906
|
+
const dataList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
40780
40907
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
40781
40908
|
if (props.readonly === null) {
|
|
40782
40909
|
return $xeform ? $xeform.props.readonly : false;
|
|
40783
40910
|
}
|
|
40784
40911
|
return props.readonly;
|
|
40785
40912
|
});
|
|
40786
|
-
const
|
|
40787
|
-
|
|
40913
|
+
const optOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
40914
|
+
return Object.assign({}, props.optionProps);
|
|
40915
|
+
});
|
|
40916
|
+
const optLabelField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
40917
|
+
return optOptions.value.label || 'label';
|
|
40918
|
+
});
|
|
40919
|
+
const optValueField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
40920
|
+
return optOptions.value.value || 'value';
|
|
40921
|
+
});
|
|
40922
|
+
const querySearch = (queryString, cb) => {
|
|
40923
|
+
const results = queryString ? props.options.filter(item => item[optLabelField.value].toLowerCase().indexOf(queryString.toLowerCase()) > -1) : dataList.value;
|
|
40924
|
+
cb(results);
|
|
40925
|
+
};
|
|
40926
|
+
const updateVal = () => {
|
|
40927
|
+
const option = props.options.find(item => item[optValueField.value] === props.modelValue);
|
|
40928
|
+
inpValue.value = option ? option[optLabelField.value] : props.modelValue;
|
|
40929
|
+
};
|
|
40930
|
+
const selectEvent = option => {
|
|
40931
|
+
const label = option[optLabelField.value];
|
|
40932
|
+
const value = option[optValueField.value];
|
|
40933
|
+
// 自动更新校验状态
|
|
40934
|
+
if ($xeform && $xeformiteminfo) {
|
|
40935
|
+
$xeform.triggerItemEvent(new Event('change'), $xeformiteminfo.itemConfig.field, value);
|
|
40936
|
+
if (mlForm) {
|
|
40937
|
+
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
40938
|
+
}
|
|
40939
|
+
}
|
|
40940
|
+
isUpdateModel = true;
|
|
40788
40941
|
emit('update:modelValue', value);
|
|
40942
|
+
emit('update:label', label);
|
|
40789
40943
|
emit('change', {
|
|
40790
|
-
value
|
|
40944
|
+
value,
|
|
40945
|
+
option,
|
|
40946
|
+
label
|
|
40791
40947
|
});
|
|
40948
|
+
emit('select', {
|
|
40949
|
+
value,
|
|
40950
|
+
option,
|
|
40951
|
+
label
|
|
40952
|
+
});
|
|
40953
|
+
// 值改变自动触发提交
|
|
40954
|
+
if (mlForm && mlForm.changeToSubmit) {
|
|
40955
|
+
mlForm.submit();
|
|
40956
|
+
}
|
|
40792
40957
|
};
|
|
40793
|
-
const
|
|
40794
|
-
const
|
|
40795
|
-
|
|
40796
|
-
|
|
40958
|
+
const changeEvent = () => {
|
|
40959
|
+
const label = inpValue.value;
|
|
40960
|
+
const option = props.options.find(item => item[optLabelField.value] === label);
|
|
40961
|
+
const value = option ? option[optValueField.value] : props.inputValue;
|
|
40962
|
+
// 自动更新校验状态
|
|
40963
|
+
if ($xeform && $xeformiteminfo) {
|
|
40964
|
+
$xeform.triggerItemEvent(new Event('change'), $xeformiteminfo.itemConfig.field, value);
|
|
40965
|
+
if (mlForm) {
|
|
40966
|
+
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
40967
|
+
}
|
|
40968
|
+
}
|
|
40969
|
+
isUpdateModel = true;
|
|
40970
|
+
emit('update:modelValue', value);
|
|
40971
|
+
emit('update:label', label);
|
|
40972
|
+
emit('change', {
|
|
40973
|
+
value,
|
|
40974
|
+
option,
|
|
40975
|
+
label
|
|
40797
40976
|
});
|
|
40977
|
+
// 值改变自动触发提交
|
|
40978
|
+
if (mlForm && mlForm.changeToSubmit) {
|
|
40979
|
+
mlForm.submit();
|
|
40980
|
+
}
|
|
40798
40981
|
};
|
|
40799
|
-
|
|
40800
|
-
|
|
40801
|
-
|
|
40802
|
-
|
|
40803
|
-
|
|
40982
|
+
let isUpdateModel = false;
|
|
40983
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, () => {
|
|
40984
|
+
if (!isUpdateModel) {
|
|
40985
|
+
updateVal();
|
|
40986
|
+
}
|
|
40987
|
+
isUpdateModel = false;
|
|
40804
40988
|
});
|
|
40989
|
+
updateVal();
|
|
40805
40990
|
return (_ctx, _cache) => {
|
|
40806
|
-
const
|
|
40807
|
-
|
|
40808
|
-
|
|
40809
|
-
class: "ml-
|
|
40810
|
-
modelValue:
|
|
40811
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event =>
|
|
40991
|
+
const _component_el_autocomplete = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("el-autocomplete");
|
|
40992
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isReadonly) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlSelectInputvue_type_script_lang_ts_setup_true_hoisted_1)) : __props.disabled ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlSelectInputvue_type_script_lang_ts_setup_true_hoisted_2)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_autocomplete, {
|
|
40993
|
+
key: 2,
|
|
40994
|
+
class: "ml-select-input",
|
|
40995
|
+
modelValue: inpValue.value,
|
|
40996
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => inpValue.value = $event),
|
|
40997
|
+
"value-key": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optLabelField),
|
|
40998
|
+
"fetch-suggestions": querySearch,
|
|
40812
40999
|
placeholder: __props.placeholder,
|
|
40813
|
-
disabled: __props.disabled,
|
|
40814
|
-
readonly: __props.readonly,
|
|
40815
|
-
maxLength: __props.maxLength,
|
|
40816
41000
|
allowClear: __props.clearable,
|
|
41001
|
+
onSelect: selectEvent,
|
|
40817
41002
|
onChange: changeEvent
|
|
40818
|
-
}, null, 8, ["modelValue", "
|
|
40819
|
-
status: "primary",
|
|
40820
|
-
onClick: searchEvent
|
|
40821
|
-
}, {
|
|
40822
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("搜索")]),
|
|
40823
|
-
_: 1
|
|
40824
|
-
})]));
|
|
41003
|
+
}, null, 8, ["modelValue", "value-key", "placeholder", "allowClear"]));
|
|
40825
41004
|
};
|
|
40826
41005
|
}
|
|
40827
41006
|
}));
|
|
40828
|
-
;// CONCATENATED MODULE: ./components/ml-
|
|
41007
|
+
;// CONCATENATED MODULE: ./components/ml-select-input/MlSelectInput.vue?vue&type=script&lang=ts&setup=true
|
|
40829
41008
|
|
|
40830
|
-
;// CONCATENATED MODULE: ./components/ml-
|
|
41009
|
+
;// CONCATENATED MODULE: ./components/ml-select-input/MlSelectInput.vue
|
|
40831
41010
|
|
|
40832
41011
|
|
|
40833
41012
|
|
|
40834
|
-
const
|
|
41013
|
+
const MlSelectInput_exports_ = MlSelectInputvue_type_script_lang_ts_setup_true;
|
|
40835
41014
|
|
|
40836
|
-
/* harmony default export */ var
|
|
41015
|
+
/* harmony default export */ var MlSelectInput = (MlSelectInput_exports_);
|
|
40837
41016
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-tree-select/MlTreeSelect.vue?vue&type=template&id=9449f31c
|
|
40838
41017
|
|
|
40839
41018
|
function render(_ctx, _cache) {
|
|
@@ -69633,53 +69812,26 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69633
69812
|
};
|
|
69634
69813
|
const checkStrictlyEvent = (row, checked) => {
|
|
69635
69814
|
const nodeOts = nodeOpts.value;
|
|
69636
|
-
const
|
|
69815
|
+
const operKeys = {};
|
|
69816
|
+
let checkKeys = [...selectRowMaps.checked];
|
|
69637
69817
|
if (props.indeterminateToChecked) {
|
|
69638
69818
|
if (row.children && row.children.length > 0) {
|
|
69639
|
-
xe_utils_default().eachTree(row
|
|
69640
|
-
|
|
69819
|
+
xe_utils_default().eachTree([row], item => {
|
|
69820
|
+
operKeys[item[nodeOts.key]] = item;
|
|
69641
69821
|
});
|
|
69822
|
+
} else {
|
|
69823
|
+
operKeys[row[nodeOts.key]] = row;
|
|
69642
69824
|
}
|
|
69643
|
-
const matchRest = xe_utils_default().findTree(props.data || [], item => item[nodeOts.key] === row[nodeOts.key]);
|
|
69644
69825
|
if (checked) {
|
|
69645
|
-
|
|
69646
|
-
|
|
69647
|
-
|
|
69648
|
-
const parentItemKey = parentItem[nodeOts.key];
|
|
69649
|
-
if (parentItemKey && String(parentItemKey) !== '-1') {
|
|
69650
|
-
childKeys.push(parentItemKey);
|
|
69651
|
-
}
|
|
69652
|
-
}
|
|
69653
|
-
});
|
|
69654
|
-
}
|
|
69655
|
-
childKeys.forEach(itemKey => {
|
|
69656
|
-
if (checked) {
|
|
69657
|
-
if (!selectRowMaps.checked.includes(itemKey)) {
|
|
69658
|
-
selectRowMaps.checked.push(itemKey);
|
|
69659
|
-
}
|
|
69660
|
-
} else {
|
|
69661
|
-
const index = xe_utils_default().findIndexOf(selectRowMaps.checked, key => key === itemKey);
|
|
69662
|
-
if (index > -1) {
|
|
69663
|
-
selectRowMaps.checked.splice(index, 1);
|
|
69664
|
-
}
|
|
69826
|
+
xe_utils_default().each(operKeys, (item, key) => {
|
|
69827
|
+
if (!checkKeys.includes(key)) {
|
|
69828
|
+
checkKeys.push(key);
|
|
69665
69829
|
}
|
|
69666
69830
|
});
|
|
69667
69831
|
} else {
|
|
69668
|
-
|
|
69669
|
-
for (let len = matchRest.nodes.length - 1; len >= 0; len--) {
|
|
69670
|
-
const parentItem = matchRest.nodes[len];
|
|
69671
|
-
if (!parentItem[nodeOts.children] || !parentItem[nodeOts.children].some(item => {
|
|
69672
|
-
if (childKeys.includes(item[nodeOts.key])) {
|
|
69673
|
-
return false;
|
|
69674
|
-
}
|
|
69675
|
-
return selectRowMaps.checked.includes(item[nodeOts.key]);
|
|
69676
|
-
})) {
|
|
69677
|
-
childKeys.push(parentItem[nodeOts.key]);
|
|
69678
|
-
}
|
|
69679
|
-
}
|
|
69680
|
-
}
|
|
69681
|
-
selectRowMaps.checked = selectRowMaps.checked.filter(key => !childKeys.includes(key));
|
|
69832
|
+
checkKeys = checkKeys.filter(key => !operKeys[key]);
|
|
69682
69833
|
}
|
|
69834
|
+
selectRowMaps.checked = checkKeys;
|
|
69683
69835
|
}
|
|
69684
69836
|
emit('update:checkRowKeys', selectRowMaps.checked);
|
|
69685
69837
|
emit('checkbox-change', {
|
|
@@ -69696,15 +69848,15 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69696
69848
|
};
|
|
69697
69849
|
expose(mlTree);
|
|
69698
69850
|
const checkedFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
69699
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.checkRowKeys.length, () => {
|
|
69851
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.checkRowKeys ? props.checkRowKeys.length : -1, () => {
|
|
69700
69852
|
checkedFlag.value++;
|
|
69701
69853
|
});
|
|
69702
69854
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.checkRowKeys, () => {
|
|
69703
69855
|
checkedFlag.value++;
|
|
69704
69856
|
});
|
|
69705
69857
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(checkedFlag, () => {
|
|
69706
|
-
selectRowKeys.value = props.checkRowKeys;
|
|
69707
|
-
checkedRowKeys.value = props.checkRowKeys;
|
|
69858
|
+
selectRowKeys.value = props.checkRowKeys || [];
|
|
69859
|
+
checkedRowKeys.value = props.checkRowKeys || [];
|
|
69708
69860
|
setCheckboxRowKeys(props.checkRowKeys);
|
|
69709
69861
|
});
|
|
69710
69862
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.expandedRowKeys, value => {
|
|
@@ -74663,6 +74815,17 @@ const MaliClipboard = {
|
|
|
74663
74815
|
}
|
|
74664
74816
|
};
|
|
74665
74817
|
/* harmony default export */ var clipboard = (MaliClipboard);
|
|
74818
|
+
;// CONCATENATED MODULE: ./export/xlsx.ts
|
|
74819
|
+
// import XEUtils from 'xe-utils'
|
|
74820
|
+
const MaliXlsx = {
|
|
74821
|
+
exportData(options) {
|
|
74822
|
+
const opts = Object.assign({}, options);
|
|
74823
|
+
if (opts) {
|
|
74824
|
+
//
|
|
74825
|
+
}
|
|
74826
|
+
}
|
|
74827
|
+
};
|
|
74828
|
+
/* harmony default export */ var xlsx = (MaliXlsx);
|
|
74666
74829
|
;// CONCATENATED MODULE: ./table/renderer/default.tsx
|
|
74667
74830
|
|
|
74668
74831
|
|
|
@@ -76397,6 +76560,7 @@ VXETable.setup({
|
|
|
76397
76560
|
|
|
76398
76561
|
|
|
76399
76562
|
|
|
76563
|
+
|
|
76400
76564
|
// import MlAutoInput from './components/ml-input/MlAutoInput.vue'
|
|
76401
76565
|
|
|
76402
76566
|
|
|
@@ -76452,6 +76616,7 @@ VXETable.setup({
|
|
|
76452
76616
|
|
|
76453
76617
|
|
|
76454
76618
|
|
|
76619
|
+
|
|
76455
76620
|
|
|
76456
76621
|
|
|
76457
76622
|
const index_MlIcon = MlIcon;
|
|
@@ -76459,9 +76624,10 @@ const index_MlRow = MlRow;
|
|
|
76459
76624
|
const index_MlCol = MlCol;
|
|
76460
76625
|
const index_MlButton = MlButton;
|
|
76461
76626
|
const index_MlInput = MlInput;
|
|
76627
|
+
const index_MlSearchInput = MlSearchInput;
|
|
76462
76628
|
const index_MlTextarea = MlTextarea;
|
|
76463
76629
|
const index_MlSelect = MlSelect;
|
|
76464
|
-
const
|
|
76630
|
+
const index_MlSelectInput = MlSelectInput;
|
|
76465
76631
|
const index_MlTreeSelect = MlTreeSelect;
|
|
76466
76632
|
const index_MlAmountText = MlAmountText;
|
|
76467
76633
|
const index_MlAmountInput = MlAmountInput;
|
|
@@ -76529,6 +76695,7 @@ const componentMaps = {
|
|
|
76529
76695
|
MlTextarea: index_MlTextarea,
|
|
76530
76696
|
MlSelect: index_MlSelect,
|
|
76531
76697
|
MlSearchInput: index_MlSearchInput,
|
|
76698
|
+
MlSelectInput: index_MlSelectInput,
|
|
76532
76699
|
MlTreeSelect: index_MlTreeSelect,
|
|
76533
76700
|
MlAmountText: index_MlAmountText,
|
|
76534
76701
|
MlAmountInput: index_MlAmountInput,
|
|
@@ -76603,12 +76770,13 @@ function index_config(options) {
|
|
|
76603
76770
|
return config_0;
|
|
76604
76771
|
}
|
|
76605
76772
|
const MaliUI = {
|
|
76606
|
-
version: "1.0.
|
|
76773
|
+
version: "1.0.151",
|
|
76607
76774
|
install: index_install,
|
|
76608
76775
|
config: index_config,
|
|
76609
76776
|
renderer: index_esm.renderer,
|
|
76610
76777
|
MaliUtils: utils,
|
|
76611
76778
|
MaliClipboard: clipboard,
|
|
76779
|
+
MaliXlsx: xlsx,
|
|
76612
76780
|
MaliToast: toast,
|
|
76613
76781
|
MaliModal: modal_modal_0,
|
|
76614
76782
|
MaliNotify: modal_notify,
|