mali-ui-plus 1.1.84 → 1.1.86
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 +207 -37
- package/lib/mali-ui-plus.css +1 -1
- package/lib/mali-ui-plus.umd.js +207 -37
- 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)),
|
|
@@ -61618,6 +61648,10 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
61618
61648
|
}, {
|
|
61619
61649
|
children: optChildrenField.value
|
|
61620
61650
|
});
|
|
61651
|
+
} else {
|
|
61652
|
+
eTreeRef.value.store._getAllNodes().forEach(node => {
|
|
61653
|
+
node.expanded = false;
|
|
61654
|
+
});
|
|
61621
61655
|
}
|
|
61622
61656
|
expandRowKeys.value = keys;
|
|
61623
61657
|
emit('update:expandedRowKeys', keys);
|
|
@@ -61850,6 +61884,20 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
61850
61884
|
}, {
|
|
61851
61885
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("清空")]),
|
|
61852
61886
|
_: 1
|
|
61887
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
61888
|
+
type: "text",
|
|
61889
|
+
status: "primary",
|
|
61890
|
+
onClick: _cache[0] || (_cache[0] = $event => setAllTreeExpand(true))
|
|
61891
|
+
}, {
|
|
61892
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("全部展开")]),
|
|
61893
|
+
_: 1
|
|
61894
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
61895
|
+
type: "text",
|
|
61896
|
+
status: "primary",
|
|
61897
|
+
onClick: clearAllEvent
|
|
61898
|
+
}, {
|
|
61899
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("全部收起")]),
|
|
61900
|
+
_: 1
|
|
61853
61901
|
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.checkStrictly || __props.indeterminateToChecked ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_tree, {
|
|
61854
61902
|
key: 1,
|
|
61855
61903
|
checkStrictly: "",
|
|
@@ -64714,30 +64762,36 @@ const MlUploadvue_type_script_lang_ts_setup_true_hoisted_9 = ["onClick"];
|
|
|
64714
64762
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_10 = ["onClick"];
|
|
64715
64763
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_11 = ["onClick"];
|
|
64716
64764
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_12 = {
|
|
64717
|
-
|
|
64765
|
+
style: {
|
|
64766
|
+
"padding-top": "15px"
|
|
64767
|
+
}
|
|
64718
64768
|
};
|
|
64719
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_13 = ["title"
|
|
64769
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_13 = ["title"];
|
|
64720
64770
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_14 = {
|
|
64771
|
+
class: "file-name"
|
|
64772
|
+
};
|
|
64773
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_15 = ["title", "onClick"];
|
|
64774
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_16 = {
|
|
64721
64775
|
class: "oper-btns"
|
|
64722
64776
|
};
|
|
64723
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_15 = ["onClick"];
|
|
64724
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_16 = ["onClick"];
|
|
64725
64777
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_17 = ["onClick"];
|
|
64726
|
-
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_18 =
|
|
64778
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_18 = ["onClick"];
|
|
64779
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_19 = ["onClick"];
|
|
64780
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_20 = {
|
|
64727
64781
|
key: 0,
|
|
64728
64782
|
class: "img-warpper"
|
|
64729
64783
|
};
|
|
64730
|
-
const
|
|
64731
|
-
const
|
|
64732
|
-
const
|
|
64784
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_21 = ["onClick"];
|
|
64785
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_22 = ["src"];
|
|
64786
|
+
const _hoisted_23 = {
|
|
64733
64787
|
class: "ml-upload-preview-actions"
|
|
64734
64788
|
};
|
|
64735
|
-
const
|
|
64736
|
-
const
|
|
64789
|
+
const _hoisted_24 = ["onClick"];
|
|
64790
|
+
const _hoisted_25 = {
|
|
64737
64791
|
controls: ""
|
|
64738
64792
|
};
|
|
64739
|
-
const
|
|
64740
|
-
const
|
|
64793
|
+
const _hoisted_26 = ["src"];
|
|
64794
|
+
const _hoisted_27 = ["src"];
|
|
64741
64795
|
|
|
64742
64796
|
|
|
64743
64797
|
|
|
@@ -64837,6 +64891,37 @@ const _hoisted_25 = ["src"];
|
|
|
64837
64891
|
const imgTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['jpg', 'jpeg', 'png', 'gif']);
|
|
64838
64892
|
const videoTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['mp4']);
|
|
64839
64893
|
const officeTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx']);
|
|
64894
|
+
const tempList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
64895
|
+
const tableColumn = [{
|
|
64896
|
+
title: '序号',
|
|
64897
|
+
type: 'seq',
|
|
64898
|
+
width: 60
|
|
64899
|
+
}, {
|
|
64900
|
+
title: '文件名',
|
|
64901
|
+
field: 'fileName',
|
|
64902
|
+
minWidth: 200,
|
|
64903
|
+
slots: {
|
|
64904
|
+
default: 'fileName'
|
|
64905
|
+
}
|
|
64906
|
+
}, {
|
|
64907
|
+
title: '大小',
|
|
64908
|
+
field: 'fileSize',
|
|
64909
|
+
minWidth: 100
|
|
64910
|
+
}, {
|
|
64911
|
+
title: '状态',
|
|
64912
|
+
field: 'status',
|
|
64913
|
+
width: 200,
|
|
64914
|
+
slots: {
|
|
64915
|
+
default: 'status'
|
|
64916
|
+
}
|
|
64917
|
+
}, {
|
|
64918
|
+
title: '操作',
|
|
64919
|
+
field: 'action',
|
|
64920
|
+
width: 80,
|
|
64921
|
+
slots: {
|
|
64922
|
+
default: 'action'
|
|
64923
|
+
}
|
|
64924
|
+
}];
|
|
64840
64925
|
let isModelUpdate = false;
|
|
64841
64926
|
const fileTypes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
64842
64927
|
if (props.types && props.types.length) {
|
|
@@ -64920,6 +65005,9 @@ const _hoisted_25 = ["src"];
|
|
|
64920
65005
|
marginTop: `${offsetY}px`
|
|
64921
65006
|
};
|
|
64922
65007
|
});
|
|
65008
|
+
const allFileList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
65009
|
+
return [...fileList.value, ...tempList.value];
|
|
65010
|
+
});
|
|
64923
65011
|
const loadList = () => {
|
|
64924
65012
|
let vals = [];
|
|
64925
65013
|
if (node_modules_xe_utils_default().isArray(props.modelValue)) {
|
|
@@ -64988,6 +65076,15 @@ const _hoisted_25 = ["src"];
|
|
|
64988
65076
|
}
|
|
64989
65077
|
return suffix;
|
|
64990
65078
|
};
|
|
65079
|
+
const formatFileSizeMath = bytes => {
|
|
65080
|
+
if (bytes === 0) return '0B';
|
|
65081
|
+
const units = ['B', 'KB', 'MB', 'GB', 'TB'];
|
|
65082
|
+
// 计算单位层级
|
|
65083
|
+
const index = Math.min(Math.floor(Math.log(bytes) / Math.log(1024)), units.length - 1);
|
|
65084
|
+
// 计算对应单位的数值
|
|
65085
|
+
const size = (bytes / Math.pow(1024, index)).toFixed(2);
|
|
65086
|
+
return `${size}${units[index]}`;
|
|
65087
|
+
};
|
|
64991
65088
|
const selectEvent = () => {
|
|
64992
65089
|
if (isReadonly.value || isDisabled.value || loading.value) {
|
|
64993
65090
|
return;
|
|
@@ -65010,20 +65107,35 @@ const _hoisted_25 = ["src"];
|
|
|
65010
65107
|
toast.error(`超出最大限制,最大只支持 ${props.limitSize / 1024} M 文件!`);
|
|
65011
65108
|
return;
|
|
65012
65109
|
}
|
|
65110
|
+
tempList.value = tempFiles.map((file, index) => {
|
|
65111
|
+
const fileSuffix = getSuffix(file.name);
|
|
65112
|
+
return {
|
|
65113
|
+
isNew: true,
|
|
65114
|
+
tempName: `${file.name}_${index}`,
|
|
65115
|
+
[nameField.value]: file.name,
|
|
65116
|
+
[typeField.value]: fileSuffix,
|
|
65117
|
+
[sizeField.value]: formatFileSizeMath(file.size),
|
|
65118
|
+
stauts: 0
|
|
65119
|
+
};
|
|
65120
|
+
});
|
|
65013
65121
|
loading.value = true;
|
|
65014
|
-
Promise.all(tempFiles.map(file => {
|
|
65122
|
+
Promise.all(tempFiles.map((file, index) => {
|
|
65015
65123
|
const fileSuffix = getSuffix(file.name);
|
|
65016
65124
|
if (uploadMethod) {
|
|
65017
65125
|
return Promise.resolve(uploadMethod({
|
|
65018
65126
|
file,
|
|
65019
|
-
params:
|
|
65127
|
+
params: {
|
|
65128
|
+
...props.params,
|
|
65129
|
+
tempItem: tempList.value[index]
|
|
65130
|
+
}
|
|
65020
65131
|
})).then(res => {
|
|
65021
65132
|
const item = {
|
|
65022
65133
|
...res,
|
|
65023
65134
|
isNew: true,
|
|
65135
|
+
status: 100,
|
|
65024
65136
|
[nameField.value]: res[nameField.value] || file.name,
|
|
65025
65137
|
[typeField.value]: res[typeField.value] || fileSuffix,
|
|
65026
|
-
[sizeField.value]: file.size
|
|
65138
|
+
[sizeField.value]: formatFileSizeMath(file.size)
|
|
65027
65139
|
};
|
|
65028
65140
|
emit('success', {
|
|
65029
65141
|
item,
|
|
@@ -65061,7 +65173,14 @@ const _hoisted_25 = ["src"];
|
|
|
65061
65173
|
}
|
|
65062
65174
|
})).then(items => {
|
|
65063
65175
|
isModelUpdate = true;
|
|
65064
|
-
|
|
65176
|
+
if (props.mediatype === 'pan') {
|
|
65177
|
+
const tempListTempNames = tempList.value.map(item => item.tempName);
|
|
65178
|
+
tempList.value = [];
|
|
65179
|
+
fileList.value = [...fileList.value, ...items.filter((item, index) => !item.isErr && tempListTempNames.includes(`${item.fileName}_${index}`))].slice(-limitFileLen.value);
|
|
65180
|
+
} else {
|
|
65181
|
+
tempList.value = [];
|
|
65182
|
+
fileList.value = [...fileList.value, ...items.filter(item => !item.isErr)].slice(-limitFileLen.value);
|
|
65183
|
+
}
|
|
65065
65184
|
updateModel();
|
|
65066
65185
|
loading.value = false;
|
|
65067
65186
|
}).catch(e => {
|
|
@@ -65153,6 +65272,23 @@ const _hoisted_25 = ["src"];
|
|
|
65153
65272
|
});
|
|
65154
65273
|
updateModel();
|
|
65155
65274
|
};
|
|
65275
|
+
const removePanEvent = (item, index) => {
|
|
65276
|
+
// const index = tempList.value.findIndex((ele: any) => ele.fieldName === item.fieldName && ele.fileSize === item.fileSize)
|
|
65277
|
+
// if (index > -1) {
|
|
65278
|
+
// tempList.value.splice(index, 1)
|
|
65279
|
+
// } else {
|
|
65280
|
+
// const listIndex = fileList.value.findIndex((ele: any) => ele.fieldName === item.fieldName && ele.fileSize === item.fileSize)
|
|
65281
|
+
// if (listIndex > -1) {
|
|
65282
|
+
// fileList.value.splice(index, 1)
|
|
65283
|
+
// }
|
|
65284
|
+
// }
|
|
65285
|
+
if (item.tempName) {
|
|
65286
|
+
const tempIndex = tempList.value.findIndex(ele => ele.tempName === item.tempName);
|
|
65287
|
+
tempList.value.splice(tempIndex, 1);
|
|
65288
|
+
} else {
|
|
65289
|
+
fileList.value.splice(index, 1);
|
|
65290
|
+
}
|
|
65291
|
+
};
|
|
65156
65292
|
const loadPreviewUrl = item => {
|
|
65157
65293
|
const getPreviewUrlMethod = props.getPreviewFileUrl ? props.getPreviewFileUrl : config_0.upload ? config_0.upload.getPreviewFileUrl : null;
|
|
65158
65294
|
if (hasOfficeType(item)) {
|
|
@@ -65276,6 +65412,7 @@ const _hoisted_25 = ["src"];
|
|
|
65276
65412
|
return (_ctx, _cache) => {
|
|
65277
65413
|
const _component_MlButton = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlButton");
|
|
65278
65414
|
const _component_MlIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlIcon");
|
|
65415
|
+
const _component_MlTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlTable");
|
|
65279
65416
|
const _component_vxe_modal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-modal");
|
|
65280
65417
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
65281
65418
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-upload", [`type-${__props.mediatype}`, `size-${__props.size}`]])
|
|
@@ -65327,40 +65464,73 @@ const _hoisted_25 = ["src"];
|
|
|
65327
65464
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65328
65465
|
name: "ashbin"
|
|
65329
65466
|
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_11)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])])])]);
|
|
65330
|
-
}), 128))], 64)) : (
|
|
65467
|
+
}), 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)({
|
|
65331
65468
|
key: 1
|
|
65332
|
-
},
|
|
65469
|
+
}, {
|
|
65470
|
+
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(allFileList)
|
|
65471
|
+
})), () => [(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, {
|
|
65472
|
+
columns: tableColumn,
|
|
65473
|
+
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(allFileList)
|
|
65474
|
+
}, {
|
|
65475
|
+
fileName: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
65476
|
+
row
|
|
65477
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
65478
|
+
class: "link",
|
|
65479
|
+
title: row[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nameField)]
|
|
65480
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65481
|
+
name: "attachment"
|
|
65482
|
+
}), (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)]),
|
|
65483
|
+
status: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
65484
|
+
row
|
|
65485
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(row.status) + "%", 1)]),
|
|
65486
|
+
action: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
65487
|
+
row,
|
|
65488
|
+
rowIndex
|
|
65489
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
65490
|
+
type: "text",
|
|
65491
|
+
status: "danger",
|
|
65492
|
+
onClick: $event => removePanEvent(row, rowIndex)
|
|
65493
|
+
}, {
|
|
65494
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("删除")]),
|
|
65495
|
+
_: 2
|
|
65496
|
+
}, 1032, ["onClick"])]),
|
|
65497
|
+
_: 1
|
|
65498
|
+
}, 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)({
|
|
65499
|
+
key: 2
|
|
65500
|
+
}, {
|
|
65501
|
+
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(allFileList)
|
|
65502
|
+
})), () => [((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) => {
|
|
65333
65503
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
65334
65504
|
class: "file-all-item",
|
|
65335
65505
|
key: index
|
|
65336
65506
|
}, [(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)({
|
|
65337
65507
|
loading: loading.value,
|
|
65338
65508
|
item
|
|
65339
|
-
})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
65509
|
+
})), () => [(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", {
|
|
65340
65510
|
class: "link",
|
|
65341
65511
|
title: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(nameField)],
|
|
65342
65512
|
onClick: $event => hasPreviewType(item) ? previewFile(item) : downloadEvent(item)
|
|
65343
65513
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65344
65514
|
name: "attachment"
|
|
65345
|
-
}), (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,
|
|
65515
|
+
}), (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", {
|
|
65346
65516
|
key: 0,
|
|
65347
65517
|
class: "preview-btn",
|
|
65348
65518
|
onClick: $event => previewFile(item)
|
|
65349
65519
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65350
65520
|
name: "browse"
|
|
65351
|
-
})], 8,
|
|
65521
|
+
})], 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", {
|
|
65352
65522
|
class: "down-btn",
|
|
65353
65523
|
onClick: $event => downloadEvent(item)
|
|
65354
65524
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65355
65525
|
name: "download"
|
|
65356
|
-
})], 8,
|
|
65526
|
+
})], 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", {
|
|
65357
65527
|
key: 1,
|
|
65358
65528
|
class: "del-btn",
|
|
65359
65529
|
onClick: $event => removeEvent(item, index)
|
|
65360
65530
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65361
65531
|
name: "ashbin"
|
|
65362
|
-
})], 8,
|
|
65363
|
-
}), 128))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_modal, {
|
|
65532
|
+
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_19)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])])]);
|
|
65533
|
+
}), 128))])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_modal, {
|
|
65364
65534
|
className: "ml-upload-preview-modal",
|
|
65365
65535
|
title: "预览",
|
|
65366
65536
|
modelValue: previewVisible.value,
|
|
@@ -65378,7 +65548,7 @@ const _hoisted_25 = ["src"];
|
|
|
65378
65548
|
key: 0,
|
|
65379
65549
|
class: "ml-upload-preview-content",
|
|
65380
65550
|
onMousedown: handleImageMouseDown
|
|
65381
|
-
}, [hasImageType(previewItem.value) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
65551
|
+
}, [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", {
|
|
65382
65552
|
class: "img-list",
|
|
65383
65553
|
onMousewheel: mousewheelEvent,
|
|
65384
65554
|
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(clickMaskEvent, ["self"])
|
|
@@ -65390,8 +65560,8 @@ const _hoisted_25 = ["src"];
|
|
|
65390
65560
|
key: index,
|
|
65391
65561
|
src: getUrl(item),
|
|
65392
65562
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(previewImgStyles))
|
|
65393
|
-
}, null, 14,
|
|
65394
|
-
}), 128))], 40,
|
|
65563
|
+
}, null, 14, MlUploadvue_type_script_lang_ts_setup_true_hoisted_22);
|
|
65564
|
+
}), 128))], 40, MlUploadvue_type_script_lang_ts_setup_true_hoisted_21), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
65395
65565
|
class: "prev-arrow",
|
|
65396
65566
|
onClick: prevImgEvent
|
|
65397
65567
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
@@ -65401,7 +65571,7 @@ const _hoisted_25 = ["src"];
|
|
|
65401
65571
|
onClick: nextImgEvent
|
|
65402
65572
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
65403
65573
|
name: "cc-arrow-right-circle"
|
|
65404
|
-
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
65574
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_23, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
65405
65575
|
class: "ml-upload-preview-btn",
|
|
65406
65576
|
type: "text",
|
|
65407
65577
|
icon: "mlicon-zoom-in",
|
|
@@ -65430,14 +65600,14 @@ const _hoisted_25 = ["src"];
|
|
|
65430
65600
|
key: 1,
|
|
65431
65601
|
class: "video-warpper",
|
|
65432
65602
|
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(clickMaskEvent, ["self"])
|
|
65433
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("video",
|
|
65603
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("video", _hoisted_25, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("source", {
|
|
65434
65604
|
src: previewFileUrl.value,
|
|
65435
65605
|
type: "video/mp4"
|
|
65436
|
-
}, null, 8,
|
|
65606
|
+
}, 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", {
|
|
65437
65607
|
key: 2,
|
|
65438
65608
|
class: "frame-warpper",
|
|
65439
65609
|
src: previewFileUrl.value
|
|
65440
|
-
}, null, 8,
|
|
65610
|
+
}, 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)]),
|
|
65441
65611
|
_: 1
|
|
65442
65612
|
}, 8, ["modelValue"])], 2);
|
|
65443
65613
|
};
|
|
@@ -71233,7 +71403,7 @@ function index_config(options) {
|
|
|
71233
71403
|
return config_0;
|
|
71234
71404
|
}
|
|
71235
71405
|
const MaliUI = {
|
|
71236
|
-
version: "1.1.
|
|
71406
|
+
version: "1.1.85",
|
|
71237
71407
|
install: index_install,
|
|
71238
71408
|
config: index_config,
|
|
71239
71409
|
renderer: {
|