Răsfoiți Sursa

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

btea 4 ani în urmă
părinte
comite
c9613ebe09

+ 1 - 3
packages/compiler-core/__tests__/transforms/vSlot.spec.ts

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

+ 2 - 1
packages/compiler-sfc/src/cssVars.ts

@@ -12,7 +12,8 @@ import { PluginCreator } from 'postcss'
 import hash from 'hash-sum'
 
 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(
   vars: string[],

+ 3 - 1
packages/runtime-dom/types/jsx.d.ts

@@ -29,7 +29,9 @@
 import { VNode } from '@vue/runtime-core'
 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
    * using CSSType. You're able to use type assertion or module augmentation