w-table-vue 1.0.20 → 1.0.21

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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/w-table-vue.umd.js +3 -3
  3. package/dist/w-table-vue.umd.js.map +1 -1
  4. package/docs/examples/app.html +1 -1
  5. package/docs/examples/app.umd.js +2 -2
  6. package/docs/examples/app.umd.js.map +1 -1
  7. package/docs/examples/w-table-edit_default.html +9 -1
  8. package/docs/examples/w-table-edit_editable.html +9 -1
  9. package/docs/examples/w-table-edit_editable_checkId.html +9 -1
  10. package/docs/examples/w-table-edit_editable_checkId_opt.modifyDataWhenSave_save(call cmp. method).html +9 -1
  11. package/docs/examples/w-table-edit_editable_checkId_successMsgFromAddRow_errorMsgFromAddRow.html +9 -1
  12. package/docs/examples/w-table-edit_editable_inforPaddingStyle_menuBackgroundColor.html +9 -1
  13. package/docs/examples/w-table-edit_editable_language_checkId_tooltipAddRow.html +9 -1
  14. package/docs/examples/w-table-edit_editable_language_textLabelDataName_textPlaceholderDataName.html +9 -1
  15. package/docs/examples/w-table-edit_editable_no enableInfor.html +9 -1
  16. package/docs/examples/w-table-edit_editable_no enableMenu.html +9 -1
  17. package/docs/examples/w-table-edit_editable_opt.beforeAddRow.html +9 -1
  18. package/docs/examples/w-table-edit_editable_opt.kpCellFormat_no useCellFormatWhenDownload.html +9 -1
  19. package/docs/examples/w-table-edit_editable_opt.kpConvertKeysWhenUploadData.html +9 -1
  20. package/docs/examples/w-table-edit_editable_opt.optForUploadData.html +9 -1
  21. package/docs/examples/w-table-edit_editable_opt.optForUploadData.uploadMode (append, no popup).html +550 -0
  22. package/docs/examples/w-table-edit_editable_slot btns-right.html +9 -1
  23. package/docs/examples/w-table-edit_fixIds (fix id).html +9 -1
  24. package/docs/examples/w-table-edit_hideIds (hide mappingId).html +9 -1
  25. package/docs/examples/w-table-edit_name_description.html +9 -1
  26. package/docs/examples/w-table-edit_no enableInfor.html +9 -1
  27. package/docs/examples/w-table-edit_no enableMenu.html +9 -1
  28. package/docs/examples/w-table-edit_opt.kpCellFormat.html +9 -1
  29. package/docs/examples/w-table-edit_opt.kpHead.html +9 -1
  30. package/docs/examples/w-table-edit_removeIdsWhenDownload (remove id, mappingId, order, isActive).html +9 -1
  31. package/docs/examples/w-table-edit_slot btns-left.html +9 -1
  32. package/docs/examples/w-table-edit_slot btns-right.html +9 -1
  33. package/docs/examples/w-table-edit_slot cell-render.html +9 -1
  34. package/docs/examples/w-table-edit_slot cell-tooltip.html +9 -1
  35. package/docs/examples/w-table-edit_slot head-render.html +9 -1
  36. package/docs/examples/w-table-edit_slot head-tooltip.html +9 -1
  37. package/docs/examples/w-table-edit_slot infor (name_description).html +9 -1
  38. package/docs/examples/w-table-edit_sortColIds (sort by order).html +9 -1
  39. package/docs/index.html +1 -1
  40. package/docs/module-WTableEdit.html +9 -9
  41. package/package.json +2 -2
  42. package/src/AppZoneWTableEdit.vue +28 -0
  43. package/src/components/WTableEdit.vue +91 -36
@@ -0,0 +1,550 @@
1
+ <!doctype html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-tw">
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
5
+ <meta
6
+ name="viewport"
7
+ content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"
8
+ />
9
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
10
+ <title>w-table-vue</title>
11
+
12
+ <!-- @babel/polyfill -->
13
+ <script
14
+ nomodule
15
+ src="https://cdn.jsdelivr.net/npm/@babel/polyfill/dist/polyfill.min.js"
16
+ ></script>
17
+
18
+ <!-- vue -->
19
+ <script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>
20
+
21
+ <!-- extractHtml已自動添加@babel/polyfill與vue -->
22
+
23
+ <!-- fontawesome -->
24
+ <link
25
+ href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css"
26
+ rel="stylesheet"
27
+ />
28
+
29
+ <!-- mdi, 各組件使用mdi/js會於轉單頁時改為mdi icon, 故需引用mdi/css -->
30
+ <link
31
+ href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css"
32
+ rel="stylesheet"
33
+ />
34
+
35
+ <!-- google, 各組件使用mdi/js故不需引用 -->
36
+ <link
37
+ _href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ _href="https://fonts.googleapis.com/css?family=Material+Icons"
42
+ rel="stylesheet"
43
+ />
44
+
45
+ <!-- w-table-vue -->
46
+ <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.21/dist/w-table-vue.umd.js"></script>
47
+
48
+ <style>
49
+ .item {
50
+ /* 因item位於demolink, 提取各範例html後會刪除demolink, 故得額外補上 */
51
+ border-left: 3px solid #ffba75;
52
+ margin: 5px 5px 8px 0px;
53
+ padding: 3px 3px 5px 10px;
54
+ font-size: 0.9rem;
55
+ display: flex;
56
+ justify-content: flex-start;
57
+ align-items: center;
58
+ }
59
+ .head1 {
60
+ padding: 0px 0px 20px 0px;
61
+ font-size: 2.5rem;
62
+ }
63
+ .bkh {
64
+ /* 寬 */
65
+ padding: 20px;
66
+ }
67
+ @media screen and (max-width: 800px) {
68
+ /* 中 */
69
+ .bkh {
70
+ padding: 10px;
71
+ }
72
+ }
73
+ @media screen and (max-width: 400px) {
74
+ /* 窄 */
75
+ .bkh {
76
+ padding: 5px;
77
+ }
78
+ }
79
+ .bk {
80
+ /* 寬 */
81
+ display: inline-block;
82
+ vertical-align: top;
83
+ padding: 0px 80px 60px 0px;
84
+ }
85
+ @media screen and (max-width: 1000px) {
86
+ /* 中窄 */
87
+ .bk {
88
+ display: block;
89
+ padding: 0px 0px 50px 0px;
90
+ }
91
+ }
92
+ </style>
93
+ </head>
94
+ <body
95
+ style="font-family:'Microsoft JhengHei','Avenir','Helvetica'; padding:0px; margin:0px;"
96
+ >
97
+ <div id="app" class="bkh" style>
98
+ <div class="head1">
99
+ <span
100
+ style="cursor:pointer;"
101
+ title="open for copy link to view component"
102
+ onclick="window.open('//yuda-lyu.github.io/w-table-vue/examples/app.html?cmp='+this.innerText,'_blank')"
103
+ >w-table-edit</span>
104
+ </div>
105
+ <div class="bk">
106
+ <div
107
+ class="item"
108
+ >editable &amp; opt.optForUploadData.uploadMode (append, no popup)</div>
109
+
110
+ <w-table-edit
111
+ style="width:600px; height:400px;"
112
+ :name="WTableEdit.name"
113
+ :description="WTableEdit.description"
114
+ :opt="WTableEdit.opt9"
115
+ :editable="true"
116
+ @success="evSuccess"
117
+ @error="evError"
118
+ ></w-table-edit>
119
+ </div>
120
+ </div>
121
+
122
+ <script>
123
+ //install
124
+ Vue.use(window["w-table-vue"]);
125
+
126
+ //initialize
127
+ new Vue({
128
+ el: "#app",
129
+
130
+ data: function() {
131
+ let keys1 = ["make", "model", "price"];
132
+ let kpHeadFilterType1 = {
133
+ //default: num (num,text,time,set)
134
+ make: "text",
135
+ model: "text",
136
+ price: "num"
137
+ };
138
+ let rows1 = [
139
+ { make: "Toyota", model: "Celica", price: 35000 },
140
+ { make: "Ford", model: "Mondeo", price: 32000 },
141
+ { make: "Porsche", model: "Boxter", price: 72000 },
142
+ { make: "BMW", model: "Sedan", price: 66000 },
143
+ { make: "Nissan", model: "March", price: 61000 },
144
+ { make: "Lexus", model: "RX", price: 56000 },
145
+ { make: "Audi", model: "A6 Allroad", price: 45000 },
146
+ { make: "Mazda", model: "MX-5", price: 36000 },
147
+ { make: "Mercedes-Benz", model: "Cabriolet", price: 86000 },
148
+ { make: "Volkswagen", model: "Beetle", price: 68000 },
149
+ { make: "Honda", model: "City", price: 69000 },
150
+ { make: "Volvo", model: "S60", price: 71000 },
151
+ { make: "Subaru", model: "BRZ", price: 48000 }
152
+ ];
153
+ let keys2 = [
154
+ "id",
155
+ "mappingId",
156
+ "order",
157
+ "make",
158
+ "model",
159
+ "price",
160
+ "isActive"
161
+ ];
162
+ let kpHeadFilterType2 = {
163
+ //default: num (num,text,time,set)
164
+ id: "text",
165
+ mappingId: "text",
166
+ order: "num",
167
+ make: "text",
168
+ model: "text",
169
+ price: "num",
170
+ isActive: "text"
171
+ };
172
+ let rows2 = [
173
+ {
174
+ id: "id-Toyota",
175
+ mappingId: "car_table",
176
+ order: 0,
177
+ make: "Toyota",
178
+ model: "Celica",
179
+ price: 35000,
180
+ isActive: "y"
181
+ },
182
+ {
183
+ id: "id-Ford",
184
+ mappingId: "car_table",
185
+ order: 1,
186
+ make: "Ford",
187
+ model: "Mondeo",
188
+ price: 32000,
189
+ isActive: "y"
190
+ },
191
+ {
192
+ id: "id-Porsche",
193
+ mappingId: "car_table",
194
+ order: 2,
195
+ make: "Porsche",
196
+ model: "Boxter",
197
+ price: 72000,
198
+ isActive: "y"
199
+ },
200
+ {
201
+ id: "id-BMW",
202
+ mappingId: "car_table",
203
+ order: 11,
204
+ make: "BMW",
205
+ model: "Sedan",
206
+ price: 66000,
207
+ isActive: "y"
208
+ },
209
+ {
210
+ id: "id-Nissan",
211
+ mappingId: "car_table",
212
+ order: 8,
213
+ make: "Nissan",
214
+ model: "March",
215
+ price: 61000,
216
+ isActive: "y"
217
+ },
218
+ {
219
+ id: "id-Lexus",
220
+ mappingId: "car_table",
221
+ order: 4,
222
+ make: "Lexus",
223
+ model: "RX",
224
+ price: 56000,
225
+ isActive: "y"
226
+ },
227
+ {
228
+ id: "id-Audi",
229
+ mappingId: "car_table",
230
+ order: 5,
231
+ make: "Audi",
232
+ model: "A6 Allroad",
233
+ price: 45000,
234
+ isActive: "y"
235
+ },
236
+ {
237
+ id: "id-Mazda",
238
+ mappingId: "car_table",
239
+ order: 6,
240
+ make: "Mazda",
241
+ model: "MX-5",
242
+ price: 36000,
243
+ isActive: "y"
244
+ },
245
+ {
246
+ id: "id-Mercedes",
247
+ mappingId: "car_table",
248
+ order: 7,
249
+ make: "Mercedes-Benz",
250
+ model: "Cabriolet",
251
+ price: 86000,
252
+ isActive: "y"
253
+ },
254
+ {
255
+ id: "id-Volkswagen",
256
+ mappingId: "car_table",
257
+ order: 9,
258
+ make: "Volkswagen",
259
+ model: "Beetle",
260
+ price: 68000,
261
+ isActive: "y"
262
+ },
263
+ {
264
+ id: "id-Honda",
265
+ mappingId: "car_table",
266
+ order: 10,
267
+ make: "Honda",
268
+ model: "City",
269
+ price: 69000,
270
+ isActive: "y"
271
+ },
272
+ {
273
+ id: "id-Volvo",
274
+ mappingId: "car_table",
275
+ order: 12,
276
+ make: "Volvo",
277
+ model: "S60",
278
+ price: 71000,
279
+ isActive: "y"
280
+ },
281
+ {
282
+ id: "id-Subaru",
283
+ mappingId: "car_table",
284
+ order: 3,
285
+ make: "Subaru",
286
+ model: "BRZ",
287
+ price: 48000,
288
+ isActive: "y"
289
+ }
290
+ ];
291
+ let keys3 = [
292
+ "id",
293
+ "mappingId",
294
+ "order",
295
+ "make",
296
+ "model",
297
+ "price",
298
+ "isActive"
299
+ ];
300
+ let kpHeadFilterType3 = {
301
+ //default: num (num,text,time,set)
302
+ id: "text",
303
+ mappingId: "text",
304
+ order: "num",
305
+ make: "text",
306
+ model: "text",
307
+ price: "num",
308
+ isActive: "text"
309
+ };
310
+ let rows3 = [
311
+ {
312
+ id: "",
313
+ mappingId: "",
314
+ order: 0,
315
+ make: "Toyota",
316
+ model: "Celica",
317
+ price: 35000
318
+ },
319
+ {
320
+ id: "",
321
+ mappingId: "",
322
+ order: 1,
323
+ make: "Ford",
324
+ model: "Mondeo",
325
+ price: 32000
326
+ },
327
+ {
328
+ id: "",
329
+ mappingId: "",
330
+ order: 2,
331
+ make: "Porsche",
332
+ model: "Boxter",
333
+ price: 72000
334
+ },
335
+ {
336
+ id: "",
337
+ mappingId: "",
338
+ order: 11,
339
+ make: "BMW",
340
+ model: "Sedan",
341
+ price: 66000
342
+ },
343
+ {
344
+ id: "",
345
+ mappingId: "",
346
+ order: 8,
347
+ make: "Nissan",
348
+ model: "March",
349
+ price: 61000
350
+ },
351
+ {
352
+ id: "",
353
+ mappingId: "",
354
+ order: 4,
355
+ make: "Lexus",
356
+ model: "RX",
357
+ price: 56000
358
+ },
359
+ {
360
+ id: "",
361
+ mappingId: "",
362
+ order: 5,
363
+ make: "Audi",
364
+ model: "A6 Allroad",
365
+ price: 45000
366
+ },
367
+ {
368
+ id: "",
369
+ mappingId: "",
370
+ order: 6,
371
+ make: "Mazda",
372
+ model: "MX-5",
373
+ price: 36000
374
+ },
375
+ {
376
+ id: "",
377
+ mappingId: "",
378
+ order: 7,
379
+ make: "Mercedes-Benz",
380
+ model: "Cabriolet",
381
+ price: 86000
382
+ },
383
+ {
384
+ id: "",
385
+ mappingId: "",
386
+ order: 9,
387
+ make: "Volkswagen",
388
+ model: "Beetle",
389
+ price: 68000
390
+ },
391
+ {
392
+ id: "",
393
+ mappingId: "",
394
+ order: 10,
395
+ make: "Honda",
396
+ model: "City",
397
+ price: 69000
398
+ },
399
+ {
400
+ id: "",
401
+ mappingId: "",
402
+ order: 12,
403
+ make: "Volvo",
404
+ model: "S60",
405
+ price: 71000
406
+ },
407
+ {
408
+ id: "",
409
+ mappingId: "",
410
+ order: 3,
411
+ make: "Subaru",
412
+ model: "BRZ",
413
+ price: 48000
414
+ }
415
+ ];
416
+ return {
417
+ WTableEdit: {
418
+ name: "Car Price",
419
+ description:
420
+ "The relationship between different car types and prices",
421
+ opt1: {
422
+ keys: keys1,
423
+ kpHeadFilterType: kpHeadFilterType1,
424
+ rows: rows1
425
+ },
426
+ opt2: {
427
+ keys: keys2,
428
+ kpHeadFilterType: kpHeadFilterType2,
429
+ rows: rows2
430
+ },
431
+ opt3: {
432
+ keys: keys2,
433
+ kpHeadFilterType: kpHeadFilterType2,
434
+ rows: rows2,
435
+ kpHead: {
436
+ id: "主鍵",
437
+ mappingId: "所屬主鍵",
438
+ order: "順序",
439
+ make: "Ecirp",
440
+ model: "Ledom",
441
+ price: "Ecirp",
442
+ isActive: "有效"
443
+ }
444
+ },
445
+ opt4: {
446
+ keys: keys2,
447
+ kpHeadFilterType: kpHeadFilterType2,
448
+ rows: rows2,
449
+ beforeAddRow: function(newRow) {
450
+ newRow.id = "id-random-" + Math.random();
451
+ return newRow;
452
+ }
453
+ },
454
+ opt5: {
455
+ keys: keys2,
456
+ kpHeadFilterType: kpHeadFilterType2,
457
+ rows: rows2,
458
+ kpConvertKeysWhenUploadData: {
459
+ makeTemp: "make",
460
+ modelTemp: "model",
461
+ priceTemp: "price"
462
+ }
463
+ },
464
+ opt6: {
465
+ keys: keys2,
466
+ rows: rows2,
467
+ optForUploadData: {
468
+ //input for uploadData in w-aggrid-vue, https://github.com/yuda-lyu/w-aggrid-vue
469
+ beforeUpload: null,
470
+ parseSheetInd: 1 //取第2個sheet, 預設0(取第1個sheet)
471
+ }
472
+ },
473
+ opt7: {
474
+ keys: keys3,
475
+ kpHeadFilterType: kpHeadFilterType3,
476
+ rows: rows3,
477
+ modifyDataWhenSave: function(rows) {
478
+ console.log("modifyDataWhenSave", rows);
479
+ for (let k = 0; k < rows.length; k++) {
480
+ let v = rows[k];
481
+ v.id = "id-random-" + Math.random();
482
+ v.mappingId = "auto_car_table";
483
+ v.order = k;
484
+ v.isActive = "y";
485
+ }
486
+ return rows;
487
+ }
488
+ },
489
+ opt8: {
490
+ keys: keys1,
491
+ kpHeadFilterType: kpHeadFilterType1,
492
+ rows: rows1,
493
+ kpCellFormat: {
494
+ //格式化僅影響顯示與下載, 排序、過濾、編輯與save回傳之rows仍為原值
495
+ make: function(value, key, row, params) {
496
+ //空值(null、undefined、空字串)會原樣傳入, 編輯模式新增列之各欄為空字串, 回傳null代表不格式化維持原值
497
+ if (value === null || value === undefined || value === "") {
498
+ return null;
499
+ }
500
+ return String(value).toUpperCase();
501
+ },
502
+ price: function(value, key, row, params) {
503
+ //空值不可直接Number(), 否則''與null會變成0.00
504
+ if (value === null || value === undefined || value === "") {
505
+ return null;
506
+ }
507
+ return Number(value).toLocaleString("en-US", {
508
+ minimumFractionDigits: 2,
509
+ maximumFractionDigits: 2
510
+ });
511
+ }
512
+ }
513
+ },
514
+ opt9: {
515
+ keys: keys1,
516
+ kpHeadFilterType: kpHeadFilterType1,
517
+ rows: rows1,
518
+ optForUploadData: {
519
+ uploadMode: "append" //預先指定上傳模式, 點擊上傳按鈕時不顯示模式選擇彈窗, 直接開啟選檔視窗並附加於表格數據之後
520
+ }
521
+ }
522
+ },
523
+ actions: []
524
+ };
525
+ },
526
+ mounted: function() {
527
+ return {};
528
+ },
529
+ computed: {},
530
+ methods: {
531
+ evSuccess: function(msg) {
532
+ console.log("evSuccess:", msg);
533
+ },
534
+ evError: function(msg) {
535
+ console.log("evError:", msg);
536
+ },
537
+ saveData: function() {
538
+ let data = this.$refs.table.save();
539
+ document.querySelector("#disp-save-data").innerHTML = JSON.stringify(
540
+ data,
541
+ null,
542
+ 2
543
+ );
544
+ console.log("saveData:", data);
545
+ }
546
+ }
547
+ });
548
+ </script>
549
+ </body>
550
+ </html>
@@ -43,7 +43,7 @@
43
43
  />
44
44
 
45
45
  <!-- w-table-vue -->
46
- <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.20/dist/w-table-vue.umd.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.21/dist/w-table-vue.umd.js"></script>
47
47
 
48
48
  <style>
49
49
  .item {
@@ -532,6 +532,14 @@
532
532
  });
533
533
  }
534
534
  }
535
+ },
536
+ opt9: {
537
+ keys: keys1,
538
+ kpHeadFilterType: kpHeadFilterType1,
539
+ rows: rows1,
540
+ optForUploadData: {
541
+ uploadMode: "append" //預先指定上傳模式, 點擊上傳按鈕時不顯示模式選擇彈窗, 直接開啟選檔視窗並附加於表格數據之後
542
+ }
535
543
  }
536
544
  },
537
545
  actions: []
@@ -43,7 +43,7 @@
43
43
  />
44
44
 
45
45
  <!-- w-table-vue -->
46
- <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.20/dist/w-table-vue.umd.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.21/dist/w-table-vue.umd.js"></script>
47
47
 
48
48
  <style>
49
49
  .item {
@@ -509,6 +509,14 @@
509
509
  });
510
510
  }
511
511
  }
512
+ },
513
+ opt9: {
514
+ keys: keys1,
515
+ kpHeadFilterType: kpHeadFilterType1,
516
+ rows: rows1,
517
+ optForUploadData: {
518
+ uploadMode: "append" //預先指定上傳模式, 點擊上傳按鈕時不顯示模式選擇彈窗, 直接開啟選檔視窗並附加於表格數據之後
519
+ }
512
520
  }
513
521
  },
514
522
  actions: []
@@ -43,7 +43,7 @@
43
43
  />
44
44
 
45
45
  <!-- w-table-vue -->
46
- <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.20/dist/w-table-vue.umd.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.21/dist/w-table-vue.umd.js"></script>
47
47
 
48
48
  <style>
49
49
  .item {
@@ -509,6 +509,14 @@
509
509
  });
510
510
  }
511
511
  }
512
+ },
513
+ opt9: {
514
+ keys: keys1,
515
+ kpHeadFilterType: kpHeadFilterType1,
516
+ rows: rows1,
517
+ optForUploadData: {
518
+ uploadMode: "append" //預先指定上傳模式, 點擊上傳按鈕時不顯示模式選擇彈窗, 直接開啟選檔視窗並附加於表格數據之後
519
+ }
512
520
  }
513
521
  },
514
522
  actions: []
@@ -43,7 +43,7 @@
43
43
  />
44
44
 
45
45
  <!-- w-table-vue -->
46
- <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.20/dist/w-table-vue.umd.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.21/dist/w-table-vue.umd.js"></script>
47
47
 
48
48
  <style>
49
49
  .item {
@@ -507,6 +507,14 @@
507
507
  });
508
508
  }
509
509
  }
510
+ },
511
+ opt9: {
512
+ keys: keys1,
513
+ kpHeadFilterType: kpHeadFilterType1,
514
+ rows: rows1,
515
+ optForUploadData: {
516
+ uploadMode: "append" //預先指定上傳模式, 點擊上傳按鈕時不顯示模式選擇彈窗, 直接開啟選檔視窗並附加於表格數據之後
517
+ }
510
518
  }
511
519
  },
512
520
  actions: []
@@ -43,7 +43,7 @@
43
43
  />
44
44
 
45
45
  <!-- w-table-vue -->
46
- <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.20/dist/w-table-vue.umd.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.21/dist/w-table-vue.umd.js"></script>
47
47
 
48
48
  <style>
49
49
  .item {
@@ -508,6 +508,14 @@
508
508
  });
509
509
  }
510
510
  }
511
+ },
512
+ opt9: {
513
+ keys: keys1,
514
+ kpHeadFilterType: kpHeadFilterType1,
515
+ rows: rows1,
516
+ optForUploadData: {
517
+ uploadMode: "append" //預先指定上傳模式, 點擊上傳按鈕時不顯示模式選擇彈窗, 直接開啟選檔視窗並附加於表格數據之後
518
+ }
511
519
  }
512
520
  },
513
521
  actions: []
@@ -43,7 +43,7 @@
43
43
  />
44
44
 
45
45
  <!-- w-table-vue -->
46
- <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.20/dist/w-table-vue.umd.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.21/dist/w-table-vue.umd.js"></script>
47
47
 
48
48
  <style>
49
49
  .item {
@@ -508,6 +508,14 @@
508
508
  });
509
509
  }
510
510
  }
511
+ },
512
+ opt9: {
513
+ keys: keys1,
514
+ kpHeadFilterType: kpHeadFilterType1,
515
+ rows: rows1,
516
+ optForUploadData: {
517
+ uploadMode: "append" //預先指定上傳模式, 點擊上傳按鈕時不顯示模式選擇彈窗, 直接開啟選檔視窗並附加於表格數據之後
518
+ }
511
519
  }
512
520
  },
513
521
  actions: []