bm-admin-ui 1.2.42-alpha → 1.2.43-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.
|
@@ -26601,6 +26601,9 @@ const _sfc_main$7 = defineComponent({
|
|
|
26601
26601
|
};
|
|
26602
26602
|
});
|
|
26603
26603
|
}
|
|
26604
|
+
function isWindows() {
|
|
26605
|
+
return navigator.platform === "Win32" || navigator.platform === "Windows" || navigator.userAgentData?.platform === "Windows" || navigator.userAgent.indexOf("Window") > 0;
|
|
26606
|
+
}
|
|
26604
26607
|
dayjs.extend(customParseFormat);
|
|
26605
26608
|
const accosiationParseKeyMap = {
|
|
26606
26609
|
\u5546\u54C1\u540D\u79F0: "productName",
|
|
@@ -26822,6 +26825,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
26822
26825
|
showOverflow: false,
|
|
26823
26826
|
showHeaderOverflow: false,
|
|
26824
26827
|
minWidth: 1,
|
|
26828
|
+
className: "bm-fc-table-empty",
|
|
26825
26829
|
resizable: false
|
|
26826
26830
|
});
|
|
26827
26831
|
if (!props.hidden)
|
|
@@ -27143,9 +27147,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
27143
27147
|
const reader = new FileReader();
|
|
27144
27148
|
reader.onload = (fr) => {
|
|
27145
27149
|
const rows = parseCsv(fr?.target?.result);
|
|
27146
|
-
console.log("\u{1F680} ~ rows:", cloneDeep(rows));
|
|
27147
27150
|
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
27148
|
-
console.log("\u{1F680} ~ validColumns:", cloneDeep(validColumns2));
|
|
27149
27151
|
const result = [];
|
|
27150
27152
|
rows.forEach((row) => {
|
|
27151
27153
|
const rowData = {};
|
|
@@ -27154,7 +27156,6 @@ const _sfc_main$7 = defineComponent({
|
|
|
27154
27156
|
});
|
|
27155
27157
|
result.push(rowData);
|
|
27156
27158
|
});
|
|
27157
|
-
console.log("\u{1F680} ~ result:", cloneDeep(result));
|
|
27158
27159
|
result.length && validate(result).then((result2) => {
|
|
27159
27160
|
data.splice(0, data.length, ...result2);
|
|
27160
27161
|
message.success("\u5BFC\u5165\u6210\u529F");
|
|
@@ -27171,8 +27172,8 @@ const _sfc_main$7 = defineComponent({
|
|
|
27171
27172
|
e.target.value = "";
|
|
27172
27173
|
};
|
|
27173
27174
|
if (file) {
|
|
27174
|
-
let encoding = await getFileEncoding(file);
|
|
27175
|
-
reader.readAsText(file, encoding
|
|
27175
|
+
let encoding = isWindows() ? "GB2312" : await getFileEncoding(file);
|
|
27176
|
+
reader.readAsText(file, encoding);
|
|
27176
27177
|
}
|
|
27177
27178
|
}
|
|
27178
27179
|
function isValidColumn(c) {
|
|
@@ -26615,6 +26615,9 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
26615
26615
|
};
|
|
26616
26616
|
});
|
|
26617
26617
|
}
|
|
26618
|
+
function isWindows() {
|
|
26619
|
+
return navigator.platform === "Win32" || navigator.platform === "Windows" || navigator.userAgentData?.platform === "Windows" || navigator.userAgent.indexOf("Window") > 0;
|
|
26620
|
+
}
|
|
26618
26621
|
dayjs__default["default"].extend(customParseFormat__default["default"]);
|
|
26619
26622
|
const accosiationParseKeyMap = {
|
|
26620
26623
|
\u5546\u54C1\u540D\u79F0: "productName",
|
|
@@ -26836,6 +26839,7 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
26836
26839
|
showOverflow: false,
|
|
26837
26840
|
showHeaderOverflow: false,
|
|
26838
26841
|
minWidth: 1,
|
|
26842
|
+
className: "bm-fc-table-empty",
|
|
26839
26843
|
resizable: false
|
|
26840
26844
|
});
|
|
26841
26845
|
if (!props.hidden)
|
|
@@ -27157,9 +27161,7 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
27157
27161
|
const reader = new FileReader();
|
|
27158
27162
|
reader.onload = (fr) => {
|
|
27159
27163
|
const rows = parseCsv(fr?.target?.result);
|
|
27160
|
-
console.log("\u{1F680} ~ rows:", lodashEs.cloneDeep(rows));
|
|
27161
27164
|
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
27162
|
-
console.log("\u{1F680} ~ validColumns:", lodashEs.cloneDeep(validColumns2));
|
|
27163
27165
|
const result = [];
|
|
27164
27166
|
rows.forEach((row) => {
|
|
27165
27167
|
const rowData = {};
|
|
@@ -27168,7 +27170,6 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
27168
27170
|
});
|
|
27169
27171
|
result.push(rowData);
|
|
27170
27172
|
});
|
|
27171
|
-
console.log("\u{1F680} ~ result:", lodashEs.cloneDeep(result));
|
|
27172
27173
|
result.length && validate(result).then((result2) => {
|
|
27173
27174
|
data.splice(0, data.length, ...result2);
|
|
27174
27175
|
antDesignVue.message.success("\u5BFC\u5165\u6210\u529F");
|
|
@@ -27185,8 +27186,8 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
27185
27186
|
e.target.value = "";
|
|
27186
27187
|
};
|
|
27187
27188
|
if (file) {
|
|
27188
|
-
let encoding = await getFileEncoding(file);
|
|
27189
|
-
reader.readAsText(file, encoding
|
|
27189
|
+
let encoding = isWindows() ? "GB2312" : await getFileEncoding(file);
|
|
27190
|
+
reader.readAsText(file, encoding);
|
|
27190
27191
|
}
|
|
27191
27192
|
}
|
|
27192
27193
|
function isValidColumn(c) {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bm-fc-material-temp__add{display:inline-block;width:24px;height:24px;background:#fafafa;border-radius:2px;border:1px solid #e8e8e8;text-align:center;color:#bcbcc6}.bm-fc-module-widget{width:100%;margin:24px 0}.bm-fc-module-widget+.bm-fc-module-widget{margin-top:0}.bm-fc-head-line{width:100%;margin-bottom:24px;font-weight:700}.bm-fc-form-item-label{display:inline-block;line-height:32px;width:127px;text-align:right}.bm-fc-form-item-label.is-required::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-form-item{line-height:32px;color:#505259}.bm-fc-form-item__cover,.bm-fc-form-item__img{width:170px;height:170px;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-form-item__temp-content{width:170px;height:170px!important}.bm-fc-placeholder{color:#9393a3}.bm-fc-row-widget{margin-bottom:24px}.bm-fc-row-widget .ant-form-item{margin-bottom:0}.bm-dc-table-widget__title{line-height:32px;font-size:16px;font-weight:700;overflow:hidden}.bm-dc-table-widget__title-samll{font-size:14px;font-weight:initial}.bm-dc-table-widget__top-bar{float:right}.bm-dc-table-widget__top-bar .ant-btn+.ant-btn{margin-left:8px}.bm-dc-table-widget__table{margin-top:16px}.bm-dc-table-widget .vxe-header--column.is-required .vxe-cell--title::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-select-material-temp__sider{width:225px;height:612px;padding:20px 24px;background-color:#fff;border-right:1px solid rgba(0,0,0,.06);overflow:auto}.bm-fc-select-material-temp__content{padding:24px;background-color:#fff}.bm-fc-select-material-temp__content__input{width:432px}.bm-fc-select-material-temp__content__btn{margin-left:8px}.bm-fc-select-material-temp__content__item-info{padding:10px}.bm-fc-select-material-temp__content__item-info__cover{width:170px;height:170px}.bm-fc-select-material-temp__content__item-info__cover__img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-select-material-temp__content__item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.bm-fc-select-material-temp__content__item-name:hover{color:#2f4eed}.bm-fc-select-material-temp__content__circle{vertical-align:-.125em;display:inline-block;width:14px;height:14px;border:1px solid #e8e8e8;border-radius:50%}.bm-fc-select-material-temp__content__check-icon{color:#2f4eed}.bm-fc-select-material-temp__content__item-time{color:#9393a3;font-size:12px}.bm-fc-select-material-temp__content__name{margin-left:4px}.bm-fc-rect-outer{position:relative;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}.bm-fc-rect-outer .mask-hover{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000;display:flex;justify-content:center;align-items:center;color:#fff;cursor:pointer;opacity:0;transition:all ease-in-out .25s}.bm-fc-rect-outer .mask-hover:hover{opacity:1}.bm-fc-rect-outer .bm-fc-rect{position:absolute;border:1px solid #2f4eed;background-repeat:no-repeat;background-size:cover;background-position:center;font-size:12px;line-height:13px}.bm-fc-rect-outer .bm-fc-rect.is-ele{border:unset}.bm-fc-rect-outer .bm-fc-rect-wrapper{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.25);z-index:1000;cursor:pointer}.bm-fc-rect-outer .bm-fc-rect-wrapper .bm-fc-rect{font-size:20px;line-height:32px}.bm-fc-rect-outer .bm-fc-rect-wrapper .box{cursor:default;height:100vh;width:100vh;margin:0 auto;background-color:#fff}.bm-form-basic-info__title{font-size:16px;font-weight:700;color:#242633}.bm-form-basic-info__shop{margin-left:4px;padding:4px 12px;color:#2f4eed;background:#e6f7ff;border-radius:2px;border:1px solid #91d5ff}.bm-form-basic-info__summary{font-size:12px;color:#9393a3;margin-top:15px}.bm-form-basic-info__summary.mt10{margin-top:10px}.bm-form-basic-info__status{float:right}.bm-form-basic-info__approval-status{float:right;margin-top:3px}.bm-fc-form-basic-info{margin-bottom:48px}
|
|
1
|
+
.bm-fc-material-temp__add{display:inline-block;width:24px;height:24px;background:#fafafa;border-radius:2px;border:1px solid #e8e8e8;text-align:center;color:#bcbcc6}.bm-fc-module-widget{width:100%;margin:24px 0}.bm-fc-module-widget+.bm-fc-module-widget{margin-top:0}.bm-fc-head-line{width:100%;margin-bottom:24px;font-weight:700}.bm-fc-form-item-label{display:inline-block;line-height:32px;width:127px;text-align:right}.bm-fc-form-item-label.is-required::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-form-item{line-height:32px;color:#505259}.bm-fc-form-item__cover,.bm-fc-form-item__img{width:170px;height:170px;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-form-item__temp-content{width:170px;height:170px!important}.bm-fc-placeholder{color:#9393a3}.bm-fc-row-widget{margin-bottom:24px}.bm-fc-row-widget .ant-form-item{margin-bottom:0}.bm-dc-table-widget__title{line-height:32px;font-size:16px;font-weight:700;overflow:hidden}.bm-dc-table-widget__title-samll{font-size:14px;font-weight:initial}.bm-dc-table-widget__top-bar{float:right}.bm-dc-table-widget__top-bar .ant-btn+.ant-btn{margin-left:8px}.bm-dc-table-widget__table{margin-top:16px}.bm-dc-table-widget .vxe-header--column.is-required .vxe-cell--title::before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:'*'}.bm-fc-select-material-temp__sider{width:225px;height:612px;padding:20px 24px;background-color:#fff;border-right:1px solid rgba(0,0,0,.06);overflow:auto}.bm-fc-select-material-temp__content{padding:24px;background-color:#fff}.bm-fc-select-material-temp__content__input{width:432px}.bm-fc-select-material-temp__content__btn{margin-left:8px}.bm-fc-select-material-temp__content__item-info{padding:10px}.bm-fc-select-material-temp__content__item-info__cover{width:170px;height:170px}.bm-fc-select-material-temp__content__item-info__cover__img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain}.bm-fc-select-material-temp__content__item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.bm-fc-select-material-temp__content__item-name:hover{color:#2f4eed}.bm-fc-select-material-temp__content__circle{vertical-align:-.125em;display:inline-block;width:14px;height:14px;border:1px solid #e8e8e8;border-radius:50%}.bm-fc-select-material-temp__content__check-icon{color:#2f4eed}.bm-fc-select-material-temp__content__item-time{color:#9393a3;font-size:12px}.bm-fc-select-material-temp__content__name{margin-left:4px}.bm-fc-rect-outer{position:relative;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}.bm-fc-rect-outer .mask-hover{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000;display:flex;justify-content:center;align-items:center;color:#fff;cursor:pointer;opacity:0;transition:all ease-in-out .25s}.bm-fc-rect-outer .mask-hover:hover{opacity:1}.bm-fc-rect-outer .bm-fc-rect{position:absolute;border:1px solid #2f4eed;background-repeat:no-repeat;background-size:cover;background-position:center;font-size:12px;line-height:13px}.bm-fc-rect-outer .bm-fc-rect.is-ele{border:unset}.bm-fc-rect-outer .bm-fc-rect-wrapper{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.25);z-index:1000;cursor:pointer}.bm-fc-rect-outer .bm-fc-rect-wrapper .bm-fc-rect{font-size:20px;line-height:32px}.bm-fc-rect-outer .bm-fc-rect-wrapper .box{cursor:default;height:100vh;width:100vh;margin:0 auto;background-color:#fff}.bm-form-basic-info__title{font-size:16px;font-weight:700;color:#242633}.bm-form-basic-info__shop{margin-left:4px;padding:4px 12px;color:#2f4eed;background:#e6f7ff;border-radius:2px;border:1px solid #91d5ff}.bm-form-basic-info__summary{font-size:12px;color:#9393a3;margin-top:15px}.bm-form-basic-info__summary.mt10{margin-top:10px}.bm-form-basic-info__status{float:right}.bm-form-basic-info__approval-status{float:right;margin-top:3px}.bm-fc-form-basic-info{margin-bottom:48px}.bm-fc-table-empty{overflow:hidden}
|