|
| 1 | +{{ target: component-thumbnail }} |
| 2 | + |
| 3 | +# thumbnail(Object) |
| 4 | + |
| 5 | +{{ use: partial-version(version = "6.0.0") }} |
| 6 | + |
| 7 | +Thumbnail component. |
| 8 | + |
| 9 | +Currently it only supports [series.graph](~series-graph). |
| 10 | + |
| 11 | +Examples: [graph NPM](${galleryEditorPath}graph-npm&edit=1&reset=1), [graph Webkit dep](${galleryEditorPath}graph-webkit-dep&edit=1&reset=1). |
| 12 | + |
| 13 | + |
| 14 | +{{ use: partial-component-id( |
| 15 | + prefix = "#" |
| 16 | +) }} |
| 17 | + |
| 18 | +## show(boolean) = true |
| 19 | + |
| 20 | +Whether to display the thumbnail component. |
| 21 | + |
| 22 | +{{ use: partial-rect-layout-width-height( |
| 23 | + componentName = "thumbnail", |
| 24 | + defaultLeft = "25%", |
| 25 | + defaultTop = "25%" |
| 26 | +) }} |
| 27 | + |
| 28 | +{{ use: partial-coord-sys( |
| 29 | + version = '6.0.0', |
| 30 | + nonSeriesComponentMainType = "thumbnail", |
| 31 | + coordSysDefault = "'none'", |
| 32 | + matrix = true, |
| 33 | + calendar = true, |
| 34 | + none = true |
| 35 | +) }} |
| 36 | + |
| 37 | +## itemStyle(Object) |
| 38 | + |
| 39 | +{{ use: partial-version(version = "6.0.0") }} |
| 40 | + |
| 41 | +The style of the box and background of the thumbnail. |
| 42 | + |
| 43 | +{{ use: partial-item-style( |
| 44 | + prefix = '##', |
| 45 | + defaultBorderColor = "'#b7b9be'", |
| 46 | + defaultBorderWidth = 2 |
| 47 | +) }} |
| 48 | + |
| 49 | +## windowStyle(Object) |
| 50 | + |
| 51 | +{{ use: partial-version(version = "6.0.0") }} |
| 52 | + |
| 53 | +The style of the window of the thumbnail. |
| 54 | + |
| 55 | +{{ use: partial-item-style( |
| 56 | + prefix = '##', |
| 57 | + defaultColor = "'#9ea0a5'", |
| 58 | + defaultBorderColor = "'#b7b9be'", |
| 59 | + defaultBorderWidth = 1, |
| 60 | + defaultOpacity = 0.3 |
| 61 | +) }} |
| 62 | + |
| 63 | +## seriesIndex(number) |
| 64 | + |
| 65 | +{{ use: partial-version(version = "6.0.0") }} |
| 66 | + |
| 67 | +Specify which series this thumbnail is for. Use the first [series.graph](~series-graph) by default. |
| 68 | + |
| 69 | +## seriesId(string|number) |
| 70 | + |
| 71 | +{{ use: partial-version(version = "6.0.0") }} |
| 72 | + |
| 73 | +Specify which series this thumbnail is for. Use the first [series.graph](~series-graph) by default. |
| 74 | + |
| 75 | + |
| 76 | +{{ /target }} |
0 commit comments