Skip to content

@vtj / Modules / core / DirectiveModel

Class: DirectiveModel

core.DirectiveModel

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DirectiveModel(schema): DirectiveModel

Parameters

NameType
schemaNodeDirective

Returns

DirectiveModel

Defined in

packages/core/src/models/directive.ts:35

Properties

arg

Optional arg: string | JSExpression

参数

Defined in

packages/core/src/models/directive.ts:21


id

Readonly id: string

标识

Defined in

packages/core/src/models/directive.ts:13


iterator

Optional iterator: NodeDirectiveIterator

v-for 迭代器

Defined in

packages/core/src/models/directive.ts:33


modifiers

Optional modifiers: NodeModifiers

修饰符

Defined in

packages/core/src/models/directive.ts:25


name

name: string = ''

指令名称

Defined in

packages/core/src/models/directive.ts:17


schema

Private schema: NodeDirective

Defined in

packages/core/src/models/directive.ts:35


value

Optional value: JSExpression

指令值

Defined in

packages/core/src/models/directive.ts:29

Methods

update

update(schema): void

Parameters

NameType
schemaNodeDirective

Returns

void

Defined in

packages/core/src/models/directive.ts:39


parse

parse(directives?): DirectiveModel[]

Parameters

NameTypeDefault value
directivesNodeDirective[][]

Returns

DirectiveModel[]

Defined in

packages/core/src/models/directive.ts:48


toDsl

toDsl(directives?): NodeDirective[]

Parameters

NameTypeDefault value
directivesDirectiveModel[][]

Returns

NodeDirective[]

Defined in

packages/core/src/models/directive.ts:51

Released under the MIT License.