unika-components 1.2.2 → 1.2.3

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.
@@ -1564,7 +1564,7 @@ var script$l = defineComponent({
1564
1564
  });
1565
1565
  // 容器样式
1566
1566
  const containerStyle = computed(() => ({
1567
- position: props.element?.css?.position || 'absolute',
1567
+ position: (props.element && props.element.css && props.element.css.position) || 'absolute',
1568
1568
  left: px2rem(props.element.css.left),
1569
1569
  top: px2rem(props.element.css.top),
1570
1570
  width: px2rem(props.element.css.width),
@@ -1571,7 +1571,7 @@
1571
1571
  });
1572
1572
  // 容器样式
1573
1573
  const containerStyle = vue.computed(() => ({
1574
- position: props.element?.css?.position || 'absolute',
1574
+ position: (props.element && props.element.css && props.element.css.position) || 'absolute',
1575
1575
  left: px2rem(props.element.css.left),
1576
1576
  top: px2rem(props.element.css.top),
1577
1577
  width: px2rem(props.element.css.width),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",