bri-components 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -9,7 +9,7 @@
9
9
  customIcon: 'bico-Cascadetable'
10
10
  }]"></dsh-icons>
11
11
  <span class="cascaderTable-unit-text">
12
- {{ curVal && curVal.tree.length }}
12
+ {{ showVal }}
13
13
  </span>
14
14
  </span>
15
15
 
@@ -131,6 +131,10 @@
131
131
  showSlotClose: false,
132
132
  closable: true
133
133
  };
134
+ },
135
+
136
+ showVal () {
137
+ return `${this.curVal ? this.$getTreeLeafTotal(this.curVal.tree) : 0} 行`;
134
138
  }
135
139
  },
136
140
  created () {},