bl-common-vue3 3.8.117 → 3.8.119
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/package.json +1 -1
- package/src/common/utils/util.js +7 -0
- package/src/components/CustomTable/index.vue +4538 -4483
- package/src/locale/local/cht.json +2 -0
- package/src/locale/local/en.json +2 -0
- package/src/locale/local/jp.json +2 -0
- package/src/locale/local/zh-HK.json +2 -0
- package/src/locale/local/zh.json +2 -0
package/package.json
CHANGED
package/src/common/utils/util.js
CHANGED
|
@@ -18,6 +18,7 @@ const utils = {
|
|
|
18
18
|
basicConfigI18n: {}, // config 接口返回的i18n 配置信息
|
|
19
19
|
dictData: {}, // 字典
|
|
20
20
|
dictMenuData: {}, // 菜单字典
|
|
21
|
+
preferences: {}, // 用户使用偏好
|
|
21
22
|
/**
|
|
22
23
|
* 表单验证为数字
|
|
23
24
|
*/
|
|
@@ -91,6 +92,12 @@ const utils = {
|
|
|
91
92
|
}else {
|
|
92
93
|
localData[key] = value;
|
|
93
94
|
}
|
|
95
|
+
if (key == 'preferences') {
|
|
96
|
+
utils.preferences = localData[key];
|
|
97
|
+
let setBLPreferences = new Event('setBLPreferences');
|
|
98
|
+
setBLPreferences.newValue = utils.preferences;
|
|
99
|
+
window.dispatchEvent(setBLPreferences);
|
|
100
|
+
}
|
|
94
101
|
localStorage.setItem(utils.blCommonKey, JSON.stringify(localData));
|
|
95
102
|
if (key && key.includes('locale_')) {
|
|
96
103
|
// 修改的语言
|