sone-ui-component-3.2.4 2.1.1 → 2.1.3

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": "sone-ui-component-3.2.4",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -322,7 +322,7 @@
322
322
  </el-table-column>
323
323
  <!--只显示序号-->
324
324
  <el-table-column
325
- :width="option.indexWidth"
325
+ :width="option.indexWidth||70"
326
326
  fixed
327
327
  :label="option.indexLabel ? option.indexLabel : '序号'"
328
328
  type="index"
@@ -332,7 +332,7 @@
332
332
  ></el-table-column>
333
333
  <!-- 序号+单选 -->
334
334
  <el-table-column
335
- :width="option.indexRadioWidth"
335
+ :width="option.indexRadioWidth||70"
336
336
  fixed
337
337
  :label="option.indexLabel ? option.indexLabel : '序号'"
338
338
  type="index"
@@ -271,8 +271,10 @@ export default {
271
271
  };
272
272
  },
273
273
  watch: {
274
- filterText(val) {
275
- this.searchType === 'normal' ? this.$refs.tree.filter(val) : this.$emit('searchInput', val)
274
+ filterText(oldVal,newVal) {
275
+ if(oldVal!==newVal){
276
+ this.searchType === 'normal' ? this.changeFilterText() : this.$emit('searchInput', val)
277
+ }
276
278
  },
277
279
  treeData:{
278
280
  immediate:true,
@@ -293,6 +295,10 @@ export default {
293
295
  this.resetHandleData()
294
296
  },
295
297
  methods: {
298
+ changeFilterText(){
299
+ this.$refs.tree.filter(val)
300
+ this.$emit('searchInput', val)
301
+ },
296
302
  handldMore(node){
297
303
  this.$emit('click-more',node.data)
298
304
  },
package/src/index.js CHANGED
@@ -55,7 +55,7 @@ if (typeof window !== 'undefined' && window.Vue) {
55
55
  }
56
56
 
57
57
  export default {
58
- version: '2.1.1',
58
+ version: '2.1.3',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,