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/Notice.md +106 -0
- package/lib/sone-ui.common.js +80 -74
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +80 -74
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +3 -3
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/table/src/main.vue +2 -2
- package/packages/tree/src/main.vue +8 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -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(
|
|
275
|
-
|
|
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
|
},
|