@leevan/jtui 2.0.41 → 2.0.42
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/examples/App.vue +1 -1
- package/examples/tableTest/table-dsj.vue +1 -1
- package/examples/tableTest/table-fzbg.vue +1 -1
- package/examples/tableTest/table-ptbg.vue +18 -11
- package/examples/tableTest/table-tree.vue +1 -1
- package/lib/fonts/{iconfont.1749517658045.e174417d.ttf → iconfont.1761545705692.5cf21f71.ttf} +0 -0
- package/lib/fonts/iconfont.1761545705692.88bca599.woff +0 -0
- package/lib/fonts/iconfont.1761641771104.2a91224d.woff +0 -0
- package/lib/fonts/iconfont.1761641771104.7f5e52de.ttf +0 -0
- package/lib/jtui.common.js +57432 -16735
- package/lib/jtui.css +1 -1
- package/lib/jtui.umd.js +57432 -16735
- package/lib/jtui.umd.min.js +137 -131
- package/package.json +9 -4
- package/packages/index.js +11 -3
- package/packages/jt-table/filter.js +0 -3
- package/packages/jt-table/index.vue +40 -30
- package/lib/fonts/iconfont.1749517658045.5ce34dbb.woff +0 -0
- package/packages/jt-table-pc/JtTablePc.vue +0 -1438
- package/packages/jt-table-pc/comp.js +0 -17
- package/packages/jt-table-pc/components/tableColumn.vue +0 -120
- package/packages/jt-table-pc/components/tabsBtn.vue +0 -68
- package/packages/jt-table-pc/data.js +0 -785
- package/packages/jt-table-pc/examples/FilterComplex.vue +0 -78
- package/packages/jt-table-pc/examples/FilterContent.vue +0 -159
- package/packages/jt-table-pc/examples/FilterExcel.vue +0 -161
- package/packages/jt-table-pc/examples/FilterInput.vue +0 -92
- package/packages/jt-table-pc/filter.js +0 -162
- package/packages/jt-table-pc/importData.js +0 -72
- package/packages/jt-table-pc/index.js +0 -10
- package/yarn.lock +0 -9248
- /package/packages/{jt-table-pc → jt-table}/data2.js +0 -0
package/examples/App.vue
CHANGED
|
@@ -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
|
|
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:
|
|
114
|
-
isRadio:
|
|
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
|
-
|
|
136
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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>
|
package/lib/fonts/{iconfont.1749517658045.e174417d.ttf → iconfont.1761545705692.5cf21f71.ttf}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|