bm-admin-ui 1.0.30-alpha → 1.0.31-alpha
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/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/upload/index.js +9 -7
- package/es/components/upload/src/upload.vue.d.ts +0 -1
- package/index.esm.js +9 -7
- package/index.js +9 -7
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/upload/index.js +9 -7
- package/lib/components/upload/src/upload.vue.d.ts +0 -1
- package/package.json +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/types/components/upload/index.d.ts +0 -1
- package/types/components/upload/src/upload.vue.d.ts +0 -1
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -40,9 +40,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
searchVal: import("vue").Ref<string>;
|
|
41
41
|
selectAll: import("vue").Ref<boolean>;
|
|
42
42
|
indeterminate: import("vue").Ref<boolean>;
|
|
43
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
44
44
|
[key: string]: any;
|
|
45
|
-
}> | null | undefined) |
|
|
45
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
47
|
}> | null | undefined)[]>;
|
|
48
48
|
listChecked: import("vue").Ref<{}>;
|
|
@@ -1404,7 +1404,6 @@ const _sfc_main = {
|
|
|
1404
1404
|
picClass: "",
|
|
1405
1405
|
alignCenter: false,
|
|
1406
1406
|
canNotViewAccept: ".rar,.zip",
|
|
1407
|
-
fileDetail: true,
|
|
1408
1407
|
myBtn: false
|
|
1409
1408
|
},
|
|
1410
1409
|
uploadConfigs: {
|
|
@@ -1482,18 +1481,18 @@ const _sfc_main = {
|
|
|
1482
1481
|
if (methods.fileIsDelete(file)) {
|
|
1483
1482
|
return;
|
|
1484
1483
|
}
|
|
1485
|
-
emit("successFile", data);
|
|
1486
1484
|
state.fileList[file.uid].status = "success";
|
|
1487
1485
|
let uri = data?.url;
|
|
1488
|
-
let item =
|
|
1486
|
+
let item = {
|
|
1489
1487
|
name: file.name,
|
|
1490
1488
|
size: file.size,
|
|
1491
1489
|
type: file.type,
|
|
1492
1490
|
uid: file.uid,
|
|
1493
1491
|
url: uri
|
|
1494
|
-
}
|
|
1492
|
+
};
|
|
1495
1493
|
state.uploadedList.push(item);
|
|
1496
1494
|
state.fileList[file.uid].url = uri;
|
|
1495
|
+
emit("successFile", data);
|
|
1497
1496
|
emit("success", state.uploadedList);
|
|
1498
1497
|
emit("update", state.uploadedList);
|
|
1499
1498
|
},
|
|
@@ -1507,10 +1506,13 @@ const _sfc_main = {
|
|
|
1507
1506
|
emit("error", error);
|
|
1508
1507
|
},
|
|
1509
1508
|
async deleteFile(uid) {
|
|
1510
|
-
|
|
1511
|
-
emit("deleteFile", state.fileList[uid]);
|
|
1512
|
-
state.uploadedList.splice(index, 1);
|
|
1509
|
+
let targetFile = state.fileList[uid];
|
|
1513
1510
|
delete state.fileList[uid];
|
|
1511
|
+
const index = state.uploadedList.findIndex((ele) => ele.url === targetFile.url);
|
|
1512
|
+
if (index !== -1) {
|
|
1513
|
+
state.uploadedList.splice(index, 1);
|
|
1514
|
+
}
|
|
1515
|
+
emit("deleteFile", targetFile);
|
|
1514
1516
|
emit("delete", state.uploadedList);
|
|
1515
1517
|
emit("update", state.uploadedList);
|
|
1516
1518
|
},
|
package/index.esm.js
CHANGED
|
@@ -46138,7 +46138,6 @@ const _sfc_main$3 = {
|
|
|
46138
46138
|
picClass: "",
|
|
46139
46139
|
alignCenter: false,
|
|
46140
46140
|
canNotViewAccept: ".rar,.zip",
|
|
46141
|
-
fileDetail: true,
|
|
46142
46141
|
myBtn: false
|
|
46143
46142
|
},
|
|
46144
46143
|
uploadConfigs: {
|
|
@@ -46216,18 +46215,18 @@ const _sfc_main$3 = {
|
|
|
46216
46215
|
if (methods.fileIsDelete(file)) {
|
|
46217
46216
|
return;
|
|
46218
46217
|
}
|
|
46219
|
-
emit("successFile", data);
|
|
46220
46218
|
state.fileList[file.uid].status = "success";
|
|
46221
46219
|
let uri = data?.url;
|
|
46222
|
-
let item =
|
|
46220
|
+
let item = {
|
|
46223
46221
|
name: file.name,
|
|
46224
46222
|
size: file.size,
|
|
46225
46223
|
type: file.type,
|
|
46226
46224
|
uid: file.uid,
|
|
46227
46225
|
url: uri
|
|
46228
|
-
}
|
|
46226
|
+
};
|
|
46229
46227
|
state.uploadedList.push(item);
|
|
46230
46228
|
state.fileList[file.uid].url = uri;
|
|
46229
|
+
emit("successFile", data);
|
|
46231
46230
|
emit("success", state.uploadedList);
|
|
46232
46231
|
emit("update", state.uploadedList);
|
|
46233
46232
|
},
|
|
@@ -46241,10 +46240,13 @@ const _sfc_main$3 = {
|
|
|
46241
46240
|
emit("error", error);
|
|
46242
46241
|
},
|
|
46243
46242
|
async deleteFile(uid) {
|
|
46244
|
-
|
|
46245
|
-
emit("deleteFile", state.fileList[uid]);
|
|
46246
|
-
state.uploadedList.splice(index, 1);
|
|
46243
|
+
let targetFile = state.fileList[uid];
|
|
46247
46244
|
delete state.fileList[uid];
|
|
46245
|
+
const index = state.uploadedList.findIndex((ele) => ele.url === targetFile.url);
|
|
46246
|
+
if (index !== -1) {
|
|
46247
|
+
state.uploadedList.splice(index, 1);
|
|
46248
|
+
}
|
|
46249
|
+
emit("deleteFile", targetFile);
|
|
46248
46250
|
emit("delete", state.uploadedList);
|
|
46249
46251
|
emit("update", state.uploadedList);
|
|
46250
46252
|
},
|
package/index.js
CHANGED
|
@@ -46146,7 +46146,6 @@ var process = {
|
|
|
46146
46146
|
picClass: "",
|
|
46147
46147
|
alignCenter: false,
|
|
46148
46148
|
canNotViewAccept: ".rar,.zip",
|
|
46149
|
-
fileDetail: true,
|
|
46150
46149
|
myBtn: false
|
|
46151
46150
|
},
|
|
46152
46151
|
uploadConfigs: {
|
|
@@ -46224,18 +46223,18 @@ var process = {
|
|
|
46224
46223
|
if (methods.fileIsDelete(file)) {
|
|
46225
46224
|
return;
|
|
46226
46225
|
}
|
|
46227
|
-
emit("successFile", data);
|
|
46228
46226
|
state.fileList[file.uid].status = "success";
|
|
46229
46227
|
let uri = data?.url;
|
|
46230
|
-
let item =
|
|
46228
|
+
let item = {
|
|
46231
46229
|
name: file.name,
|
|
46232
46230
|
size: file.size,
|
|
46233
46231
|
type: file.type,
|
|
46234
46232
|
uid: file.uid,
|
|
46235
46233
|
url: uri
|
|
46236
|
-
}
|
|
46234
|
+
};
|
|
46237
46235
|
state.uploadedList.push(item);
|
|
46238
46236
|
state.fileList[file.uid].url = uri;
|
|
46237
|
+
emit("successFile", data);
|
|
46239
46238
|
emit("success", state.uploadedList);
|
|
46240
46239
|
emit("update", state.uploadedList);
|
|
46241
46240
|
},
|
|
@@ -46249,10 +46248,13 @@ var process = {
|
|
|
46249
46248
|
emit("error", error);
|
|
46250
46249
|
},
|
|
46251
46250
|
async deleteFile(uid) {
|
|
46252
|
-
|
|
46253
|
-
emit("deleteFile", state.fileList[uid]);
|
|
46254
|
-
state.uploadedList.splice(index, 1);
|
|
46251
|
+
let targetFile = state.fileList[uid];
|
|
46255
46252
|
delete state.fileList[uid];
|
|
46253
|
+
const index = state.uploadedList.findIndex((ele) => ele.url === targetFile.url);
|
|
46254
|
+
if (index !== -1) {
|
|
46255
|
+
state.uploadedList.splice(index, 1);
|
|
46256
|
+
}
|
|
46257
|
+
emit("deleteFile", targetFile);
|
|
46256
46258
|
emit("delete", state.uploadedList);
|
|
46257
46259
|
emit("update", state.uploadedList);
|
|
46258
46260
|
},
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -40,9 +40,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
searchVal: import("vue").Ref<string>;
|
|
41
41
|
selectAll: import("vue").Ref<boolean>;
|
|
42
42
|
indeterminate: import("vue").Ref<boolean>;
|
|
43
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
44
44
|
[key: string]: any;
|
|
45
|
-
}> | null | undefined) |
|
|
45
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
47
|
}> | null | undefined)[]>;
|
|
48
48
|
listChecked: import("vue").Ref<{}>;
|
|
@@ -1408,7 +1408,6 @@ const _sfc_main = {
|
|
|
1408
1408
|
picClass: "",
|
|
1409
1409
|
alignCenter: false,
|
|
1410
1410
|
canNotViewAccept: ".rar,.zip",
|
|
1411
|
-
fileDetail: true,
|
|
1412
1411
|
myBtn: false
|
|
1413
1412
|
},
|
|
1414
1413
|
uploadConfigs: {
|
|
@@ -1486,18 +1485,18 @@ const _sfc_main = {
|
|
|
1486
1485
|
if (methods.fileIsDelete(file)) {
|
|
1487
1486
|
return;
|
|
1488
1487
|
}
|
|
1489
|
-
emit("successFile", data);
|
|
1490
1488
|
state.fileList[file.uid].status = "success";
|
|
1491
1489
|
let uri = data?.url;
|
|
1492
|
-
let item =
|
|
1490
|
+
let item = {
|
|
1493
1491
|
name: file.name,
|
|
1494
1492
|
size: file.size,
|
|
1495
1493
|
type: file.type,
|
|
1496
1494
|
uid: file.uid,
|
|
1497
1495
|
url: uri
|
|
1498
|
-
}
|
|
1496
|
+
};
|
|
1499
1497
|
state.uploadedList.push(item);
|
|
1500
1498
|
state.fileList[file.uid].url = uri;
|
|
1499
|
+
emit("successFile", data);
|
|
1501
1500
|
emit("success", state.uploadedList);
|
|
1502
1501
|
emit("update", state.uploadedList);
|
|
1503
1502
|
},
|
|
@@ -1511,10 +1510,13 @@ const _sfc_main = {
|
|
|
1511
1510
|
emit("error", error);
|
|
1512
1511
|
},
|
|
1513
1512
|
async deleteFile(uid) {
|
|
1514
|
-
|
|
1515
|
-
emit("deleteFile", state.fileList[uid]);
|
|
1516
|
-
state.uploadedList.splice(index, 1);
|
|
1513
|
+
let targetFile = state.fileList[uid];
|
|
1517
1514
|
delete state.fileList[uid];
|
|
1515
|
+
const index = state.uploadedList.findIndex((ele) => ele.url === targetFile.url);
|
|
1516
|
+
if (index !== -1) {
|
|
1517
|
+
state.uploadedList.splice(index, 1);
|
|
1518
|
+
}
|
|
1519
|
+
emit("deleteFile", targetFile);
|
|
1518
1520
|
emit("delete", state.uploadedList);
|
|
1519
1521
|
emit("update", state.uploadedList);
|
|
1520
1522
|
},
|