zova-jsx 1.1.28 → 1.1.31

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { celEnvBase, getProperty, evaluateExpressions, isEmptyObject, isNil, isP
3
3
  import { toUpperCaseFirstChar } from '@cabloy/word-utils';
4
4
  import { classes } from 'typestyle';
5
5
  import { h, createTextVNode } from 'vue';
6
- import { BeanSimple, objectAssignReactive, cast } from 'zova-core';
6
+ import { BeanSimple, objectAssignReactive, cast, BeanControllerIdentifier } from 'zova-core';
7
7
 
8
8
  const renderFieldJsxPropsSystem = ['children', 'v-slot', 'v-slot-scope', 'v-if', 'v-for', 'v-each', 'key'];
9
9
 
@@ -266,6 +266,12 @@ class ZovaJsx extends BeanSimple {
266
266
  }
267
267
  // props
268
268
  this.renderJsxProps(componentJsx.props, props, celScope, renderContext);
269
+ // style
270
+ if (_isZovaComponent && cast(props).style) {
271
+ const controller = this.ctx.bean._getBeanSyncOnly(BeanControllerIdentifier);
272
+ cast(props).class = classes(cast(props).class, controller.$style(cast(props).style));
273
+ delete cast(props).style;
274
+ }
269
275
  // children
270
276
  let children;
271
277
  const propsChildren = componentJsx.props?.children;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-jsx",
3
- "version": "1.1.28",
4
- "gitHead": "6162f8e212146d3e5f98145fcf43adc52912694e",
3
+ "version": "1.1.31",
4
+ "gitHead": "6c7a09c8f0a8a0f41c5090b544a1667dbc689f0e",
5
5
  "description": "Zova JSX",
6
6
  "keywords": [
7
7
  "ioc",
@@ -45,6 +45,6 @@
45
45
  "@cabloy/word-utils": "^2.1.9",
46
46
  "typestyle": "^2.4.0",
47
47
  "vue": "^3.5.32",
48
- "zova-core": "^5.1.25"
48
+ "zova-core": "^5.1.28"
49
49
  }
50
50
  }