eoss 0.1.0-alpha.14 → 0.1.0-alpha.16
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/README.md +2 -0
- package/lib/account-login.js +10 -3
- package/lib/ai-chat.js +2 -1
- package/lib/button-group.js +2 -1
- package/lib/calendar.js +2 -1
- package/lib/checkbox-group.js +2 -1
- package/lib/collapse-item.js +64 -9
- package/lib/collapse.js +64 -9
- package/lib/data-table.js +2 -1
- package/lib/dropdown.js +2 -1
- package/lib/email-login.js +2 -1
- package/lib/eoss.common.js +291 -265
- package/lib/flow.js +2 -1
- package/lib/form.js +63 -7
- package/lib/icon.js +59 -4
- package/lib/index.js +291 -265
- package/lib/login.js +94 -22
- package/lib/main.js +295 -223
- package/lib/pagination.js +2 -1
- package/lib/phone-login.js +2 -1
- package/lib/qr-code.js +4 -9
- package/lib/qrcode-login.js +2 -1
- package/lib/radio-group.js +2 -1
- package/lib/select.js +2 -1
- package/lib/selector-panel.js +2 -1
- package/lib/selector.js +2 -1
- package/lib/step.js +64 -9
- package/lib/table.js +2 -1
- package/lib/theme-chalk/account-login.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -1
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -1
- package/lib/theme-chalk/card.css +1 -1
- package/lib/theme-chalk/carousel-item.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox-button.css +1 -1
- package/lib/theme-chalk/checkbox.css +1 -1
- package/lib/theme-chalk/collapse.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/descriptions-item.css +1 -1
- package/lib/theme-chalk/descriptions.css +1 -1
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/divider.css +1 -1
- package/lib/theme-chalk/drawer.css +1 -1
- package/lib/theme-chalk/dropdown.css +1 -1
- package/lib/theme-chalk/email-login.css +1 -1
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/link.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/lib/theme-chalk/option.css +1 -1
- package/lib/theme-chalk/page-header.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/phone-login.css +1 -1
- package/lib/theme-chalk/popover.css +1 -1
- package/lib/theme-chalk/progress.css +1 -1
- package/lib/theme-chalk/radio-button.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/scrollbar.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/selector-panel.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/step.css +1 -1
- package/lib/theme-chalk/switch.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/timeline-item.css +1 -1
- package/lib/theme-chalk/tooltip.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +2 -1
- package/lib/transfer.js +2 -1
- package/lib/tree.js +63 -7
- package/lib/upload.js +2 -1
- package/lib/utils/ajax.js +2 -1
- package/package.json +1 -1
- package/packages/account-login/src/account-login.vue +1 -0
- package/packages/icon/src/icon.vue +65 -2
- package/packages/login/src/login.vue +19 -6
- package/packages/login/src/mixins.js +2 -0
- package/packages/main/src/components/application.vue +157 -111
- package/packages/main/src/components/avatar.vue +8 -30
- package/packages/main/src/components/pages.vue +10 -2
- package/packages/main/src/components/user.vue +5 -51
- package/packages/main/src/gzw.vue +0 -1
- package/packages/main/src/minxs.js +36 -73
- package/packages/main/src/store/index.js +2 -3
- package/packages/qr-code/src/qr-code.vue +3 -8
- package/packages/theme-chalk/src/base.scss +3 -0
- package/packages/theme-chalk/src/common/var.scss +3 -3
- package/packages/theme-chalk/src/drawer.scss +1 -4
- package/packages/theme-chalk/src/flow.scss +9 -9
- package/packages/theme-chalk/src/login.scss +3 -0
- package/packages/theme-chalk/src/main.scss +122 -58
- package/packages/theme-chalk/src/menu.scss +2 -5
- package/packages/theme-chalk/src/selector-panel.scss +1 -1
- package/packages/theme-chalk/src/table.scss +1 -1
- package/packages/theme-chalk/src/tabs.scss +10 -1
- package/packages/theme-chalk/src/tree.scss +1 -1
- package/packages/theme-chalk/src/upload.scss +2 -2
- package/src/index.js +1 -1
- package/src/utils/ajax.js +1 -1
package/README.md
CHANGED
package/lib/account-login.js
CHANGED
|
@@ -6852,7 +6852,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
6852
6852
|
**/
|
|
6853
6853
|
var getMainConfig = function getMainConfig(callback) {
|
|
6854
6854
|
ajax({
|
|
6855
|
-
url: mainConfig
|
|
6855
|
+
url: mainConfig,
|
|
6856
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
6856
6857
|
}).then(function (res) {
|
|
6857
6858
|
if (res && res.rCode === 0) {
|
|
6858
6859
|
callback(res.results);
|
|
@@ -29680,7 +29681,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29680
29681
|
"default": () => (/* binding */ packages_account_login)
|
|
29681
29682
|
});
|
|
29682
29683
|
|
|
29683
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/account-login/src/account-login.vue?vue&type=template&id=
|
|
29684
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/account-login/src/account-login.vue?vue&type=template&id=23a01501
|
|
29684
29685
|
var render = function render() {
|
|
29685
29686
|
var _vm = this,
|
|
29686
29687
|
_c = _vm._self._c;
|
|
@@ -29782,6 +29783,12 @@ var render = function render() {
|
|
|
29782
29783
|
}, [_c("i", {
|
|
29783
29784
|
staticClass: "es-icon-yanzhengma"
|
|
29784
29785
|
})])], 2), _c("img", {
|
|
29786
|
+
directives: [{
|
|
29787
|
+
name: "show",
|
|
29788
|
+
rawName: "v-show",
|
|
29789
|
+
value: _vm.imgCode,
|
|
29790
|
+
expression: "imgCode"
|
|
29791
|
+
}],
|
|
29785
29792
|
staticClass: "es-image-code",
|
|
29786
29793
|
attrs: {
|
|
29787
29794
|
src: _vm.imgCode,
|
|
@@ -29837,7 +29844,7 @@ var render = function render() {
|
|
|
29837
29844
|
var staticRenderFns = [];
|
|
29838
29845
|
render._withStripped = true;
|
|
29839
29846
|
|
|
29840
|
-
;// ./packages/account-login/src/account-login.vue?vue&type=template&id=
|
|
29847
|
+
;// ./packages/account-login/src/account-login.vue?vue&type=template&id=23a01501
|
|
29841
29848
|
|
|
29842
29849
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
29843
29850
|
var esm_extends = __webpack_require__(58168);
|
package/lib/ai-chat.js
CHANGED
|
@@ -26553,7 +26553,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
26553
26553
|
**/
|
|
26554
26554
|
var getMainConfig = function getMainConfig(callback) {
|
|
26555
26555
|
ajax({
|
|
26556
|
-
url: ajax_mainConfig
|
|
26556
|
+
url: ajax_mainConfig,
|
|
26557
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
26557
26558
|
}).then(function (res) {
|
|
26558
26559
|
if (res && res.rCode === 0) {
|
|
26559
26560
|
callback(res.results);
|
package/lib/button-group.js
CHANGED
|
@@ -10193,7 +10193,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
10193
10193
|
**/
|
|
10194
10194
|
var getMainConfig = function getMainConfig(callback) {
|
|
10195
10195
|
ajax({
|
|
10196
|
-
url: mainConfig
|
|
10196
|
+
url: mainConfig,
|
|
10197
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
10197
10198
|
}).then(function (res) {
|
|
10198
10199
|
if (res && res.rCode === 0) {
|
|
10199
10200
|
callback(res.results);
|
package/lib/calendar.js
CHANGED
|
@@ -10483,7 +10483,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
10483
10483
|
**/
|
|
10484
10484
|
var getMainConfig = function getMainConfig(callback) {
|
|
10485
10485
|
ajax({
|
|
10486
|
-
url: mainConfig
|
|
10486
|
+
url: mainConfig,
|
|
10487
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
10487
10488
|
}).then(function (res) {
|
|
10488
10489
|
if (res && res.rCode === 0) {
|
|
10489
10490
|
callback(res.results);
|
package/lib/checkbox-group.js
CHANGED
|
@@ -7930,7 +7930,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
7930
7930
|
**/
|
|
7931
7931
|
var getMainConfig = function getMainConfig(callback) {
|
|
7932
7932
|
ajax({
|
|
7933
|
-
url: mainConfig
|
|
7933
|
+
url: mainConfig,
|
|
7934
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
7934
7935
|
}).then(function (res) {
|
|
7935
7936
|
if (res && res.rCode === 0) {
|
|
7936
7937
|
callback(res.results);
|
package/lib/collapse-item.js
CHANGED
|
@@ -15767,8 +15767,8 @@ var Transition = /*#__PURE__*/function () {
|
|
|
15767
15767
|
var emitter = __webpack_require__(29401);
|
|
15768
15768
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
15769
15769
|
var util = __webpack_require__(15768);
|
|
15770
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/icon/src/icon.vue?vue&type=template&id=
|
|
15771
|
-
var
|
|
15770
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/icon/src/icon.vue?vue&type=template&id=1d607d4e
|
|
15771
|
+
var iconvue_type_template_id_1d607d4e_render = function render() {
|
|
15772
15772
|
var _vm = this,
|
|
15773
15773
|
_c = _vm._self._c;
|
|
15774
15774
|
return _c(_vm.tag, _vm._g({
|
|
@@ -15783,10 +15783,10 @@ var iconvue_type_template_id_16033596_render = function render() {
|
|
|
15783
15783
|
}
|
|
15784
15784
|
}, _vm.allEvents));
|
|
15785
15785
|
};
|
|
15786
|
-
var
|
|
15787
|
-
|
|
15786
|
+
var iconvue_type_template_id_1d607d4e_staticRenderFns = [];
|
|
15787
|
+
iconvue_type_template_id_1d607d4e_render._withStripped = true;
|
|
15788
15788
|
|
|
15789
|
-
;// ./packages/icon/src/icon.vue?vue&type=template&id=
|
|
15789
|
+
;// ./packages/icon/src/icon.vue?vue&type=template&id=1d607d4e
|
|
15790
15790
|
|
|
15791
15791
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
15792
15792
|
var esm_extends = __webpack_require__(58168);
|
|
@@ -16138,7 +16138,13 @@ var freeTaskCircularRead = '/bpm/bpmBackend/freeTaskCircularRead';
|
|
|
16138
16138
|
style.width = size + 'px';
|
|
16139
16139
|
style.height = size + 'px';
|
|
16140
16140
|
} else {
|
|
16141
|
-
|
|
16141
|
+
// 检查是否是SVG字符串或SVG路径内容
|
|
16142
|
+
if (this.code && (this.code.startsWith('<svg') || this.code.includes('<path d='))) {
|
|
16143
|
+
style.width = size + 'px';
|
|
16144
|
+
style.height = size + 'px';
|
|
16145
|
+
} else {
|
|
16146
|
+
style.fontSize = size + 'px';
|
|
16147
|
+
}
|
|
16142
16148
|
}
|
|
16143
16149
|
}
|
|
16144
16150
|
return style;
|
|
@@ -16233,6 +16239,35 @@ var freeTaskCircularRead = '/bpm/bpmBackend/freeTaskCircularRead';
|
|
|
16233
16239
|
}
|
|
16234
16240
|
return false;
|
|
16235
16241
|
},
|
|
16242
|
+
/**
|
|
16243
|
+
* 检查是否是SVG内容
|
|
16244
|
+
* @param {string} value - 要检查的值
|
|
16245
|
+
* @returns {boolean} 是否是SVG内容
|
|
16246
|
+
*/
|
|
16247
|
+
isSvg: function isSvg(value) {
|
|
16248
|
+
if (!value) return false;
|
|
16249
|
+
|
|
16250
|
+
// 检查是否以<svg标签开头
|
|
16251
|
+
if ((0,util/* startWith */.ZZ)(value, '<svg')) {
|
|
16252
|
+
return true;
|
|
16253
|
+
}
|
|
16254
|
+
|
|
16255
|
+
// 检查是否是SVG文件URL或路径
|
|
16256
|
+
if (value.toLowerCase().includes('.svg')) {
|
|
16257
|
+
return true;
|
|
16258
|
+
}
|
|
16259
|
+
|
|
16260
|
+
// 检查是否是base64编码的SVG
|
|
16261
|
+
if (value.includes('data:image/svg+xml;base64')) {
|
|
16262
|
+
return true;
|
|
16263
|
+
}
|
|
16264
|
+
|
|
16265
|
+
// 检查是否是SVG路径内容(以d=开头)
|
|
16266
|
+
if ((0,util/* startWith */.ZZ)(value, 'd=')) {
|
|
16267
|
+
return true;
|
|
16268
|
+
}
|
|
16269
|
+
return false;
|
|
16270
|
+
},
|
|
16236
16271
|
/**
|
|
16237
16272
|
* 处理内容
|
|
16238
16273
|
* @param {string|object} contents - 要处理的内容
|
|
@@ -16241,7 +16276,27 @@ var freeTaskCircularRead = '/bpm/bpmBackend/freeTaskCircularRead';
|
|
|
16241
16276
|
if (!contents) return;
|
|
16242
16277
|
if (typeof contents === 'string') {
|
|
16243
16278
|
// 处理字符串内容
|
|
16244
|
-
if (this.
|
|
16279
|
+
if (this.isSvg(contents)) {
|
|
16280
|
+
// 检查是否是SVG文件URL或base64编码的SVG
|
|
16281
|
+
if (this.isImageUrl(contents) || contents.includes('data:image/svg+xml;base64')) {
|
|
16282
|
+
this.tag = 'img';
|
|
16283
|
+
this.url = contents;
|
|
16284
|
+
this.code = '';
|
|
16285
|
+
} else if ((0,util/* startWith */.ZZ)(contents, 'd=')) {
|
|
16286
|
+
// 渲染SVG路径内容
|
|
16287
|
+
this.tag = 'i';
|
|
16288
|
+
this.baseClass = '';
|
|
16289
|
+
// 处理size和color
|
|
16290
|
+
var size = this.size ? parseInt(this.size, 10) : 24;
|
|
16291
|
+
var color = this.color ? this.color : 'currentColor';
|
|
16292
|
+
this.code = "<svg width=\"" + size + "px\" height=\"" + size + "px\" viewBox=\"0 0 24 24\" style=\"display: inline-block; vertical-align: text-top;\"><path " + contents + " fill=\"" + color + "\" /></svg>";
|
|
16293
|
+
} else {
|
|
16294
|
+
// 直接渲染SVG字符串
|
|
16295
|
+
this.tag = 'i';
|
|
16296
|
+
this.baseClass = '';
|
|
16297
|
+
this.code = contents;
|
|
16298
|
+
}
|
|
16299
|
+
} else if (this.isImageUrl(contents)) {
|
|
16245
16300
|
this.tag = 'img';
|
|
16246
16301
|
this.url = contents;
|
|
16247
16302
|
this.code = '';
|
|
@@ -16291,8 +16346,8 @@ var componentNormalizer = __webpack_require__(14486);
|
|
|
16291
16346
|
;
|
|
16292
16347
|
var component = (0,componentNormalizer/* default */.A)(
|
|
16293
16348
|
src_iconvue_type_script_lang_js,
|
|
16294
|
-
|
|
16295
|
-
|
|
16349
|
+
iconvue_type_template_id_1d607d4e_render,
|
|
16350
|
+
iconvue_type_template_id_1d607d4e_staticRenderFns,
|
|
16296
16351
|
false,
|
|
16297
16352
|
null,
|
|
16298
16353
|
null,
|
package/lib/collapse.js
CHANGED
|
@@ -15799,8 +15799,8 @@ var Transition = /*#__PURE__*/function () {
|
|
|
15799
15799
|
var emitter = __webpack_require__(29401);
|
|
15800
15800
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
15801
15801
|
var util = __webpack_require__(15768);
|
|
15802
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/icon/src/icon.vue?vue&type=template&id=
|
|
15803
|
-
var
|
|
15802
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/icon/src/icon.vue?vue&type=template&id=1d607d4e
|
|
15803
|
+
var iconvue_type_template_id_1d607d4e_render = function render() {
|
|
15804
15804
|
var _vm = this,
|
|
15805
15805
|
_c = _vm._self._c;
|
|
15806
15806
|
return _c(_vm.tag, _vm._g({
|
|
@@ -15815,10 +15815,10 @@ var iconvue_type_template_id_16033596_render = function render() {
|
|
|
15815
15815
|
}
|
|
15816
15816
|
}, _vm.allEvents));
|
|
15817
15817
|
};
|
|
15818
|
-
var
|
|
15819
|
-
|
|
15818
|
+
var iconvue_type_template_id_1d607d4e_staticRenderFns = [];
|
|
15819
|
+
iconvue_type_template_id_1d607d4e_render._withStripped = true;
|
|
15820
15820
|
|
|
15821
|
-
;// ./packages/icon/src/icon.vue?vue&type=template&id=
|
|
15821
|
+
;// ./packages/icon/src/icon.vue?vue&type=template&id=1d607d4e
|
|
15822
15822
|
|
|
15823
15823
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
15824
15824
|
var esm_extends = __webpack_require__(58168);
|
|
@@ -16170,7 +16170,13 @@ var freeTaskCircularRead = '/bpm/bpmBackend/freeTaskCircularRead';
|
|
|
16170
16170
|
style.width = size + 'px';
|
|
16171
16171
|
style.height = size + 'px';
|
|
16172
16172
|
} else {
|
|
16173
|
-
|
|
16173
|
+
// 检查是否是SVG字符串或SVG路径内容
|
|
16174
|
+
if (this.code && (this.code.startsWith('<svg') || this.code.includes('<path d='))) {
|
|
16175
|
+
style.width = size + 'px';
|
|
16176
|
+
style.height = size + 'px';
|
|
16177
|
+
} else {
|
|
16178
|
+
style.fontSize = size + 'px';
|
|
16179
|
+
}
|
|
16174
16180
|
}
|
|
16175
16181
|
}
|
|
16176
16182
|
return style;
|
|
@@ -16265,6 +16271,35 @@ var freeTaskCircularRead = '/bpm/bpmBackend/freeTaskCircularRead';
|
|
|
16265
16271
|
}
|
|
16266
16272
|
return false;
|
|
16267
16273
|
},
|
|
16274
|
+
/**
|
|
16275
|
+
* 检查是否是SVG内容
|
|
16276
|
+
* @param {string} value - 要检查的值
|
|
16277
|
+
* @returns {boolean} 是否是SVG内容
|
|
16278
|
+
*/
|
|
16279
|
+
isSvg: function isSvg(value) {
|
|
16280
|
+
if (!value) return false;
|
|
16281
|
+
|
|
16282
|
+
// 检查是否以<svg标签开头
|
|
16283
|
+
if ((0,util/* startWith */.ZZ)(value, '<svg')) {
|
|
16284
|
+
return true;
|
|
16285
|
+
}
|
|
16286
|
+
|
|
16287
|
+
// 检查是否是SVG文件URL或路径
|
|
16288
|
+
if (value.toLowerCase().includes('.svg')) {
|
|
16289
|
+
return true;
|
|
16290
|
+
}
|
|
16291
|
+
|
|
16292
|
+
// 检查是否是base64编码的SVG
|
|
16293
|
+
if (value.includes('data:image/svg+xml;base64')) {
|
|
16294
|
+
return true;
|
|
16295
|
+
}
|
|
16296
|
+
|
|
16297
|
+
// 检查是否是SVG路径内容(以d=开头)
|
|
16298
|
+
if ((0,util/* startWith */.ZZ)(value, 'd=')) {
|
|
16299
|
+
return true;
|
|
16300
|
+
}
|
|
16301
|
+
return false;
|
|
16302
|
+
},
|
|
16268
16303
|
/**
|
|
16269
16304
|
* 处理内容
|
|
16270
16305
|
* @param {string|object} contents - 要处理的内容
|
|
@@ -16273,7 +16308,27 @@ var freeTaskCircularRead = '/bpm/bpmBackend/freeTaskCircularRead';
|
|
|
16273
16308
|
if (!contents) return;
|
|
16274
16309
|
if (typeof contents === 'string') {
|
|
16275
16310
|
// 处理字符串内容
|
|
16276
|
-
if (this.
|
|
16311
|
+
if (this.isSvg(contents)) {
|
|
16312
|
+
// 检查是否是SVG文件URL或base64编码的SVG
|
|
16313
|
+
if (this.isImageUrl(contents) || contents.includes('data:image/svg+xml;base64')) {
|
|
16314
|
+
this.tag = 'img';
|
|
16315
|
+
this.url = contents;
|
|
16316
|
+
this.code = '';
|
|
16317
|
+
} else if ((0,util/* startWith */.ZZ)(contents, 'd=')) {
|
|
16318
|
+
// 渲染SVG路径内容
|
|
16319
|
+
this.tag = 'i';
|
|
16320
|
+
this.baseClass = '';
|
|
16321
|
+
// 处理size和color
|
|
16322
|
+
var size = this.size ? parseInt(this.size, 10) : 24;
|
|
16323
|
+
var color = this.color ? this.color : 'currentColor';
|
|
16324
|
+
this.code = "<svg width=\"" + size + "px\" height=\"" + size + "px\" viewBox=\"0 0 24 24\" style=\"display: inline-block; vertical-align: text-top;\"><path " + contents + " fill=\"" + color + "\" /></svg>";
|
|
16325
|
+
} else {
|
|
16326
|
+
// 直接渲染SVG字符串
|
|
16327
|
+
this.tag = 'i';
|
|
16328
|
+
this.baseClass = '';
|
|
16329
|
+
this.code = contents;
|
|
16330
|
+
}
|
|
16331
|
+
} else if (this.isImageUrl(contents)) {
|
|
16277
16332
|
this.tag = 'img';
|
|
16278
16333
|
this.url = contents;
|
|
16279
16334
|
this.code = '';
|
|
@@ -16323,8 +16378,8 @@ var componentNormalizer = __webpack_require__(14486);
|
|
|
16323
16378
|
;
|
|
16324
16379
|
var component = (0,componentNormalizer/* default */.A)(
|
|
16325
16380
|
src_iconvue_type_script_lang_js,
|
|
16326
|
-
|
|
16327
|
-
|
|
16381
|
+
iconvue_type_template_id_1d607d4e_render,
|
|
16382
|
+
iconvue_type_template_id_1d607d4e_staticRenderFns,
|
|
16328
16383
|
false,
|
|
16329
16384
|
null,
|
|
16330
16385
|
null,
|
package/lib/data-table.js
CHANGED
|
@@ -19838,7 +19838,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
19838
19838
|
**/
|
|
19839
19839
|
var getMainConfig = function getMainConfig(callback) {
|
|
19840
19840
|
ajax({
|
|
19841
|
-
url: mainConfig
|
|
19841
|
+
url: mainConfig,
|
|
19842
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
19842
19843
|
}).then(function (res) {
|
|
19843
19844
|
if (res && res.rCode === 0) {
|
|
19844
19845
|
callback(res.results);
|
package/lib/dropdown.js
CHANGED
|
@@ -12378,7 +12378,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
12378
12378
|
**/
|
|
12379
12379
|
var getMainConfig = function getMainConfig(callback) {
|
|
12380
12380
|
ajax({
|
|
12381
|
-
url: mainConfig
|
|
12381
|
+
url: mainConfig,
|
|
12382
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
12382
12383
|
}).then(function (res) {
|
|
12383
12384
|
if (res && res.rCode === 0) {
|
|
12384
12385
|
callback(res.results);
|
package/lib/email-login.js
CHANGED
|
@@ -6852,7 +6852,8 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
6852
6852
|
**/
|
|
6853
6853
|
var getMainConfig = function getMainConfig(callback) {
|
|
6854
6854
|
ajax({
|
|
6855
|
-
url: mainConfig
|
|
6855
|
+
url: mainConfig,
|
|
6856
|
+
userConfigTypes: 'customMenus,userConfig'
|
|
6856
6857
|
}).then(function (res) {
|
|
6857
6858
|
if (res && res.rCode === 0) {
|
|
6858
6859
|
callback(res.results);
|