eoss 0.1.0-alpha.5 → 0.1.0-alpha.7
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/lib/account-login.js +3631 -3413
- package/lib/autocomplete.js +3635 -3393
- package/lib/button-group.js +7391 -7172
- package/lib/button.js +3632 -3390
- package/lib/ca-login.js +3621 -3379
- package/lib/calendar.js +7401 -7182
- package/lib/carousel.js +3 -3
- package/lib/cascader-panel.js +4692 -4450
- package/lib/cascader.js +4701 -4459
- package/lib/checkbox-group.js +4842 -4623
- package/lib/checkbox.js +70 -70
- package/lib/collapse-item.js +3632 -3390
- package/lib/color-picker.js +3621 -3379
- package/lib/data-table.js +19264 -19046
- package/lib/date-picker.js +3620 -3378
- package/lib/dialog.js +3632 -3390
- package/lib/dropdown.js +7830 -7611
- package/lib/email-login.js +3634 -3415
- package/lib/eoss.common.js +588 -358
- package/lib/flow-group.js +3623 -3376
- package/lib/flow.js +3637 -3418
- package/lib/form-item.js +3635 -3392
- package/lib/form.js +10123 -9904
- package/lib/icon.js +3632 -3390
- package/lib/image.js +3632 -3390
- package/lib/index.js +1 -1
- package/lib/index.js.LICENSE.txt +1 -1
- package/lib/input-number.js +2615 -2373
- package/lib/input.js +3632 -3390
- package/lib/loading.js +3632 -3390
- package/lib/login.js +5273 -5052
- package/lib/main.js +3622 -3403
- package/lib/menu-item-group.js +3632 -3390
- package/lib/menu-item.js +3632 -3390
- package/lib/menu.js +3632 -3390
- package/lib/message-box.js +3632 -3390
- package/lib/message.js +3632 -3390
- package/lib/notification.js +3632 -3390
- package/lib/option.js +4447 -4205
- package/lib/pagination.js +9941 -9723
- package/lib/phone-login.js +3634 -3415
- package/lib/popconfirm.js +4834 -4592
- package/lib/popover.js +3635 -3393
- package/lib/qrcode-login.js +3633 -3414
- package/lib/radio-group.js +4430 -4211
- package/lib/radio.js +24 -24
- package/lib/rate.js +3632 -3390
- package/lib/scrollbar.js +3632 -3390
- package/lib/select.js +3633 -3415
- package/lib/selector-panel.js +3670 -3447
- package/lib/selector.js +3638 -3415
- package/lib/slider.js +2618 -2376
- package/lib/step.js +3632 -3390
- package/lib/steps.js +3632 -3390
- package/lib/submenu.js +3632 -3390
- package/lib/switch.js +3632 -3390
- package/lib/table-column.js +3817 -3574
- package/lib/table.js +4884 -4665
- package/lib/tabs.js +3632 -3390
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/time-picker.js +3620 -3378
- package/lib/time-select.js +3621 -3379
- package/lib/tips.js +4419 -4200
- package/lib/tooltip.js +3632 -3390
- package/lib/transfer.js +4853 -4634
- package/lib/tree-group.js +3614 -3372
- package/lib/tree.js +3503 -3261
- package/lib/upload.js +3636 -3417
- package/lib/utils/ajax.js +25 -51
- package/lib/utils/index.js +8 -6
- package/lib/utils/util.js +378 -145
- package/lib/wujie.js +3618 -3373
- package/package.json +1 -1
- package/packages/autocomplete/src/autocomplete.vue +1 -1
- package/packages/carousel/src/item.vue +1 -1
- package/packages/carousel/src/main.vue +1 -1
- package/packages/cascader/src/cascader.vue +1 -1
- package/packages/checkbox/src/checkbox-group.vue +1 -1
- package/packages/checkbox/src/checkbox.vue +29 -29
- package/packages/flow-group/src/main.vue +2 -2
- package/packages/form/src/form.vue +3 -5
- package/packages/input/src/input.vue +2 -2
- package/packages/input-number/src/input-number.vue +2 -2
- package/packages/login/src/login.vue +4 -4
- package/packages/main/src/main.vue +13 -12
- package/packages/popover/src/main.vue +1 -1
- package/packages/radio/src/radio-group.vue +1 -1
- package/packages/radio/src/radio.vue +1 -1
- package/packages/select/src/select.vue +1 -1
- package/packages/slider/src/slider.vue +2 -4
- package/packages/table/src/layout-observer.js +5 -5
- package/packages/table/src/table copy.vue +1 -1
- package/packages/table/src/table-body.js +11 -11
- package/packages/table/src/table-column.js +1 -1
- package/packages/theme-chalk/package.json +6 -6
- package/packages/theme-chalk/src/common/var.scss +2 -2
- package/packages/theme-chalk/src/mixins/function.scss +21 -1
- package/packages/upload/src/index.vue +2 -2
- package/src/index.js +2 -2
- package/src/utils/ajax.js +0 -14
- package/src/utils/index.js +3 -3
- package/src/utils/util.js +320 -104
package/package.json
CHANGED
|
@@ -207,7 +207,7 @@ export default {
|
|
|
207
207
|
this.highlightedIndex = this.highlightFirstItem ? 0 : -1;
|
|
208
208
|
} else {
|
|
209
209
|
console.error(
|
|
210
|
-
'[
|
|
210
|
+
'[Error][Autocomplete]autocomplete suggestions must be an array'
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
213
|
},
|
|
@@ -93,7 +93,7 @@ export default {
|
|
|
93
93
|
if (parentType === 'card') {
|
|
94
94
|
if (parentDirection === 'vertical') {
|
|
95
95
|
console.warn(
|
|
96
|
-
'[
|
|
96
|
+
'[Warn][Carousel]vertical direction is not supported in card mode'
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
this.inStage = Math.round(Math.abs(index - activeIndex)) <= 1;
|
|
@@ -252,7 +252,7 @@ export default {
|
|
|
252
252
|
}
|
|
253
253
|
index = Number(index);
|
|
254
254
|
if (isNaN(index) || index !== Math.floor(index)) {
|
|
255
|
-
console.warn('[
|
|
255
|
+
console.warn('[Warn][Carousel]index must be an integer.');
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
let length = this.items.length;
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
computed: {
|
|
263
263
|
realSize() {
|
|
264
264
|
const _esFormItemSize = (this.esFormItem || {}).esFormItemSize;
|
|
265
|
-
return this.size || _esFormItemSize || (this.$
|
|
265
|
+
return this.size || _esFormItemSize || (this.$EOSS || {}).size;
|
|
266
266
|
},
|
|
267
267
|
tagSize() {
|
|
268
268
|
return ['small', 'mini'].indexOf(this.realSize) > -1 ? 'mini' : 'small';
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
131
131
|
return (this.esFormItem || {}).esFormItemSize;
|
|
132
132
|
},
|
|
133
133
|
checkboxGroupSize() {
|
|
134
|
-
return this.size || this._esFormItemSize || (this.$
|
|
134
|
+
return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
|
|
@@ -51,10 +51,7 @@
|
|
|
51
51
|
/>
|
|
52
52
|
</span>
|
|
53
53
|
<template v-if="$slots.default || label">
|
|
54
|
-
<es-tooltip
|
|
55
|
-
v-if="showTooltip"
|
|
56
|
-
v-bind="getTooltipProps()"
|
|
57
|
-
>
|
|
54
|
+
<es-tooltip v-if="showTooltip" v-bind="getTooltipProps()">
|
|
58
55
|
<span class="es-checkbox__label">
|
|
59
56
|
<slot>
|
|
60
57
|
{{
|
|
@@ -299,7 +296,7 @@ export default {
|
|
|
299
296
|
|
|
300
297
|
checkboxSize() {
|
|
301
298
|
const temCheckboxSize =
|
|
302
|
-
this.size || this._esFormItemSize || (this.$
|
|
299
|
+
this.size || this._esFormItemSize || (this.$EOSS || {}).size;
|
|
303
300
|
return this.isGroup
|
|
304
301
|
? this._checkboxGroup.checkboxGroupSize || temCheckboxSize
|
|
305
302
|
: temCheckboxSize;
|
|
@@ -320,31 +317,34 @@ export default {
|
|
|
320
317
|
},
|
|
321
318
|
|
|
322
319
|
methods: {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
320
|
+
// 获取缓存的tooltip props对象
|
|
321
|
+
getTooltipProps() {
|
|
322
|
+
if (!this.showTooltip) {
|
|
323
|
+
return null;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
const newProps = {
|
|
327
|
+
effect: this.effect,
|
|
328
|
+
content: this.tooltip,
|
|
329
|
+
placement: this.placement,
|
|
330
|
+
...this.tooltipConfig
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
const newPropsKey = JSON.stringify(newProps);
|
|
334
|
+
|
|
335
|
+
// 如果缓存不存在或props发生变化,更新缓存
|
|
336
|
+
if (
|
|
337
|
+
!this._tooltipPropsCache ||
|
|
338
|
+
this._tooltipPropsCache.key !== newPropsKey
|
|
339
|
+
) {
|
|
340
|
+
this._tooltipPropsCache = {
|
|
341
|
+
key: newPropsKey,
|
|
342
|
+
props: newProps
|
|
334
343
|
};
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
if (!this._tooltipPropsCache || this._tooltipPropsCache.key !== newPropsKey) {
|
|
340
|
-
this._tooltipPropsCache = {
|
|
341
|
-
key: newPropsKey,
|
|
342
|
-
props: newProps
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
return this._tooltipPropsCache.props;
|
|
347
|
-
},
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
return this._tooltipPropsCache.props;
|
|
347
|
+
},
|
|
348
348
|
addToStore() {
|
|
349
349
|
if (
|
|
350
350
|
{}.toString.call(this.label) === '[object Object]' &&
|
|
@@ -604,12 +604,12 @@ export default {
|
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
let
|
|
607
|
+
let params = extend(
|
|
608
608
|
{},
|
|
609
609
|
{ id: this.businessId, appId: this.taskExamineAppId },
|
|
610
610
|
res.param || {}
|
|
611
611
|
);
|
|
612
|
-
return urlJoinParams({ url,
|
|
612
|
+
return urlJoinParams({ url, params });
|
|
613
613
|
},
|
|
614
614
|
handleBefore(active, old) {
|
|
615
615
|
return new Promise((resolve, reject) => {
|
|
@@ -727,7 +727,7 @@ export default {
|
|
|
727
727
|
// 优化模型检查和错误提示
|
|
728
728
|
if (!this.model) {
|
|
729
729
|
console.warn(
|
|
730
|
-
'[
|
|
730
|
+
'[Warn][Form]model is required for resetFields to work.'
|
|
731
731
|
);
|
|
732
732
|
return;
|
|
733
733
|
}
|
|
@@ -763,9 +763,7 @@ export default {
|
|
|
763
763
|
validate(callback) {
|
|
764
764
|
// 优化模型检查
|
|
765
765
|
if (!this.model && !this.value) {
|
|
766
|
-
console.warn(
|
|
767
|
-
'[Element Warn][Form]model is required for validate to work!'
|
|
768
|
-
);
|
|
766
|
+
console.warn('[Warn][Form]model is required for validate to work!');
|
|
769
767
|
return Promise.resolve ? Promise.resolve() : undefined;
|
|
770
768
|
}
|
|
771
769
|
|
|
@@ -827,7 +825,7 @@ export default {
|
|
|
827
825
|
const fields = this.fields.filter((field) => propMap.has(field.prop));
|
|
828
826
|
|
|
829
827
|
if (!fields.length) {
|
|
830
|
-
console.warn('[
|
|
828
|
+
console.warn('[Warn]please pass correct props!');
|
|
831
829
|
return;
|
|
832
830
|
}
|
|
833
831
|
|
|
@@ -242,7 +242,7 @@ export default {
|
|
|
242
242
|
validator() {
|
|
243
243
|
process.env.NODE_ENV !== 'production' &&
|
|
244
244
|
console.warn(
|
|
245
|
-
"[
|
|
245
|
+
"[Warn][Input]'auto-complete' property will be deprecated in next major version. please use 'autocomplete' instead."
|
|
246
246
|
);
|
|
247
247
|
return true;
|
|
248
248
|
}
|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
305
305
|
return merge({}, this.textareaCalcStyle, { resize: this.resize });
|
|
306
306
|
},
|
|
307
307
|
inputSize() {
|
|
308
|
-
return this.size || this._esFormItemSize || (this.$
|
|
308
|
+
return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
|
|
309
309
|
},
|
|
310
310
|
inputDisabled() {
|
|
311
311
|
return this.disabled || (this.esForm || {}).disabled;
|
|
@@ -162,7 +162,7 @@ export default {
|
|
|
162
162
|
if (precision !== undefined) {
|
|
163
163
|
if (stepPrecision > precision) {
|
|
164
164
|
console.warn(
|
|
165
|
-
'[
|
|
165
|
+
'[Warn][InputNumber]precision should not be less than the decimal places of step'
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
return precision;
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
177
177
|
return (this.esFormItem || {}).esFormItemSize;
|
|
178
178
|
},
|
|
179
179
|
inputNumberSize() {
|
|
180
|
-
return this.size || this._esFormItemSize || (this.$
|
|
180
|
+
return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
|
|
181
181
|
},
|
|
182
182
|
inputNumberDisabled() {
|
|
183
183
|
return this.disabled || !!(this.esForm || {}).disabled;
|
|
@@ -521,10 +521,10 @@ export default {
|
|
|
521
521
|
() => {
|
|
522
522
|
this.operationCheckCode = results.checkCode;
|
|
523
523
|
if (this.changePasswordUrl || this.forgetUrl) {
|
|
524
|
-
const url = urlJoinParams(
|
|
525
|
-
this.changePasswordUrl || this.forgetUrl,
|
|
526
|
-
{ checkCode: results.checkCode }
|
|
527
|
-
);
|
|
524
|
+
const url = urlJoinParams({
|
|
525
|
+
url: this.changePasswordUrl || this.forgetUrl,
|
|
526
|
+
params: { checkCode: results.checkCode }
|
|
527
|
+
});
|
|
528
528
|
window.open(url);
|
|
529
529
|
} else {
|
|
530
530
|
this.showResetPassword = true;
|
|
@@ -525,6 +525,7 @@ export default {
|
|
|
525
525
|
type: String,
|
|
526
526
|
default: 'es-icon-application'
|
|
527
527
|
},
|
|
528
|
+
menuData: Array,
|
|
528
529
|
//默认主题颜色
|
|
529
530
|
theme: {
|
|
530
531
|
type: String,
|
|
@@ -750,8 +751,7 @@ export default {
|
|
|
750
751
|
return { ...hides, ...this.hides, ...handleHides };
|
|
751
752
|
},
|
|
752
753
|
menuApps() {
|
|
753
|
-
|
|
754
|
-
return this.userApps.length ? this.userApps : this.menus;
|
|
754
|
+
return this.userApps.length ? this.userApps : this.menuData || this.menus;
|
|
755
755
|
}
|
|
756
756
|
},
|
|
757
757
|
watch: {
|
|
@@ -796,7 +796,7 @@ export default {
|
|
|
796
796
|
//点击应用存侧边
|
|
797
797
|
newApps: [],
|
|
798
798
|
//所有菜单
|
|
799
|
-
menus:
|
|
799
|
+
menus: this.menuData,
|
|
800
800
|
//菜单名称
|
|
801
801
|
title: '',
|
|
802
802
|
//子菜单
|
|
@@ -2314,15 +2314,16 @@ export default {
|
|
|
2314
2314
|
* @date 2024年9月7日
|
|
2315
2315
|
**/
|
|
2316
2316
|
handlerClickMenu(res) {
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2317
|
+
this.remote &&
|
|
2318
|
+
ajax({
|
|
2319
|
+
url: recordUserApp,
|
|
2320
|
+
params: {
|
|
2321
|
+
userId: this.user.userId,
|
|
2322
|
+
appId: res.id
|
|
2323
|
+
}
|
|
2324
|
+
})
|
|
2325
|
+
.then(() => {})
|
|
2326
|
+
.catch(() => {});
|
|
2326
2327
|
this.showMsg = false;
|
|
2327
2328
|
this.showSet = false;
|
|
2328
2329
|
|
|
@@ -140,7 +140,7 @@ export default {
|
|
|
140
140
|
} else if (this.trigger === 'focus') {
|
|
141
141
|
if (this.tabindex < 0) {
|
|
142
142
|
console.warn(
|
|
143
|
-
'[
|
|
143
|
+
'[Warn][Popover]a negative taindex means that the element cannot be focused by tab key'
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
if (reference.querySelector('input, textarea')) {
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
115
115
|
return (this.esFormItem || {}).esFormItemSize;
|
|
116
116
|
},
|
|
117
117
|
radioGroupSize() {
|
|
118
|
-
return this.size || this._esFormItemSize || (this.$
|
|
118
|
+
return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
watch: {
|
|
@@ -231,7 +231,7 @@ export default {
|
|
|
231
231
|
},
|
|
232
232
|
radioSize() {
|
|
233
233
|
const temRadioSize =
|
|
234
|
-
this.size || this._esFormItemSize || (this.$
|
|
234
|
+
this.size || this._esFormItemSize || (this.$EOSS || {}).size;
|
|
235
235
|
return this.isGroup
|
|
236
236
|
? this._radioGroup.radioGroupSize || temRadioSize
|
|
237
237
|
: temRadioSize;
|
|
@@ -228,9 +228,7 @@ export default {
|
|
|
228
228
|
},
|
|
229
229
|
setValues() {
|
|
230
230
|
if (this.min > this.max) {
|
|
231
|
-
console.error(
|
|
232
|
-
'[Element Error][Slider]min should not be greater than max.'
|
|
233
|
-
);
|
|
231
|
+
console.error('[Error][Slider]min should not be greater than max.');
|
|
234
232
|
return;
|
|
235
233
|
}
|
|
236
234
|
const val = this.value;
|
|
@@ -333,7 +331,7 @@ export default {
|
|
|
333
331
|
if (!this.showStops || this.min > this.max) return [];
|
|
334
332
|
if (this.step === 0) {
|
|
335
333
|
process.env.NODE_ENV !== 'production' &&
|
|
336
|
-
console.warn('[
|
|
334
|
+
console.warn('[Warn][Slider]step should not be 0.');
|
|
337
335
|
return [];
|
|
338
336
|
}
|
|
339
337
|
const stopCount = (this.max - this.min) / this.step;
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
try {
|
|
14
14
|
this.tableLayout.addObserver(this);
|
|
15
15
|
} catch (error) {
|
|
16
|
-
console.error('[
|
|
16
|
+
console.error('[Error] Failed to add observer to table layout:', error);
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
try {
|
|
25
25
|
this.tableLayout.removeObserver(this);
|
|
26
26
|
} catch (error) {
|
|
27
|
-
console.error('[
|
|
27
|
+
console.error('[Error] Failed to remove observer from table layout:', error);
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
this.onColumnsChange(this.tableLayout);
|
|
83
83
|
this.onScrollableChange(this.tableLayout);
|
|
84
84
|
} catch (error) {
|
|
85
|
-
console.error('[
|
|
85
|
+
console.error('[Error] Failed to initialize layout:', error);
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
110
110
|
// 更新每列的宽度
|
|
111
111
|
this._updateColumnWidths(cols, columnsMap);
|
|
112
112
|
} catch (error) {
|
|
113
|
-
console.error('[
|
|
113
|
+
console.error('[Error] Failed to handle columns change:', error);
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
131
131
|
// 更新gutter表头单元格样式
|
|
132
132
|
this._updateGutterHeaderCells(layout);
|
|
133
133
|
} catch (error) {
|
|
134
|
-
console.error('[
|
|
134
|
+
console.error('[Error] Failed to handle scrollable change:', error);
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
164
164
|
filter: '.drag-sort-disabled'
|
|
165
165
|
});
|
|
166
166
|
} catch (error) {
|
|
167
|
-
console.error('[
|
|
167
|
+
console.error('[Error] Failed to initialize sortable:', error);
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
},
|
|
@@ -239,7 +239,7 @@ export default {
|
|
|
239
239
|
colspan = result.colspan;
|
|
240
240
|
}
|
|
241
241
|
} catch (error) {
|
|
242
|
-
console.error('[
|
|
242
|
+
console.error('[Error] spanMethod execution failed:', error);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
rowIndex
|
|
263
263
|
});
|
|
264
264
|
} catch (error) {
|
|
265
|
-
console.error('[
|
|
265
|
+
console.error('[Error] rowStyle function execution failed:', error);
|
|
266
266
|
return null;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -324,7 +324,7 @@ export default {
|
|
|
324
324
|
classes.push(customClass);
|
|
325
325
|
}
|
|
326
326
|
} catch (error) {
|
|
327
|
-
console.error('[
|
|
327
|
+
console.error('[Error] rowClassName function execution failed:', error);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
|
|
@@ -356,7 +356,7 @@ export default {
|
|
|
356
356
|
column
|
|
357
357
|
});
|
|
358
358
|
} catch (error) {
|
|
359
|
-
console.error('[
|
|
359
|
+
console.error('[Error] cellStyle function execution failed:', error);
|
|
360
360
|
return null;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -395,7 +395,7 @@ export default {
|
|
|
395
395
|
classes.push(customClass);
|
|
396
396
|
}
|
|
397
397
|
} catch (error) {
|
|
398
|
-
console.error('[
|
|
398
|
+
console.error('[Error] cellClassName function execution failed:', error);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
|
|
@@ -504,7 +504,7 @@ export default {
|
|
|
504
504
|
this.activateTooltip(tooltip);
|
|
505
505
|
}
|
|
506
506
|
} catch (error) {
|
|
507
|
-
console.error('[
|
|
507
|
+
console.error('[Error] Tooltip display handling failed:', error);
|
|
508
508
|
}
|
|
509
509
|
},
|
|
510
510
|
|
|
@@ -592,7 +592,7 @@ export default {
|
|
|
592
592
|
// 触发行事件
|
|
593
593
|
table.$emit(`row-${name}`, row, column || null, event);
|
|
594
594
|
} catch (error) {
|
|
595
|
-
console.error(`[
|
|
595
|
+
console.error(`[Error] Failed to handle ${name} event:`, error);
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
|
|
@@ -691,7 +691,7 @@ export default {
|
|
|
691
691
|
const tr = this.rowRender(row, $index);
|
|
692
692
|
|
|
693
693
|
if (!renderExpanded) {
|
|
694
|
-
console.error('[
|
|
694
|
+
console.error('[Error]renderExpanded is required.');
|
|
695
695
|
return tr;
|
|
696
696
|
}
|
|
697
697
|
|
|
@@ -743,7 +743,7 @@ export default {
|
|
|
743
743
|
|
|
744
744
|
return tmp;
|
|
745
745
|
} catch (error) {
|
|
746
|
-
console.error('[
|
|
746
|
+
console.error('[Error] Failed to render tree rows:', error);
|
|
747
747
|
return [this.rowRender(row, $index)];
|
|
748
748
|
}
|
|
749
749
|
},
|
|
@@ -847,7 +847,7 @@ export default {
|
|
|
847
847
|
this.newData = data;
|
|
848
848
|
this.table.updateDragSort(data, evt);
|
|
849
849
|
} catch (error) {
|
|
850
|
-
console.error('[
|
|
850
|
+
console.error('[Error] Failed to handle drag sort update:', error);
|
|
851
851
|
}
|
|
852
852
|
},
|
|
853
853
|
|
|
@@ -212,7 +212,7 @@ export default {
|
|
|
212
212
|
_setHeaderRender(column) {
|
|
213
213
|
// renderHeader 属性不推荐使用
|
|
214
214
|
if (this.renderHeader) {
|
|
215
|
-
console.warn('[
|
|
215
|
+
console.warn('[Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.');
|
|
216
216
|
} else if (column.type !== 'selection') {
|
|
217
217
|
column.renderHeader = (h, scope) => {
|
|
218
218
|
const renderHeader = this.$scopedSlots.header;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "eoss-theme-chalk",
|
|
3
3
|
"version": "2.14.1",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Eoss component chalk theme.",
|
|
5
5
|
"main": "lib/index.css",
|
|
6
6
|
"style": "lib/index.css",
|
|
7
7
|
"files": [
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
16
|
+
"url": "git+https://github.com/EossUI/theme-chalk.git"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
|
-
"
|
|
19
|
+
"eoss",
|
|
20
20
|
"theme"
|
|
21
21
|
],
|
|
22
22
|
"author": "yi.shyang@ele.me",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"bugs": {
|
|
25
|
-
"url": "https://github.com/
|
|
25
|
+
"url": "https://github.com/EossUI/theme-chalk/issues"
|
|
26
26
|
},
|
|
27
|
-
"homepage": "https://github.com/
|
|
27
|
+
"homepage": "https://github.com/EossUI/theme-chalk#readme",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"gulp": "^3.9.1",
|
|
30
30
|
"gulp-cssmin": "^0.1.7",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:list';
|
|
2
2
|
@use '../mixins/color.scss' as *;
|
|
3
3
|
|
|
4
|
-
/*
|
|
4
|
+
/* Eoss Chalk Variables */
|
|
5
5
|
|
|
6
6
|
/* Transition
|
|
7
7
|
-------------------------- */
|
|
@@ -315,7 +315,7 @@ $fill-base: $color-white !default;
|
|
|
315
315
|
|
|
316
316
|
/* Typography
|
|
317
317
|
-------------------------- */
|
|
318
|
-
$font-path: '
|
|
318
|
+
$font-path: 'fonts' !default;
|
|
319
319
|
$font-display: 'auto' !default;
|
|
320
320
|
// 字体大小
|
|
321
321
|
/// display1 报告标题、关键数据展示
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
@use 'sass:color';
|
|
3
3
|
@use 'sass:string';
|
|
4
4
|
|
|
5
|
+
/* Helper function to trim whitespace from string
|
|
6
|
+
-------------------------- */
|
|
7
|
+
@function trim($string) {
|
|
8
|
+
$length: string.length($string);
|
|
9
|
+
$start: 1;
|
|
10
|
+
$end: $length;
|
|
11
|
+
|
|
12
|
+
// 找到第一个非空格字符
|
|
13
|
+
@while $start <= $length and string.slice($string, $start, $start) == ' ' {
|
|
14
|
+
$start: $start + 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// 找到最后一个非空格字符
|
|
18
|
+
@while $end >= $start and string.slice($string, $end, $end) == ' ' {
|
|
19
|
+
$end: $end - 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@return string.slice($string, $start, $end);
|
|
23
|
+
}
|
|
24
|
+
|
|
5
25
|
/* BEM support Func
|
|
6
26
|
-------------------------- */
|
|
7
27
|
@function selectorToString($selector) {
|
|
@@ -55,7 +75,7 @@
|
|
|
55
75
|
@if $start and $end {
|
|
56
76
|
$default-color: string.slice($color, $start, $end);
|
|
57
77
|
// 去除前后空格
|
|
58
|
-
$default-color: string.unquote(
|
|
78
|
+
$default-color: string.unquote(trim($default-color));
|
|
59
79
|
@return $default-color;
|
|
60
80
|
}
|
|
61
81
|
}
|
|
@@ -506,7 +506,7 @@ export default {
|
|
|
506
506
|
try {
|
|
507
507
|
file.url = URL.createObjectURL(file.raw);
|
|
508
508
|
} catch (err) {
|
|
509
|
-
console.error('[
|
|
509
|
+
console.error('[Error][Upload]', err);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
return file;
|
|
@@ -650,7 +650,7 @@ export default {
|
|
|
650
650
|
try {
|
|
651
651
|
file.url = URL.createObjectURL(rawFile);
|
|
652
652
|
} catch (err) {
|
|
653
|
-
console.error('[
|
|
653
|
+
console.error('[Error][Upload]', err);
|
|
654
654
|
return;
|
|
655
655
|
}
|
|
656
656
|
}
|
package/src/index.js
CHANGED
|
@@ -203,7 +203,7 @@ const install = function(Vue) {
|
|
|
203
203
|
Vue.use(InfiniteScroll);
|
|
204
204
|
Vue.use(Loading.directive);
|
|
205
205
|
|
|
206
|
-
Vue.prototype.$
|
|
206
|
+
Vue.prototype.$EOSS = {
|
|
207
207
|
size: '',
|
|
208
208
|
zIndex: 2000
|
|
209
209
|
};
|
|
@@ -223,7 +223,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
export default {
|
|
226
|
-
version: '0.1.0-alpha.
|
|
226
|
+
version: '0.1.0-alpha.7',
|
|
227
227
|
install,
|
|
228
228
|
CollapseTransition,
|
|
229
229
|
Loading,
|
package/src/utils/ajax.js
CHANGED
|
@@ -645,20 +645,6 @@ export const isLogined = async function ({
|
|
|
645
645
|
cookie = getParams({ name: 'cookie' });
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
// 处理退出登录
|
|
649
|
-
const quit = getParams('quit') || getParams('logout');
|
|
650
|
-
if (quit) {
|
|
651
|
-
try {
|
|
652
|
-
const res = await ajax({ method: 'post', url: logout });
|
|
653
|
-
if (res.rCode === 0) {
|
|
654
|
-
removeStorage();
|
|
655
|
-
}
|
|
656
|
-
} catch (error) {
|
|
657
|
-
console.error('退出登录失败:', error);
|
|
658
|
-
}
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
648
|
// 处理登录页面路径
|
|
663
649
|
let pathname = '';
|
|
664
650
|
try {
|