@vtj / Modules / core / DirectiveModel
Class: DirectiveModel
core.DirectiveModel
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new DirectiveModel(schema
): DirectiveModel
Parameters
Name | Type |
---|---|
schema | NodeDirective |
Returns
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
Name | Type |
---|---|
schema | NodeDirective |
Returns
void
Defined in
packages/core/src/models/directive.ts:39
parse
▸ parse(directives?
): DirectiveModel
[]
Parameters
Name | Type | Default value |
---|---|---|
directives | NodeDirective [] | [] |
Returns
Defined in
packages/core/src/models/directive.ts:48
toDsl
▸ toDsl(directives?
): NodeDirective
[]
Parameters
Name | Type | Default value |
---|---|---|
directives | DirectiveModel [] | [] |
Returns
Defined in
packages/core/src/models/directive.ts:51