sunmingtao / sample-code

3 stars 4 forks source link

vue-table-2: Why no plus sign in the first column but the example does? #271

Closed sunmingtao closed 3 years ago

sunmingtao commented 3 years ago

My table image

Example at https://jsfiddle.net/matfish2/jfa5t4sm/ image

sunmingtao commented 3 years ago

It works after adding

<style lang="scss">
.VueTables__child-row-toggler {
  width: 16px;
  height: 16px;
  line-height: 16px;
  display: block;
  margin: auto;
  text-align: center;
}

.VueTables__child-row-toggler--closed::before {
  content: "+";
}

.VueTables__child-row-toggler--open::before {
  content: "-";
}
</style>

image