chore: prettier format (#4715) [ci skip]

This commit is contained in:
btea 2021-10-08 11:00:05 -05:00 committed by GitHub
parent 7a1e6620bf
commit c9613ebe09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -780,9 +780,7 @@ describe('compiler: transform component slots', () => {
}) })
test('<slot w/ nested component>', () => { test('<slot w/ nested component>', () => {
const { slots } = parseWithSlots( const { slots } = parseWithSlots(`<Comp><Comp><slot/></Comp></Comp>`)
`<Comp><Comp><slot/></Comp></Comp>`
)
expect(slots).toMatchObject(toMatch) expect(slots).toMatchObject(toMatch)
}) })
}) })

View File

@ -12,7 +12,8 @@ import { PluginCreator } from 'postcss'
import hash from 'hash-sum' import hash from 'hash-sum'
export const CSS_VARS_HELPER = `useCssVars` export const CSS_VARS_HELPER = `useCssVars`
export const cssVarRE = /\bv-bind\(\s*(?:'([^']+)'|"([^"]+)"|([^'"][^)]*))\s*\)/g export const cssVarRE =
/\bv-bind\(\s*(?:'([^']+)'|"([^"]+)"|([^'"][^)]*))\s*\)/g
export function genCssVarsFromList( export function genCssVarsFromList(
vars: string[], vars: string[],

View File

@ -29,7 +29,9 @@
import { VNode } from '@vue/runtime-core' import { VNode } from '@vue/runtime-core'
import * as CSS from 'csstype' import * as CSS from 'csstype'
export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> { export interface CSSProperties
extends CSS.Properties<string | number>,
CSS.PropertiesHyphen<string | number> {
/** /**
* The index signature was removed to enable closed typing for style * The index signature was removed to enable closed typing for style
* using CSSType. You're able to use type assertion or module augmentation * using CSSType. You're able to use type assertion or module augmentation