@moment-design/material-library 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +4 -4
- package/dist/index.cjs.js +20 -10
- package/dist/index.esm.js +20 -10
- package/dist/index.min.js +23 -20
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/css/index.css
CHANGED
|
@@ -194,11 +194,11 @@
|
|
|
194
194
|
.operate-omit-list[data-v-0b1d01dd] {
|
|
195
195
|
color: #1966ff;
|
|
196
196
|
}
|
|
197
|
-
.right-menu .l-material-library-infos[data-v-
|
|
197
|
+
.right-menu .l-material-library-infos[data-v-52a7189c] {
|
|
198
198
|
display: flex;
|
|
199
199
|
align-items: center;
|
|
200
200
|
}
|
|
201
|
-
.right-menu .l-material-library-infos .name[data-v-
|
|
201
|
+
.right-menu .l-material-library-infos .name[data-v-52a7189c] {
|
|
202
202
|
margin-left: 6px;
|
|
203
203
|
font-size: 14px;
|
|
204
204
|
flex: 1;
|
|
@@ -207,13 +207,13 @@
|
|
|
207
207
|
overflow: hidden;
|
|
208
208
|
text-overflow: ellipsis;
|
|
209
209
|
}
|
|
210
|
-
.pagination[data-v-
|
|
210
|
+
.pagination[data-v-52a7189c] {
|
|
211
211
|
display: flex;
|
|
212
212
|
justify-content: flex-end;
|
|
213
213
|
width: 100%;
|
|
214
214
|
margin-top: 16px;
|
|
215
215
|
}
|
|
216
|
-
.l-material-library-info[data-v-
|
|
216
|
+
.l-material-library-info[data-v-52a7189c] {
|
|
217
217
|
background-color: #ffffff;
|
|
218
218
|
border-radius: 2px;
|
|
219
219
|
padding: 16px;
|
package/dist/index.cjs.js
CHANGED
|
@@ -6556,6 +6556,13 @@ const _sfc_main$5 = vue.defineComponent({
|
|
|
6556
6556
|
}
|
|
6557
6557
|
});
|
|
6558
6558
|
var LTableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0b1d01dd"]]);
|
|
6559
|
+
const fileTypes = [
|
|
6560
|
+
{ label: "\u56FE\u7247", value: 1 },
|
|
6561
|
+
{ label: "\u6587\u6863", value: 2 },
|
|
6562
|
+
{ label: "\u89C6\u9891", value: 3 },
|
|
6563
|
+
{ label: "\u97F3\u4E50", value: 4 },
|
|
6564
|
+
{ label: "\u5176\u4ED6", value: 0 }
|
|
6565
|
+
];
|
|
6559
6566
|
var IconVideo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAACS5JREFUeF7t3XtsW1cZAPDv3Ov3tV0/4iR+JR2h2pqS62RJVyVsbKyb1q0bDelabZPoWEEgdaPKA7SWgeCPDTQQaQcVg2hjGn/wDxUSQkwqsEkT2/pPO2JXY0OABOqW9LGtDx5pljQHnaYeXhrb51yfa5+bfv6z/fydz9/Px/d5bghIe1EybBZ6NIAbKVCTEC0LlIYBwC1tiDom6r8v/qttX898p45D2jIUkZF11MxvpAC7CEC7jHwq5LjlwUTT3Afw0617U99VoR6rNdQEPJKbTBOAx4GSLqsFqPo+Bsxqm51dmHDyTLYMPNZ1tJcS15MAEFEVqZa6isAsh5NnsiXgy7gHnLp95YEvBXbyTBYGvvSzTMnzK3XmFvGXAjsVWRh4NDf53Erc5i6d1csBOxFZCJjtLQMA2+6u+Fc5YKchCwBTMmIWDq6kQ6FK39JKwE5C5gYeNvPXawATK37qXv6A1YCdgswNPGrmdwPADgT+aAdUP07mBh4xJ58hQLoR+MoOqIzMDTyaKxwCSuMIvHwHVEXmBzbzh1fyiQ3ew6RKX3AVkUWAj1wts5d9Tp6drOX6oRoyApf51loFVm3vGoFtAFYJGYFtAlYFGYFtBFYBGYFtBm40MgLXAbiRyAhcJ2A2zNzswsTWOt/Ih8B1BG4EMgLXGbjeyAjcAOB6IiNwGeCbdyTihAB3f6ycxq3HNpn7A4ya+avqXPQn72uKub1EswIn8h67kRG4jEbvPdFVoZirLstu7ERG4DLA1w6EjOQan19kN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ptg5Qucf+cGx3qOiWSwBlyCz7THOZNGui8WfJXT+USu4bBjLwB/+XAM8jttkMTHuaEKPUYBviP4sl+avCbiYiO1dU4BdeAjFTVcxkB0KEYAfi+wtl0soBXgxOSXDZqFHA7iRAjUJ0bJAKVsZjxcoKrvPASHnKV04ToAUFgBe2V8w/8R7nFvtK/U/r+jstdRXNSoAAAAASUVORK5CYII=";
|
|
6560
6567
|
var cRightMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6561
6568
|
const _sfc_main$4 = vue.defineComponent({
|
|
@@ -6578,6 +6585,7 @@ const _sfc_main$4 = vue.defineComponent({
|
|
|
6578
6585
|
const deepDatas = vue.ref(props.datas);
|
|
6579
6586
|
const current = vue.ref(1);
|
|
6580
6587
|
const pageSize = vue.ref(15);
|
|
6588
|
+
const fileTypesList = vue.ref(fileTypes);
|
|
6581
6589
|
const resetCurrent = () => {
|
|
6582
6590
|
current.value = 1;
|
|
6583
6591
|
};
|
|
@@ -6596,8 +6604,9 @@ const _sfc_main$4 = vue.defineComponent({
|
|
|
6596
6604
|
columns: [
|
|
6597
6605
|
{ type: "slot", title: "\u7D20\u6750\u540D\u79F0", dataIndex: "info" },
|
|
6598
6606
|
{
|
|
6607
|
+
type: "slot",
|
|
6599
6608
|
title: "\u7D20\u6750\u7C7B\u578B",
|
|
6600
|
-
dataIndex: "
|
|
6609
|
+
dataIndex: "fileType",
|
|
6601
6610
|
width: 160
|
|
6602
6611
|
},
|
|
6603
6612
|
{ title: "\u66F4\u65B0\u65F6\u95F4", dataIndex: "updateAt" },
|
|
@@ -6681,6 +6690,10 @@ const _sfc_main$4 = vue.defineComponent({
|
|
|
6681
6690
|
}
|
|
6682
6691
|
return filePath;
|
|
6683
6692
|
};
|
|
6693
|
+
const getTypeName = ({ fileType }) => {
|
|
6694
|
+
var _a, _b;
|
|
6695
|
+
return (_b = (_a = fileTypesList.value) == null ? void 0 : _a.find((e) => e.value === fileType)) == null ? void 0 : _b.label;
|
|
6696
|
+
};
|
|
6684
6697
|
vue.watch(
|
|
6685
6698
|
() => props.datas,
|
|
6686
6699
|
(v) => {
|
|
@@ -6704,7 +6717,8 @@ const _sfc_main$4 = vue.defineComponent({
|
|
|
6704
6717
|
getIds,
|
|
6705
6718
|
getItems,
|
|
6706
6719
|
initCheckbox,
|
|
6707
|
-
getMaterialIcon
|
|
6720
|
+
getMaterialIcon,
|
|
6721
|
+
getTypeName
|
|
6708
6722
|
};
|
|
6709
6723
|
}
|
|
6710
6724
|
});
|
|
@@ -6731,6 +6745,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6731
6745
|
config: _ctx.deepTableConfig,
|
|
6732
6746
|
class: "right-menu"
|
|
6733
6747
|
}, {
|
|
6748
|
+
fileType: vue.withCtx(({ rows }) => [
|
|
6749
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.getTypeName(rows)), 1)
|
|
6750
|
+
]),
|
|
6734
6751
|
info: vue.withCtx(({ rows }) => [
|
|
6735
6752
|
vue.createElementVNode("div", _hoisted_1$4, [
|
|
6736
6753
|
vue.createVNode(_component_m_image, {
|
|
@@ -6795,7 +6812,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6795
6812
|
])
|
|
6796
6813
|
], 64);
|
|
6797
6814
|
}
|
|
6798
|
-
var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
6815
|
+
var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-52a7189c"]]);
|
|
6799
6816
|
var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6800
6817
|
const _sfc_main$3 = vue.defineComponent({
|
|
6801
6818
|
name: "",
|
|
@@ -6923,13 +6940,6 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6923
6940
|
}, 8, ["visible", "others", "onHandle:ok"]);
|
|
6924
6941
|
}
|
|
6925
6942
|
var CChangeGroup = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-3777c371"]]);
|
|
6926
|
-
const fileTypes = [
|
|
6927
|
-
{ label: "\u56FE\u7247", value: 1 },
|
|
6928
|
-
{ label: "\u6587\u6863", value: 2 },
|
|
6929
|
-
{ label: "\u89C6\u9891", value: 3 },
|
|
6930
|
-
{ label: "\u97F3\u4E50", value: 4 },
|
|
6931
|
-
{ label: "\u5176\u4ED6", value: 0 }
|
|
6932
|
-
];
|
|
6933
6943
|
var cUpload_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6934
6944
|
const _sfc_main$2 = vue.defineComponent({
|
|
6935
6945
|
name: "",
|
package/dist/index.esm.js
CHANGED
|
@@ -6555,6 +6555,13 @@ const _sfc_main$5 = defineComponent({
|
|
|
6555
6555
|
}
|
|
6556
6556
|
});
|
|
6557
6557
|
var LTableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0b1d01dd"]]);
|
|
6558
|
+
const fileTypes = [
|
|
6559
|
+
{ label: "\u56FE\u7247", value: 1 },
|
|
6560
|
+
{ label: "\u6587\u6863", value: 2 },
|
|
6561
|
+
{ label: "\u89C6\u9891", value: 3 },
|
|
6562
|
+
{ label: "\u97F3\u4E50", value: 4 },
|
|
6563
|
+
{ label: "\u5176\u4ED6", value: 0 }
|
|
6564
|
+
];
|
|
6558
6565
|
var IconVideo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAACS5JREFUeF7t3XtsW1cZAPDv3Ov3tV0/4iR+JR2h2pqS62RJVyVsbKyb1q0bDelabZPoWEEgdaPKA7SWgeCPDTQQaQcVg2hjGn/wDxUSQkwqsEkT2/pPO2JXY0OABOqW9LGtDx5pljQHnaYeXhrb51yfa5+bfv6z/fydz9/Px/d5bghIe1EybBZ6NIAbKVCT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bvbs0cPvg+3jbLa/zEq+ty3oCDbnwPaCSW9npUWQGh/H3RO59avbrzU41funJxntKnPvf3P0+9pcaKBd4JojxwKO7St38709bRFwy7vaQRS1jomem52d/95OTUkd+cOcvbWFXilAdWpVFOrQOBnSrHWTcCczbKqWEI7FQ5zroRmLNRTg1DYKfKcdaNwJyNcmoYAjtVjrNuBOZslFPDENipcpx1IzBno5wahsBOleOsG4E5G+XUMAR2qhxn3QjM2SinhiGwU+U467YD+DAAWH7YCWfdGMbXgbnxQq6fJ5R7Lc9ornAIKGXrf/DV6A4Q8t543ryDpwxu4BFz8hkCpJsnKcbY2wEKdHJfofuLPKNwA4+a+d0AsIMnKcbY3oGfjxdyP+QZhRt42MxfrwFM8CTFGHs7sADwpf2F3Os8o3ADA1AyYhYOEoB2nsQYY08HKMA/9xXMewEIx4JXkQXTi8/K2ggAT9pTOmbl7MCj44Xci5yxAiviL2cczU0+B5R08Q6AcRI7QOix8Xz3QyIZBX6iF9OO5CbThJLnASAiMhDG1tyBs5TQB/flu98RySQMzJKPdR3tpcR1AE98iLS6ptg5Qucf+cGx3qOiWSwBlyCz7THOZNGui8WfJXT+USu4bBjLwB/+XAM8jttkMTHuaEKPUYBviP4sl+avCbiYiO1dU4BdeAjFTVcxkB0KEYAfi+wtl0soBXgxOSXDZqFHA7iRAjUJ0bJAKVsZjxcoKrvPASHnKV04ToAUFgBe2V8w/8R7nFvtK/U/r+jstdRXNSoAAAAASUVORK5CYII=";
|
|
6559
6566
|
var cRightMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6560
6567
|
const _sfc_main$4 = defineComponent({
|
|
@@ -6577,6 +6584,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
6577
6584
|
const deepDatas = ref(props.datas);
|
|
6578
6585
|
const current = ref(1);
|
|
6579
6586
|
const pageSize = ref(15);
|
|
6587
|
+
const fileTypesList = ref(fileTypes);
|
|
6580
6588
|
const resetCurrent = () => {
|
|
6581
6589
|
current.value = 1;
|
|
6582
6590
|
};
|
|
@@ -6595,8 +6603,9 @@ const _sfc_main$4 = defineComponent({
|
|
|
6595
6603
|
columns: [
|
|
6596
6604
|
{ type: "slot", title: "\u7D20\u6750\u540D\u79F0", dataIndex: "info" },
|
|
6597
6605
|
{
|
|
6606
|
+
type: "slot",
|
|
6598
6607
|
title: "\u7D20\u6750\u7C7B\u578B",
|
|
6599
|
-
dataIndex: "
|
|
6608
|
+
dataIndex: "fileType",
|
|
6600
6609
|
width: 160
|
|
6601
6610
|
},
|
|
6602
6611
|
{ title: "\u66F4\u65B0\u65F6\u95F4", dataIndex: "updateAt" },
|
|
@@ -6680,6 +6689,10 @@ const _sfc_main$4 = defineComponent({
|
|
|
6680
6689
|
}
|
|
6681
6690
|
return filePath;
|
|
6682
6691
|
};
|
|
6692
|
+
const getTypeName = ({ fileType }) => {
|
|
6693
|
+
var _a, _b;
|
|
6694
|
+
return (_b = (_a = fileTypesList.value) == null ? void 0 : _a.find((e) => e.value === fileType)) == null ? void 0 : _b.label;
|
|
6695
|
+
};
|
|
6683
6696
|
watch(
|
|
6684
6697
|
() => props.datas,
|
|
6685
6698
|
(v) => {
|
|
@@ -6703,7 +6716,8 @@ const _sfc_main$4 = defineComponent({
|
|
|
6703
6716
|
getIds,
|
|
6704
6717
|
getItems,
|
|
6705
6718
|
initCheckbox,
|
|
6706
|
-
getMaterialIcon
|
|
6719
|
+
getMaterialIcon,
|
|
6720
|
+
getTypeName
|
|
6707
6721
|
};
|
|
6708
6722
|
}
|
|
6709
6723
|
});
|
|
@@ -6730,6 +6744,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6730
6744
|
config: _ctx.deepTableConfig,
|
|
6731
6745
|
class: "right-menu"
|
|
6732
6746
|
}, {
|
|
6747
|
+
fileType: withCtx(({ rows }) => [
|
|
6748
|
+
createTextVNode(toDisplayString(_ctx.getTypeName(rows)), 1)
|
|
6749
|
+
]),
|
|
6733
6750
|
info: withCtx(({ rows }) => [
|
|
6734
6751
|
createElementVNode("div", _hoisted_1$4, [
|
|
6735
6752
|
createVNode(_component_m_image, {
|
|
@@ -6794,7 +6811,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6794
6811
|
])
|
|
6795
6812
|
], 64);
|
|
6796
6813
|
}
|
|
6797
|
-
var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
6814
|
+
var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-52a7189c"]]);
|
|
6798
6815
|
var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6799
6816
|
const _sfc_main$3 = defineComponent({
|
|
6800
6817
|
name: "",
|
|
@@ -6922,13 +6939,6 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6922
6939
|
}, 8, ["visible", "others", "onHandle:ok"]);
|
|
6923
6940
|
}
|
|
6924
6941
|
var CChangeGroup = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-3777c371"]]);
|
|
6925
|
-
const fileTypes = [
|
|
6926
|
-
{ label: "\u56FE\u7247", value: 1 },
|
|
6927
|
-
{ label: "\u6587\u6863", value: 2 },
|
|
6928
|
-
{ label: "\u89C6\u9891", value: 3 },
|
|
6929
|
-
{ label: "\u97F3\u4E50", value: 4 },
|
|
6930
|
-
{ label: "\u5176\u4ED6", value: 0 }
|
|
6931
|
-
];
|
|
6932
6942
|
var cUpload_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6933
6943
|
const _sfc_main$2 = defineComponent({
|
|
6934
6944
|
name: "",
|
package/dist/index.min.js
CHANGED
|
@@ -3172,17 +3172,18 @@
|
|
|
3172
3172
|
};
|
|
3173
3173
|
} });
|
|
3174
3174
|
var Qe = r(Ne, [["__scopeId", "data-v-0b1d01dd"]]);
|
|
3175
|
-
const Me =
|
|
3176
|
-
|
|
3175
|
+
const Me = [{ label: "\u56FE\u7247", value: 1 }, { label: "\u6587\u6863", value: 2 }, { label: "\u89C6\u9891", value: 3 }, { label: "\u97F3\u4E50", value: 4 }, { label: "\u5176\u4ED6", value: 0 }];
|
|
3176
|
+
const Se = e.defineComponent({ name: "", components: { LTableOperate: Qe }, props: { datas: { type: Array, default: () => [] }, config: { type: Object, default: () => ({}) } }, setup(t2, { emit: n2 }) {
|
|
3177
|
+
const r2 = e.ref(t2.config), o2 = e.ref(t2.datas), i2 = e.ref(1), u2 = e.ref(15), a2 = e.ref(Me), l2 = e.reactive({ table: { selectedType: "checkbox", selectedRows: [], data: [], columns: [{ type: "slot", title: "\u7D20\u6750\u540D\u79F0", dataIndex: "info" }, { type: "slot", title: "\u7D20\u6750\u7C7B\u578B", dataIndex: "fileType", width: 160 }, { title: "\u66F4\u65B0\u65F6\u95F4", dataIndex: "updateAt" }, { type: "slot", title: "\u64CD\u4F5C", dataIndex: "operate", width: 220, align: "center" }] } });
|
|
3177
3178
|
return e.watch(() => t2.datas, (e2) => {
|
|
3178
|
-
|
|
3179
|
+
l2.table.data = e2.list, o2.value = e2, l2.table.selectedRows = [];
|
|
3179
3180
|
}, { immediate: true, deep: true }), { deepDatas: o2, deepConfig: r2, pageSize: u2, current: i2, resetCurrent: () => {
|
|
3180
3181
|
i2.value = 1;
|
|
3181
3182
|
}, changePage: (e2) => {
|
|
3182
3183
|
n2("handle:page", e2);
|
|
3183
3184
|
}, changePageSizes: (e2) => {
|
|
3184
3185
|
u2.value = e2, n2("handle:page:sizes", e2);
|
|
3185
|
-
}, deepTableConfig:
|
|
3186
|
+
}, deepTableConfig: l2, operateList: () => {
|
|
3186
3187
|
var _a, _b;
|
|
3187
3188
|
const e2 = [{ name: "\u9884\u89C8", show: true }, { name: "\u79FB\u52A8\u5206\u7EC4", show: false !== ((_a = t2.config) == null ? void 0 : _a.isShowRemoveGroup) }, { name: "\u5220\u9664", show: false !== ((_b = t2.config) == null ? void 0 : _b.isShowDeleteMaterials) }];
|
|
3188
3189
|
return e2 == null ? void 0 : e2.filter((e3) => e3.show);
|
|
@@ -3199,23 +3200,26 @@
|
|
|
3199
3200
|
}
|
|
3200
3201
|
}, getIds: () => {
|
|
3201
3202
|
var _a, _b;
|
|
3202
|
-
return (_b = (_a =
|
|
3203
|
+
return (_b = (_a = l2.table) == null ? void 0 : _a.selectedRows) == null ? void 0 : _b.map((e2) => e2.id);
|
|
3203
3204
|
}, getItems: () => {
|
|
3204
3205
|
var _a;
|
|
3205
|
-
return (_a =
|
|
3206
|
+
return (_a = l2.table) == null ? void 0 : _a.selectedRows;
|
|
3206
3207
|
}, initCheckbox: () => {
|
|
3207
|
-
|
|
3208
|
+
l2.table.selectedRows = [];
|
|
3208
3209
|
}, getMaterialIcon: ({ fileType: e2, fileFormat: t3, filePath: n3 }) => {
|
|
3209
3210
|
const r3 = t3.toLowerCase();
|
|
3210
3211
|
return 0 === e2 ? b : 3 === e2 ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAACS5JREFUeF7t3XtsW1cZAPDv3Ov3tV0/4iR+JR2h2pqS62RJVyVsbKyb1q0bDelabZPoWEEgdaPKA7SWgeCPDTQQaQcVg2hjGn/wDxUSQkwqsEkT2/pPO2JXY0OABOqW9LGtDx5pljQHnaYeXhrb51yfa5+bfv6z/fydz9/Px/d5bghIe1EybBZ6NIAbKVCTEC0LlIYBwC1tiDom6r8v/qttX898p45D2jIUkZF11MxvpAC7CEC7jHwq5LjlwUTT3Afw0617U99VoR6rNdQEPJKbTBOAx4GSLqsFqPo+Bsxqm51dmHDyTLYMPNZ1tJcS15MAEFEVqZa6isAsh5NnsiXgy7gHnLp95YEvBXbyTBYGvvSzTMnzK3XmFvGXAjsVWRh4NDf53Erc5i6d1csBOxFZCJjtLQMA2+6u+Fc5YKchCwBTMmIWDq6kQ6FK39JKwE5C5gYeNvPXawATK37qXv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xQq6fJ5R7Lc9ornAIKGXrf/DV6A4Q8t543ryDpwxu4BFz8hkCpJsnKcbY2wEKdHJfofuLPKNwA4+a+d0AsIMnKcbY3oGfjxdyP+QZhRt42MxfrwFM8CTFGHs7sADwpf2F3Os8o3ADA1AyYhYOEoB2nsQYY08HKMA/9xXMewEIx4JXkQXTi8/K2ggAT9pTOmbl7MCj44Xci5yxAiviL2cczU0+B5R08Q6AcRI7QOix8Xz3QyIZBX6iF9OO5CbThJLnASAiMhDG1tyBs5TQB/flu98RySQMzJKPdR3tpcR1AE98iLS6ptg5Qucf+cGx3qOiWSwBlyCz7THOZNGui8WfJXT+USu4bBjLwB/+XAM8jttkMTHuaEKPUYBviP4sl+avCbiYiO1dU4BdeAjFTVcxkB0KEYAfi+wtl0soBXgxOSXDZqFHA7iRAjUJ0bJAKVsZjxcoKrvPASHnKV04ToAUFgBe2V8w/8R7nFvtK/U/r+jstdRXNSoAAAAASUVORK5CYII=" : 4 === e2 ? x : ["rar", "zip"].includes(r3) ? V : ["ttf", "doc", "docx"].includes(r3) ? G : ["xls", "xlsx", "xlsm"].includes(r3) ? Y : ["pdf"].includes(r3) ? k : ["ppt", "pptx"].includes(r3) ? E : ["txt"].includes(r3) ? D : n3;
|
|
3212
|
+
}, getTypeName: ({ fileType: e2 }) => {
|
|
3213
|
+
var _a, _b;
|
|
3214
|
+
return (_b = (_a = a2.value) == null ? void 0 : _a.find((t3) => t3.value === e2)) == null ? void 0 : _b.label;
|
|
3211
3215
|
} };
|
|
3212
|
-
} }),
|
|
3213
|
-
var
|
|
3216
|
+
} }), We = { class: "l-material-library-infos" }, Ie = { class: "name" }, Ke = { class: "l-material-library-info" }, Je = { class: "pagination" };
|
|
3217
|
+
var Re = r(Se, [["render", function(t2, n2, r2, o2, i2, u2) {
|
|
3214
3218
|
var _a, _b;
|
|
3215
3219
|
const a2 = e.resolveComponent("m-image"), l2 = e.resolveComponent("m-trigger"), c2 = e.resolveComponent("LTableOperate"), f2 = e.resolveComponent("m-query-table"), A2 = e.resolveComponent("m-scrollbar"), s2 = e.resolveComponent("m-pagination");
|
|
3216
|
-
return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createVNode(A2, { style: e.normalizeStyle([{ overflow: "auto" }, { height: ((_b = (_a = t2.deepConfig) == null ? void 0 : _a.scroll) == null ? void 0 : _b.right) ? t2.deepConfig.scroll.right : "430px" }]) }, { default: e.withCtx(() => [e.createVNode(f2, { config: t2.deepTableConfig, class: "right-menu" }, { info: e.withCtx(({ rows: r3 }) => [e.createElementVNode("div",
|
|
3217
|
-
}], ["__scopeId", "data-v-
|
|
3218
|
-
const
|
|
3220
|
+
return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createVNode(A2, { style: e.normalizeStyle([{ overflow: "auto" }, { height: ((_b = (_a = t2.deepConfig) == null ? void 0 : _a.scroll) == null ? void 0 : _b.right) ? t2.deepConfig.scroll.right : "430px" }]) }, { default: e.withCtx(() => [e.createVNode(f2, { config: t2.deepTableConfig, class: "right-menu" }, { fileType: e.withCtx(({ rows: n3 }) => [e.createTextVNode(e.toDisplayString(t2.getTypeName(n3)), 1)]), info: e.withCtx(({ rows: r3 }) => [e.createElementVNode("div", We, [e.createVNode(a2, { src: t2.getMaterialIcon(r3), preview: false, width: "40", height: "40", fit: "contain" }, null, 8, ["src"]), e.createVNode(l2, { position: "top", "auto-fit-position": "", "unmount-on-close": false }, { content: e.withCtx(() => [e.createElementVNode("div", Ke, [e.createElementVNode("div", null, [n2[0] || (n2[0] = e.createElementVNode("span", null, "\u540D\u79F0\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.fileName), 1)]), e.createElementVNode("div", null, [n2[1] || (n2[1] = e.createElementVNode("span", null, "\u7C7B\u578B\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.fileFormat), 1)]), e.createElementVNode("div", null, [n2[2] || (n2[2] = e.createElementVNode("span", null, "\u4FEE\u6539\u65F6\u95F4\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.updateAt), 1)])])]), default: e.withCtx(() => [e.createElementVNode("div", Ie, e.toDisplayString(r3.fileName), 1)]), _: 2 }, 1024)])]), operate: e.withCtx(({ rows: n3 }) => [e.createVNode(c2, { list: t2.operateList(), "onHandle:click": (e2) => t2.handleOperate(e2, n3) }, null, 8, ["list", "onHandle:click"])]), _: 1 }, 8, ["config"])]), _: 1 }, 8, ["style"]), e.createCommentVNode(" pagination "), e.createElementVNode("div", Je, [e.createVNode(s2, { current: t2.current, total: +t2.deepDatas.total, "show-total": "", "show-jumper": "", "show-page-size": "", "page-size": t2.pageSize, "page-size-options": [15, 30, 45, 90], onChange: t2.changePage, onPageSizeChange: t2.changePageSizes }, null, 8, ["current", "total", "page-size", "onChange", "onPageSizeChange"])])], 64);
|
|
3221
|
+
}], ["__scopeId", "data-v-52a7189c"]]);
|
|
3222
|
+
const je = e.defineComponent({ name: "", components: { LModal: o }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
|
|
3219
3223
|
const o2 = e.ref(n2.config), i2 = e.ref(), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(), f2 = e.ref(), A2 = async () => {
|
|
3220
3224
|
var _a, _b, _c;
|
|
3221
3225
|
try {
|
|
@@ -3245,15 +3249,14 @@
|
|
|
3245
3249
|
}, init: A2, open: (e2) => {
|
|
3246
3250
|
l2.value = "", a2.value = true, f2.value = e2, A2();
|
|
3247
3251
|
} };
|
|
3248
|
-
} }),
|
|
3249
|
-
var
|
|
3252
|
+
} }), Oe = { class: "change-group-items" }, Pe = ["onClick"], He = ["title"];
|
|
3253
|
+
var qe = r(je, [["render", function(t2, n2, r2, o2, i2, u2) {
|
|
3250
3254
|
const a2 = e.resolveComponent("m-spin"), l2 = e.resolveComponent("m-scrollbar"), c2 = e.resolveComponent("l-modal");
|
|
3251
|
-
return e.openBlock(), e.createBlock(c2, { title: "\u79FB\u52A8\u5230", visible: t2.visible, others: { width: 460, okLoading: t2.okLoading }, "onHandle:cancel": n2[0] || (n2[0] = (e2) => t2.visible = false), "onHandle:ok": t2.handleOk }, { default: e.withCtx(() => [e.createVNode(l2, { style: { height: "calc(100vh - 430px)", overflow: "auto" } }, { default: e.withCtx(() => [e.createVNode(a2, { loading: t2.loading }, { default: e.withCtx(() => [e.createElementVNode("div",
|
|
3255
|
+
return e.openBlock(), e.createBlock(c2, { title: "\u79FB\u52A8\u5230", visible: t2.visible, others: { width: 460, okLoading: t2.okLoading }, "onHandle:cancel": n2[0] || (n2[0] = (e2) => t2.visible = false), "onHandle:ok": t2.handleOk }, { default: e.withCtx(() => [e.createVNode(l2, { style: { height: "calc(100vh - 430px)", overflow: "auto" } }, { default: e.withCtx(() => [e.createVNode(a2, { loading: t2.loading }, { default: e.withCtx(() => [e.createElementVNode("div", Oe, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t2.groups, (r3, o3) => {
|
|
3252
3256
|
var _a;
|
|
3253
|
-
return e.openBlock(), e.createElementBlock("div", { key: r3.id, class: e.normalizeClass(["item", t2.active === o3 ? "active" : ""]), onClick: (e2) => t2.active = o3 }, [n2[1] || (n2[1] = e.createElementVNode("div", { class: "img" }, [e.createElementVNode("img", { class: "folder", src: p })], -1)), e.createElementVNode("div", { class: "name", title: r3.groupName }, e.toDisplayString(r3.groupName) + "(" + e.toDisplayString((_a = r3.fileCount) != null ? _a : 0) + ")", 9,
|
|
3257
|
+
return e.openBlock(), e.createElementBlock("div", { key: r3.id, class: e.normalizeClass(["item", t2.active === o3 ? "active" : ""]), onClick: (e2) => t2.active = o3 }, [n2[1] || (n2[1] = e.createElementVNode("div", { class: "img" }, [e.createElementVNode("img", { class: "folder", src: p })], -1)), e.createElementVNode("div", { class: "name", title: r3.groupName }, e.toDisplayString(r3.groupName) + "(" + e.toDisplayString((_a = r3.fileCount) != null ? _a : 0) + ")", 9, He)], 10, Pe);
|
|
3254
3258
|
}), 128))])]), _: 1 }, 8, ["loading"])]), _: 1 })]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
|
|
3255
3259
|
}], ["__scopeId", "data-v-3777c371"]]);
|
|
3256
|
-
const qe = [{ label: "\u56FE\u7247", value: 1 }, { label: "\u6587\u6863", value: 2 }, { label: "\u89C6\u9891", value: 3 }, { label: "\u97F3\u4E50", value: 4 }, { label: "\u5176\u4ED6", value: 0 }];
|
|
3257
3260
|
const ze = e.defineComponent({ name: "", components: { LModal: o }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
|
|
3258
3261
|
var _a;
|
|
3259
3262
|
const o2 = e.ref(n2.config), i2 = e.ref(false), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(1), f2 = e.ref(), A2 = e.ref([]), s2 = e.ref(10), g2 = e.ref((_a = o2.value) == null ? void 0 : _a.accept), p2 = e.ref([]), v2 = async () => {
|
|
@@ -3285,7 +3288,7 @@
|
|
|
3285
3288
|
case 4:
|
|
3286
3289
|
g2.value = ".mp3";
|
|
3287
3290
|
}
|
|
3288
|
-
}, { immediate: true }), { visible: i2, deepConfig: o2, loading: u2, okLoading: a2, fileName: l2, fileType: c2, fileTypes:
|
|
3291
|
+
}, { immediate: true }), { visible: i2, deepConfig: o2, loading: u2, okLoading: a2, fileName: l2, fileType: c2, fileTypes: Me, groupId: f2, source: "lsb", groups: A2, limit: s2, accept: g2, fileList: p2, exceedLimit: () => {
|
|
3289
3292
|
t.Message.error(`\u6700\u591A\u9009\u62E9${s2.value}\u4E2A\u6587\u4EF6`);
|
|
3290
3293
|
}, beforeUpload: (e2) => new Promise((n3, r3) => {
|
|
3291
3294
|
1 === c2.value && e2.size / 1024 / 1024 > 10 || 2 === c2.value && e2.size / 1024 / 1024 > 20 || 3 === c2.value && e2.size / 1024 / 1024 > 300 || 4 === c2.value && e2.size / 1024 / 1024 > 5 ? (t.Message.error("\u60A8\u5F53\u524D\u9009\u62E9\u7684\u7D20\u6750\u5927\u5C0F\u8D85\u51FA\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"), r3()) : n3(true);
|
|
@@ -3322,7 +3325,7 @@
|
|
|
3322
3325
|
return [e.createElementVNode("div", Ze, [n2[4] || (n2[4] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u7D20\u6750\u540D\u79F0")], -1)), e.createVNode(a2, { modelValue: t2.fileName, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => t2.fileName = e2), class: "input", style: { width: "386px" }, placeholder: "\u8BF7\u8F93\u5165", "allow-clear": "", "max-length": 20, "show-word-limit": "" }, null, 8, ["modelValue"])]), e.createElementVNode("div", Te, [n2[5] || (n2[5] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u9009\u62E9\u5206\u7EC4")], -1)), e.createVNode(l2, { modelValue: t2.groupId, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => t2.groupId = e2), class: "select", style: { width: "386px" }, placeholder: "\u8BF7\u9009\u62E9\u5206\u7EC4", "allow-clear": "", options: (_a = t2.groups) == null ? void 0 : _a.map((e2) => ({ label: e2.groupName, value: e2.id })) }, null, 8, ["modelValue", "options"])]), e.createElementVNode("div", _e, [n2[6] || (n2[6] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u7D20\u6750\u7C7B\u578B")], -1)), e.createVNode(c2, { modelValue: t2.fileType, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => t2.fileType = e2), options: t2.fileTypes }, null, 8, ["modelValue", "options"])]), e.createElementVNode("div", $e, [e.createElementVNode("div", et, [1 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", tt, "\u56FE\u7247\u4E0A\u4F20\u683C\u5F0F\u4E3Ajpg\u3001jpeg\u3001png\u3001bmp\u3001webp\u3001GIF, \u5927\u5C0F\u9650\u5236\u572810M\u4EE5\u5185")) : e.createCommentVNode("v-if", true), 2 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", nt, " \u6587\u6863\u4E0A\u4F20\u683C\u5F0F\u4E3Arar\u3001zip\u3001ttf\u3001doc\u3001docx\u3001xls\u3001xlsx\u3001xlsm\u3001pdf\u3001ppt\u3001pptx\u3001txt, \u5927\u5C0F\u9650\u5236\u572820M\u4EE5\u5185 ")) : e.createCommentVNode("v-if", true), 3 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", rt, "\u89C6\u9891\u4E0A\u4F20\u683C\u5F0F\u4E3ASWF\u3001MP4, \u5927\u5C0F\u9650\u5236\u5728300M\u4EE5\u5185")) : e.createCommentVNode("v-if", true), 4 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", ot, "\u97F3\u4E50\u4E0A\u4F20\u683C\u5F0F\u4E3AMP3, \u5927\u5C0F\u9650\u5236\u57285M\u4EE5\u5185")) : e.createCommentVNode("v-if", true)]), e.createVNode(A2, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, { default: e.withCtx(() => [e.createVNode(f2, { "file-list": t2.fileList, "auto-upload": false, accept: t2.accept, limit: t2.limit, "show-retry-button": false, "show-cancel-button": false, onExceedLimit: t2.exceedLimit, onBeforeUpload: t2.beforeUpload, onChange: t2.fileChange }, null, 8, ["file-list", "accept", "limit", "onExceedLimit", "onBeforeUpload", "onChange"])]), _: 1 })])];
|
|
3323
3326
|
}), _: 1 }, 8, ["loading"])]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
|
|
3324
3327
|
}], ["__scopeId", "data-v-3fcdc336"]]);
|
|
3325
|
-
const ut = e.defineComponent({ name: "", components: { IconDown: n.IconDown, IconApps: n.IconApps, IconMenu: n.IconMenu, LModal: o, CRightApps: H, CRightMenus:
|
|
3328
|
+
const ut = e.defineComponent({ name: "", components: { IconDown: n.IconDown, IconApps: n.IconApps, IconMenu: n.IconMenu, LModal: o, CRightApps: H, CRightMenus: Re, CChangeGroup: qe, CUpload: it }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
|
|
3326
3329
|
var _a, _b;
|
|
3327
3330
|
const o2 = e.ref(n2.config), i2 = e.ref(false), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(), f2 = e.ref(), A2 = e.ref(), s2 = e.ref(), g2 = e.ref(), p2 = e.ref((_b = (_a = n2.config) == null ? void 0 : _a.fileType) != null ? _b : ""), v2 = e.ref(1), d2 = e.ref(), h2 = e.ref(1), w2 = e.ref(15), C2 = e.ref({ list: [], total: 0 }), B2 = e.ref(true), m2 = e.ref(true), y2 = e.ref(true), F2 = e.ref(true);
|
|
3328
3331
|
"undefined" !== n2.config.isShowUploadLocalMaterials && false !== n2.config.isShowUploadLocalMaterials && null !== n2.config.isShowUploadLocalMaterials || (B2.value = o2.value.isShowUploadLocalMaterials), "undefined" !== n2.config.isShowRemoveGroup && false !== n2.config.isShowRemoveGroup && null !== n2.config.isShowRemoveGroup || (m2.value = o2.value.isShowRemoveGroup), "undefined" !== n2.config.isShowDeleteMaterials && false !== n2.config.isShowDeleteMaterials && null !== n2.config.isShowDeleteMaterials || (y2.value = o2.value.isShowDeleteMaterials), "undefined" !== n2.config.isShowSearchMaterials && false !== n2.config.isShowSearchMaterials && null !== n2.config.isShowSearchMaterials || (F2.value = o2.value.isShowSearchMaterials);
|
|
@@ -3355,7 +3358,7 @@
|
|
|
3355
3358
|
};
|
|
3356
3359
|
return e.watch(() => v2.value, (e2) => {
|
|
3357
3360
|
1 === e2 && setTimeout(() => c2.value.initCheckbox(), 0);
|
|
3358
|
-
}), { deepConfig: o2, loading: i2, visible: u2, removeLoading: a2, fileTypes:
|
|
3361
|
+
}), { deepConfig: o2, loading: i2, visible: u2, removeLoading: a2, fileTypes: Me, current: l2, refCRightApps: c2, refCRightMenus: f2, refCChangeGroup: A2, refCUpload: s2, fileName: g2, fileType: p2, showType: v2, groupId: d2, pageNum: h2, pageSize: w2, datas: C2, isShowUploadLocalMaterials: B2, isShowRemoveGroup: m2, isShowDeleteMaterials: y2, isShowSearchMaterials: F2, handlePage: (e2) => {
|
|
3359
3362
|
h2.value = e2, V2(d2.value);
|
|
3360
3363
|
}, handlePageSizes: (e2) => {
|
|
3361
3364
|
h2.value = 1, w2.value = e2, V2(d2.value);
|