nav tabs on admin dashboard
This commit is contained in:
6
node_modules/vue/src/server/optimizing-compiler/codegen.js
generated
vendored
6
node_modules/vue/src/server/optimizing-compiler/codegen.js
generated
vendored
@@ -225,7 +225,11 @@ function nodesToSegments (
|
||||
} else if (c.type === 2) {
|
||||
segments.push({ type: INTERPOLATION, value: c.expression })
|
||||
} else if (c.type === 3) {
|
||||
segments.push({ type: RAW, value: escape(c.text) })
|
||||
let text = escape(c.text)
|
||||
if (c.isComment) {
|
||||
text = '<!--' + text + '-->'
|
||||
}
|
||||
segments.push({ type: RAW, value: text })
|
||||
}
|
||||
}
|
||||
return segments
|
||||
|
||||
10
node_modules/vue/src/server/optimizing-compiler/modules.js
generated
vendored
10
node_modules/vue/src/server/optimizing-compiler/modules.js
generated
vendored
@@ -19,8 +19,6 @@ import {
|
||||
import type { StringSegment } from './codegen'
|
||||
import type { CodegenState } from 'compiler/codegen/index'
|
||||
|
||||
type Attr = { name: string; value: string };
|
||||
|
||||
const plainStringRE = /^"(?:[^"\\]|\\.)*"$|^'(?:[^'\\]|\\.)*'$/
|
||||
|
||||
// let the model AST transform translate v-model into appropriate
|
||||
@@ -42,14 +40,14 @@ export function applyModelTransform (el: ASTElement, state: CodegenState) {
|
||||
}
|
||||
|
||||
export function genAttrSegments (
|
||||
attrs: Array<Attr>
|
||||
attrs: Array<ASTAttr>
|
||||
): Array<StringSegment> {
|
||||
return attrs.map(({ name, value }) => genAttrSegment(name, value))
|
||||
}
|
||||
|
||||
export function genDOMPropSegments (
|
||||
props: Array<Attr>,
|
||||
attrs: ?Array<Attr>
|
||||
props: Array<ASTAttr>,
|
||||
attrs: ?Array<ASTAttr>
|
||||
): Array<StringSegment> {
|
||||
const segments = []
|
||||
props.forEach(({ name, value }) => {
|
||||
@@ -92,7 +90,7 @@ export function genClassSegments (
|
||||
classBinding: ?string
|
||||
): Array<StringSegment> {
|
||||
if (staticClass && !classBinding) {
|
||||
return [{ type: RAW, value: ` class=${staticClass}` }]
|
||||
return [{ type: RAW, value: ` class="${JSON.parse(staticClass)}"` }]
|
||||
} else {
|
||||
return [{
|
||||
type: EXPRESSION,
|
||||
|
||||
1
node_modules/vue/src/server/optimizing-compiler/optimizer.js
generated
vendored
1
node_modules/vue/src/server/optimizing-compiler/optimizer.js
generated
vendored
@@ -84,6 +84,7 @@ function optimizeSiblings (el) {
|
||||
tag: 'template',
|
||||
attrsList: [],
|
||||
attrsMap: {},
|
||||
rawAttrsMap: {},
|
||||
children: currentOptimizableGroup,
|
||||
ssrOptimizability: optimizability.FULL
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user