mali-ui-plus 1.0.150 → 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 +269 -97
- package/lib/mali-ui-plus.umd.js +269 -97
- package/lib/mali-ui-plus.umd.min.js +19 -19
- 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) {
|
|
@@ -69472,9 +69651,10 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69472
69651
|
checked: [],
|
|
69473
69652
|
halfChecked: []
|
|
69474
69653
|
};
|
|
69475
|
-
const selectRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
69654
|
+
const selectRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.checkRowKeys || []);
|
|
69476
69655
|
const checkedRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
69477
69656
|
const expandRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
69657
|
+
const selectTreeRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.selectedRowKeys || []);
|
|
69478
69658
|
const nodeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
69479
69659
|
const nodeOpts = props.nodeProps || {};
|
|
69480
69660
|
return {
|
|
@@ -69632,53 +69812,26 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69632
69812
|
};
|
|
69633
69813
|
const checkStrictlyEvent = (row, checked) => {
|
|
69634
69814
|
const nodeOts = nodeOpts.value;
|
|
69635
|
-
const
|
|
69815
|
+
const operKeys = {};
|
|
69816
|
+
let checkKeys = [...selectRowMaps.checked];
|
|
69636
69817
|
if (props.indeterminateToChecked) {
|
|
69637
69818
|
if (row.children && row.children.length > 0) {
|
|
69638
|
-
xe_utils_default().eachTree(row
|
|
69639
|
-
|
|
69819
|
+
xe_utils_default().eachTree([row], item => {
|
|
69820
|
+
operKeys[item[nodeOts.key]] = item;
|
|
69640
69821
|
});
|
|
69822
|
+
} else {
|
|
69823
|
+
operKeys[row[nodeOts.key]] = row;
|
|
69641
69824
|
}
|
|
69642
|
-
const matchRest = xe_utils_default().findTree(props.data || [], item => item[nodeOts.key] === row[nodeOts.key]);
|
|
69643
69825
|
if (checked) {
|
|
69644
|
-
|
|
69645
|
-
|
|
69646
|
-
|
|
69647
|
-
const parentItemKey = parentItem[nodeOts.key];
|
|
69648
|
-
if (parentItemKey && String(parentItemKey) !== '-1') {
|
|
69649
|
-
childKeys.push(parentItemKey);
|
|
69650
|
-
}
|
|
69651
|
-
}
|
|
69652
|
-
});
|
|
69653
|
-
}
|
|
69654
|
-
childKeys.forEach(itemKey => {
|
|
69655
|
-
if (checked) {
|
|
69656
|
-
if (!selectRowMaps.checked.includes(itemKey)) {
|
|
69657
|
-
selectRowMaps.checked.push(itemKey);
|
|
69658
|
-
}
|
|
69659
|
-
} else {
|
|
69660
|
-
const index = xe_utils_default().findIndexOf(selectRowMaps.checked, key => key === itemKey);
|
|
69661
|
-
if (index > -1) {
|
|
69662
|
-
selectRowMaps.checked.splice(index, 1);
|
|
69663
|
-
}
|
|
69826
|
+
xe_utils_default().each(operKeys, (item, key) => {
|
|
69827
|
+
if (!checkKeys.includes(key)) {
|
|
69828
|
+
checkKeys.push(key);
|
|
69664
69829
|
}
|
|
69665
69830
|
});
|
|
69666
69831
|
} else {
|
|
69667
|
-
|
|
69668
|
-
for (let len = matchRest.nodes.length - 1; len >= 0; len--) {
|
|
69669
|
-
const parentItem = matchRest.nodes[len];
|
|
69670
|
-
if (!parentItem[nodeOts.children] || !parentItem[nodeOts.children].some(item => {
|
|
69671
|
-
if (childKeys.includes(item[nodeOts.key])) {
|
|
69672
|
-
return false;
|
|
69673
|
-
}
|
|
69674
|
-
return selectRowMaps.checked.includes(item[nodeOts.key]);
|
|
69675
|
-
})) {
|
|
69676
|
-
childKeys.push(parentItem[nodeOts.key]);
|
|
69677
|
-
}
|
|
69678
|
-
}
|
|
69679
|
-
}
|
|
69680
|
-
selectRowMaps.checked = selectRowMaps.checked.filter(key => !childKeys.includes(key));
|
|
69832
|
+
checkKeys = checkKeys.filter(key => !operKeys[key]);
|
|
69681
69833
|
}
|
|
69834
|
+
selectRowMaps.checked = checkKeys;
|
|
69682
69835
|
}
|
|
69683
69836
|
emit('update:checkRowKeys', selectRowMaps.checked);
|
|
69684
69837
|
emit('checkbox-change', {
|
|
@@ -69695,19 +69848,19 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69695
69848
|
};
|
|
69696
69849
|
expose(mlTree);
|
|
69697
69850
|
const checkedFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
69698
|
-
(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, () => {
|
|
69699
69852
|
checkedFlag.value++;
|
|
69700
69853
|
});
|
|
69701
69854
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.checkRowKeys, () => {
|
|
69702
69855
|
checkedFlag.value++;
|
|
69703
69856
|
});
|
|
69704
69857
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(checkedFlag, () => {
|
|
69705
|
-
selectRowKeys.value = props.checkRowKeys;
|
|
69706
|
-
checkedRowKeys.value = props.checkRowKeys;
|
|
69858
|
+
selectRowKeys.value = props.checkRowKeys || [];
|
|
69859
|
+
checkedRowKeys.value = props.checkRowKeys || [];
|
|
69707
69860
|
setCheckboxRowKeys(props.checkRowKeys);
|
|
69708
69861
|
});
|
|
69709
69862
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.expandedRowKeys, value => {
|
|
69710
|
-
expandRowKeys.value = value;
|
|
69863
|
+
expandRowKeys.value = value || [];
|
|
69711
69864
|
});
|
|
69712
69865
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.data, () => {
|
|
69713
69866
|
if (props.expandAll) {
|
|
@@ -69716,6 +69869,9 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69716
69869
|
});
|
|
69717
69870
|
}
|
|
69718
69871
|
});
|
|
69872
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.selectedRowKeys, value => {
|
|
69873
|
+
selectTreeRowKeys.value = value || [];
|
|
69874
|
+
});
|
|
69719
69875
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
69720
69876
|
if (props.expandAll) {
|
|
69721
69877
|
setAllTreeExpand(true);
|
|
@@ -69770,7 +69926,7 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69770
69926
|
data
|
|
69771
69927
|
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "title", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({
|
|
69772
69928
|
row: data
|
|
69773
|
-
})))]),
|
|
69929
|
+
})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(data[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nodeOpts).label]), 1)])]),
|
|
69774
69930
|
_: 3
|
|
69775
69931
|
}, 8, ["show-checkbox", "node-key", "props", "highlight-current", "default-expanded-keys", "data"])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_tree, {
|
|
69776
69932
|
key: 2,
|
|
@@ -69791,7 +69947,7 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69791
69947
|
data
|
|
69792
69948
|
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "title", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({
|
|
69793
69949
|
row: data
|
|
69794
|
-
})))]),
|
|
69950
|
+
})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(data[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nodeOpts).label]), 1)])]),
|
|
69795
69951
|
_: 3
|
|
69796
69952
|
}, 8, ["show-checkbox", "node-key", "props", "highlight-current", "default-expanded-keys", "data"]))]);
|
|
69797
69953
|
};
|
|
@@ -74659,6 +74815,17 @@ const MaliClipboard = {
|
|
|
74659
74815
|
}
|
|
74660
74816
|
};
|
|
74661
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);
|
|
74662
74829
|
;// CONCATENATED MODULE: ./table/renderer/default.tsx
|
|
74663
74830
|
|
|
74664
74831
|
|
|
@@ -76393,6 +76560,7 @@ VXETable.setup({
|
|
|
76393
76560
|
|
|
76394
76561
|
|
|
76395
76562
|
|
|
76563
|
+
|
|
76396
76564
|
// import MlAutoInput from './components/ml-input/MlAutoInput.vue'
|
|
76397
76565
|
|
|
76398
76566
|
|
|
@@ -76448,6 +76616,7 @@ VXETable.setup({
|
|
|
76448
76616
|
|
|
76449
76617
|
|
|
76450
76618
|
|
|
76619
|
+
|
|
76451
76620
|
|
|
76452
76621
|
|
|
76453
76622
|
const index_MlIcon = MlIcon;
|
|
@@ -76455,9 +76624,10 @@ const index_MlRow = MlRow;
|
|
|
76455
76624
|
const index_MlCol = MlCol;
|
|
76456
76625
|
const index_MlButton = MlButton;
|
|
76457
76626
|
const index_MlInput = MlInput;
|
|
76627
|
+
const index_MlSearchInput = MlSearchInput;
|
|
76458
76628
|
const index_MlTextarea = MlTextarea;
|
|
76459
76629
|
const index_MlSelect = MlSelect;
|
|
76460
|
-
const
|
|
76630
|
+
const index_MlSelectInput = MlSelectInput;
|
|
76461
76631
|
const index_MlTreeSelect = MlTreeSelect;
|
|
76462
76632
|
const index_MlAmountText = MlAmountText;
|
|
76463
76633
|
const index_MlAmountInput = MlAmountInput;
|
|
@@ -76525,6 +76695,7 @@ const componentMaps = {
|
|
|
76525
76695
|
MlTextarea: index_MlTextarea,
|
|
76526
76696
|
MlSelect: index_MlSelect,
|
|
76527
76697
|
MlSearchInput: index_MlSearchInput,
|
|
76698
|
+
MlSelectInput: index_MlSelectInput,
|
|
76528
76699
|
MlTreeSelect: index_MlTreeSelect,
|
|
76529
76700
|
MlAmountText: index_MlAmountText,
|
|
76530
76701
|
MlAmountInput: index_MlAmountInput,
|
|
@@ -76599,12 +76770,13 @@ function index_config(options) {
|
|
|
76599
76770
|
return config_0;
|
|
76600
76771
|
}
|
|
76601
76772
|
const MaliUI = {
|
|
76602
|
-
version: "1.0.
|
|
76773
|
+
version: "1.0.151",
|
|
76603
76774
|
install: index_install,
|
|
76604
76775
|
config: index_config,
|
|
76605
76776
|
renderer: index_esm.renderer,
|
|
76606
76777
|
MaliUtils: utils,
|
|
76607
76778
|
MaliClipboard: clipboard,
|
|
76779
|
+
MaliXlsx: xlsx,
|
|
76608
76780
|
MaliToast: toast,
|
|
76609
76781
|
MaliModal: modal_modal_0,
|
|
76610
76782
|
MaliNotify: modal_notify,
|