@cloudbase/weda-ui 3.11.8 → 3.11.11
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/listView.js +1 -1
- package/dist/configs/components/wd-select-multiple.js +1 -1
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/echart/echart.js +2 -2
- package/dist/web/components/form/select/formats-util.js +1 -0
- package/dist/web/components/richText/index.js +2 -2
- package/dist/web/components/wd-select/select/selectUI.js +1 -1
- package/dist/web/components/wd-table/hooks/useChooseList.js +2 -2
- package/package.json +3 -3
|
@@ -88,8 +88,8 @@ export const Echart = forwardRef(function Echart(props, ref) {
|
|
|
88
88
|
* 单击
|
|
89
89
|
*/
|
|
90
90
|
const click = useCallback((...args) => {
|
|
91
|
-
var _a;
|
|
92
|
-
(_a = props.events) === null || _a === void 0 ? void 0 : _a.click(...args);
|
|
91
|
+
var _a, _b;
|
|
92
|
+
(_b = (_a = props.events) === null || _a === void 0 ? void 0 : _a.click) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
93
93
|
}, [props.events]);
|
|
94
94
|
/**
|
|
95
95
|
* 双击
|
|
@@ -158,14 +158,14 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
|
|
|
158
158
|
loadEditorPromise = new Promise((resolve) => {
|
|
159
159
|
const script = document.createElement('script');
|
|
160
160
|
script.src =
|
|
161
|
-
'https://comp-public-1303824488
|
|
161
|
+
'https://comp-public-replace-1303824488-cos.weda.tencent.com/richtext/3.9.1/exeditor3.min.js';
|
|
162
162
|
script.onload = () => {
|
|
163
163
|
resolve('');
|
|
164
164
|
};
|
|
165
165
|
document.body.appendChild(script);
|
|
166
166
|
const link = document.createElement('link');
|
|
167
167
|
link.setAttribute('rel', 'stylesheet');
|
|
168
|
-
link.setAttribute('href', 'https://comp-public-1303824488
|
|
168
|
+
link.setAttribute('href', 'https://comp-public-replace-1303824488-cos.weda.tencent.com/richtext/3.9.1/exeditor3.min.css');
|
|
169
169
|
const head = document.getElementsByTagName('head');
|
|
170
170
|
if (head.length) {
|
|
171
171
|
head[0].appendChild(link);
|
|
@@ -141,7 +141,7 @@ function SelectH5(props) {
|
|
|
141
141
|
}, children: _jsx(OptionList, { onScrollBottom: onScrollBottom, options: customOptions, inputFocus: inputFocus, currentSelected: currentSelected, optionClick: optionClick, bottomTips: bottomTips }) }), footer] })) })] })] }));
|
|
142
142
|
}
|
|
143
143
|
export function SelectUI(props) {
|
|
144
|
-
const { placeholder, size, disabled, onChange, onSearch, searchable, options, value, footer, overlayClassName, onOpen, onScrollBottom, tips, bottomTips, mode, format, readOnly, setAllOption, listHeight, listWidth, popupContainer, searchPlaceholder = '搜索选项', } = props;
|
|
144
|
+
const { placeholder, size, disabled, onChange, onSearch, searchable, options = [], value, footer, overlayClassName, onOpen, onScrollBottom, tips, bottomTips, mode, format, readOnly, setAllOption, listHeight, listWidth, popupContainer, searchPlaceholder = '搜索选项', } = props;
|
|
145
145
|
const platform = usePlatform();
|
|
146
146
|
const [currentOption] = useSyncValue((options === null || options === void 0 ? void 0 : options.map(({ label, value }) => ({ label, value }))) || [], isObjectEqual);
|
|
147
147
|
// 更新option,从而更新最新的选项值
|
|
@@ -61,7 +61,7 @@ export const useChooseList = ({ dataSourceAPI, queryParams, childDbName, primary
|
|
|
61
61
|
db: childDbName,
|
|
62
62
|
}),
|
|
63
63
|
];
|
|
64
|
-
if (value
|
|
64
|
+
if (value) {
|
|
65
65
|
if (isMultiple) {
|
|
66
66
|
value.forEach((i) => {
|
|
67
67
|
if (i) {
|
|
@@ -94,7 +94,7 @@ export const useChooseList = ({ dataSourceAPI, queryParams, childDbName, primary
|
|
|
94
94
|
setTotal(result === null || result === void 0 ? void 0 : result.total);
|
|
95
95
|
setLoading(false);
|
|
96
96
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
97
|
-
}, [childDbName, primaryColumn, queryParams]);
|
|
97
|
+
}, [childDbName, primaryColumn, queryParams, value]);
|
|
98
98
|
useEffect(() => {
|
|
99
99
|
if (childDbName) {
|
|
100
100
|
fetchData();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/weda-ui",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.11",
|
|
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.11",
|
|
89
89
|
"@codemirror/autocomplete": "^6.16.0",
|
|
90
90
|
"@codemirror/lang-javascript": "^6.2.2",
|
|
91
91
|
"@codemirror/lang-json": "^6.0.1",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"@babel/preset-react": "^7.22.15",
|
|
149
149
|
"@babel/preset-typescript": "^7.22.15",
|
|
150
150
|
"@cloudbase/cals": "^1.2.5",
|
|
151
|
-
"@cloudbase/lowcode-cli": "^0.21.
|
|
151
|
+
"@cloudbase/lowcode-cli": "^0.21.14",
|
|
152
152
|
"@cloudbase/weda-cloud-sdk": "^1.0.87",
|
|
153
153
|
"@commitlint/cli": "^16.0.2",
|
|
154
154
|
"@commitlint/config-conventional": "^17.7.0",
|