@momoyu-ink/kit 0.5.4 → 0.5.5
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/lib.cjs +3 -2
- package/dist/lib.mjs +3 -2
- package/package.json +1 -1
package/dist/lib.cjs
CHANGED
|
@@ -212,7 +212,8 @@ var hostConfig = {
|
|
|
212
212
|
* @required
|
|
213
213
|
*/
|
|
214
214
|
createInstance(type, props, _root, _hostContext, _internalInstanceHandle) {
|
|
215
|
-
const
|
|
215
|
+
const { ref, ...restProps } = props;
|
|
216
|
+
const node = Node.create(props.label ?? "", type, restProps);
|
|
216
217
|
return node;
|
|
217
218
|
},
|
|
218
219
|
/**
|
|
@@ -282,7 +283,7 @@ var hostConfig = {
|
|
|
282
283
|
},
|
|
283
284
|
commitUpdate(instance, _type, prevProps, nextProps, _internalHandle) {
|
|
284
285
|
const { label: _oldLabel, children: _oldChildren, ...oldProps } = prevProps;
|
|
285
|
-
const { label, children, ...newProps } = nextProps;
|
|
286
|
+
const { label, children, ref, ...newProps } = nextProps;
|
|
286
287
|
const changedProps = {};
|
|
287
288
|
for (const key in newProps) {
|
|
288
289
|
if (newProps[key] !== oldProps[key]) {
|
package/dist/lib.mjs
CHANGED
|
@@ -199,7 +199,8 @@ var hostConfig = {
|
|
|
199
199
|
* @required
|
|
200
200
|
*/
|
|
201
201
|
createInstance(type, props, _root, _hostContext, _internalInstanceHandle) {
|
|
202
|
-
const
|
|
202
|
+
const { ref, ...restProps } = props;
|
|
203
|
+
const node = Node.create(props.label ?? "", type, restProps);
|
|
203
204
|
return node;
|
|
204
205
|
},
|
|
205
206
|
/**
|
|
@@ -269,7 +270,7 @@ var hostConfig = {
|
|
|
269
270
|
},
|
|
270
271
|
commitUpdate(instance, _type, prevProps, nextProps, _internalHandle) {
|
|
271
272
|
const { label: _oldLabel, children: _oldChildren, ...oldProps } = prevProps;
|
|
272
|
-
const { label, children, ...newProps } = nextProps;
|
|
273
|
+
const { label, children, ref, ...newProps } = nextProps;
|
|
273
274
|
const changedProps = {};
|
|
274
275
|
for (const key in newProps) {
|
|
275
276
|
if (newProps[key] !== oldProps[key]) {
|