File tree Expand file tree Collapse file tree 2 files changed +9
-54
lines changed Expand file tree Collapse file tree 2 files changed +9
-54
lines changed Original file line number Diff line number Diff line change @@ -138,15 +138,7 @@ Selects legend.
138
138
dispatchAction ({
139
139
type: ' legendSelect' ,
140
140
// legend name
141
- name: string ,
142
-
143
- // The following parameters are supported since v5.6.0
144
- // the id of target legend component
145
- legendId: string ,
146
- // the index of target legend component
147
- legendIndex: number ,
148
- // the name of target legend component
149
- legendName: string
141
+ name: string
150
142
})
151
143
```
152
144
@@ -159,15 +151,7 @@ Unselects the legend.
159
151
dispatchAction ({
160
152
type: ' legendUnSelect' ,
161
153
// legend name
162
- name: string ,
163
-
164
- // The following parameters are supported since v5.6.0
165
- // the id of target legend component
166
- legendId: string ,
167
- // the index of target legend component
168
- legendIndex: number ,
169
- // the name of target legend component
170
- legendName: string
154
+ name: string
171
155
})
172
156
```
173
157
@@ -179,15 +163,7 @@ Toggles legend selecting state.
179
163
dispatchAction ({
180
164
type: ' legendToggleSelect' ,
181
165
// legend name
182
- name: string ,
183
-
184
- // The following parameters are supported since v5.6.0
185
- // the id of target legend component
186
- legendId: string ,
187
- // the index of target legend component
188
- legendIndex: number ,
189
- // the name of target legend component
190
- legendName: string
166
+ name: string
191
167
})
192
168
```
193
169
Original file line number Diff line number Diff line change @@ -137,15 +137,7 @@ dispatchAction({
137
137
dispatchAction ({
138
138
type: ' legendSelect' ,
139
139
// 图例名称
140
- name: string ,
141
-
142
- // 下列参数自 v5.6.0 起开始支持
143
- // 图例组件ID
144
- legendId: string ,
145
- // 图例组件索引
146
- legendIndex: number ,
147
- // 图例组件名称
148
- legendName: string
140
+ name: string
149
141
})
150
142
```
151
143
@@ -158,42 +150,28 @@ dispatchAction({
158
150
dispatchAction ({
159
151
type: ' legendUnSelect' ,
160
152
// 图例名称
161
- name: string ,
162
-
163
- // 下列参数自 v5.6.0 起开始支持
164
- // 图例组件ID
165
- legendId: string ,
166
- // 图例组件索引
167
- legendIndex: number ,
168
- // 图例组件名称
169
- legendName: string
153
+ name: string
170
154
})
171
155
```
172
156
173
157
** EVENT:** [ legendunselected] ( ~events.legendunselected )
174
158
175
159
### legendToggleSelect(Action)
176
160
切换图例的选中状态。
161
+
177
162
``` ts
178
163
dispatchAction ({
179
164
type: ' legendToggleSelect' ,
180
165
// 图例名称
181
- name: string ,
182
-
183
- // 下列参数自 v5.6.0 起开始支持
184
- // 图例组件ID
185
- legendId: string ,
186
- // 图例组件索引
187
- legendIndex: number ,
188
- // 图例组件名称
189
- legendName: string
166
+ name: string
190
167
})
191
168
```
192
169
193
170
** EVENT:** [ legendselectchanged] ( ~events.legendselectchanged )
194
171
195
172
### legendAllSelect(Action)
196
173
将图例全选。
174
+
197
175
``` ts
198
176
dispatchAction ({
199
177
type: ' legendAllSelect' ,
@@ -212,6 +190,7 @@ dispatchAction({
212
190
213
191
### legendInverseSelect(Action)
214
192
将图例反选。
193
+
215
194
``` ts
216
195
dispatchAction ({
217
196
type: ' legendInverseSelect' ,
You can’t perform that action at this time.
0 commit comments