@moment-design/material-library 0.1.6 → 0.1.7

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.
@@ -90,26 +90,26 @@
90
90
  width: 30px;
91
91
  padding-right: 16px;
92
92
  }
93
- .checkbox-all[data-v-e1d0dcec] {
93
+ .checkbox-all[data-v-7c7241de] {
94
94
  width: 200px;
95
95
  margin-top: -38px;
96
96
  background-color: #ffffff;
97
97
  padding-bottom: 6px;
98
98
  }
99
- .right-apps[data-v-e1d0dcec] {
99
+ .right-apps[data-v-7c7241de] {
100
100
  margin-top: 16px;
101
101
  display: flex;
102
102
  flex-wrap: wrap;
103
103
  }
104
- .right-apps .item[data-v-e1d0dcec] {
104
+ .right-apps .item[data-v-7c7241de] {
105
105
  width: calc(20% - 16px);
106
106
  margin-bottom: 16px;
107
107
  margin-right: 20px;
108
108
  }
109
- .right-apps .item[data-v-e1d0dcec]:nth-child(5n) {
109
+ .right-apps .item[data-v-7c7241de]:nth-child(5n) {
110
110
  margin-right: 0 !important;
111
111
  }
112
- .right-apps .item .header[data-v-e1d0dcec] {
112
+ .right-apps .item .header[data-v-7c7241de] {
113
113
  width: 100%;
114
114
  height: 168.5px;
115
115
  background-color: #f2f3f5;
@@ -118,10 +118,10 @@
118
118
  background-position: center;
119
119
  cursor: pointer;
120
120
  }
121
- .right-apps .item .header img[data-v-e1d0dcec] {
121
+ .right-apps .item .header img[data-v-7c7241de] {
122
122
  max-width: 100%;
123
123
  }
124
- .right-apps .item .footer[data-v-e1d0dcec] {
124
+ .right-apps .item .footer[data-v-7c7241de] {
125
125
  padding: 12px;
126
126
  display: flex;
127
127
  align-items: center;
@@ -129,35 +129,35 @@
129
129
  border: 1px solid #f2f3f5;
130
130
  border-radius: 0 0 4px 4px;
131
131
  }
132
- .right-apps .item .footer .checkbox[data-v-e1d0dcec] {
132
+ .right-apps .item .footer .checkbox[data-v-7c7241de] {
133
133
  width: 30px;
134
134
  position: relative;
135
135
  top: 2px;
136
136
  left: -6px;
137
137
  }
138
- .right-apps .item .footer .name[data-v-e1d0dcec] {
138
+ .right-apps .item .footer .name[data-v-7c7241de] {
139
139
  flex: 1;
140
140
  margin-left: -8px;
141
141
  overflow: hidden;
142
142
  }
143
- .right-apps .item .footer .name .title[data-v-e1d0dcec] {
143
+ .right-apps .item .footer .name .title[data-v-7c7241de] {
144
144
  cursor: pointer;
145
145
  white-space: nowrap;
146
146
  overflow: hidden;
147
147
  text-overflow: ellipsis;
148
148
  }
149
- .right-apps .item .footer .icon[data-v-e1d0dcec] {
149
+ .right-apps .item .footer .icon[data-v-7c7241de] {
150
150
  width: 20px;
151
151
  text-align: right;
152
152
  cursor: pointer;
153
153
  }
154
- .pagination[data-v-e1d0dcec] {
154
+ .pagination[data-v-7c7241de] {
155
155
  display: flex;
156
156
  justify-content: flex-end;
157
157
  width: 100%;
158
158
  margin-top: 16px;
159
159
  }
160
- .l-material-library-infos[data-v-e1d0dcec] {
160
+ .l-material-library-infos[data-v-7c7241de] {
161
161
  background-color: #ffffff;
162
162
  border-radius: 2px;
163
163
  padding: 16px;
@@ -193,11 +193,11 @@
193
193
  .operate-omit-list[data-v-0b1d01dd] {
194
194
  color: #1966ff;
195
195
  }
196
- .right-menu .l-material-library-infos[data-v-24cb3c09] {
196
+ .right-menu .l-material-library-infos[data-v-4a39276a] {
197
197
  display: flex;
198
198
  align-items: center;
199
199
  }
200
- .right-menu .l-material-library-infos .name[data-v-24cb3c09] {
200
+ .right-menu .l-material-library-infos .name[data-v-4a39276a] {
201
201
  margin-left: 6px;
202
202
  font-size: 14px;
203
203
  flex: 1;
@@ -206,13 +206,13 @@
206
206
  overflow: hidden;
207
207
  text-overflow: ellipsis;
208
208
  }
209
- .pagination[data-v-24cb3c09] {
209
+ .pagination[data-v-4a39276a] {
210
210
  display: flex;
211
211
  justify-content: flex-end;
212
212
  width: 100%;
213
213
  margin-top: 16px;
214
214
  }
215
- .l-material-library-info[data-v-24cb3c09] {
215
+ .l-material-library-info[data-v-4a39276a] {
216
216
  background-color: #ffffff;
217
217
  border-radius: 2px;
218
218
  padding: 16px;
package/dist/index.cjs.js CHANGED
@@ -6074,9 +6074,7 @@ const _sfc_main$6 = vue.defineComponent({
6074
6074
  return (_a = props.config) == null ? void 0 : _a.isShowDeleteMaterials;
6075
6075
  },
6076
6076
  (newVal) => {
6077
- if (newVal === "undefined" || newVal === false || newVal === null) {
6078
- isShowDeleteMaterials.value = newVal;
6079
- }
6077
+ isShowDeleteMaterials.value = newVal !== false;
6080
6078
  },
6081
6079
  { immediate: true }
6082
6080
  );
@@ -6086,9 +6084,7 @@ const _sfc_main$6 = vue.defineComponent({
6086
6084
  return (_a = props.config) == null ? void 0 : _a.isShowRemoveGroup;
6087
6085
  },
6088
6086
  (newVal) => {
6089
- if (newVal === "undefined" || newVal === false || newVal === null) {
6090
- isShowRemoveGroup.value = newVal;
6091
- }
6087
+ isShowRemoveGroup.value = newVal !== false;
6092
6088
  },
6093
6089
  { immediate: true }
6094
6090
  );
@@ -6301,7 +6297,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6301
6297
  ])
6302
6298
  ], 64);
6303
6299
  }
6304
- var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-e1d0dcec"]]);
6300
+ var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-7c7241de"]]);
6305
6301
  var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAPBQTFRFAAAAGWb/GWb/GWb/GWb/Gmf/GWb/GWb/Gmb/G2f/G2j/NXj9IWv/GWb/GWb/Gmb/IWv+G2f/GWb/Hmr/N3n9IWz+GWb/IGv/H2r/GWb/GWb/Gmf/GWb/GWb/GWb/HWj/GWb/GWb/G2f/GWb/Gmb/GWb/Gmf/Nnn9Gmf/GWb/HGj/HGj/J2/+GWb/J2/+HGj/HGj/HGj/HWj/KnH+GWb/GWb/GWb/GWb/Gmf/GWb/GWb/GWb/GWb/H2r/GWb/GWb/Hmn/HWj/Gmb/HGj/Hmn/H2r/GWb/GWb/GWb/GWb/HGn/Gmf/G2f/G2f/GWb/HGj/WjQiHwAAAFB0Uk5TACyWs5wsAgQooaEBSuX/305S21EBWeFBOOf0KUTZ2i/25o9wkPuQAXaIyKMSoBWqw8GjEijd6yQ+0tHcAT3t40xP4EtOOx+KmY0jLoouIx87Gi7bAAAA90lEQVR4nO2SXVOCQBhGgUUwDSrLNEPLwNTK/Ewp8aOyXFLr//+bZJe94MUZvdV5z93Z88DMDkgSgiAIghweskKImtBi53ryiJBUUo8FTVYJURKhpY8Nc83JaWx3lglC5vwChuxlEIwct/yVyShcg5lV5KFkgXBzy0NZZnpnhthg51T4eeU+el6tiSfqzB+EPj5Fhw0RGtHz56YILeZtoZ3ubi/odkRoM69vvYIDgh29Qu+FW38Adu4rD28uCIM+D8MeU280DmwyBTNJe/9gn/Ez9ofMJkEYf3mhf88p9X/gas1iSelytSH8+pTO/zYEBEEQBNl3/gFCnxtnGvaUegAAAABJRU5ErkJggg==";
6306
6302
  function baseSlice$1(array, start, end) {
6307
6303
  var index2 = -1, length = array.length;
@@ -6577,8 +6573,6 @@ const _sfc_main$4 = vue.defineComponent({
6577
6573
  setup(props, { emit }) {
6578
6574
  const deepConfig = vue.ref(props.config);
6579
6575
  const deepDatas = vue.ref(props.datas);
6580
- const isShowRemoveGroup = vue.ref(true);
6581
- const isShowDeleteMaterials = vue.ref(true);
6582
6576
  const changePage = (v) => {
6583
6577
  emit("handle:page", v);
6584
6578
  };
@@ -6611,10 +6605,19 @@ const _sfc_main$4 = vue.defineComponent({
6611
6605
  }
6612
6606
  });
6613
6607
  const operateList = () => {
6608
+ var _a, _b;
6609
+ const isShowDeleteMaterials = (_a = props.config) == null ? void 0 : _a.isShowDeleteMaterials;
6610
+ const isShowRemoveGroup = (_b = props.config) == null ? void 0 : _b.isShowRemoveGroup;
6614
6611
  return [
6615
6612
  { name: "\u9884\u89C8", show: true },
6616
- { name: "\u79FB\u52A8\u5206\u7EC4", show: isShowRemoveGroup.value },
6617
- { name: "\u5220\u9664", show: isShowDeleteMaterials.value }
6613
+ {
6614
+ name: "\u79FB\u52A8\u5206\u7EC4",
6615
+ show: isShowRemoveGroup !== false
6616
+ },
6617
+ {
6618
+ name: "\u5220\u9664",
6619
+ show: isShowDeleteMaterials !== false
6620
+ }
6618
6621
  ];
6619
6622
  };
6620
6623
  const handleOperate = (key, rows) => {
@@ -6680,38 +6683,12 @@ const _sfc_main$4 = vue.defineComponent({
6680
6683
  },
6681
6684
  { immediate: true, deep: true }
6682
6685
  );
6683
- vue.watch(
6684
- () => {
6685
- var _a;
6686
- return (_a = props.config) == null ? void 0 : _a.isShowDeleteMaterials;
6687
- },
6688
- (newVal) => {
6689
- if (newVal === "undefined" || newVal === false || newVal === null) {
6690
- isShowDeleteMaterials.value = newVal;
6691
- }
6692
- },
6693
- { immediate: true }
6694
- );
6695
- vue.watch(
6696
- () => {
6697
- var _a;
6698
- return (_a = props.config) == null ? void 0 : _a.isShowRemoveGroup;
6699
- },
6700
- (newVal) => {
6701
- if (newVal === "undefined" || newVal === false || newVal === null) {
6702
- isShowRemoveGroup.value = newVal;
6703
- }
6704
- },
6705
- { immediate: true }
6706
- );
6707
6686
  return {
6708
6687
  deepDatas,
6709
6688
  deepConfig,
6710
6689
  changePage,
6711
6690
  changePageSizes,
6712
6691
  deepTableConfig,
6713
- isShowRemoveGroup,
6714
- isShowDeleteMaterials,
6715
6692
  operateList,
6716
6693
  handleOperate,
6717
6694
  getIds,
@@ -6807,7 +6784,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6807
6784
  ])
6808
6785
  ], 64);
6809
6786
  }
6810
- var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-24cb3c09"]]);
6787
+ var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-4a39276a"]]);
6811
6788
  var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
6812
6789
  const _sfc_main$3 = vue.defineComponent({
6813
6790
  name: "",
package/dist/index.esm.js CHANGED
@@ -6073,9 +6073,7 @@ const _sfc_main$6 = defineComponent({
6073
6073
  return (_a = props.config) == null ? void 0 : _a.isShowDeleteMaterials;
6074
6074
  },
6075
6075
  (newVal) => {
6076
- if (newVal === "undefined" || newVal === false || newVal === null) {
6077
- isShowDeleteMaterials.value = newVal;
6078
- }
6076
+ isShowDeleteMaterials.value = newVal !== false;
6079
6077
  },
6080
6078
  { immediate: true }
6081
6079
  );
@@ -6085,9 +6083,7 @@ const _sfc_main$6 = defineComponent({
6085
6083
  return (_a = props.config) == null ? void 0 : _a.isShowRemoveGroup;
6086
6084
  },
6087
6085
  (newVal) => {
6088
- if (newVal === "undefined" || newVal === false || newVal === null) {
6089
- isShowRemoveGroup.value = newVal;
6090
- }
6086
+ isShowRemoveGroup.value = newVal !== false;
6091
6087
  },
6092
6088
  { immediate: true }
6093
6089
  );
@@ -6300,7 +6296,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6300
6296
  ])
6301
6297
  ], 64);
6302
6298
  }
6303
- var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-e1d0dcec"]]);
6299
+ var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-7c7241de"]]);
6304
6300
  var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAPBQTFRFAAAAGWb/GWb/GWb/GWb/Gmf/GWb/GWb/Gmb/G2f/G2j/NXj9IWv/GWb/GWb/Gmb/IWv+G2f/GWb/Hmr/N3n9IWz+GWb/IGv/H2r/GWb/GWb/Gmf/GWb/GWb/GWb/HWj/GWb/GWb/G2f/GWb/Gmb/GWb/Gmf/Nnn9Gmf/GWb/HGj/HGj/J2/+GWb/J2/+HGj/HGj/HGj/HWj/KnH+GWb/GWb/GWb/GWb/Gmf/GWb/GWb/GWb/GWb/H2r/GWb/GWb/Hmn/HWj/Gmb/HGj/Hmn/H2r/GWb/GWb/GWb/GWb/HGn/Gmf/G2f/G2f/GWb/HGj/WjQiHwAAAFB0Uk5TACyWs5wsAgQooaEBSuX/305S21EBWeFBOOf0KUTZ2i/25o9wkPuQAXaIyKMSoBWqw8GjEijd6yQ+0tHcAT3t40xP4EtOOx+KmY0jLoouIx87Gi7bAAAA90lEQVR4nO2SXVOCQBhGgUUwDSrLNEPLwNTK/Ewp8aOyXFLr//+bZJe94MUZvdV5z93Z88DMDkgSgiAIghweskKImtBi53ryiJBUUo8FTVYJURKhpY8Nc83JaWx3lglC5vwChuxlEIwct/yVyShcg5lV5KFkgXBzy0NZZnpnhthg51T4eeU+el6tiSfqzB+EPj5Fhw0RGtHz56YILeZtoZ3ubi/odkRoM69vvYIDgh29Qu+FW38Adu4rD28uCIM+D8MeU280DmwyBTNJe/9gn/Ez9ofMJkEYf3mhf88p9X/gas1iSelytSH8+pTO/zYEBEEQBNl3/gFCnxtnGvaUegAAAABJRU5ErkJggg==";
6305
6301
  function baseSlice$1(array, start, end) {
6306
6302
  var index2 = -1, length = array.length;
@@ -6576,8 +6572,6 @@ const _sfc_main$4 = defineComponent({
6576
6572
  setup(props, { emit }) {
6577
6573
  const deepConfig = ref(props.config);
6578
6574
  const deepDatas = ref(props.datas);
6579
- const isShowRemoveGroup = ref(true);
6580
- const isShowDeleteMaterials = ref(true);
6581
6575
  const changePage = (v) => {
6582
6576
  emit("handle:page", v);
6583
6577
  };
@@ -6610,10 +6604,19 @@ const _sfc_main$4 = defineComponent({
6610
6604
  }
6611
6605
  });
6612
6606
  const operateList = () => {
6607
+ var _a, _b;
6608
+ const isShowDeleteMaterials = (_a = props.config) == null ? void 0 : _a.isShowDeleteMaterials;
6609
+ const isShowRemoveGroup = (_b = props.config) == null ? void 0 : _b.isShowRemoveGroup;
6613
6610
  return [
6614
6611
  { name: "\u9884\u89C8", show: true },
6615
- { name: "\u79FB\u52A8\u5206\u7EC4", show: isShowRemoveGroup.value },
6616
- { name: "\u5220\u9664", show: isShowDeleteMaterials.value }
6612
+ {
6613
+ name: "\u79FB\u52A8\u5206\u7EC4",
6614
+ show: isShowRemoveGroup !== false
6615
+ },
6616
+ {
6617
+ name: "\u5220\u9664",
6618
+ show: isShowDeleteMaterials !== false
6619
+ }
6617
6620
  ];
6618
6621
  };
6619
6622
  const handleOperate = (key, rows) => {
@@ -6679,38 +6682,12 @@ const _sfc_main$4 = defineComponent({
6679
6682
  },
6680
6683
  { immediate: true, deep: true }
6681
6684
  );
6682
- watch(
6683
- () => {
6684
- var _a;
6685
- return (_a = props.config) == null ? void 0 : _a.isShowDeleteMaterials;
6686
- },
6687
- (newVal) => {
6688
- if (newVal === "undefined" || newVal === false || newVal === null) {
6689
- isShowDeleteMaterials.value = newVal;
6690
- }
6691
- },
6692
- { immediate: true }
6693
- );
6694
- watch(
6695
- () => {
6696
- var _a;
6697
- return (_a = props.config) == null ? void 0 : _a.isShowRemoveGroup;
6698
- },
6699
- (newVal) => {
6700
- if (newVal === "undefined" || newVal === false || newVal === null) {
6701
- isShowRemoveGroup.value = newVal;
6702
- }
6703
- },
6704
- { immediate: true }
6705
- );
6706
6685
  return {
6707
6686
  deepDatas,
6708
6687
  deepConfig,
6709
6688
  changePage,
6710
6689
  changePageSizes,
6711
6690
  deepTableConfig,
6712
- isShowRemoveGroup,
6713
- isShowDeleteMaterials,
6714
6691
  operateList,
6715
6692
  handleOperate,
6716
6693
  getIds,
@@ -6806,7 +6783,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6806
6783
  ])
6807
6784
  ], 64);
6808
6785
  }
6809
- var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-24cb3c09"]]);
6786
+ var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-4a39276a"]]);
6810
6787
  var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
6811
6788
  const _sfc_main$3 = defineComponent({
6812
6789
  name: "",
package/dist/index.min.js CHANGED
@@ -3053,12 +3053,12 @@
3053
3053
  var _a;
3054
3054
  return (_a = t2.config) == null ? void 0 : _a.isShowDeleteMaterials;
3055
3055
  }, (e2) => {
3056
- "undefined" !== e2 && false !== e2 && null !== e2 || (a2.value = e2);
3056
+ a2.value = false !== e2;
3057
3057
  }, { immediate: true }), e.watch(() => {
3058
3058
  var _a;
3059
3059
  return (_a = t2.config) == null ? void 0 : _a.isShowRemoveGroup;
3060
3060
  }, (e2) => {
3061
- "undefined" !== e2 && false !== e2 && null !== e2 || (u2.value = e2);
3061
+ u2.value = false !== e2;
3062
3062
  }, { immediate: true }), { deepDatas: r2, indeterminate: o2, checkedAll: i2, isShowDeleteMaterials: a2, isShowRemoveGroup: u2, changePage: (e2) => {
3063
3063
  n2("handle:page", e2);
3064
3064
  }, changePageSizes: (e2) => {
@@ -3094,7 +3094,7 @@
3094
3094
  var _a2, _b2;
3095
3095
  return [((_b2 = (_a2 = t2.deepDatas) == null ? void 0 : _a2.list) == null ? void 0 : _b2.length) ? (e.openBlock(), e.createElementBlock("div", N, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t2.deepDatas.list, (r3) => (e.openBlock(), e.createElementBlock("div", { key: r3, class: "item" }, [3 === r3.fileType ? (e.openBlock(), e.createElementBlock("div", Q, [e.createElementVNode("video", { class: "header", src: r3 == null ? void 0 : r3.filePath }, null, 8, M)])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [[0, 3, 4].includes(r3.fileType) || ["rar", "zip", "ttf", "doc", "docx", "pdf", "ppt", "pptx", "txt", "xls", "xlsx", "xlsm"].includes(r3.fileFormat) ? (e.openBlock(), e.createElementBlock("div", { key: 0, class: "header", style: e.normalizeStyle({ backgroundImage: `url(${t2.getMaterialIcon(r3)})`, backgroundSize: "50%" }), onClick: (e2) => t2.handlePreview(r3) }, null, 12, S)) : (e.openBlock(), e.createElementBlock("div", { key: 1, class: "header", style: e.normalizeStyle({ backgroundImage: `url(${r3 == null ? void 0 : r3.filePath})` }), onClick: (e2) => t2.handlePreview(r3) }, null, 12, W))], 64)), e.createElementVNode("div", I, [e.createElementVNode("div", K, [e.createVNode(a2, { modelValue: r3.checkbox, "onUpdate:modelValue": (e2) => r3.checkbox = e2, onChange: t2.handleChange }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])]), e.createElementVNode("div", { class: "name", title: r3 == null ? void 0 : r3.fileName }, [e.createVNode(l2, { position: "top", "auto-fit-position": "", "unmount-on-close": false }, { content: e.withCtx(() => [e.createElementVNode("div", j, [e.createElementVNode("div", null, [n2[1] || (n2[1] = e.createElementVNode("span", null, "\u540D\u79F0\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.fileName), 1)]), e.createElementVNode("div", null, [n2[2] || (n2[2] = e.createElementVNode("span", null, "\u7C7B\u578B\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.fileFormat), 1)]), e.createElementVNode("div", null, [n2[3] || (n2[3] = 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", R, e.toDisplayString(r3 == null ? void 0 : r3.fileName), 1)]), _: 2 }, 1024)], 8, J), e.createElementVNode("div", O, [e.createVNode(A2, { position: "bl", trigger: "hover" }, { content: e.withCtx(() => [e.createVNode(f2, { onClick: (e2) => t2.handlePreview(r3) }, { default: e.withCtx(() => n2[4] || (n2[4] = [e.createTextVNode("\u9884\u89C8")])), _: 2 }, 1032, ["onClick"]), t2.isShowRemoveGroup ? (e.openBlock(), e.createBlock(f2, { key: 0, onClick: (e2) => t2.handleMove(r3) }, { default: e.withCtx(() => n2[5] || (n2[5] = [e.createTextVNode("\u79FB\u52A8\u5206\u7EC4")])), _: 2 }, 1032, ["onClick"])) : e.createCommentVNode("v-if", true), t2.isShowDeleteMaterials ? (e.openBlock(), e.createBlock(f2, { key: 1, onClick: (e2) => t2.handleRemove(r3) }, { default: e.withCtx(() => n2[6] || (n2[6] = [e.createTextVNode("\u5220\u9664")])), _: 2 }, 1032, ["onClick"])) : e.createCommentVNode("v-if", true)]), default: e.withCtx(() => [e.createVNode(c2)]), _: 2 }, 1024)])])]))), 128))])) : (e.openBlock(), e.createBlock(s2, { key: 1, "empty-data": { describe: "\u6682\u65E0\u6570\u636E" } }))];
3096
3096
  }), _: 1 }, 8, ["style"]), e.createCommentVNode(" pagination "), e.createElementVNode("div", P, [e.createVNode(p2, { total: +t2.deepDatas.total, "show-total": "", "show-jumper": "", "show-page-size": "", "page-size": 15, "page-size-options": [15, 30, 45, 90], onChange: t2.changePage, onPageSizeChange: t2.changePageSizes }, null, 8, ["total", "onChange", "onPageSizeChange"])])], 64);
3097
- }], ["__scopeId", "data-v-e1d0dcec"]]);
3097
+ }], ["__scopeId", "data-v-7c7241de"]]);
3098
3098
  var q = function(e2, t2, n2) {
3099
3099
  var r2 = -1, o2 = e2.length;
3100
3100
  t2 < 0 && (t2 = -t2 > o2 ? 0 : o2 + t2), (n2 = n2 > o2 ? o2 : n2) < 0 && (n2 += o2), o2 = t2 > n2 ? 0 : n2 - t2 >>> 0, t2 >>>= 0;
@@ -3172,24 +3172,18 @@
3172
3172
  var Qe = r(Ne, [["__scopeId", "data-v-0b1d01dd"]]);
3173
3173
  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 }];
3174
3174
  const Se = e.defineComponent({ name: "", components: { LTableOperate: Qe }, props: { datas: { type: Array, default: () => [] }, config: { type: Object, default: () => ({}) } }, setup(t2, { emit: n2 }) {
3175
- const r2 = e.ref(t2.config), o2 = e.ref(t2.datas), i2 = e.ref(true), u2 = e.ref(true), a2 = e.reactive({ table: { selectedType: "checkbox", selectedRows: [], data: [], columns: [{ type: "slot", title: "\u7D20\u6750\u540D\u79F0", dataIndex: "info" }, { type: "dict", title: "\u7D20\u6750\u7C7B\u578B", dataIndex: "fileType", dicts: Me, width: 160 }, { title: "\u66F4\u65B0\u65F6\u95F4", dataIndex: "updateAt" }, { type: "slot", title: "\u64CD\u4F5C", dataIndex: "operate", width: 220, align: "center" }] } });
3175
+ const r2 = e.ref(t2.config), o2 = e.ref(t2.datas), i2 = e.reactive({ table: { selectedType: "checkbox", selectedRows: [], data: [], columns: [{ type: "slot", title: "\u7D20\u6750\u540D\u79F0", dataIndex: "info" }, { type: "dict", title: "\u7D20\u6750\u7C7B\u578B", dataIndex: "fileType", dicts: Me, width: 160 }, { title: "\u66F4\u65B0\u65F6\u95F4", dataIndex: "updateAt" }, { type: "slot", title: "\u64CD\u4F5C", dataIndex: "operate", width: 220, align: "center" }] } });
3176
3176
  return e.watch(() => t2.datas, (e2) => {
3177
- a2.table.data = e2.list, a2.table.selectedRows = [];
3178
- }, { immediate: true, deep: true }), e.watch(() => {
3179
- var _a;
3180
- return (_a = t2.config) == null ? void 0 : _a.isShowDeleteMaterials;
3181
- }, (e2) => {
3182
- "undefined" !== e2 && false !== e2 && null !== e2 || (u2.value = e2);
3183
- }, { immediate: true }), e.watch(() => {
3184
- var _a;
3185
- return (_a = t2.config) == null ? void 0 : _a.isShowRemoveGroup;
3186
- }, (e2) => {
3187
- "undefined" !== e2 && false !== e2 && null !== e2 || (i2.value = e2);
3188
- }, { immediate: true }), { deepDatas: o2, deepConfig: r2, changePage: (e2) => {
3177
+ i2.table.data = e2.list, i2.table.selectedRows = [];
3178
+ }, { immediate: true, deep: true }), { deepDatas: o2, deepConfig: r2, changePage: (e2) => {
3189
3179
  n2("handle:page", e2);
3190
3180
  }, changePageSizes: (e2) => {
3191
3181
  n2("handle:page:sizes", e2);
3192
- }, deepTableConfig: a2, isShowRemoveGroup: i2, isShowDeleteMaterials: u2, operateList: () => [{ name: "\u9884\u89C8", show: true }, { name: "\u79FB\u52A8\u5206\u7EC4", show: i2.value }, { name: "\u5220\u9664", show: u2.value }], handleOperate: (e2, t3) => {
3182
+ }, deepTableConfig: i2, operateList: () => {
3183
+ var _a, _b;
3184
+ const e2 = (_a = t2.config) == null ? void 0 : _a.isShowDeleteMaterials, n3 = (_b = t2.config) == null ? void 0 : _b.isShowRemoveGroup;
3185
+ return [{ name: "\u9884\u89C8", show: true }, { name: "\u79FB\u52A8\u5206\u7EC4", show: false !== n3 }, { name: "\u5220\u9664", show: false !== e2 }];
3186
+ }, handleOperate: (e2, t3) => {
3193
3187
  switch (e2) {
3194
3188
  case "\u9884\u89C8":
3195
3189
  n2("handle:preview", t3);
@@ -3202,12 +3196,12 @@
3202
3196
  }
3203
3197
  }, getIds: () => {
3204
3198
  var _a, _b;
3205
- return (_b = (_a = a2.table) == null ? void 0 : _a.selectedRows) == null ? void 0 : _b.map((e2) => e2.id);
3199
+ return (_b = (_a = i2.table) == null ? void 0 : _a.selectedRows) == null ? void 0 : _b.map((e2) => e2.id);
3206
3200
  }, getItems: () => {
3207
3201
  var _a;
3208
- return (_a = a2.table) == null ? void 0 : _a.selectedRows;
3202
+ return (_a = i2.table) == null ? void 0 : _a.selectedRows;
3209
3203
  }, initCheckbox: () => {
3210
- a2.table.selectedRows = [];
3204
+ i2.table.selectedRows = [];
3211
3205
  }, getMaterialIcon: ({ fileType: e2, fileFormat: t3, filePath: n3 }) => {
3212
3206
  const r3 = t3.toLowerCase();
3213
3207
  return 0 === e2 ? b : 3 === e2 ? "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", "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;
@@ -3217,7 +3211,7 @@
3217
3211
  var _a, _b;
3218
3212
  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");
3219
3213
  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", 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, { total: +t2.deepDatas.total, "show-total": "", "show-jumper": "", "show-page-size": "", "page-size": 15, "page-size-options": [15, 30, 45, 90], onChange: t2.changePage, onPageSizeChange: t2.changePageSizes }, null, 8, ["total", "onChange", "onPageSizeChange"])])], 64);
3220
- }], ["__scopeId", "data-v-24cb3c09"]]);
3214
+ }], ["__scopeId", "data-v-4a39276a"]]);
3221
3215
  const je = e.defineComponent({ name: "", components: { LModal: o }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
3222
3216
  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 () => {
3223
3217
  var _a, _b, _c;