@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.
@@ -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
  * 双击
@@ -17,6 +17,7 @@ const formatWithRelation = [
17
17
  ...SINGLE_FOREIGN_FORMATS,
18
18
  'x-enum',
19
19
  'one-many',
20
+ 'many-many',
20
21
  ];
21
22
  export function isFormatWithRelation(format) {
22
23
  return formatWithRelation.includes(format);
@@ -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.cos.ap-shanghai.myqcloud.com/richtext/3.9.1/exeditor3.min.js';
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.cos.ap-shanghai.myqcloud.com/richtext/3.9.1/exeditor3.min.css');
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 === null || value === void 0 ? void 0 : value.length) {
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.8",
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.9",
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.13",
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",