plain-design 1.0.0-beta.164 → 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.164",
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",
@@ -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 {