@cloudbase/weda-ui 3.13.4 → 3.13.6
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/dist/configs/components/chart/line.d.ts +4 -0
- package/dist/configs/components/chart/line.js +27 -0
- package/dist/configs/components/chart/pie.d.ts +128 -0
- package/dist/configs/components/chart/pie.js +917 -0
- package/dist/configs/components/echart.js +7 -7
- package/dist/configs/components/listView.js +6 -6
- package/dist/configs/components/navLayout.json +5 -5
- package/dist/configs/components/wd-icon.js +6 -4
- package/dist/configs/components/wd-layout.js +2 -2
- package/dist/configs/components/wd-menu-layout.d.ts +4 -4
- package/dist/configs/components/wd-modal.js +2 -2
- package/dist/configs/index.d.ts +8848 -9818
- package/dist/configs/index.js +1 -1
- package/dist/configs/type-utils/index.js +1 -7
- package/dist/configs/type-utils/type-form.js +3 -3
- package/dist/configs/utils/layout.d.ts +1 -1
- package/dist/configs/utils/layout.js +3 -3
- package/dist/onlineConfig.json +20 -0
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/echart/echart.js +1 -1
- package/dist/web/components/listView/index.css +15 -44
- package/dist/web/components/richText/index.js +14 -41
- package/dist/web/components/wd-select/select/selectUI.js +3 -3
- package/dist/web/components/wd-select/wd-select.js +1 -1
- package/dist/web/components/wd-select-multiple/wd-select-multiple.js +1 -1
- package/dist/web/utils/isPrivate.d.ts +5 -0
- package/dist/web/utils/isPrivate.js +12 -0
- package/dist/web/utils/loadIconCss.js +7 -2
- package/package.json +2 -2
- package/dist/configs/components/chart/pie.json +0 -834
- package/dist/iconConfig.json +0 -6
|
@@ -101,5 +101,5 @@ export const Echart = forwardRef(function Echart(props, ref) {
|
|
|
101
101
|
click,
|
|
102
102
|
dblclick,
|
|
103
103
|
};
|
|
104
|
-
return (_jsx("div", { id: id, className: classNames(classes, className), style: { display: 'flex', flexDirection: 'column', width: '100%', ...style }, ref: domRef, "data-testid": "wd-chart-test", children: init && (_jsx(ReactEcharts, { style: { flex: 1, width: '100%'
|
|
104
|
+
return (_jsx("div", { id: id, className: classNames(classes, className), style: { display: 'flex', flexDirection: 'column', width: '100%', ...style }, ref: domRef, "data-testid": "wd-chart-test", children: init && (_jsx(ReactEcharts, { style: { flex: 1, width: '100%' }, option: props.option || {}, theme: themeState || (props.dark ? 'dark' : 'auto'), opts: props.opts, onChartReady: onChartReadyCallback, onEvents: onEvents })) }));
|
|
105
105
|
});
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
.weda-list-view__container .weda-list-view__content-blank {
|
|
19
19
|
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
20
|
justify-content: center;
|
|
22
21
|
flex-direction: column;
|
|
23
22
|
}
|
|
@@ -32,8 +31,7 @@
|
|
|
32
31
|
flex-wrap: wrap;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
.weda-list-view__container
|
|
36
|
-
.weda-list-view__more.weda-list-view__content-loading {
|
|
34
|
+
.weda-list-view__container .weda-list-view__more.weda-list-view__content-loading {
|
|
37
35
|
background-color: transparent;
|
|
38
36
|
position: absolute;
|
|
39
37
|
top: 0;
|
|
@@ -89,22 +87,17 @@
|
|
|
89
87
|
border-radius: 50%;
|
|
90
88
|
}
|
|
91
89
|
|
|
92
|
-
.weda-list-view__container
|
|
93
|
-
.weda-list-view__more
|
|
94
|
-
.weda-list-view__symbol-item:first-child {
|
|
90
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__symbol-item:first-child {
|
|
95
91
|
width: 6px;
|
|
96
92
|
height: 6px;
|
|
97
93
|
margin-left: 0;
|
|
98
94
|
}
|
|
99
95
|
|
|
100
96
|
/* 加载更多 分页 */
|
|
101
|
-
.weda-list-view__container
|
|
102
|
-
.weda-list-view__more.weda-list-view__more-bottomLoad {
|
|
97
|
+
.weda-list-view__container .weda-list-view__more.weda-list-view__more-bottomLoad {
|
|
103
98
|
background-color: transparent;
|
|
104
99
|
}
|
|
105
|
-
.weda-list-view__container
|
|
106
|
-
.weda-list-view__more
|
|
107
|
-
.weda-list-view__more-pagination {
|
|
100
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__more-pagination {
|
|
108
101
|
display: flex;
|
|
109
102
|
align-items: center;
|
|
110
103
|
justify-content: space-between;
|
|
@@ -113,12 +106,8 @@
|
|
|
113
106
|
box-sizing: border-box;
|
|
114
107
|
}
|
|
115
108
|
|
|
116
|
-
.weda-list-view__container
|
|
117
|
-
|
|
118
|
-
.weda-list-view__pagination-pre,
|
|
119
|
-
.weda-list-view__container
|
|
120
|
-
.weda-list-view__more
|
|
121
|
-
.weda-list-view__pagination-next {
|
|
109
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre,
|
|
110
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next {
|
|
122
111
|
font-size: 0.85714em;
|
|
123
112
|
line-height: 1.71428em;
|
|
124
113
|
color: rgba(0, 0, 0, 0.4);
|
|
@@ -126,21 +115,13 @@
|
|
|
126
115
|
cursor: pointer;
|
|
127
116
|
}
|
|
128
117
|
|
|
129
|
-
.weda-list-view__container
|
|
130
|
-
|
|
131
|
-
.weda-list-view__pagination-pre.active,
|
|
132
|
-
.weda-list-view__container
|
|
133
|
-
.weda-list-view__more
|
|
134
|
-
.weda-list-view__pagination-next.active {
|
|
118
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre.active,
|
|
119
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next.active {
|
|
135
120
|
color: rgba(0, 0, 0, 0.9);
|
|
136
121
|
}
|
|
137
122
|
|
|
138
|
-
.weda-list-view__container
|
|
139
|
-
|
|
140
|
-
.weda-list-view__pagination-pre::before,
|
|
141
|
-
.weda-list-view__container
|
|
142
|
-
.weda-list-view__more
|
|
143
|
-
.weda-list-view__pagination-next::after {
|
|
123
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre::before,
|
|
124
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next::after {
|
|
144
125
|
position: absolute;
|
|
145
126
|
content: '';
|
|
146
127
|
width: 1.71428em;
|
|
@@ -150,31 +131,21 @@
|
|
|
150
131
|
background-image: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjE3MTkgMTIuMDAwMkw4LjIyMTkyIDcuMDUwMjNMOS42MzU5MiA1LjYzNjIzTDE1Ljk5OTkgMTIuMDAwMkw5LjYzNTkyIDE4LjM2NDJMOC4yMjE5MiAxNi45NTAyTDEzLjE3MTkgMTIuMDAwMloiIGZpbGw9IiMwOTEyMUYiLz4KPC9zdmc+Cg==);
|
|
151
132
|
}
|
|
152
133
|
|
|
153
|
-
.weda-list-view__container
|
|
154
|
-
|
|
155
|
-
.active.weda-list-view__pagination-pre::before,
|
|
156
|
-
.weda-list-view__container
|
|
157
|
-
.weda-list-view__more
|
|
158
|
-
.active.weda-list-view__pagination-next::after {
|
|
134
|
+
.weda-list-view__container .weda-list-view__more .active.weda-list-view__pagination-pre::before,
|
|
135
|
+
.weda-list-view__container .weda-list-view__more .active.weda-list-view__pagination-next::after {
|
|
159
136
|
opacity: 1;
|
|
160
137
|
}
|
|
161
138
|
|
|
162
|
-
.weda-list-view__container
|
|
163
|
-
.weda-list-view__more
|
|
164
|
-
.weda-list-view__pagination-pre::before {
|
|
139
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre::before {
|
|
165
140
|
left: 16px;
|
|
166
141
|
transform: rotate(180deg);
|
|
167
142
|
}
|
|
168
143
|
|
|
169
|
-
.weda-list-view__container
|
|
170
|
-
.weda-list-view__more
|
|
171
|
-
.weda-list-view__pagination-next::after {
|
|
144
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next::after {
|
|
172
145
|
right: 18px;
|
|
173
146
|
}
|
|
174
147
|
|
|
175
|
-
.weda-list-view__container
|
|
176
|
-
.weda-list-view__more
|
|
177
|
-
.weda-list-view__pagination-text {
|
|
148
|
+
.weda-list-view__container .weda-list-view__more .weda-list-view__pagination-text {
|
|
178
149
|
font-size: 0.85714em;
|
|
179
150
|
line-height: 1.71428em;
|
|
180
151
|
color: rgba(0, 0, 0, 0.4);
|
|
@@ -3,33 +3,20 @@ import React from 'react';
|
|
|
3
3
|
import classNames from '../../utils/classnames';
|
|
4
4
|
import { getTempFileURL } from '../../utils/tcb';
|
|
5
5
|
import { v4 as uuidv4 } from 'uuid';
|
|
6
|
-
import { LOAD_ERR_IMG_BASE64, RICH_TEXT_ICON_PACK, getWhitelist
|
|
6
|
+
import { LOAD_ERR_IMG_BASE64, RICH_TEXT_ICON_PACK, getWhitelist } from '../../utils/constant';
|
|
7
7
|
import { renderDecorator } from '../form/renderDecorator';
|
|
8
8
|
import { usePlatform } from '../../utils/platform';
|
|
9
9
|
import { errorHandler } from '../../utils/error';
|
|
10
|
+
import { isPrivate } from '../../utils/isPrivate';
|
|
10
11
|
import './style';
|
|
11
12
|
import { useSyncValue } from '../../utils/hooks/useSyncValue';
|
|
12
13
|
import xss from 'xss';
|
|
14
|
+
import onlineConfig from '../../../onlineConfig.json';
|
|
15
|
+
const cfg = isPrivate() ? { ...onlineConfig.richText, ...onlineConfig.richText.private } : onlineConfig.richText;
|
|
13
16
|
// 默认图片类型
|
|
14
|
-
const IMAGE_TYPES = [
|
|
15
|
-
'image/jpeg',
|
|
16
|
-
'image/png',
|
|
17
|
-
'image/gif',
|
|
18
|
-
'image/bmp',
|
|
19
|
-
'image/tiff',
|
|
20
|
-
'image/svg+xml',
|
|
21
|
-
];
|
|
17
|
+
const IMAGE_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/bmp', 'image/tiff', 'image/svg+xml'];
|
|
22
18
|
// 默认音频类型
|
|
23
|
-
const AUDIO_TYPES = [
|
|
24
|
-
'audio/*',
|
|
25
|
-
'.mp3',
|
|
26
|
-
'.wma',
|
|
27
|
-
'.aac',
|
|
28
|
-
'.flac',
|
|
29
|
-
'.wav',
|
|
30
|
-
'.amr',
|
|
31
|
-
'.m4a',
|
|
32
|
-
];
|
|
19
|
+
const AUDIO_TYPES = ['audio/*', '.mp3', '.wma', '.aac', '.flac', '.wav', '.amr', '.m4a'];
|
|
33
20
|
const toolbarArrayH5 = [
|
|
34
21
|
'fullscreen',
|
|
35
22
|
'undo',
|
|
@@ -157,15 +144,14 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
|
|
|
157
144
|
if (!(window === null || window === void 0 ? void 0 : window.ExEditor3) && !loadEditorPromise) {
|
|
158
145
|
loadEditorPromise = new Promise((resolve) => {
|
|
159
146
|
const script = document.createElement('script');
|
|
160
|
-
script.src =
|
|
161
|
-
'https://comp-public-replace-1303824488-cos.weda.tencent.com/richtext/3.9.1/exeditor3.min.js';
|
|
147
|
+
script.src = cfg.js;
|
|
162
148
|
script.onload = () => {
|
|
163
149
|
resolve('');
|
|
164
150
|
};
|
|
165
151
|
document.body.appendChild(script);
|
|
166
152
|
const link = document.createElement('link');
|
|
167
153
|
link.setAttribute('rel', 'stylesheet');
|
|
168
|
-
link.setAttribute('href',
|
|
154
|
+
link.setAttribute('href', cfg.css);
|
|
169
155
|
const head = document.getElementsByTagName('head');
|
|
170
156
|
if (head.length) {
|
|
171
157
|
head[0].appendChild(link);
|
|
@@ -337,8 +323,7 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
|
|
|
337
323
|
var _a;
|
|
338
324
|
const map = currentMap;
|
|
339
325
|
if (map && Object.keys(map).length > 0) {
|
|
340
|
-
Object.keys(map).every((key) => map[key]) &&
|
|
341
|
-
((_a = events === null || events === void 0 ? void 0 : events.finishUploadAll) === null || _a === void 0 ? void 0 : _a.call(events, { value: map }));
|
|
326
|
+
Object.keys(map).every((key) => map[key]) && ((_a = events === null || events === void 0 ? void 0 : events.finishUploadAll) === null || _a === void 0 ? void 0 : _a.call(events, { value: map }));
|
|
342
327
|
}
|
|
343
328
|
}, [currentMap]);
|
|
344
329
|
const children = (_f = (_e = (_d = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _d === void 0 ? void 0 : _d.children) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.children;
|
|
@@ -350,9 +335,7 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
|
|
|
350
335
|
children[i].remove();
|
|
351
336
|
}
|
|
352
337
|
else {
|
|
353
|
-
setToolbar(`${toolbarArrayH5.slice(0, i).join(' ')} fold(${toolbarArrayH5
|
|
354
|
-
.slice(i)
|
|
355
|
-
.join(' ')})`);
|
|
338
|
+
setToolbar(`${toolbarArrayH5.slice(0, i).join(' ')} fold(${toolbarArrayH5.slice(i).join(' ')})`);
|
|
356
339
|
break;
|
|
357
340
|
}
|
|
358
341
|
}
|
|
@@ -365,24 +348,14 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
|
|
|
365
348
|
const basicDiv = (_a = editorDomRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('.ExEditor-basic');
|
|
366
349
|
if (basicDiv) {
|
|
367
350
|
basicDiv.style.maxHeight =
|
|
368
|
-
(style === null || style === void 0 ? void 0 : style.height) && editorHeight
|
|
369
|
-
? `calc(${style === null || style === void 0 ? void 0 : style.height} - ${editorHeight}px)`
|
|
370
|
-
: '100%';
|
|
351
|
+
(style === null || style === void 0 ? void 0 : style.height) && editorHeight ? `calc(${style === null || style === void 0 ? void 0 : style.height} - ${editorHeight}px)` : '100%';
|
|
371
352
|
}
|
|
372
353
|
}
|
|
373
|
-
}, [
|
|
374
|
-
style === null || style === void 0 ? void 0 : style.height,
|
|
375
|
-
editorHeight,
|
|
376
|
-
(_g = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _g === void 0 ? void 0 : _g.clientHeight,
|
|
377
|
-
platform,
|
|
378
|
-
]);
|
|
354
|
+
}, [style === null || style === void 0 ? void 0 : style.height, editorHeight, (_g = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _g === void 0 ? void 0 : _g.clientHeight, platform]);
|
|
379
355
|
const richTextEl = (_jsx("div", { className: subCls, style: { height: '100%' }, ref: containerRef, children: _jsx("div", { className: 'richtext-inner', style: { height: '100%' }, children: _jsxs("div", { className: "weda-richtext-container", id: id, children: [_jsx("div", { ref: toolbarDomRef, className: "weda-richtext-toolbar", role: "richtext", style: {
|
|
380
|
-
['--exeditor-edge-top']: (((_j = (_h = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _h === void 0 ? void 0 : _h.getBoundingClientRect()) === null || _j === void 0 ? void 0 : _j.top) ||
|
|
381
|
-
document.body.clientHeight) + 'px',
|
|
356
|
+
['--exeditor-edge-top']: (((_j = (_h = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _h === void 0 ? void 0 : _h.getBoundingClientRect()) === null || _j === void 0 ? void 0 : _j.top) || document.body.clientHeight) + 'px',
|
|
382
357
|
} }), _jsx("div", { ref: editorDomRef, className: "weda-richtext-editor", style: {
|
|
383
|
-
height: editorHeight
|
|
384
|
-
? `calc(100% - ${editorHeight + 1}px)`
|
|
385
|
-
: '100%',
|
|
358
|
+
height: editorHeight ? `calc(100% - ${editorHeight + 1}px)` : '100%',
|
|
386
359
|
width: '100%',
|
|
387
360
|
caretColor: readOnly || disabled ? 'transparent' : 'unset',
|
|
388
361
|
} })] }) }) }));
|
|
@@ -124,7 +124,7 @@ function SelectH5(props) {
|
|
|
124
124
|
setCurrentSelected(dealSelectedItem(item));
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
return (_jsxs(_Fragment, { children: [_jsx("input", { "data-testid": "form-item-select", className: inputCls, type: "text", name: name, placeholder: placeholder, autoComplete: "off", disabled: disabled, readOnly: true, value: readValue, onClick: handleClick }), _jsxs(Modal, { visible: visible, onClose: () => {
|
|
127
|
+
return (_jsxs(_Fragment, { children: [_jsx("input", { "data-testid": "form-item-select", className: inputCls, type: "text", name: name, placeholder: placeholder, autoComplete: "off", disabled: disabled, readOnly: true, value: readValue || '', onClick: handleClick }), _jsxs(Modal, { visible: visible, onClose: () => {
|
|
128
128
|
if (inputFocus) {
|
|
129
129
|
// 聚焦在搜索框
|
|
130
130
|
setInputFocus(false);
|
|
@@ -153,11 +153,11 @@ export function SelectUI(props) {
|
|
|
153
153
|
const selectedItem = getSelectedItem(options, value);
|
|
154
154
|
if (isMultiple) {
|
|
155
155
|
return selectedItem
|
|
156
|
-
.map((i) => textToString(i === null || i === void 0 ? void 0 : i.label) || textToString(i.value))
|
|
156
|
+
.map((i) => textToString(i === null || i === void 0 ? void 0 : i.label) || textToString(i.value) || textToString(value))
|
|
157
157
|
.join(',');
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
160
|
-
return textToString((_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.label) || textToString((_b = selectedItem[0]) === null || _b === void 0 ? void 0 : _b.value) || value;
|
|
160
|
+
return textToString((_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.label) || textToString((_b = selectedItem[0]) === null || _b === void 0 ? void 0 : _b.value) || textToString(value);
|
|
161
161
|
}
|
|
162
162
|
}, [isMultiple, options, value]);
|
|
163
163
|
const render = () => {
|
|
@@ -102,7 +102,7 @@ export const WdSelect = forwardRef(function WsSelect(props, ref) {
|
|
|
102
102
|
}, [debouncedTriggerSearchEvent]);
|
|
103
103
|
if (!visible)
|
|
104
104
|
return null;
|
|
105
|
-
return (_jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(Select, { ...props, setAllOption: setOptions, onRelationTagClick: (item) => {
|
|
105
|
+
return (_jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(Select, { ...props, style: undefined, className: undefined, setAllOption: setOptions, onRelationTagClick: (item) => {
|
|
106
106
|
var _a;
|
|
107
107
|
(_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.onRelationTagClick) === null || _a === void 0 ? void 0 : _a.call(delayEvents, item);
|
|
108
108
|
}, enableRelationOptionJump: enableRelationOptionJump, onRelationOptionJump: (item) => {
|
|
@@ -98,7 +98,7 @@ export const WdSelectMultiple = forwardRef(function WdSelectMultiple(props, ref)
|
|
|
98
98
|
}, [debouncedTriggerSearchEvent]);
|
|
99
99
|
if (!visible)
|
|
100
100
|
return null;
|
|
101
|
-
return (_jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(SelectMultiple, { ...props, setAllOption: setOptions, onRelationTagClick: (item) => {
|
|
101
|
+
return (_jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(SelectMultiple, { ...props, style: undefined, className: undefined, setAllOption: setOptions, onRelationTagClick: (item) => {
|
|
102
102
|
var _a;
|
|
103
103
|
(_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.onRelationTagClick) === null || _a === void 0 ? void 0 : _a.call(delayEvents, item);
|
|
104
104
|
}, enableRelationOptionJump: enableRelationOptionJump, onRelationOptionJump: (item) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import onlineConfig from '../../onlineConfig.json';
|
|
2
2
|
import { getUrlPath } from './tool';
|
|
3
|
+
import { isPrivate } from './isPrivate';
|
|
3
4
|
import { errorHandler } from './error';
|
|
4
5
|
let shadowRootCache = null;
|
|
5
6
|
const WEDA_PORTAL_ID = 'weda-module-portal';
|
|
@@ -57,7 +58,11 @@ function loadLink(url, className) {
|
|
|
57
58
|
// 组件库加载后默认挂载图标库
|
|
58
59
|
(function () {
|
|
59
60
|
try {
|
|
60
|
-
|
|
61
|
+
const iconConfig = onlineConfig.icon;
|
|
62
|
+
const cfg = isPrivate()
|
|
63
|
+
? { ...iconConfig, ...iconConfig.private }
|
|
64
|
+
: iconConfig;
|
|
65
|
+
loadLink(cfg.css, 'wd-load-remote-icon');
|
|
61
66
|
}
|
|
62
67
|
catch (e) {
|
|
63
68
|
errorHandler({ code: 'LoadIconResourceError', error: e });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/weda-ui",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index",
|
|
6
6
|
"miniprogram": "mpdist",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"description": "腾讯云微搭低代码组件库模板",
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@antv/g6": "^4.8.5",
|
|
88
|
-
"@cloudbase/weda-client": "^1.1.
|
|
88
|
+
"@cloudbase/weda-client": "^1.1.16",
|
|
89
89
|
"@codemirror/autocomplete": "^6.16.0",
|
|
90
90
|
"@codemirror/lang-javascript": "^6.2.2",
|
|
91
91
|
"@codemirror/lang-json": "^6.0.1",
|