plain-design 1.0.0-beta.163 → 1.0.0-beta.165

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.163",
3
+ "version": "1.0.0-beta.165",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -146,6 +146,7 @@ export const $ai = (() => {
146
146
  if (message.slice(0, 7) === '```json' && message.slice(-3) === '```') {
147
147
  message = message.slice(7, -3).trim();
148
148
  }
149
+ onReceiving({ fullText: fullText, chunkText: '' });
149
150
  onFinish?.(message);
150
151
  }
151
152
  if (!value?.length) {
@@ -115,7 +115,6 @@ export const AiChatBox = designComponent({
115
115
  methods.scrollEnd();
116
116
  },
117
117
  onFinish: (fullText) => {
118
- chatBoxHistory!.content = fullText;
119
118
  message = fullText;
120
119
  },
121
120
  };
@@ -145,7 +145,6 @@ export const useTableOptionAi = AutoModule.createRegistration((option) => {
145
145
  await scrollEnd();
146
146
  },
147
147
  onFinish: (fullText) => {
148
- history.content = fullText;
149
148
  console.log('search', history.content);
150
149
  operateItems.push({ type: "search", data: JSON.parse(fullText) });
151
150
  },
@@ -163,7 +162,6 @@ export const useTableOptionAi = AutoModule.createRegistration((option) => {
163
162
  await scrollEnd();
164
163
  },
165
164
  onFinish: (fullText) => {
166
- history.content = fullText;
167
165
  console.log('sort', history.content);
168
166
  operateItems.push({ type: "sort", data: JSON.parse(fullText) });
169
167
  },
@@ -181,7 +179,6 @@ export const useTableOptionAi = AutoModule.createRegistration((option) => {
181
179
  await scrollEnd();
182
180
  },
183
181
  onFinish: (fullText) => {
184
- history.content = fullText;
185
182
  console.log('config', history.content);
186
183
  operateItems.push({ type: "config", data: JSON.parse(fullText) });
187
184
  },
@@ -28,7 +28,7 @@ export function createMultipleCascadeRender(
28
28
  const { refs, onRef } = useRefs({
29
29
  tree: Tree,
30
30
  input: Input,
31
- });
31
+ }, { effects });
32
32
 
33
33
  /**
34
34
  * 给多值输入框的显示文本时数组
@@ -53,7 +53,7 @@ export function createSingleCascadeRender(
53
53
  tree: Tree,
54
54
  plcTree: PlcTree,
55
55
  input: Input,
56
- });
56
+ }, { effects });
57
57
 
58
58
  const inputHandler = {
59
59
  onFocus: (e: FocusEvent) => {
@@ -34,6 +34,7 @@ export const ImageSelector = designComponent({
34
34
  onDoubleClick={emit.onDoubleClickOption}
35
35
  >
36
36
  <Image
37
+ width="100%"
37
38
  src={item.url}
38
39
  previewOnClick={false}
39
40
  fit={props.imageFit as any}
@@ -173,6 +173,7 @@ export const PopupItem = designComponent({
173
173
  };
174
174
 
175
175
  return (transformLocation?: boolean) => {
176
+ if (!state.option) {return;}
176
177
  if (state.option.animation !== ePopupAnimation.slide) {
177
178
  doRefresh(transformLocation);
178
179
  } else {