mali-ui-plus 1.1.83 → 1.1.85
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 +198 -40
- package/lib/mali-ui-plus.css +1 -1
- package/lib/mali-ui-plus.umd.js +198 -40
- package/lib/mali-ui-plus.umd.min.js +1 -1
- package/package.json +1 -1
- package/style/all.scss +1 -0
- package/style/maliicon/demo.css +539 -0
- package/style/maliicon/demo_index.html +490 -0
- package/style/maliicon/iconfont.css +69 -0
- package/style/maliicon/iconfont.js +1 -0
- package/style/maliicon/iconfont.json +100 -0
- package/style/maliicon/iconfont.ttf +0 -0
- package/style/maliicon/iconfont.woff +0 -0
- package/style/maliicon/iconfont.woff2 +0 -0
|
@@ -46956,7 +46956,7 @@ const config_globalStore = {
|
|
|
46956
46956
|
// fileType: 'fileType', // 文件类型
|
|
46957
46957
|
// fileName: 'fileName' // 文件名
|
|
46958
46958
|
// sizeField: 'fileSize' // 文件大小
|
|
46959
|
-
}
|
|
46959
|
+
},
|
|
46960
46960
|
// 获取附件缩略图方法
|
|
46961
46961
|
// getThumbnailFileUrl: null,
|
|
46962
46962
|
// 获取附件路径方法
|
|
@@ -46967,8 +46967,32 @@ const config_globalStore = {
|
|
|
46967
46967
|
// downloadFile: null,
|
|
46968
46968
|
// 删除附件方法
|
|
46969
46969
|
// removeFile: null
|
|
46970
|
+
// 上传附件方法
|
|
46971
|
+
async uploadFile({
|
|
46972
|
+
file,
|
|
46973
|
+
params
|
|
46974
|
+
}) {
|
|
46975
|
+
// return { fileUrl: '' }
|
|
46976
|
+
return new Promise(resolve => {
|
|
46977
|
+
console.log(params);
|
|
46978
|
+
params.tempItem.status = 0;
|
|
46979
|
+
const timer = setInterval(() => {
|
|
46980
|
+
const status = params.tempItem.status + Math.floor(Math.random() * 3);
|
|
46981
|
+
if (status >= 100) {
|
|
46982
|
+
params.tempItem.status = 100;
|
|
46983
|
+
clearInterval(timer);
|
|
46984
|
+
} else {
|
|
46985
|
+
params.tempItem.status = status;
|
|
46986
|
+
}
|
|
46987
|
+
}, Math.random() * 200);
|
|
46988
|
+
setTimeout(() => {
|
|
46989
|
+
resolve({
|
|
46990
|
+
fileUrl: 'xxxxxx'
|
|
46991
|
+
});
|
|
46992
|
+
}, 10000);
|
|
46993
|
+
});
|
|
46994
|
+
}
|
|
46970
46995
|
},
|
|
46971
|
-
|
|
46972
46996
|
// 分页组件
|
|
46973
46997
|
pager: {
|
|
46974
46998
|
pageSize: 30,
|
|
@@ -47031,19 +47055,25 @@ const config_globalStore = {
|
|
|
47031
47055
|
size: String,
|
|
47032
47056
|
color: String,
|
|
47033
47057
|
fontSize: String,
|
|
47034
|
-
className: String
|
|
47058
|
+
className: String,
|
|
47059
|
+
v: Number
|
|
47035
47060
|
},
|
|
47036
47061
|
emits: ["click"],
|
|
47037
47062
|
setup(__props, {
|
|
47038
47063
|
emit
|
|
47039
47064
|
}) {
|
|
47040
47065
|
const props = __props;
|
|
47041
|
-
const prefix = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('mlicon-');
|
|
47042
47066
|
const styles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
47043
47067
|
const fts = props.fontSize ? `font-size: ${props.fontSize};` : '';
|
|
47044
47068
|
const clr = props.color ? `color: ${props.color};` : '';
|
|
47045
47069
|
return `${fts}${clr}`;
|
|
47046
47070
|
});
|
|
47071
|
+
const prefix = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
47072
|
+
if (props.v === 2) {
|
|
47073
|
+
return 'malicon-';
|
|
47074
|
+
}
|
|
47075
|
+
return 'mlicon-';
|
|
47076
|
+
});
|
|
47047
47077
|
const clickEvent = evnt => {
|
|
47048
47078
|
emit('click', {
|
|
47049
47079
|
$event: evnt
|
|
@@ -47051,7 +47081,7 @@ const config_globalStore = {
|
|
|
47051
47081
|
};
|
|
47052
47082
|
return (_ctx, _cache) => {
|
|
47053
47083
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
47054
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-icon", [__props.className || '', __props.size ? `size-${__props.size}` : '', __props.status ? `ss-${__props.status}` : '', __props.name ? `${prefix
|
|
47084
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-icon", [__props.className || '', __props.size ? `size-${__props.size}` : '', __props.status ? `ss-${__props.status}` : '', __props.name ? `${(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(prefix)}${__props.name}` : '', {
|
|
47055
47085
|
'is-roll': __props.roll
|
|
47056
47086
|
}]]),
|
|
47057
47087
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(styles)),
|
|
@@ -49409,6 +49439,8 @@ const MlPasswordInput_exports_ = MlPasswordInputvue_type_script_lang_ts_setup_tr
|
|
|
49409
49439
|
};
|
|
49410
49440
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
49411
49441
|
selectVal.value = val;
|
|
49442
|
+
}, {
|
|
49443
|
+
immediate: true
|
|
49412
49444
|
});
|
|
49413
49445
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
49414
49446
|
selectVal.value = props.modelValue;
|
|
@@ -61616,6 +61648,10 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
61616
61648
|
}, {
|
|
61617
61649
|
children: optChildrenField.value
|
|
61618
61650
|
});
|
|
61651
|
+
} else {
|
|
61652
|
+
eTreeRef.value.store._getAllNodes().forEach(node => {
|
|
61653
|
+
node.expanded = false;
|
|
61654
|
+
});
|
|
61619
61655
|
}
|
|
61620
61656
|
expandRowKeys.value = keys;
|
|
61621
61657
|
emit('update:expandedRowKeys', keys);
|
|
@@ -64069,7 +64105,7 @@ const _hoisted_22 = {
|
|
|
64069
64105
|
circle: "",
|
|
64070
64106
|
onClick: toggleFilterformVisible
|
|
64071
64107
|
}, null, 8, ["icon"])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])]),
|
|
64072
|
-
top: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_9, [
|
|
64108
|
+
top: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_9, [__props.showNewFilter ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MlForm, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
64073
64109
|
key: 0,
|
|
64074
64110
|
items: filterformItemList.value,
|
|
64075
64111
|
data: __props.filterformData
|
|
@@ -64099,13 +64135,13 @@ const _hoisted_22 = {
|
|
|
64099
64135
|
title: getFilterformTitle(item)
|
|
64100
64136
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlCheckbox, {
|
|
64101
64137
|
class: "ml-grid-filter-form-checkbox",
|
|
64102
|
-
|
|
64138
|
+
modelValue: selectFilterformFields.value.includes(item.field),
|
|
64103
64139
|
disabled: selectFilterformFields.value.length <= 1 && selectFilterformFields.value.includes(item.field),
|
|
64104
64140
|
onChange: $event => changeFilterformItem(item)
|
|
64105
64141
|
}, {
|
|
64106
64142
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(getFilterformTitle(item)), 1)]),
|
|
64107
64143
|
_: 2
|
|
64108
|
-
}, 1032, ["
|
|
64144
|
+
}, 1032, ["modelValue", "disabled", "onChange"])], 8, _hoisted_13);
|
|
64109
64145
|
}), 128))])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_14, "找不到数据!"))])])])]),
|
|
64110
64146
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
64111
64147
|
style: {
|
|
@@ -64712,30 +64748,36 @@ const MlUploadvue_type_script_lang_ts_setup_true_hoisted_9 = ["onClick"];
|
|
|
64712
64748
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_10 = ["onClick"];
|
|
64713
64749
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_11 = ["onClick"];
|
|
64714
64750
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_12 = {
|
|
64715
|
-
|
|
64751
|
+
style: {
|
|
64752
|
+
"padding-top": "15px"
|
|
64753
|
+
}
|
|
64716
64754
|
};
|
|
64717
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_13 = ["title"
|
|
64755
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_13 = ["title"];
|
|
64718
64756
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_14 = {
|
|
64757
|
+
class: "file-name"
|
|
64758
|
+
};
|
|
64759
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_15 = ["title", "onClick"];
|
|
64760
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_16 = {
|
|
64719
64761
|
class: "oper-btns"
|
|
64720
64762
|
};
|
|
64721
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_15 = ["onClick"];
|
|
64722
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_16 = ["onClick"];
|
|
64723
64763
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_17 = ["onClick"];
|
|
64724
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_18 =
|
|
64764
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_18 = ["onClick"];
|
|
64765
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_19 = ["onClick"];
|
|
64766
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_20 = {
|
|
64725
64767
|
key: 0,
|
|
64726
64768
|
class: "img-warpper"
|
|
64727
64769
|
};
|
|
64728
|
-
const
|
|
64729
|
-
const
|
|
64730
|
-
const
|
|
64770
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_21 = ["onClick"];
|
|
64771
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_22 = ["src"];
|
|
64772
|
+
const _hoisted_23 = {
|
|
64731
64773
|
class: "ml-upload-preview-actions"
|
|
64732
64774
|
};
|
|
64733
|
-
const
|
|
64734
|
-
const
|
|
64775
|
+
const _hoisted_24 = ["onClick"];
|
|
64776
|
+
const _hoisted_25 = {
|
|
64735
64777
|
controls: ""
|
|
64736
64778
|
};
|
|
64737
|
-
const
|
|
64738
|
-
const
|
|
64779
|
+
const _hoisted_26 = ["src"];
|
|
64780
|
+
const _hoisted_27 = ["src"];
|
|
64739
64781
|
|
|
64740
64782
|
|
|
64741
64783
|
|
|
@@ -64835,6 +64877,37 @@ const _hoisted_25 = ["src"];
|
|
|
64835
64877
|
const imgTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['jpg', 'jpeg', 'png', 'gif']);
|
|
64836
64878
|
const videoTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['mp4']);
|
|
64837
64879
|
const officeTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx']);
|
|
64880
|
+
const tempList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
64881
|
+
const tableColumn = [{
|
|
64882
|
+
title: '序号',
|
|
64883
|
+
type: 'seq',
|
|
64884
|
+
width: 60
|
|
64885
|
+
}, {
|
|
64886
|
+
title: '文件名',
|
|
64887
|
+
field: 'fileName',
|
|
64888
|
+
minWidth: 200,
|
|
64889
|
+
slots: {
|
|
64890
|
+
default: 'fileName'
|
|
64891
|
+
}
|
|
64892
|
+
}, {
|
|
64893
|
+
title: '大小',
|
|
64894
|
+
field: 'fileSize',
|
|
64895
|
+
minWidth: 100
|
|
64896
|
+
}, {
|
|
64897
|
+
title: '状态',
|
|
64898
|
+
field: 'status',
|
|
64899
|
+
width: 200,
|
|
64900
|
+
slots: {
|
|
64901
|
+
default: 'status'
|
|
64902
|
+
}
|
|
64903
|
+
}, {
|
|
64904
|
+
title: '操作',
|
|
64905
|
+
field: 'action',
|
|
64906
|
+
width: 80,
|
|
64907
|
+
slots: {
|
|
64908
|
+
default: 'action'
|
|
64909
|
+
}
|
|
64910
|
+
}];
|
|
64838
64911
|
let isModelUpdate = false;
|
|
64839
64912
|
const fileTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
64840
64913
|
if (props.types && props.types.length) {
|
|
@@ -64918,6 +64991,9 @@ const _hoisted_25 = ["src"];
|
|
|
64918
64991
|
marginTop: `${offsetY}px`
|
|
64919
64992
|
};
|
|
64920
64993
|
});
|
|
64994
|
+
const allFileList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
64995
|
+
return [...fileList.value, ...tempList.value];
|
|
64996
|
+
});
|
|
64921
64997
|
const loadList = () => {
|
|
64922
64998
|
let vals = [];
|
|
64923
64999
|
if (node_modules_xe_utils_default().isArray(props.modelValue)) {
|
|
@@ -64986,6 +65062,15 @@ const _hoisted_25 = ["src"];
|
|
|
64986
65062
|
}
|
|
64987
65063
|
return suffix;
|
|
64988
65064
|
};
|
|
65065
|
+
const formatFileSizeMath = bytes => {
|
|
65066
|
+
if (bytes === 0) return '0B';
|
|
65067
|
+
const units = ['B', 'KB', 'MB', 'GB', 'TB'];
|
|
65068
|
+
// 计算单位层级
|
|
65069
|
+
const index = Math.min(Math.floor(Math.log(bytes) / Math.log(1024)), units.length - 1);
|
|
65070
|
+
// 计算对应单位的数值
|
|
65071
|
+
const size = (bytes / Math.pow(1024, index)).toFixed(2);
|
|
65072
|
+
return `${size}${units[index]}`;
|
|
65073
|
+
};
|
|
64989
65074
|
const selectEvent = () => {
|
|
64990
65075
|
if (isReadonly.value || isDisabled.value || loading.value) {
|
|
64991
65076
|
return;
|
|
@@ -65008,20 +65093,35 @@ const _hoisted_25 = ["src"];
|
|
|
65008
65093
|
toast.error(`超出最大限制,最大只支持 ${props.limitSize / 1024} M 文件!`);
|
|
65009
65094
|
return;
|
|
65010
65095
|
}
|
|
65096
|
+
tempList.value = tempFiles.map((file, index) => {
|
|
65097
|
+
const fileSuffix = getSuffix(file.name);
|
|
65098
|
+
return {
|
|
65099
|
+
isNew: true,
|
|
65100
|
+
tempName: `${file.name}_${index}`,
|
|
65101
|
+
[nameField.value]: file.name,
|
|
65102
|
+
[typeField.value]: fileSuffix,
|
|
65103
|
+
[sizeField.value]: formatFileSizeMath(file.size),
|
|
65104
|
+
stauts: 0
|
|
65105
|
+
};
|
|
65106
|
+
});
|
|
65011
65107
|
loading.value = true;
|
|
65012
|
-
Promise.all(tempFiles.map(file => {
|
|
65108
|
+
Promise.all(tempFiles.map((file, index) => {
|
|
65013
65109
|
const fileSuffix = getSuffix(file.name);
|
|
65014
65110
|
if (uploadMethod) {
|
|
65015
65111
|
return Promise.resolve(uploadMethod({
|
|
65016
65112
|
file,
|
|
65017
|
-
params:
|
|
65113
|
+
params: {
|
|
65114
|
+
...props.params,
|
|
65115
|
+
tempItem: tempList.value[index]
|
|
65116
|
+
}
|
|
65018
65117
|
})).then(res => {
|
|
65019
65118
|
const item = {
|
|
65020
65119
|
...res,
|
|
65021
65120
|
isNew: true,
|
|
65121
|
+
status: 100,
|
|
65022
65122
|
[nameField.value]: res[nameField.value] || file.name,
|
|
65023
65123
|
[typeField.value]: res[typeField.value] || fileSuffix,
|
|
65024
|
-
[sizeField.value]: file.size
|
|
65124
|
+
[sizeField.value]: formatFileSizeMath(file.size)
|
|
65025
65125
|
};
|
|
65026
65126
|
emit('success', {
|
|
65027
65127
|
item,
|
|
@@ -65059,7 +65159,14 @@ const _hoisted_25 = ["src"];
|
|
|
65059
65159
|
}
|
|
65060
65160
|
})).then(items => {
|
|
65061
65161
|
isModelUpdate = true;
|
|
65062
|
-
|
|
65162
|
+
if (props.mediatype === 'pan') {
|
|
65163
|
+
const tempListTempNames = tempList.value.map(item => item.tempName);
|
|
65164
|
+
tempList.value = [];
|
|
65165
|
+
fileList.value = [...fileList.value, ...items.filter((item, index) => !item.isErr && tempListTempNames.includes(`${item.fileName}_${index}`))].slice(-limitFileLen.value);
|
|
65166
|
+
} else {
|
|
65167
|
+
tempList.value = [];
|
|
65168
|
+
fileList.value = [...fileList.value, ...items.filter(item => !item.isErr)].slice(-limitFileLen.value);
|
|
65169
|
+
}
|
|
65063
65170
|
updateModel();
|
|
65064
65171
|
loading.value = false;
|
|
65065
65172
|
}).catch(e => {
|
|
@@ -65151,6 +65258,23 @@ const _hoisted_25 = ["src"];
|
|
|
65151
65258
|
});
|
|
65152
65259
|
updateModel();
|
|
65153
65260
|
};
|
|
65261
|
+
const removePanEvent = (item, index) => {
|
|
65262
|
+
// const index = tempList.value.findIndex((ele: any) => ele.fieldName === item.fieldName && ele.fileSize === item.fileSize)
|
|
65263
|
+
// if (index > -1) {
|
|
65264
|
+
// tempList.value.splice(index, 1)
|
|
65265
|
+
// } else {
|
|
65266
|
+
// const listIndex = fileList.value.findIndex((ele: any) => ele.fieldName === item.fieldName && ele.fileSize === item.fileSize)
|
|
65267
|
+
// if (listIndex > -1) {
|
|
65268
|
+
// fileList.value.splice(index, 1)
|
|
65269
|
+
// }
|
|
65270
|
+
// }
|
|
65271
|
+
if (item.tempName) {
|
|
65272
|
+
const tempIndex = tempList.value.findIndex(ele => ele.tempName === item.tempName);
|
|
65273
|
+
tempList.value.splice(tempIndex, 1);
|
|
65274
|
+
} else {
|
|
65275
|
+
fileList.value.splice(index, 1);
|
|
65276
|
+
}
|
|
65277
|
+
};
|
|
65154
65278
|
const loadPreviewUrl = item => {
|
|
65155
65279
|
const getPreviewUrlMethod = props.getPreviewFileUrl ? props.getPreviewFileUrl : config_0.upload ? config_0.upload.getPreviewFileUrl : null;
|
|
65156
65280
|
if (hasOfficeType(item)) {
|
|
@@ -65274,6 +65398,7 @@ const _hoisted_25 = ["src"];
|
|
|
65274
65398
|
return (_ctx, _cache) => {
|
|
65275
65399
|
const _component_MlButton = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlButton");
|
|
65276
65400
|
const _component_MlIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlIcon");
|
|
65401
|
+
const _component_MlTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlTable");
|
|
65277
65402
|
const _component_vxe_modal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-modal");
|
|
65278
65403
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
65279
65404
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-upload", [`type-${__props.mediatype}`, `size-${__props.size}`]])
|
|
@@ -65325,40 +65450,73 @@ const _hoisted_25 = ["src"];
|
|
|
65325
65450
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65326
65451
|
name: "ashbin"
|
|
65327
65452
|
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_11)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])])])]);
|
|
65328
|
-
}), 128))], 64)) : (
|
|
65453
|
+
}), 128))], 64)) : __props.mediatype === 'pan' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "fileList", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
65329
65454
|
key: 1
|
|
65330
|
-
},
|
|
65455
|
+
}, {
|
|
65456
|
+
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(allFileList)
|
|
65457
|
+
})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlUploadvue_type_script_lang_ts_setup_true_hoisted_12, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlTable, {
|
|
65458
|
+
columns: tableColumn,
|
|
65459
|
+
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(allFileList)
|
|
65460
|
+
}, {
|
|
65461
|
+
fileName: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
65462
|
+
row
|
|
65463
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
65464
|
+
class: "link",
|
|
65465
|
+
title: row[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nameField)]
|
|
65466
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65467
|
+
name: "attachment"
|
|
65468
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(row[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nameField)]), 1)], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_13)]),
|
|
65469
|
+
status: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
65470
|
+
row
|
|
65471
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(row.status) + "%", 1)]),
|
|
65472
|
+
action: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
65473
|
+
row,
|
|
65474
|
+
rowIndex
|
|
65475
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
65476
|
+
type: "text",
|
|
65477
|
+
status: "danger",
|
|
65478
|
+
onClick: $event => removePanEvent(row, rowIndex)
|
|
65479
|
+
}, {
|
|
65480
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("删除")]),
|
|
65481
|
+
_: 2
|
|
65482
|
+
}, 1032, ["onClick"])]),
|
|
65483
|
+
_: 1
|
|
65484
|
+
}, 8, ["data"])])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "fileList", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
65485
|
+
key: 2
|
|
65486
|
+
}, {
|
|
65487
|
+
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(allFileList)
|
|
65488
|
+
})), () => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(allFileList), (item, index) => {
|
|
65331
65489
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
65332
65490
|
class: "file-all-item",
|
|
65333
65491
|
key: index
|
|
65334
65492
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "fileitem", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({
|
|
65335
65493
|
loading: loading.value,
|
|
65336
65494
|
item
|
|
65337
|
-
})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
65495
|
+
})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlUploadvue_type_script_lang_ts_setup_true_hoisted_14, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("a", {
|
|
65338
65496
|
class: "link",
|
|
65339
65497
|
title: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nameField)],
|
|
65340
65498
|
onClick: $event => hasPreviewType(item) ? previewFile(item) : downloadEvent(item)
|
|
65341
65499
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65342
65500
|
name: "attachment"
|
|
65343
|
-
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nameField)]), 1)], 8,
|
|
65501
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nameField)]), 1)], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_15)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlUploadvue_type_script_lang_ts_setup_true_hoisted_16, [hasPreviewType(item) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("a", {
|
|
65344
65502
|
key: 0,
|
|
65345
65503
|
class: "preview-btn",
|
|
65346
65504
|
onClick: $event => previewFile(item)
|
|
65347
65505
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65348
65506
|
name: "browse"
|
|
65349
|
-
})], 8,
|
|
65507
|
+
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_17)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("a", {
|
|
65350
65508
|
class: "down-btn",
|
|
65351
65509
|
onClick: $event => downloadEvent(item)
|
|
65352
65510
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65353
65511
|
name: "download"
|
|
65354
|
-
})], 8,
|
|
65512
|
+
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_18), !(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isReadonly) && !__props.disabled ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("a", {
|
|
65355
65513
|
key: 1,
|
|
65356
65514
|
class: "del-btn",
|
|
65357
65515
|
onClick: $event => removeEvent(item, index)
|
|
65358
65516
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65359
65517
|
name: "ashbin"
|
|
65360
|
-
})], 8,
|
|
65361
|
-
}), 128))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_modal, {
|
|
65518
|
+
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_19)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])])]);
|
|
65519
|
+
}), 128))])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_modal, {
|
|
65362
65520
|
className: "ml-upload-preview-modal",
|
|
65363
65521
|
title: "预览",
|
|
65364
65522
|
modelValue: previewVisible.value,
|
|
@@ -65376,7 +65534,7 @@ const _hoisted_25 = ["src"];
|
|
|
65376
65534
|
key: 0,
|
|
65377
65535
|
class: "ml-upload-preview-content",
|
|
65378
65536
|
onMousedown: handleImageMouseDown
|
|
65379
|
-
}, [hasImageType(previewItem.value) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
65537
|
+
}, [hasImageType(previewItem.value) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlUploadvue_type_script_lang_ts_setup_true_hoisted_20, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
65380
65538
|
class: "img-list",
|
|
65381
65539
|
onMousewheel: mousewheelEvent,
|
|
65382
65540
|
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(clickMaskEvent, ["self"])
|
|
@@ -65388,8 +65546,8 @@ const _hoisted_25 = ["src"];
|
|
|
65388
65546
|
key: index,
|
|
65389
65547
|
src: getUrl(item),
|
|
65390
65548
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(previewImgStyles))
|
|
65391
|
-
}, null, 14,
|
|
65392
|
-
}), 128))], 40,
|
|
65549
|
+
}, null, 14, MlUploadvue_type_script_lang_ts_setup_true_hoisted_22);
|
|
65550
|
+
}), 128))], 40, MlUploadvue_type_script_lang_ts_setup_true_hoisted_21), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
65393
65551
|
class: "prev-arrow",
|
|
65394
65552
|
onClick: prevImgEvent
|
|
65395
65553
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
@@ -65399,7 +65557,7 @@ const _hoisted_25 = ["src"];
|
|
|
65399
65557
|
onClick: nextImgEvent
|
|
65400
65558
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65401
65559
|
name: "cc-arrow-right-circle"
|
|
65402
|
-
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
65560
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_23, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
65403
65561
|
class: "ml-upload-preview-btn",
|
|
65404
65562
|
type: "text",
|
|
65405
65563
|
icon: "mlicon-zoom-in",
|
|
@@ -65428,14 +65586,14 @@ const _hoisted_25 = ["src"];
|
|
|
65428
65586
|
key: 1,
|
|
65429
65587
|
class: "video-warpper",
|
|
65430
65588
|
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(clickMaskEvent, ["self"])
|
|
65431
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("video",
|
|
65589
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("video", _hoisted_25, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("source", {
|
|
65432
65590
|
src: previewFileUrl.value,
|
|
65433
65591
|
type: "video/mp4"
|
|
65434
|
-
}, null, 8,
|
|
65592
|
+
}, null, 8, _hoisted_26)])], 8, _hoisted_24)) : hasFrameType(previewItem.value) || hasOfficeType(previewItem.value) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("iframe", {
|
|
65435
65593
|
key: 2,
|
|
65436
65594
|
class: "frame-warpper",
|
|
65437
65595
|
src: previewFileUrl.value
|
|
65438
|
-
}, null, 8,
|
|
65596
|
+
}, null, 8, _hoisted_27)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 32)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
65439
65597
|
_: 1
|
|
65440
65598
|
}, 8, ["modelValue"])], 2);
|
|
65441
65599
|
};
|
|
@@ -71231,7 +71389,7 @@ function index_config(options) {
|
|
|
71231
71389
|
return config_0;
|
|
71232
71390
|
}
|
|
71233
71391
|
const MaliUI = {
|
|
71234
|
-
version: "1.1.
|
|
71392
|
+
version: "1.1.84",
|
|
71235
71393
|
install: index_install,
|
|
71236
71394
|
config: index_config,
|
|
71237
71395
|
renderer: {
|