@moment-design/material-library 0.1.16 → 0.1.17

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-2fdfe187] {
93
+ .checkbox-all[data-v-32d2c6d7] {
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-2fdfe187] {
99
+ .right-apps[data-v-32d2c6d7] {
100
100
  margin-top: 16px;
101
101
  display: flex;
102
102
  flex-wrap: wrap;
103
103
  }
104
- .right-apps .item[data-v-2fdfe187] {
104
+ .right-apps .item[data-v-32d2c6d7] {
105
105
  width: calc(20% - 16px);
106
106
  margin-bottom: 16px;
107
107
  margin-right: 20px;
108
108
  }
109
- .right-apps .item[data-v-2fdfe187]:nth-child(5n) {
109
+ .right-apps .item[data-v-32d2c6d7]:nth-child(5n) {
110
110
  margin-right: 0 !important;
111
111
  }
112
- .right-apps .item .header[data-v-2fdfe187] {
112
+ .right-apps .item .header[data-v-32d2c6d7] {
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-2fdfe187] {
121
+ .right-apps .item .header img[data-v-32d2c6d7] {
122
122
  max-width: 100%;
123
123
  }
124
- .right-apps .item .footer[data-v-2fdfe187] {
124
+ .right-apps .item .footer[data-v-32d2c6d7] {
125
125
  padding: 12px;
126
126
  display: flex;
127
127
  align-items: center;
@@ -129,36 +129,36 @@
129
129
  border: 1px solid #f2f3f5;
130
130
  border-radius: 0 0 4px 4px;
131
131
  }
132
- .right-apps .item .footer .checkbox[data-v-2fdfe187] {
132
+ .right-apps .item .footer .checkbox[data-v-32d2c6d7] {
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-2fdfe187] {
138
+ .right-apps .item .footer .name[data-v-32d2c6d7] {
139
139
  flex: 1;
140
140
  margin-left: -8px;
141
141
  overflow: hidden;
142
142
  }
143
- .right-apps .item .footer .name .title[data-v-2fdfe187] {
143
+ .right-apps .item .footer .name .title[data-v-32d2c6d7] {
144
144
  cursor: pointer;
145
145
  white-space: nowrap;
146
146
  overflow: hidden;
147
147
  text-overflow: ellipsis;
148
148
  width: 98px;
149
149
  }
150
- .right-apps .item .footer .icon[data-v-2fdfe187] {
150
+ .right-apps .item .footer .icon[data-v-32d2c6d7] {
151
151
  width: 20px;
152
152
  text-align: right;
153
153
  cursor: pointer;
154
154
  }
155
- .pagination[data-v-2fdfe187] {
155
+ .pagination[data-v-32d2c6d7] {
156
156
  display: flex;
157
157
  justify-content: flex-end;
158
158
  width: 100%;
159
159
  margin-top: 16px;
160
160
  }
161
- .l-material-library-infos[data-v-2fdfe187] {
161
+ .l-material-library-infos[data-v-32d2c6d7] {
162
162
  background-color: #ffffff;
163
163
  border-radius: 2px;
164
164
  padding: 16px;
@@ -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-52a7189c] {
197
+ .right-menu .l-material-library-infos[data-v-737990a2] {
198
198
  display: flex;
199
199
  align-items: center;
200
200
  }
201
- .right-menu .l-material-library-infos .name[data-v-52a7189c] {
201
+ .right-menu .l-material-library-infos .name[data-v-737990a2] {
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-52a7189c] {
210
+ .pagination[data-v-737990a2] {
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-52a7189c] {
216
+ .l-material-library-info[data-v-737990a2] {
217
217
  background-color: #ffffff;
218
218
  border-radius: 2px;
219
219
  padding: 16px;
package/dist/index.cjs.js CHANGED
@@ -5974,6 +5974,7 @@ const _sfc_main$6 = vue.defineComponent({
5974
5974
  current.value = 1;
5975
5975
  };
5976
5976
  const changePage = (v) => {
5977
+ current.value = v;
5977
5978
  emit("handle:page", v);
5978
5979
  };
5979
5980
  const changePageSizes = (v) => {
@@ -6307,7 +6308,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6307
6308
  ])
6308
6309
  ], 64);
6309
6310
  }
6310
- var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-2fdfe187"]]);
6311
+ var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-32d2c6d7"]]);
6311
6312
  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==";
6312
6313
  function baseSlice$1(array, start, end) {
6313
6314
  var index2 = -1, length = array.length;
@@ -6590,6 +6591,7 @@ const _sfc_main$4 = vue.defineComponent({
6590
6591
  current.value = 1;
6591
6592
  };
6592
6593
  const changePage = (v) => {
6594
+ current.value = v;
6593
6595
  emit("handle:page", v);
6594
6596
  };
6595
6597
  const changePageSizes = (v) => {
@@ -6812,7 +6814,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6812
6814
  ])
6813
6815
  ], 64);
6814
6816
  }
6815
- var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-52a7189c"]]);
6817
+ var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-737990a2"]]);
6816
6818
  var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
6817
6819
  const _sfc_main$3 = vue.defineComponent({
6818
6820
  name: "",
package/dist/index.esm.js CHANGED
@@ -5973,6 +5973,7 @@ const _sfc_main$6 = defineComponent({
5973
5973
  current.value = 1;
5974
5974
  };
5975
5975
  const changePage = (v) => {
5976
+ current.value = v;
5976
5977
  emit("handle:page", v);
5977
5978
  };
5978
5979
  const changePageSizes = (v) => {
@@ -6306,7 +6307,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6306
6307
  ])
6307
6308
  ], 64);
6308
6309
  }
6309
- var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-2fdfe187"]]);
6310
+ var CRightApps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-32d2c6d7"]]);
6310
6311
  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==";
6311
6312
  function baseSlice$1(array, start, end) {
6312
6313
  var index2 = -1, length = array.length;
@@ -6589,6 +6590,7 @@ const _sfc_main$4 = defineComponent({
6589
6590
  current.value = 1;
6590
6591
  };
6591
6592
  const changePage = (v) => {
6593
+ current.value = v;
6592
6594
  emit("handle:page", v);
6593
6595
  };
6594
6596
  const changePageSizes = (v) => {
@@ -6811,7 +6813,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6811
6813
  ])
6812
6814
  ], 64);
6813
6815
  }
6814
- var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-52a7189c"]]);
6816
+ var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-737990a2"]]);
6815
6817
  var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
6816
6818
  const _sfc_main$3 = defineComponent({
6817
6819
  name: "",
package/dist/index.min.js CHANGED
@@ -3062,7 +3062,7 @@
3062
3062
  }, { immediate: true }), { deepDatas: r2, indeterminate: o2, checkedAll: i2, pageSize: l2, isShowDeleteMaterials: a2, isShowRemoveGroup: u2, current: c2, resetCurrent: () => {
3063
3063
  c2.value = 1;
3064
3064
  }, changePage: (e2) => {
3065
- n2("handle:page", e2);
3065
+ c2.value = e2, n2("handle:page", e2);
3066
3066
  }, changePageSizes: (e2) => {
3067
3067
  l2.value = e2, n2("handle:page:sizes", e2);
3068
3068
  }, handleChange: () => {
@@ -3096,7 +3096,7 @@
3096
3096
  var _a2, _b2;
3097
3097
  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" } }))];
3098
3098
  }), _: 1 }, 8, ["style"]), e.createCommentVNode(" pagination "), e.createElementVNode("div", P, [e.createVNode(p2, { 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);
3099
- }], ["__scopeId", "data-v-2fdfe187"]]);
3099
+ }], ["__scopeId", "data-v-32d2c6d7"]]);
3100
3100
  var q = function(e2, t2, n2) {
3101
3101
  var r2 = -1, o2 = e2.length;
3102
3102
  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;
@@ -3180,7 +3180,7 @@
3180
3180
  }, { immediate: true, deep: true }), { deepDatas: o2, deepConfig: r2, pageSize: u2, current: i2, resetCurrent: () => {
3181
3181
  i2.value = 1;
3182
3182
  }, changePage: (e2) => {
3183
- n2("handle:page", e2);
3183
+ i2.value = e2, n2("handle:page", e2);
3184
3184
  }, changePageSizes: (e2) => {
3185
3185
  u2.value = e2, n2("handle:page:sizes", e2);
3186
3186
  }, deepTableConfig: l2, operateList: () => {
@@ -3218,7 +3218,7 @@
3218
3218
  var _a, _b;
3219
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");
3220
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"]]);
3221
+ }], ["__scopeId", "data-v-737990a2"]]);
3222
3222
  const je = e.defineComponent({ name: "", components: { LModal: o }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
3223
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 () => {
3224
3224
  var _a, _b, _c;