@leevan/jtui 2.0.41 → 2.0.43

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.
Files changed (32) hide show
  1. package/examples/App.vue +1 -1
  2. package/examples/tableTest/table-dsj.vue +1 -1
  3. package/examples/tableTest/table-fzbg.vue +1 -1
  4. package/examples/tableTest/table-ptbg.vue +18 -11
  5. package/examples/tableTest/table-tree.vue +1 -1
  6. package/lib/fonts/{iconfont.1749517658045.e174417d.ttf → iconfont.1761545705692.5cf21f71.ttf} +0 -0
  7. package/lib/fonts/iconfont.1761545705692.88bca599.woff +0 -0
  8. package/lib/fonts/iconfont.1761641771104.2a91224d.woff +0 -0
  9. package/lib/fonts/iconfont.1761641771104.7f5e52de.ttf +0 -0
  10. package/lib/jtui.common.js +57432 -16735
  11. package/lib/jtui.css +1 -1
  12. package/lib/jtui.umd.js +57432 -16735
  13. package/lib/jtui.umd.min.js +137 -131
  14. package/package.json +9 -4
  15. package/packages/index.js +11 -3
  16. package/packages/jt-table/filter.js +0 -3
  17. package/packages/jt-table/index.vue +40 -30
  18. package/lib/fonts/iconfont.1749517658045.5ce34dbb.woff +0 -0
  19. package/packages/jt-table-pc/JtTablePc.vue +0 -1438
  20. package/packages/jt-table-pc/comp.js +0 -17
  21. package/packages/jt-table-pc/components/tableColumn.vue +0 -120
  22. package/packages/jt-table-pc/components/tabsBtn.vue +0 -68
  23. package/packages/jt-table-pc/data.js +0 -785
  24. package/packages/jt-table-pc/examples/FilterComplex.vue +0 -78
  25. package/packages/jt-table-pc/examples/FilterContent.vue +0 -159
  26. package/packages/jt-table-pc/examples/FilterExcel.vue +0 -161
  27. package/packages/jt-table-pc/examples/FilterInput.vue +0 -92
  28. package/packages/jt-table-pc/filter.js +0 -162
  29. package/packages/jt-table-pc/importData.js +0 -72
  30. package/packages/jt-table-pc/index.js +0 -10
  31. package/yarn.lock +0 -9248
  32. /package/packages/{jt-table-pc → jt-table}/data2.js +0 -0
package/examples/App.vue CHANGED
@@ -83,7 +83,7 @@ export default {
83
83
  idx:'search-type-page'
84
84
  }
85
85
  ],
86
- menuIdx:'search-type-page'
86
+ menuIdx:'table-ptbg'
87
87
  }
88
88
  },
89
89
  methods: {
@@ -85,7 +85,7 @@
85
85
  </template>
86
86
 
87
87
  <script>
88
- import { data23 , data13 } from '../../packages/jt-table-pc/data2';
88
+ import { data23 , data13 } from '../../packages/jt-table/data2';
89
89
  export default {
90
90
  data(){
91
91
  return {
@@ -69,7 +69,7 @@
69
69
  </template>
70
70
 
71
71
  <script>
72
- import { data23 , data13 } from '../../packages/jt-table-pc/data2';
72
+ import { data23 , data13 } from '../../packages/jt-table/data2';
73
73
  export default {
74
74
  data(){
75
75
  return {
@@ -6,6 +6,7 @@
6
6
  <el-button size="mini" @click="importData">导入数据</el-button>
7
7
  <el-button size="mini" @click="clearData">清空数据</el-button>
8
8
  <el-button size="mini" @click="radioSelect">单选选中</el-button>
9
+ <el-button size="mini" @click="checkboxSelect">多选选中</el-button>
9
10
  <el-switch
10
11
  v-model="isTool"
11
12
  active-color="#13ce66"
@@ -100,7 +101,7 @@
100
101
  </template>
101
102
 
102
103
  <script>
103
- import { data23 , data13,data7 ,data5} from '../../packages/jt-table-pc/data2';
104
+ import { data23 , data13,data7 ,data5} from '../../packages/jt-table/data2';
104
105
  import { data1 ,data0} from '../data2';
105
106
  export default {
106
107
  data(){
@@ -110,8 +111,8 @@ import { data1 ,data0} from '../data2';
110
111
  tableData:[{retjson:{},DataArray:[],Result:""}],
111
112
  footConfig:{filed:['count']},
112
113
  isFooter:true,
113
- isCheckbox:false,
114
- isRadio:true,
114
+ isCheckbox:true,
115
+ isRadio:false,
115
116
  isWrap:false,
116
117
  isSeq:true,
117
118
  loading:false,
@@ -132,16 +133,17 @@ import { data1 ,data0} from '../data2';
132
133
  }
133
134
  },
134
135
  created(){
135
- // const res = data23();
136
- // console.log(res)
137
- // this.tableData[0].retjson = res[0].retjson;
136
+ const res = data5();
137
+ this.tableData[0].retjson = res[0].retjson;
138
138
  },
139
139
  mounted(){
140
- // const res = data23();
141
- // let timeId = setTimeout(()=>{
142
- // this.$refs.tablePtbg.loadData(res[0].DataArray);
143
- // clearTimeout(timeId);
144
- // },0)
140
+ this.loading = true;
141
+ const res = data5();
142
+ let timeId = setTimeout(()=>{
143
+ this.$refs.tablePtbg.loadData(res[0].DataArray);
144
+ clearTimeout(timeId);
145
+ this.loading = false
146
+ },2000)
145
147
  },
146
148
  methods:{
147
149
  //导出数据
@@ -238,7 +240,12 @@ import { data1 ,data0} from '../data2';
238
240
  radioSelect(){
239
241
  const fullData = this.$refs.tablePtbg.jtTable().getTableData().fullData
240
242
  this.$refs.tablePtbg.setRadioRow(fullData[Math.floor(Math.random() * 10) + 1])
243
+ },
244
+ checkboxSelect(){
245
+ const fullData = this.$refs.tablePtbg.jtTable().getTableData().fullData
246
+ this.$refs.tablePtbg.setCheckboxRow(fullData[0], true);
241
247
  }
248
+
242
249
  }
243
250
  }
244
251
  </script>
@@ -24,7 +24,7 @@
24
24
  </template>
25
25
 
26
26
  <script>
27
- import { data4 } from '../../packages/jt-table-pc/data2';
27
+ import { data4 } from '../../packages/jt-table/data2';
28
28
  export default {
29
29
  async created(){
30
30
  // const { data } = await this.$axios.post('/api/treetest/ROOT');