@cmstops/pro-compo 3.9.1-rc.2 → 3.9.1-rc.3
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/config.js +1 -1
- package/es/selectThumb/component.js +7 -18
- package/lib/config.js +1 -1
- package/lib/selectThumb/component.js +7 -18
- package/package.json +1 -1
package/es/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2
|
-
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
|
|
2
|
+
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.r.cmstop.xyz";
|
|
3
3
|
const DEFAULT_BASE_ACCOUNT_HOST = ((_d = (_c = window.situoyun) == null ? void 0 : _c.env) == null ? void 0 : _d.BASE_ACCOUNT_HOST) || "https://account.cmstop.xyz";
|
|
4
4
|
const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
|
|
5
5
|
const DEFAULT_UPLOAD_URL = ((_h = (_g = window.situoyun) == null ? void 0 : _g.env) == null ? void 0 : _h.BASE_STATIC_FILE_API) || "https://oss.cmstop.xyz/maple/v1";
|
|
@@ -351,9 +351,11 @@ const _sfc_main = defineComponent({
|
|
|
351
351
|
if (!props.dataValue)
|
|
352
352
|
return;
|
|
353
353
|
if (styleData.value.model === oldData.value.model) {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
354
|
+
nextTick(() => {
|
|
355
|
+
styleData.value.data = oldData.value.data;
|
|
356
|
+
styleData.value.cover_theme_color = oldData.value.cover_theme_color;
|
|
357
|
+
styleData.value.cover_colorList = oldData.value.cover_colorList;
|
|
358
|
+
});
|
|
357
359
|
} else {
|
|
358
360
|
styleData.value.data = [];
|
|
359
361
|
}
|
|
@@ -409,21 +411,8 @@ const _sfc_main = defineComponent({
|
|
|
409
411
|
callback(styleData2);
|
|
410
412
|
};
|
|
411
413
|
onMounted(() => {
|
|
412
|
-
if (!styleData.value.cover_url)
|
|
413
|
-
|
|
414
|
-
styleData.value.cover_url = styleData.value.data[0].url;
|
|
415
|
-
const getColors = getThemeColor(BASE_API, styleData.value.data[0].url);
|
|
416
|
-
getColors.then((themes) => {
|
|
417
|
-
styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
|
|
418
|
-
styleData.value.cover_theme_color = `rgb(${themes[1]})`;
|
|
419
|
-
oldData.value = JSON.parse(JSON.stringify(styleData.value));
|
|
420
|
-
callback(styleData.value);
|
|
421
|
-
}).catch((e) => {
|
|
422
|
-
styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
|
|
423
|
-
callback(styleData.value);
|
|
424
|
-
});
|
|
425
|
-
}, 700);
|
|
426
|
-
}
|
|
414
|
+
if (!styleData.value.cover_url)
|
|
415
|
+
;
|
|
427
416
|
});
|
|
428
417
|
return (_ctx, _cache) => {
|
|
429
418
|
var _a, _b, _c, _d, _e, _f;
|
package/lib/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
|
|
4
|
+
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.r.cmstop.xyz";
|
|
5
5
|
const DEFAULT_BASE_ACCOUNT_HOST = ((_d = (_c = window.situoyun) == null ? void 0 : _c.env) == null ? void 0 : _d.BASE_ACCOUNT_HOST) || "https://account.cmstop.xyz";
|
|
6
6
|
const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
|
|
7
7
|
const DEFAULT_UPLOAD_URL = ((_h = (_g = window.situoyun) == null ? void 0 : _g.env) == null ? void 0 : _h.BASE_STATIC_FILE_API) || "https://oss.cmstop.xyz/maple/v1";
|
|
@@ -352,9 +352,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
352
352
|
if (!props.dataValue)
|
|
353
353
|
return;
|
|
354
354
|
if (styleData.value.model === oldData.value.model) {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
vue.nextTick(() => {
|
|
356
|
+
styleData.value.data = oldData.value.data;
|
|
357
|
+
styleData.value.cover_theme_color = oldData.value.cover_theme_color;
|
|
358
|
+
styleData.value.cover_colorList = oldData.value.cover_colorList;
|
|
359
|
+
});
|
|
358
360
|
} else {
|
|
359
361
|
styleData.value.data = [];
|
|
360
362
|
}
|
|
@@ -410,21 +412,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
410
412
|
callback(styleData2);
|
|
411
413
|
};
|
|
412
414
|
vue.onMounted(() => {
|
|
413
|
-
if (!styleData.value.cover_url)
|
|
414
|
-
|
|
415
|
-
styleData.value.cover_url = styleData.value.data[0].url;
|
|
416
|
-
const getColors = index.getThemeColor(BASE_API, styleData.value.data[0].url);
|
|
417
|
-
getColors.then((themes) => {
|
|
418
|
-
styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
|
|
419
|
-
styleData.value.cover_theme_color = `rgb(${themes[1]})`;
|
|
420
|
-
oldData.value = JSON.parse(JSON.stringify(styleData.value));
|
|
421
|
-
callback(styleData.value);
|
|
422
|
-
}).catch((e) => {
|
|
423
|
-
styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
|
|
424
|
-
callback(styleData.value);
|
|
425
|
-
});
|
|
426
|
-
}, 700);
|
|
427
|
-
}
|
|
415
|
+
if (!styleData.value.cover_url)
|
|
416
|
+
;
|
|
428
417
|
});
|
|
429
418
|
return (_ctx, _cache) => {
|
|
430
419
|
var _a, _b, _c, _d, _e, _f;
|