@fangzhongya/page 0.0.26 → 0.0.27

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.
@@ -79,7 +79,7 @@ function getDesignSlots(obj, callback) {
79
79
  });
80
80
  } else {
81
81
  if (!common.isEmpty(slot)) {
82
- objs[key] = common.setSlots({ slots: slot }).default;
82
+ objs[key] = common.getSlots(slot)?.default;
83
83
  }
84
84
  }
85
85
  }
@@ -1,4 +1,4 @@
1
- import { isEmpty, setSlots } from "../../render/common.js";
1
+ import { isEmpty, getSlots } from "../../render/common.js";
2
2
  import { getScopeObject } from "../../render/config.js";
3
3
  import { isObject } from "@fangzhongya/utils/basic/object/isObject";
4
4
  import { setCssSize } from "../../utils/index.js";
@@ -77,7 +77,7 @@ function getDesignSlots(obj, callback) {
77
77
  });
78
78
  } else {
79
79
  if (!isEmpty(slot)) {
80
- objs[key] = setSlots({ slots: slot }).default;
80
+ objs[key] = getSlots(slot)?.default;
81
81
  }
82
82
  }
83
83
  }
@@ -33,7 +33,7 @@ const generals = [
33
33
  "PageVifEif",
34
34
  "PageHtml"
35
35
  ];
36
- function setSlots(obj, params = {}, temps) {
36
+ function setSlotsDom(obj, params = {}, temps) {
37
37
  return (config2) => {
38
38
  if (obj.name == "PagePosition") {
39
39
  config2.position = void 0;
@@ -142,7 +142,7 @@ function setDesign(obj, params = {}, temps) {
142
142
  obj,
143
143
  params,
144
144
  temps,
145
- setSlots(obj, params, temps),
145
+ setSlotsDom(obj, params, temps),
146
146
  setCompon()
147
147
  );
148
148
  } else {
@@ -177,7 +177,7 @@ function getGeneralDiv(obj, params, temps) {
177
177
  assembly: obj
178
178
  };
179
179
  common.getData(obj, params, temps, config2);
180
- const sls = setSlots(obj, params, temps);
180
+ const sls = setSlotsDom(obj, params, temps);
181
181
  const set = setCompon();
182
182
  const slots = sls(config2);
183
183
  return set(obj, config2, slots);
@@ -3,7 +3,9 @@ export declare function setDesign(obj: ControlDesign, params: ObjAny | undefined
3
3
  export declare function getResizable(slots: Array<ControlDesign>, obj: ControlDesign, params: ObjAny, key: string | undefined, temps: Array<TempsObject>): VNode<import('vue').RendererNode, import('vue').RendererElement, {
4
4
  [key: string]: any;
5
5
  }>;
6
- export declare function getGeneralDiv(obj: ControlDesign, params: ObjAny, temps: Array<TempsObject>): any;
6
+ export declare function getGeneralDiv(obj: ControlDesign, params: ObjAny, temps: Array<TempsObject>): string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
+ [key: string]: any;
8
+ }>;
7
9
  export declare function getRender(params: ObjAny | undefined, lists: Array<ControlDesign> | undefined, temps: Array<TempsObject>): VNode<import('vue').RendererNode, import('vue').RendererElement, {
8
10
  [key: string]: any;
9
11
  }>;
@@ -31,7 +31,7 @@ const generals = [
31
31
  "PageVifEif",
32
32
  "PageHtml"
33
33
  ];
34
- function setSlots(obj, params = {}, temps) {
34
+ function setSlotsDom(obj, params = {}, temps) {
35
35
  return (config) => {
36
36
  if (obj.name == "PagePosition") {
37
37
  config.position = void 0;
@@ -140,7 +140,7 @@ function setDesign(obj, params = {}, temps) {
140
140
  obj,
141
141
  params,
142
142
  temps,
143
- setSlots(obj, params, temps),
143
+ setSlotsDom(obj, params, temps),
144
144
  setCompon()
145
145
  );
146
146
  } else {
@@ -175,7 +175,7 @@ function getGeneralDiv(obj, params, temps) {
175
175
  assembly: obj
176
176
  };
177
177
  getData(obj, params, temps, config);
178
- const sls = setSlots(obj, params, temps);
178
+ const sls = setSlotsDom(obj, params, temps);
179
179
  const set = setCompon();
180
180
  const slots = sls(config);
181
181
  return set(obj, config, slots);
@@ -1,5 +1,5 @@
1
1
  // expand/config.ts
2
- var components = ["container", "grid-layout", "grid-item", "position"];
2
+ var components = ["container", "grid-item", "position", "grid-layout"];
3
3
  var sideEffects = ["grid-item", "grid-layout"];
4
4
 
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// expand/config.ts
2
- var components = ["container", "grid-layout", "grid-item", "position"];
2
+ var components = ["container", "grid-item", "position", "grid-layout"];
3
3
  var sideEffects = ["grid-item", "grid-layout"];
4
4
 
5
5
 
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkZJCFZ63Fcjs = require('./chunk-ZJCFZ63F.cjs');
4
+ var _chunkMYRRDRIScjs = require('./chunk-MYRRDRIS.cjs');
5
5
 
6
6
  // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
7
7
  function humpToLine(name) {
@@ -55,10 +55,10 @@ function namefilter(c, name) {
55
55
  function getFrom(mc) {
56
56
  const p = config.prefix ? config.prefix + "-" : "";
57
57
  const filename = p ? mc.replace(new RegExp("^" + p), "") : mc;
58
- if (_chunkZJCFZ63Fcjs.components.includes(filename)) {
58
+ if (_chunkMYRRDRIScjs.components.includes(filename)) {
59
59
  const from = `${config.name}/assemblys/${filename}`;
60
60
  let css;
61
- if (_chunkZJCFZ63Fcjs.sideEffects.includes(filename)) {
61
+ if (_chunkMYRRDRIScjs.sideEffects.includes(filename)) {
62
62
  css = `${config.name}/assemblys/${filename}.css`;
63
63
  }
64
64
  return {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  components,
3
3
  sideEffects
4
- } from "./chunk-I2RMOBDW.js";
4
+ } from "./chunk-KQKVKAJF.js";
5
5
 
6
6
  // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
7
7
  function humpToLine(name) {
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkZJCFZ63Fcjs = require('./chunk-ZJCFZ63F.cjs');
4
+ var _chunkMYRRDRIScjs = require('./chunk-MYRRDRIS.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.components = _chunkZJCFZ63Fcjs.components; exports.sideEffects = _chunkZJCFZ63Fcjs.sideEffects;
8
+ exports.components = _chunkMYRRDRIScjs.components; exports.sideEffects = _chunkMYRRDRIScjs.sideEffects;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  components,
3
3
  sideEffects
4
- } from "./chunk-I2RMOBDW.js";
4
+ } from "./chunk-KQKVKAJF.js";
5
5
  export {
6
6
  components,
7
7
  sideEffects
@@ -7,17 +7,16 @@ const humpToLine = require("@fangzhongya/utils/name/humpToLine");
7
7
  const isObject = require("@fangzhongya/utils/basic/object/isObject");
8
8
  const render = require("../utils/render.cjs");
9
9
  const config = require("./config.cjs");
10
- function setSlots(obj) {
11
- const slots = obj.slots;
10
+ function getSlots(slots) {
12
11
  if (vue.isVNode(slots)) {
13
12
  return {
14
- default: () => slots
13
+ default: () => [slots]
15
14
  };
16
15
  } else if (typeof slots === "function") {
17
16
  return {
18
17
  default: slots
19
18
  };
20
- } else if (isObject.isObject(slots)) {
19
+ } else if (slots && isObject.isObject(slots) && !Array.isArray(slots)) {
21
20
  return slots;
22
21
  } else if (!isEmpty(slots)) {
23
22
  return {
@@ -25,32 +24,32 @@ function setSlots(obj) {
25
24
  };
26
25
  }
27
26
  }
28
- function setComponString(name, attarObj, obj = {}, compons = {}) {
27
+ function getComponString(name, attarObj, obj = {}, compons = {}) {
29
28
  if (name === "Template") {
30
- return vue.h(vue.Fragment, null, setSlots(obj).default?.());
29
+ return vue.h(vue.Fragment, null, getSlots(obj.slots)?.default?.());
31
30
  }
32
31
  compons = vue.inject("components", compons);
33
32
  const tcom = humpToLine.humpToLine(name);
34
33
  const cms = Object.keys(compons);
35
34
  if (cms.includes(name)) {
36
- return vue.h(compons[name], attarObj, setSlots(obj));
35
+ return vue.h(compons[name], attarObj, getSlots(obj.slots));
37
36
  } else if (cms.includes(tcom)) {
38
- return vue.h(compons[tcom], attarObj, setSlots(obj));
37
+ return vue.h(compons[tcom], attarObj, getSlots(obj.slots));
39
38
  }
40
39
  if (shared.isHTMLTag(tcom) || shared.isSVGTag(tcom)) {
41
- return vue.h(tcom, attarObj, setSlots(obj).default?.());
40
+ return vue.h(tcom, attarObj, getSlots(obj.slots)?.default?.());
42
41
  }
43
- return vue.h(vue.resolveComponent(name), attarObj, setSlots(obj));
42
+ return vue.h(vue.resolveComponent(name), attarObj, getSlots(obj.slots));
44
43
  }
45
44
  function useGetCompon(name, attarObj, obj = {}, compons) {
46
45
  if (typeof name == "string") {
47
- return setComponString(name, attarObj, obj, compons);
46
+ return getComponString(name, attarObj, obj, compons);
48
47
  } else if (typeof name == "function") {
49
- return name(attarObj, setSlots(obj));
48
+ return name(attarObj, getSlots(obj.slots));
50
49
  } else if (vue.isVNode(name)) {
51
50
  return name;
52
51
  } else {
53
- return vue.h(name, attarObj, setSlots(obj));
52
+ return vue.h(name, attarObj, getSlots(obj.slots));
54
53
  }
55
54
  }
56
55
  function getSlotsArray(obj, key = "default") {
@@ -62,7 +61,7 @@ function isEmpty(v) {
62
61
  return true;
63
62
  }
64
63
  }
65
- function getSlots(obj, callback) {
64
+ function getSlotsDom(obj, callback) {
66
65
  const slots = obj.slots || {};
67
66
  const cs = obj.config?.scope;
68
67
  if (Array.isArray(slots)) {
@@ -87,7 +86,7 @@ function getSlots(obj, callback) {
87
86
  });
88
87
  } else {
89
88
  if (!isEmpty(slot)) {
90
- objs[key] = setSlots({ slots: slot }).default;
89
+ objs[key] = getSlots(slot)?.default;
91
90
  }
92
91
  }
93
92
  }
@@ -139,7 +138,7 @@ function getCompon(obj, config$1, params, temps) {
139
138
  if (slots) {
140
139
  return vue.h(vue.Fragment, slots(config$1));
141
140
  } else {
142
- return setRender(
141
+ return getRender(
143
142
  {
144
143
  name: "Template",
145
144
  slots: obj.slots
@@ -149,7 +148,7 @@ function getCompon(obj, config$1, params, temps) {
149
148
  );
150
149
  }
151
150
  } else if (name === "Component") {
152
- return setRender(
151
+ return getRender(
153
152
  {
154
153
  name: config$1.is,
155
154
  slots: obj.slots,
@@ -188,7 +187,7 @@ function getCompon(obj, config$1, params, temps) {
188
187
  }
189
188
  ];
190
189
  const ts = getTempsArr(temps, vfors, "forin");
191
- return setRender(
190
+ return getRender(
192
191
  {
193
192
  name: "Template",
194
193
  slots: obj.slots
@@ -213,7 +212,7 @@ function getCompon(obj, config$1, params, temps) {
213
212
  }
214
213
  ];
215
214
  const ts = getTempsArr(temps, vfors, "forof");
216
- return setRender(
215
+ return getRender(
217
216
  {
218
217
  name: "Template",
219
218
  slots: obj.slots
@@ -250,7 +249,7 @@ function getCompon(obj, config$1, params, temps) {
250
249
  const slots = [];
251
250
  if (vc) {
252
251
  getSlotsArray(vc).forEach((v) => {
253
- slots.push(setRender(v, params, temps));
252
+ slots.push(getRender(v, params, temps));
254
253
  });
255
254
  }
256
255
  return vue.h(vue.Fragment, null, slots);
@@ -279,13 +278,13 @@ function assemblyGetRender(obj, params = {}, temps, getSlots2, setCompon) {
279
278
  return "";
280
279
  }
281
280
  }
282
- function setRender(obj, params = {}, temps) {
281
+ function getRender(obj, params = {}, temps) {
283
282
  return assemblyGetRender(
284
283
  obj,
285
284
  params,
286
285
  temps,
287
286
  (config2) => {
288
- return getSlots(
287
+ return getSlotsDom(
289
288
  obj,
290
289
  (slots, key, scope) => {
291
290
  const ts = getTempsArr(temps, [scope]);
@@ -293,7 +292,7 @@ function setRender(obj, params = {}, temps) {
293
292
  vue.Fragment,
294
293
  null,
295
294
  slots.map((v) => {
296
- return setRender(v, params, ts);
295
+ return getRender(v, params, ts);
297
296
  })
298
297
  );
299
298
  }
@@ -312,10 +311,9 @@ function setRender(obj, params = {}, temps) {
312
311
  }
313
312
  exports.assemblyGetRender = assemblyGetRender;
314
313
  exports.getData = getData;
314
+ exports.getRender = getRender;
315
315
  exports.getSlots = getSlots;
316
316
  exports.getSlotsArray = getSlotsArray;
317
317
  exports.getTempsArr = getTempsArr;
318
318
  exports.isEmpty = isEmpty;
319
- exports.setRender = setRender;
320
- exports.setSlots = setSlots;
321
319
  exports.useGetCompon = useGetCompon;
@@ -1,22 +1,13 @@
1
- import { VNode } from 'vue';
1
+ import { VNode, Slots } from 'vue';
2
2
  /**
3
3
  * 设置插槽配置
4
4
  * @param obj - 包含slots属性的ListObj对象
5
5
  * @returns 返回标准化的插槽配置对象
6
6
  */
7
- export declare function setSlots(obj: ObjAny): any;
8
- export declare function useGetCompon(name: any, attarObj: ObjAny, obj?: ObjAny, compons?: ObjAny): any;
7
+ export declare function getSlots(slots: any): Slots | undefined;
8
+ export declare function useGetCompon(name: any, attarObj: ObjAny, obj?: ObjAny, compons?: ObjAny): VNode | string;
9
9
  export declare function getSlotsArray(obj: ControlRender, key?: string): ControlRender[];
10
10
  export declare function isEmpty(v: any): true | undefined;
11
- /**
12
- * 生成插槽代码
13
- * @param obj
14
- * @param is
15
- * @returns
16
- */
17
- export declare function getSlots(obj: ControlRender, callback: (slots: ControlRender[], key: string, obj: TempsObjectKey) => void): {
18
- [key: string]: any;
19
- };
20
11
  export declare function getTempsArr(temps: Array<TempsObject>, value: TempsObjectKey[], type?: string): TempsObject[];
21
12
  export declare function getData(obj: ControlRender, params: ObjAny | undefined, temps: Array<TempsObject>, config?: ObjAny): void;
22
13
  /**
@@ -30,4 +21,4 @@ export declare function assemblyGetRender(obj: ControlRender, params: ObjAny | u
30
21
  * @param obj 数据对象
31
22
  * @returns
32
23
  */
33
- export declare function setRender(obj: ControlRender, params: ObjAny | undefined, temps: Array<TempsObject>): VNode | string;
24
+ export declare function getRender(obj: ControlRender, params: ObjAny | undefined, temps: Array<TempsObject>): VNode | string;
@@ -5,17 +5,16 @@ import { humpToLine } from "@fangzhongya/utils/name/humpToLine";
5
5
  import { isObject } from "@fangzhongya/utils/basic/object/isObject";
6
6
  import { getRenderSlots, getClassId } from "../utils/render.js";
7
7
  import { getScopeObject, getForObject, getPropsValue, getConfig, getRefDom, getDirectives, getAttrs, getProps, getEmits } from "./config.js";
8
- function setSlots(obj) {
9
- const slots = obj.slots;
8
+ function getSlots(slots) {
10
9
  if (isVNode(slots)) {
11
10
  return {
12
- default: () => slots
11
+ default: () => [slots]
13
12
  };
14
13
  } else if (typeof slots === "function") {
15
14
  return {
16
15
  default: slots
17
16
  };
18
- } else if (isObject(slots)) {
17
+ } else if (slots && isObject(slots) && !Array.isArray(slots)) {
19
18
  return slots;
20
19
  } else if (!isEmpty(slots)) {
21
20
  return {
@@ -23,32 +22,32 @@ function setSlots(obj) {
23
22
  };
24
23
  }
25
24
  }
26
- function setComponString(name, attarObj, obj = {}, compons = {}) {
25
+ function getComponString(name, attarObj, obj = {}, compons = {}) {
27
26
  if (name === "Template") {
28
- return h(Fragment, null, setSlots(obj).default?.());
27
+ return h(Fragment, null, getSlots(obj.slots)?.default?.());
29
28
  }
30
29
  compons = inject("components", compons);
31
30
  const tcom = humpToLine(name);
32
31
  const cms = Object.keys(compons);
33
32
  if (cms.includes(name)) {
34
- return h(compons[name], attarObj, setSlots(obj));
33
+ return h(compons[name], attarObj, getSlots(obj.slots));
35
34
  } else if (cms.includes(tcom)) {
36
- return h(compons[tcom], attarObj, setSlots(obj));
35
+ return h(compons[tcom], attarObj, getSlots(obj.slots));
37
36
  }
38
37
  if (isHTMLTag(tcom) || isSVGTag(tcom)) {
39
- return h(tcom, attarObj, setSlots(obj).default?.());
38
+ return h(tcom, attarObj, getSlots(obj.slots)?.default?.());
40
39
  }
41
- return h(resolveComponent(name), attarObj, setSlots(obj));
40
+ return h(resolveComponent(name), attarObj, getSlots(obj.slots));
42
41
  }
43
42
  function useGetCompon(name, attarObj, obj = {}, compons) {
44
43
  if (typeof name == "string") {
45
- return setComponString(name, attarObj, obj, compons);
44
+ return getComponString(name, attarObj, obj, compons);
46
45
  } else if (typeof name == "function") {
47
- return name(attarObj, setSlots(obj));
46
+ return name(attarObj, getSlots(obj.slots));
48
47
  } else if (isVNode(name)) {
49
48
  return name;
50
49
  } else {
51
- return h(name, attarObj, setSlots(obj));
50
+ return h(name, attarObj, getSlots(obj.slots));
52
51
  }
53
52
  }
54
53
  function getSlotsArray(obj, key = "default") {
@@ -60,7 +59,7 @@ function isEmpty(v) {
60
59
  return true;
61
60
  }
62
61
  }
63
- function getSlots(obj, callback) {
62
+ function getSlotsDom(obj, callback) {
64
63
  const slots = obj.slots || {};
65
64
  const cs = obj.config?.scope;
66
65
  if (Array.isArray(slots)) {
@@ -85,7 +84,7 @@ function getSlots(obj, callback) {
85
84
  });
86
85
  } else {
87
86
  if (!isEmpty(slot)) {
88
- objs[key] = setSlots({ slots: slot }).default;
87
+ objs[key] = getSlots(slot)?.default;
89
88
  }
90
89
  }
91
90
  }
@@ -137,7 +136,7 @@ function getCompon(obj, config, params, temps) {
137
136
  if (slots) {
138
137
  return h(Fragment, slots(config));
139
138
  } else {
140
- return setRender(
139
+ return getRender(
141
140
  {
142
141
  name: "Template",
143
142
  slots: obj.slots
@@ -147,7 +146,7 @@ function getCompon(obj, config, params, temps) {
147
146
  );
148
147
  }
149
148
  } else if (name === "Component") {
150
- return setRender(
149
+ return getRender(
151
150
  {
152
151
  name: config.is,
153
152
  slots: obj.slots,
@@ -186,7 +185,7 @@ function getCompon(obj, config, params, temps) {
186
185
  }
187
186
  ];
188
187
  const ts = getTempsArr(temps, vfors, "forin");
189
- return setRender(
188
+ return getRender(
190
189
  {
191
190
  name: "Template",
192
191
  slots: obj.slots
@@ -211,7 +210,7 @@ function getCompon(obj, config, params, temps) {
211
210
  }
212
211
  ];
213
212
  const ts = getTempsArr(temps, vfors, "forof");
214
- return setRender(
213
+ return getRender(
215
214
  {
216
215
  name: "Template",
217
216
  slots: obj.slots
@@ -248,7 +247,7 @@ function getCompon(obj, config, params, temps) {
248
247
  const slots = [];
249
248
  if (vc) {
250
249
  getSlotsArray(vc).forEach((v) => {
251
- slots.push(setRender(v, params, temps));
250
+ slots.push(getRender(v, params, temps));
252
251
  });
253
252
  }
254
253
  return h(Fragment, null, slots);
@@ -277,13 +276,13 @@ function assemblyGetRender(obj, params = {}, temps, getSlots2, setCompon) {
277
276
  return "";
278
277
  }
279
278
  }
280
- function setRender(obj, params = {}, temps) {
279
+ function getRender(obj, params = {}, temps) {
281
280
  return assemblyGetRender(
282
281
  obj,
283
282
  params,
284
283
  temps,
285
284
  (config) => {
286
- return getSlots(
285
+ return getSlotsDom(
287
286
  obj,
288
287
  (slots, key, scope) => {
289
288
  const ts = getTempsArr(temps, [scope]);
@@ -291,7 +290,7 @@ function setRender(obj, params = {}, temps) {
291
290
  Fragment,
292
291
  null,
293
292
  slots.map((v) => {
294
- return setRender(v, params, ts);
293
+ return getRender(v, params, ts);
295
294
  })
296
295
  );
297
296
  }
@@ -311,11 +310,10 @@ function setRender(obj, params = {}, temps) {
311
310
  export {
312
311
  assemblyGetRender,
313
312
  getData,
313
+ getRender,
314
314
  getSlots,
315
315
  getSlotsArray,
316
316
  getTempsArr,
317
317
  isEmpty,
318
- setRender,
319
- setSlots,
320
318
  useGetCompon
321
319
  };
@@ -5,11 +5,11 @@ const common = require("./common.cjs");
5
5
  const config = require("./config.cjs");
6
6
  const render = require("../utils/render.cjs");
7
7
  const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
8
- function getRender(params = {}, arrs, temps) {
8
+ function getRenders(params = {}, arrs, temps) {
9
9
  if (arrs) {
10
10
  return vue.h(vue.Fragment, null, [
11
11
  arrs.map((v) => {
12
- return common.setRender(v, params, temps);
12
+ return common.getRender(v, params, temps);
13
13
  })
14
14
  ]);
15
15
  } else {
@@ -62,7 +62,7 @@ function createRender(obj, imports = {}, callback = (id) => id, components = {})
62
62
  config.runCodeBlock(obj.config.unmounted, params);
63
63
  }
64
64
  });
65
- return () => getRender(params, obj.list, temps);
65
+ return () => getRenders(params, obj.list, temps);
66
66
  }
67
67
  });
68
68
  }
@@ -1,13 +1,13 @@
1
1
  import { h, Fragment, defineComponent, provide, reactive, onMounted, onActivated, onDeactivated, onUnmounted, defineAsyncComponent, resolveComponent } from "vue";
2
- import { setRender } from "./common.js";
2
+ import { getRender } from "./common.js";
3
3
  import { getObjProps, setCodes, runCodeBlock } from "./config.js";
4
4
  import { setStyle, unStyle, getComponentNames, isRenderCompon } from "../utils/render.js";
5
5
  import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
6
- function getRender(params = {}, arrs, temps) {
6
+ function getRenders(params = {}, arrs, temps) {
7
7
  if (arrs) {
8
8
  return h(Fragment, null, [
9
9
  arrs.map((v) => {
10
- return setRender(v, params, temps);
10
+ return getRender(v, params, temps);
11
11
  })
12
12
  ]);
13
13
  } else {
@@ -60,7 +60,7 @@ function createRender(obj, imports = {}, callback = (id) => id, components = {})
60
60
  runCodeBlock(obj.config.unmounted, params);
61
61
  }
62
62
  });
63
- return () => getRender(params, obj.list, temps);
63
+ return () => getRenders(params, obj.list, temps);
64
64
  }
65
65
  });
66
66
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fangzhongya/page",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.0.26",
5
+ "version": "0.0.27",
6
6
  "description ": "个人组件设计",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",