rask-ui 0.20.4 → 0.20.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/component.js +11 -0
- package/package.json +1 -1
package/dist/component.js
CHANGED
|
@@ -192,6 +192,17 @@ export function createComponent(props, key) {
|
|
|
192
192
|
}
|
|
193
193
|
function createReactiveProps(comp) {
|
|
194
194
|
const props = new Proxy({}, {
|
|
195
|
+
ownKeys() {
|
|
196
|
+
return Object.getOwnPropertyNames(comp.props);
|
|
197
|
+
},
|
|
198
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
199
|
+
return {
|
|
200
|
+
configurable: true,
|
|
201
|
+
enumerable: true,
|
|
202
|
+
value: comp.props[prop],
|
|
203
|
+
writable: false,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
195
206
|
get(_, prop) {
|
|
196
207
|
// Skip known non-reactive props
|
|
197
208
|
if (prop === "key" || prop === "ref") {
|