# Component linkage
You can control whether other components are displayed through the value of the component through the control
configuration item
# Property description
value : Display components in
rule
when the value of the component is congruent{ value:1, rule:[...] }
handle
Function
: Show components inrule
whenhandle
method returnstrue
{ handle:function(val, fApi){ return val === 1 }, rule:[...] }
rule
Array
: The component that controls the display{ value:1, rule:[ maker.number('满额包邮','postage_money',0) ] }
append
string
: Set the position of the rule appended inrule
v2.5.0+{ value:1, append:'goods_name' }
prepend
string
: Set the pre-insertion position of the rule inrule
v2.5.0+{ value:1, prepend:'goods_name' }
child
boolean
: Set whether therule
is inserted into thechildren
at the specified position, and is added to thechildren
of the current rule by defaultv2.5.0+{ value:1, prepend:'goods_name', child: true }
notice
handle
priority is greater thanvalue
- All eligible 'controls' will take effect. Before v2.5, only the first one will take effect
# handle
Example
Enter the reason for the bad review when the review is less than 3 stars
# apppend
example v2.5.0+
Insert text 4
when input3
enters the value
# child
Examplev2.5.0+
Append slot when typing append
# Combination examplev2.5.0+
Multiple control
take effect simultaneously