nav tabs on admin dashboard
This commit is contained in:
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,
|
||||
|
||||
Reference in New Issue
Block a user