@moment-design/material-library 0.1.23 → 0.1.24
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/c-right.d.ts +1 -0
- package/dist/c-upload.d.ts +1 -0
- package/dist/css/index.css +8 -8
- package/dist/index.cjs.js +12 -6
- package/dist/index.d.ts +9 -7
- package/dist/index.esm.js +13 -7
- package/dist/index.min.js +10 -8
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/c-right.d.ts
CHANGED
|
@@ -805,6 +805,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
805
805
|
limit: import("vue").Ref<number, number>;
|
|
806
806
|
accept: import("vue").Ref<any, any>;
|
|
807
807
|
fileList: any;
|
|
808
|
+
uploadKey: import("vue").Ref<number, number>;
|
|
808
809
|
exceedLimit: () => void;
|
|
809
810
|
beforeUpload: (file: any) => Promise<unknown>;
|
|
810
811
|
fileChange: (vs: any) => any;
|
package/dist/c-upload.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
20
|
limit: import("vue").Ref<number, number>;
|
|
21
21
|
accept: import("vue").Ref<any, any>;
|
|
22
22
|
fileList: any;
|
|
23
|
+
uploadKey: import("vue").Ref<number, number>;
|
|
23
24
|
exceedLimit: () => void;
|
|
24
25
|
beforeUpload: (file: any) => Promise<unknown>;
|
|
25
26
|
fileChange: (vs: any) => any;
|
package/dist/css/index.css
CHANGED
|
@@ -258,32 +258,32 @@
|
|
|
258
258
|
overflow: hidden;
|
|
259
259
|
text-overflow: ellipsis;
|
|
260
260
|
}
|
|
261
|
-
.l-material-library-upload .form-item[data-v-
|
|
261
|
+
.l-material-library-upload .form-item[data-v-43f71e5d] {
|
|
262
262
|
display: flex;
|
|
263
263
|
align-items: center;
|
|
264
264
|
margin-bottom: 16px;
|
|
265
265
|
}
|
|
266
|
-
.l-material-library-upload .form-item[data-v-
|
|
266
|
+
.l-material-library-upload .form-item[data-v-43f71e5d]:not(:last-child) {
|
|
267
267
|
margin-bottom: 16px;
|
|
268
268
|
}
|
|
269
|
-
.l-material-library-upload .form-item .label[data-v-
|
|
269
|
+
.l-material-library-upload .form-item .label[data-v-43f71e5d] {
|
|
270
270
|
width: 70px;
|
|
271
271
|
margin-right: 16px;
|
|
272
272
|
}
|
|
273
|
-
.l-material-library-upload .form-item .label span[data-v-
|
|
273
|
+
.l-material-library-upload .form-item .label span[data-v-43f71e5d] {
|
|
274
274
|
color: red;
|
|
275
275
|
margin-right: 4px;
|
|
276
276
|
position: relative;
|
|
277
277
|
top: 2px;
|
|
278
278
|
}
|
|
279
|
-
.l-material-library-upload .upload[data-v-
|
|
279
|
+
.l-material-library-upload .upload[data-v-43f71e5d] {
|
|
280
280
|
margin-top: 16px;
|
|
281
281
|
}
|
|
282
|
-
.l-material-library-upload .upload .tips[data-v-
|
|
282
|
+
.l-material-library-upload .upload .tips[data-v-43f71e5d] {
|
|
283
283
|
margin-bottom: 16px;
|
|
284
284
|
color: #86909c;
|
|
285
285
|
}
|
|
286
|
-
.l-material-library-upload .upload[data-v-
|
|
286
|
+
.l-material-library-upload .upload[data-v-43f71e5d] .mo-upload-progress {
|
|
287
287
|
display: none;
|
|
288
288
|
}
|
|
289
289
|
.l-material-library-right-content[data-v-7628764c] {
|
|
@@ -323,6 +323,6 @@
|
|
|
323
323
|
color: #1966ff;
|
|
324
324
|
cursor: pointer;
|
|
325
325
|
}
|
|
326
|
-
.l-material-library[data-v-
|
|
326
|
+
.l-material-library[data-v-5e0eeb26] {
|
|
327
327
|
display: flex;
|
|
328
328
|
}
|
package/dist/index.cjs.js
CHANGED
|
@@ -6986,6 +6986,7 @@ const _sfc_main$2 = vue.defineComponent({
|
|
|
6986
6986
|
const limit = vue.ref(10);
|
|
6987
6987
|
const accept = vue.ref((_a = deepConfig.value) == null ? void 0 : _a.accept);
|
|
6988
6988
|
const fileList = vue.ref([]);
|
|
6989
|
+
const uploadKey = vue.ref(0);
|
|
6989
6990
|
const exceedLimit = () => {
|
|
6990
6991
|
webVue.Message.error(`\u6700\u591A\u9009\u62E9${limit.value}\u4E2A\u6587\u4EF6`);
|
|
6991
6992
|
};
|
|
@@ -7049,6 +7050,7 @@ const _sfc_main$2 = vue.defineComponent({
|
|
|
7049
7050
|
fileName.value = "";
|
|
7050
7051
|
groupId.value = id;
|
|
7051
7052
|
fileList.value = [];
|
|
7053
|
+
uploadKey.value++;
|
|
7052
7054
|
if ((_a2 = deepConfig.value) == null ? void 0 : _a2.fileType) {
|
|
7053
7055
|
fileType.value = (_b = deepConfig.value) == null ? void 0 : _b.fileType;
|
|
7054
7056
|
} else {
|
|
@@ -7094,6 +7096,7 @@ const _sfc_main$2 = vue.defineComponent({
|
|
|
7094
7096
|
limit,
|
|
7095
7097
|
accept,
|
|
7096
7098
|
fileList,
|
|
7099
|
+
uploadKey,
|
|
7097
7100
|
exceedLimit,
|
|
7098
7101
|
beforeUpload,
|
|
7099
7102
|
fileChange,
|
|
@@ -7187,7 +7190,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7187
7190
|
]),
|
|
7188
7191
|
vue.createVNode(_component_m_scrollbar, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, {
|
|
7189
7192
|
default: vue.withCtx(() => [
|
|
7190
|
-
vue.
|
|
7193
|
+
(vue.openBlock(), vue.createBlock(_component_m_upload, {
|
|
7194
|
+
key: _ctx.uploadKey,
|
|
7191
7195
|
"file-list": _ctx.fileList,
|
|
7192
7196
|
"auto-upload": false,
|
|
7193
7197
|
accept: _ctx.accept,
|
|
@@ -7197,7 +7201,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7197
7201
|
onExceedLimit: _ctx.exceedLimit,
|
|
7198
7202
|
onBeforeUpload: _ctx.beforeUpload,
|
|
7199
7203
|
onChange: _ctx.fileChange
|
|
7200
|
-
}, null, 8, ["file-list", "accept", "limit", "onExceedLimit", "onBeforeUpload", "onChange"])
|
|
7204
|
+
}, null, 8, ["file-list", "accept", "limit", "onExceedLimit", "onBeforeUpload", "onChange"]))
|
|
7201
7205
|
]),
|
|
7202
7206
|
_: 1
|
|
7203
7207
|
})
|
|
@@ -7210,7 +7214,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7210
7214
|
_: 1
|
|
7211
7215
|
}, 8, ["visible", "others", "onHandle:ok"]);
|
|
7212
7216
|
}
|
|
7213
|
-
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
7217
|
+
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-43f71e5d"]]);
|
|
7214
7218
|
var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7215
7219
|
const _sfc_main$1 = vue.defineComponent({
|
|
7216
7220
|
name: "",
|
|
@@ -7675,8 +7679,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
7675
7679
|
};
|
|
7676
7680
|
const open = () => {
|
|
7677
7681
|
visible.value = true;
|
|
7678
|
-
|
|
7679
|
-
|
|
7682
|
+
vue.nextTick(() => {
|
|
7683
|
+
refCLeft.value.init();
|
|
7684
|
+
refCRight.value.initCheckbox();
|
|
7685
|
+
});
|
|
7680
7686
|
};
|
|
7681
7687
|
const handleGroupChange = (id) => {
|
|
7682
7688
|
var _a;
|
|
@@ -7758,5 +7764,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7758
7764
|
], 2112))
|
|
7759
7765
|
], 2112);
|
|
7760
7766
|
}
|
|
7761
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
7767
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5e0eeb26"]]);
|
|
7762
7768
|
module.exports = index;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
config: {
|
|
3
4
|
type: ObjectConstructor;
|
|
@@ -147,7 +148,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
147
148
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
148
149
|
};
|
|
149
150
|
$forceUpdate: () => void;
|
|
150
|
-
$nextTick: typeof
|
|
151
|
+
$nextTick: typeof nextTick;
|
|
151
152
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
152
153
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
153
154
|
size: {
|
|
@@ -302,7 +303,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
302
303
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
303
304
|
};
|
|
304
305
|
$forceUpdate: () => void;
|
|
305
|
-
$nextTick: typeof
|
|
306
|
+
$nextTick: typeof nextTick;
|
|
306
307
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
307
308
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
308
309
|
size: {
|
|
@@ -457,7 +458,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
457
458
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
458
459
|
};
|
|
459
460
|
$forceUpdate: () => void;
|
|
460
|
-
$nextTick: typeof
|
|
461
|
+
$nextTick: typeof nextTick;
|
|
461
462
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
462
463
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
463
464
|
size: {
|
|
@@ -690,7 +691,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
690
691
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
691
692
|
};
|
|
692
693
|
$forceUpdate: () => void;
|
|
693
|
-
$nextTick: typeof
|
|
694
|
+
$nextTick: typeof nextTick;
|
|
694
695
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
695
696
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
696
697
|
size: {
|
|
@@ -845,7 +846,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
845
846
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
846
847
|
};
|
|
847
848
|
$forceUpdate: () => void;
|
|
848
|
-
$nextTick: typeof
|
|
849
|
+
$nextTick: typeof nextTick;
|
|
849
850
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
850
851
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
851
852
|
size: {
|
|
@@ -1000,7 +1001,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1000
1001
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
1001
1002
|
};
|
|
1002
1003
|
$forceUpdate: () => void;
|
|
1003
|
-
$nextTick: typeof
|
|
1004
|
+
$nextTick: typeof nextTick;
|
|
1004
1005
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
1005
1006
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
1006
1007
|
size: {
|
|
@@ -1198,7 +1199,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1198
1199
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
1199
1200
|
};
|
|
1200
1201
|
$forceUpdate: () => void;
|
|
1201
|
-
$nextTick: typeof
|
|
1202
|
+
$nextTick: typeof nextTick;
|
|
1202
1203
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
1203
1204
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
1204
1205
|
size: {
|
|
@@ -1354,6 +1355,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1354
1355
|
limit: import("vue").Ref<number, number>;
|
|
1355
1356
|
accept: import("vue").Ref<any, any>;
|
|
1356
1357
|
fileList: any;
|
|
1358
|
+
uploadKey: import("vue").Ref<number, number>;
|
|
1357
1359
|
exceedLimit: () => void;
|
|
1358
1360
|
beforeUpload: (file: any) => Promise<unknown>;
|
|
1359
1361
|
fileChange: (vs: any) => any;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString, renderSlot, createElementVNode, createElementBlock, createCommentVNode, createVNode, ref, Fragment, normalizeStyle, renderList, normalizeClass, withModifiers, watch, computed, unref, reactive, onMounted } from "vue";
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString, renderSlot, createElementVNode, createElementBlock, createCommentVNode, createVNode, ref, Fragment, normalizeStyle, renderList, normalizeClass, withModifiers, watch, computed, unref, reactive, onMounted, nextTick } from "vue";
|
|
2
2
|
import { Message } from "@moment-design/web-vue";
|
|
3
3
|
import { IconPlus, IconSearch, IconMore, IconDown, IconApps, IconMenu } from "@moment-design/web-vue/es/icon";
|
|
4
4
|
var _export_sfc = (sfc, props) => {
|
|
@@ -6985,6 +6985,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
6985
6985
|
const limit = ref(10);
|
|
6986
6986
|
const accept = ref((_a = deepConfig.value) == null ? void 0 : _a.accept);
|
|
6987
6987
|
const fileList = ref([]);
|
|
6988
|
+
const uploadKey = ref(0);
|
|
6988
6989
|
const exceedLimit = () => {
|
|
6989
6990
|
Message.error(`\u6700\u591A\u9009\u62E9${limit.value}\u4E2A\u6587\u4EF6`);
|
|
6990
6991
|
};
|
|
@@ -7048,6 +7049,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
7048
7049
|
fileName.value = "";
|
|
7049
7050
|
groupId.value = id;
|
|
7050
7051
|
fileList.value = [];
|
|
7052
|
+
uploadKey.value++;
|
|
7051
7053
|
if ((_a2 = deepConfig.value) == null ? void 0 : _a2.fileType) {
|
|
7052
7054
|
fileType.value = (_b = deepConfig.value) == null ? void 0 : _b.fileType;
|
|
7053
7055
|
} else {
|
|
@@ -7093,6 +7095,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
7093
7095
|
limit,
|
|
7094
7096
|
accept,
|
|
7095
7097
|
fileList,
|
|
7098
|
+
uploadKey,
|
|
7096
7099
|
exceedLimit,
|
|
7097
7100
|
beforeUpload,
|
|
7098
7101
|
fileChange,
|
|
@@ -7186,7 +7189,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7186
7189
|
]),
|
|
7187
7190
|
createVNode(_component_m_scrollbar, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, {
|
|
7188
7191
|
default: withCtx(() => [
|
|
7189
|
-
|
|
7192
|
+
(openBlock(), createBlock(_component_m_upload, {
|
|
7193
|
+
key: _ctx.uploadKey,
|
|
7190
7194
|
"file-list": _ctx.fileList,
|
|
7191
7195
|
"auto-upload": false,
|
|
7192
7196
|
accept: _ctx.accept,
|
|
@@ -7196,7 +7200,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7196
7200
|
onExceedLimit: _ctx.exceedLimit,
|
|
7197
7201
|
onBeforeUpload: _ctx.beforeUpload,
|
|
7198
7202
|
onChange: _ctx.fileChange
|
|
7199
|
-
}, null, 8, ["file-list", "accept", "limit", "onExceedLimit", "onBeforeUpload", "onChange"])
|
|
7203
|
+
}, null, 8, ["file-list", "accept", "limit", "onExceedLimit", "onBeforeUpload", "onChange"]))
|
|
7200
7204
|
]),
|
|
7201
7205
|
_: 1
|
|
7202
7206
|
})
|
|
@@ -7209,7 +7213,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7209
7213
|
_: 1
|
|
7210
7214
|
}, 8, ["visible", "others", "onHandle:ok"]);
|
|
7211
7215
|
}
|
|
7212
|
-
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
7216
|
+
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-43f71e5d"]]);
|
|
7213
7217
|
var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7214
7218
|
const _sfc_main$1 = defineComponent({
|
|
7215
7219
|
name: "",
|
|
@@ -7674,8 +7678,10 @@ const _sfc_main = defineComponent({
|
|
|
7674
7678
|
};
|
|
7675
7679
|
const open = () => {
|
|
7676
7680
|
visible.value = true;
|
|
7677
|
-
|
|
7678
|
-
|
|
7681
|
+
nextTick(() => {
|
|
7682
|
+
refCLeft.value.init();
|
|
7683
|
+
refCRight.value.initCheckbox();
|
|
7684
|
+
});
|
|
7679
7685
|
};
|
|
7680
7686
|
const handleGroupChange = (id) => {
|
|
7681
7687
|
var _a;
|
|
@@ -7757,5 +7763,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7757
7763
|
], 2112))
|
|
7758
7764
|
], 2112);
|
|
7759
7765
|
}
|
|
7760
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
7766
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5e0eeb26"]]);
|
|
7761
7767
|
export { index as default };
|
package/dist/index.min.js
CHANGED
|
@@ -3264,7 +3264,7 @@
|
|
|
3264
3264
|
var _a;
|
|
3265
3265
|
const o2 = e.ref(n2.config);
|
|
3266
3266
|
console.log(o2, "deepConfig==============09999888");
|
|
3267
|
-
const i2 = e.ref(false), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(1), f2 = e.ref(), s2 = e.ref([]), A2 = e.ref(10), g2 = e.ref((_a = o2.value) == null ? void 0 : _a.accept), p2 = e.ref([]), v2 = async () => {
|
|
3267
|
+
const i2 = e.ref(false), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(1), f2 = e.ref(), s2 = e.ref([]), A2 = e.ref(10), g2 = e.ref((_a = o2.value) == null ? void 0 : _a.accept), p2 = e.ref([]), v2 = e.ref(0), d2 = async () => {
|
|
3268
3268
|
var _a2, _b, _c;
|
|
3269
3269
|
try {
|
|
3270
3270
|
u2.value = true;
|
|
@@ -3293,7 +3293,7 @@
|
|
|
3293
3293
|
case 4:
|
|
3294
3294
|
g2.value = ".mp3";
|
|
3295
3295
|
}
|
|
3296
|
-
}, { immediate: true }), { visible: i2, deepConfig: o2, loading: u2, okLoading: a2, fileName: l2, fileType: c2, fileTypes: Me, groupId: f2, source: "lsb", groups: s2, limit: A2, accept: g2, fileList: p2, exceedLimit: () => {
|
|
3296
|
+
}, { immediate: true }), { visible: i2, deepConfig: o2, loading: u2, okLoading: a2, fileName: l2, fileType: c2, fileTypes: Me, groupId: f2, source: "lsb", groups: s2, limit: A2, accept: g2, fileList: p2, uploadKey: v2, exceedLimit: () => {
|
|
3297
3297
|
t.Message.error(`\u6700\u591A\u9009\u62E9${A2.value}\u4E2A\u6587\u4EF6`);
|
|
3298
3298
|
}, beforeUpload: (e2) => new Promise((n3, r3) => {
|
|
3299
3299
|
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);
|
|
@@ -3319,18 +3319,18 @@
|
|
|
3319
3319
|
t.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750\u5206\u7EC4");
|
|
3320
3320
|
else
|
|
3321
3321
|
t.Message.error("\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0");
|
|
3322
|
-
}, init:
|
|
3322
|
+
}, init: d2, open: (e2) => {
|
|
3323
3323
|
var _a2, _b;
|
|
3324
|
-
i2.value = true, l2.value = "", f2.value = e2, p2.value = [], ((_a2 = o2.value) == null ? void 0 : _a2.fileType) ? c2.value = (_b = o2.value) == null ? void 0 : _b.fileType : c2.value = 1,
|
|
3324
|
+
i2.value = true, l2.value = "", f2.value = e2, p2.value = [], v2.value++, ((_a2 = o2.value) == null ? void 0 : _a2.fileType) ? c2.value = (_b = o2.value) == null ? void 0 : _b.fileType : c2.value = 1, d2();
|
|
3325
3325
|
} };
|
|
3326
3326
|
} }), Ze = { class: "form-item" }, Te = { class: "form-item" }, _e = { class: "form-item" }, $e = { class: "upload" }, et = { class: "tips" }, tt = { key: 0 }, nt = { key: 1 }, rt = { key: 2 }, ot = { key: 3 }, it = { key: 4 };
|
|
3327
3327
|
var ut = r(ze, [["render", function(t2, n2, r2, o2, i2, u2) {
|
|
3328
3328
|
const a2 = e.resolveComponent("m-input"), l2 = e.resolveComponent("m-select"), c2 = e.resolveComponent("m-radio-group"), f2 = e.resolveComponent("m-upload"), s2 = e.resolveComponent("m-scrollbar"), A2 = e.resolveComponent("m-spin"), g2 = e.resolveComponent("l-modal");
|
|
3329
3329
|
return e.openBlock(), e.createBlock(g2, { title: "\u4E0A\u4F20\u7D20\u6750", visible: t2.visible, others: { width: 520, okLoading: t2.okLoading }, class: "l-material-library-upload", "onHandle:cancel": n2[3] || (n2[3] = (e2) => t2.visible = false), "onHandle:ok": t2.handleOk }, { default: e.withCtx(() => [e.createVNode(A2, { loading: t2.loading }, { default: e.withCtx(() => {
|
|
3330
3330
|
var _a, _b;
|
|
3331
|
-
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), disabled: [1, 2, 3, 4].includes((_b = t2.deepConfig) == null ? void 0 : _b.fileType), options: t2.fileTypes }, null, 8, ["modelValue", "disabled", "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), 0 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", it, "\u5176\u4ED6\u7C7B\u578B\u5927\u5C0F\u9650\u5236\u5728400M\u4EE5\u5185")) : e.createCommentVNode("v-if", true)]), e.createVNode(s2, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, { default: e.withCtx(() => [e.
|
|
3331
|
+
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), disabled: [1, 2, 3, 4].includes((_b = t2.deepConfig) == null ? void 0 : _b.fileType), options: t2.fileTypes }, null, 8, ["modelValue", "disabled", "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), 0 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", it, "\u5176\u4ED6\u7C7B\u578B\u5927\u5C0F\u9650\u5236\u5728400M\u4EE5\u5185")) : e.createCommentVNode("v-if", true)]), e.createVNode(s2, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, { default: e.withCtx(() => [(e.openBlock(), e.createBlock(f2, { key: t2.uploadKey, "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 })])];
|
|
3332
3332
|
}), _: 1 }, 8, ["loading"])]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
|
|
3333
|
-
}], ["__scopeId", "data-v-
|
|
3333
|
+
}], ["__scopeId", "data-v-43f71e5d"]]);
|
|
3334
3334
|
const at = e.defineComponent({ name: "", components: { IconDown: n.IconDown, IconApps: n.IconApps, IconMenu: n.IconMenu, LModal: o, CRightApps: H, CRightMenus: Re, CChangeGroup: qe, CUpload: ut }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
|
|
3335
3335
|
var _a, _b;
|
|
3336
3336
|
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(), s2 = e.ref(), A2 = 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), L2 = e.ref(false), b2 = e.ref("");
|
|
@@ -3423,7 +3423,9 @@
|
|
|
3423
3423
|
else
|
|
3424
3424
|
t.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750");
|
|
3425
3425
|
}, open: () => {
|
|
3426
|
-
a2.value = true,
|
|
3426
|
+
a2.value = true, e.nextTick(() => {
|
|
3427
|
+
i2.value.init(), u2.value.initCheckbox();
|
|
3428
|
+
});
|
|
3427
3429
|
}, getVersion: () => "0.0.23", handleGroupChange: (e2) => {
|
|
3428
3430
|
var _a;
|
|
3429
3431
|
(_a = u2.value) == null ? void 0 : _a.handleGroupChange(e2);
|
|
@@ -3433,6 +3435,6 @@
|
|
|
3433
3435
|
var _a, _b, _c, _d, _e2;
|
|
3434
3436
|
const a2 = e.resolveComponent("CLeft"), l2 = e.resolveComponent("CRight"), c2 = e.resolveComponent("l-modal");
|
|
3435
3437
|
return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createCommentVNode(" dialog "), ((_a = t2.deepConfig.dialog) == null ? void 0 : _a.visible) ? (e.openBlock(), e.createBlock(c2, { key: 0, visible: t2.visible, title: (_c = (_b = t2.deepConfig.dialog) == null ? void 0 : _b.title) != null ? _c : "\u9009\u62E9\u7D20\u6750", others: { width: (_e2 = (_d = t2.deepConfig.dialog) == null ? void 0 : _d.width) != null ? _e2 : 1160 }, "onHandle:cancel": n2[2] || (n2[2] = (e2) => t2.visible = false), "onHandle:ok": t2.handleOk }, { default: e.withCtx(() => [e.createElementVNode("div", vt, [e.createVNode(a2, { ref: "refCLeft", config: t2.deepConfig, "onGroup:change": n2[0] || (n2[0] = (e2) => t2.handleGroupChange(e2)) }, null, 8, ["config"]), e.createVNode(l2, { ref: "refCRight", config: t2.deepConfig, "onGroup:init": n2[1] || (n2[1] = (e2) => t2.refCLeft.init()) }, null, 8, ["config"])])]), _: 1 }, 8, ["visible", "title", "others", "onHandle:ok"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createCommentVNode(" list "), e.createElementVNode("div", dt, [e.createVNode(a2, { ref: "refCLeft", config: t2.deepConfig, "onGroup:change": n2[3] || (n2[3] = (e2) => t2.handleGroupChange(e2)) }, null, 8, ["config"]), e.createVNode(l2, { ref: "refCRight", config: t2.deepConfig, "onGroup:init": n2[4] || (n2[4] = (e2) => t2.refCLeft.init()) }, null, 8, ["config"])])], 2112))], 2112);
|
|
3436
|
-
}], ["__scopeId", "data-v-
|
|
3438
|
+
}], ["__scopeId", "data-v-5e0eeb26"]]);
|
|
3437
3439
|
});
|
|
3438
3440
|
//# sourceMappingURL=index.min.js.map
|