Skip to content

Commit fd6756f

Browse files
restore Vue element component examples
1 parent 71929c1 commit fd6756f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/examples/vue_component_examples.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ browsable(
3737
#### Element examples ####################################
3838
element <- htmlDependency(
3939
name = "element",
40-
version = "1.0.3",
41-
src = c(href="https://unpkg.com/element-ui/lib"),
40+
version = "1.4.13",
41+
src = c(href="https://unpkg.com/element-ui@1.4.13/lib/"),
4242
script = "index.js",
4343
stylesheet = "theme-default/index.css"
4444
)
@@ -262,7 +262,7 @@ function(el, x) {
262262
var nodes = d3.select(el).selectAll('g.node');
263263
debugger;
264264
nodes.each(function(d) {
265-
if(checkedNodes.indexOf(d.name) >= 0){
265+
if(checkedNodes.indexOf(d.data.name) > -1){
266266
d3.select(this).select('circle').style('fill', 'gray');
267267
} else {
268268
d3.select(this).select('circle').style('fill', 'rgb(255,255,255)');

0 commit comments

Comments
 (0)