@leevan/jtui 2.0.40 → 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.
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 +57463 -16765
  11. package/lib/jtui.css +1 -1
  12. package/lib/jtui.umd.js +57463 -16765
  13. package/lib/jtui.umd.min.js +137 -131
  14. package/package.json +9 -4
  15. package/packages/Search-Type/index.vue +3 -2
  16. package/packages/index.js +11 -3
  17. package/packages/jt-table/filter.js +0 -3
  18. package/packages/jt-table/index.vue +40 -30
  19. package/lib/fonts/iconfont.1749517658045.5ce34dbb.woff +0 -0
  20. package/packages/jt-table-pc/JtTablePc.vue +0 -1438
  21. package/packages/jt-table-pc/comp.js +0 -17
  22. package/packages/jt-table-pc/components/tableColumn.vue +0 -120
  23. package/packages/jt-table-pc/components/tabsBtn.vue +0 -68
  24. package/packages/jt-table-pc/data.js +0 -785
  25. package/packages/jt-table-pc/examples/FilterComplex.vue +0 -78
  26. package/packages/jt-table-pc/examples/FilterContent.vue +0 -159
  27. package/packages/jt-table-pc/examples/FilterExcel.vue +0 -161
  28. package/packages/jt-table-pc/examples/FilterInput.vue +0 -92
  29. package/packages/jt-table-pc/filter.js +0 -162
  30. package/packages/jt-table-pc/importData.js +0 -72
  31. package/packages/jt-table-pc/index.js +0 -10
  32. /package/packages/{jt-table-pc → jt-table}/data2.js +0 -0
@@ -1,72 +0,0 @@
1
- import XLSX from 'xlsx'
2
-
3
- export function importData(file,callBack) {
4
-
5
- var rABS = false; //是否将文件读取为二进制字符串
6
-
7
- var f = file;
8
-
9
- var reader = new FileReader();
10
-
11
- //if (!FileReader.prototype.readAsBinaryString) {
12
- var outdata;
13
- FileReader.prototype.readAsBinaryString = function(f) {
14
-
15
- var binary = "";
16
-
17
- var rABS = false; //是否将文件读取为二进制字符串
18
-
19
- var pt = this;
20
-
21
- var wb; //读取完成的数据
22
-
23
- var reader = new FileReader();
24
-
25
- reader.onload = function(e) {
26
-
27
- var bytes = new Uint8Array(reader.result);
28
-
29
- var length = bytes.byteLength;
30
-
31
- for(var i = 0; i < length; i++) {
32
-
33
- binary += String.fromCharCode(bytes[i]);
34
-
35
- }
36
-
37
- //var XLSX = require('xlsx');
38
-
39
- if(rABS) {
40
-
41
- wb = XLSX.read(btoa(fixdata(binary)), { //手动转化
42
- type: 'base64'
43
- });
44
-
45
- } else {
46
-
47
- wb = XLSX.read(binary, {
48
-
49
- type: 'binary'
50
-
51
- });
52
-
53
- }
54
- // outdata就是你想要的东西 excel导入的数据
55
- outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
56
- // excel 数据再处理
57
- callBack(outdata);
58
- }
59
- reader.readAsArrayBuffer(f);
60
-
61
- }
62
-
63
- if(rABS) {
64
-
65
- reader.readAsArrayBuffer(f);
66
-
67
- } else {
68
-
69
- reader.readAsBinaryString(f);
70
-
71
- }
72
- }
@@ -1,10 +0,0 @@
1
- // 导入组件,组件必须声明 name
2
- import JtTablePc from './JtTablePc.vue';
3
-
4
- // 为组件提供 install 安装方法,供按需引入
5
- JtTablePc.install = function (Vue) {
6
- Vue.component(JtTablePc.name, JtTablePc)
7
- }
8
-
9
- // 导出组件
10
- export default JtTablePc
File without changes