@thinkpixellab-public/px-vue 3.0.79 → 3.0.81

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.
@@ -86,7 +86,7 @@ export default {
86
86
  // mounted() {},
87
87
  methods: {
88
88
  keywordsToParameters(keywords, direction, reverse) {
89
- const words = keywords.split(/[, ]+/).map(s => s.trim());
89
+ const words = (keywords || '').split(/[, ]+/).map(s => s.trim());
90
90
  const fr = { x: 0, y: 0, scale: 1 };
91
91
  const to = { x: 0, y: 0, scale: 1 };
92
92
  const isHide = direction == 'hide';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "3.0.79",
3
+ "version": "3.0.81",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": "Pixel Lab",
6
6
  "license": "MIT",
package/utils/cssStr.js CHANGED
@@ -178,6 +178,13 @@ function cssUnitFallback(val, fallback, allowNumberless = false) {
178
178
 
179
179
  val = val.toString().trim();
180
180
 
181
+ if (
182
+ allowNumberless &&
183
+ (val.startsWith('min') || val.startsWith('max') || val.startsWith('calc'))
184
+ ) {
185
+ return val;
186
+ }
187
+
181
188
  if (isNaN(num)) {
182
189
  if (allowNumberless) {
183
190
  num = '';