@dcloudio/uni-nvue-styler
Advanced tools
Comparing version 3.0.0-alpha-4010720240511002 to 3.0.0-alpha-4010720240511003
@@ -352,15 +352,6 @@ 'use strict'; | ||
const transformTransition = (decl) => { | ||
const CHUNK_REGEXP = /^(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?\s*(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?$/; | ||
const { value, important, raws, source } = decl; | ||
const result = []; | ||
let match; | ||
// 针对 cubic-bezier 特殊处理 | ||
// eg: cubic-bezier(0.42, 0, 1.0, 3) // (0.2,-2,0.8,2) | ||
if (decl.value.includes('cubic-bezier')) { | ||
const CHUNK_REGEXP = /^(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?\s*((\S*)|cubic-bezier\(.*\))?\s*(\d*\.?\d+(?:ms|s)?)?$/; | ||
match = value.match(CHUNK_REGEXP); | ||
} | ||
else { | ||
const CHUNK_REGEXP = /^(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?\s*(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?$/; | ||
match = value.match(CHUNK_REGEXP); | ||
} | ||
const match = value.match(CHUNK_REGEXP); | ||
if (!match) { | ||
@@ -367,0 +358,0 @@ return result; |
@@ -174,15 +174,6 @@ import { hyphenate, capitalize } from '@vue/shared'; | ||
const transformTransition = (decl) => { | ||
const CHUNK_REGEXP = /^(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?\s*(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?$/; | ||
const { value, important, raws, source } = decl; | ||
const result = []; | ||
let match; | ||
// 针对 cubic-bezier 特殊处理 | ||
// eg: cubic-bezier(0.42, 0, 1.0, 3) // (0.2,-2,0.8,2) | ||
if (decl.value.includes('cubic-bezier')) { | ||
const CHUNK_REGEXP = /^(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?\s*((\S*)|cubic-bezier\(.*\))?\s*(\d*\.?\d+(?:ms|s)?)?$/; | ||
match = value.match(CHUNK_REGEXP); | ||
} | ||
else { | ||
const CHUNK_REGEXP = /^(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?\s*(\S*)?\s*(\d*\.?\d+(?:ms|s)?)?$/; | ||
match = value.match(CHUNK_REGEXP); | ||
} | ||
const match = value.match(CHUNK_REGEXP); | ||
if (!match) { | ||
@@ -189,0 +180,0 @@ return result; |
{ | ||
"name": "@dcloudio/uni-nvue-styler", | ||
"version": "3.0.0-alpha-4010720240511002", | ||
"version": "3.0.0-alpha-4010720240511003", | ||
"description": "uni-nvue-styler", | ||
@@ -5,0 +5,0 @@ "main": "./dist/uni-nvue-styler.cjs.js", |
Sorry, the diff of this file is too big to display
235233
9473