]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: prettier format (#4715) [ci skip]
authorbtea <2356281422@qq.com>
Fri, 8 Oct 2021 16:00:05 +0000 (11:00 -0500)
committerGitHub <noreply@github.com>
Fri, 8 Oct 2021 16:00:05 +0000 (12:00 -0400)
packages/compiler-core/__tests__/transforms/vSlot.spec.ts
packages/compiler-sfc/src/cssVars.ts
packages/runtime-dom/types/jsx.d.ts

index 4a7df1e8dfe86ba64efadef14b27b0f42ce681c5..687c4d8b358f0a1f98234a413b267f117557232e 100644 (file)
@@ -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)
     })
   })
index f51269f126978f3b80b25b94eac8b7b13f46654e..3032e2fbf5da52822bf9bacb7a77a78a96a3511f 100644 (file)
@@ -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[],
index f365e4581498c0849d69b0fbc2d1a6dbfa25eb0f..e86b67fa3516c89122aa9c798b27cccc88baa143 100644 (file)
@@ -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