cy-element-ui 1.1.5 → 1.1.7

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 (240) hide show
  1. package/lib/alert.js +420 -0
  2. package/lib/aside.js +277 -0
  3. package/lib/autocomplete.js +952 -0
  4. package/lib/avatar.js +363 -0
  5. package/lib/backtop.js +404 -0
  6. package/lib/badge.js +334 -0
  7. package/lib/breadcrumb-item.js +322 -0
  8. package/lib/breadcrumb.js +293 -0
  9. package/lib/button-group.js +262 -0
  10. package/lib/button.js +357 -0
  11. package/lib/calendar.js +933 -0
  12. package/lib/card.js +297 -0
  13. package/lib/carousel-item.js +434 -0
  14. package/lib/carousel.js +707 -0
  15. package/lib/cascader-panel.js +1558 -0
  16. package/lib/cascader.js +1439 -0
  17. package/lib/checkbox-button.js +583 -0
  18. package/lib/checkbox-group.js +313 -0
  19. package/lib/checkbox.js +627 -0
  20. package/lib/col.js +177 -0
  21. package/lib/collapse-item.js +497 -0
  22. package/lib/collapse.js +329 -0
  23. package/lib/color-picker.js +1943 -0
  24. package/lib/container.js +288 -0
  25. package/lib/date-picker.js +6336 -0
  26. package/lib/descriptions-item.js +140 -0
  27. package/lib/descriptions.js +457 -0
  28. package/lib/dialog.js +598 -0
  29. package/lib/directives/mousewheel.js +26 -0
  30. package/lib/directives/repeat-click.js +33 -0
  31. package/lib/divider.js +313 -0
  32. package/lib/drawer.js +592 -0
  33. package/lib/dropdown-item.js +316 -0
  34. package/lib/dropdown-menu.js +351 -0
  35. package/lib/dropdown.js +643 -0
  36. package/lib/element-ui.common.js +44659 -0
  37. package/lib/empty.js +730 -0
  38. package/lib/footer.js +277 -0
  39. package/lib/form-item.js +826 -0
  40. package/lib/form.js +466 -0
  41. package/lib/header.js +277 -0
  42. package/lib/icon.js +265 -0
  43. package/lib/image.js +1138 -0
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +301 -0
  46. package/lib/input-number.js +757 -0
  47. package/lib/input.js +998 -0
  48. package/lib/link.js +332 -0
  49. package/lib/loading.js +631 -0
  50. package/lib/locale/format.js +56 -0
  51. package/lib/locale/index.js +63 -0
  52. package/lib/locale/lang/en.js +126 -0
  53. package/lib/locale/lang/zh-CN.js +126 -0
  54. package/lib/locale/lang/zh-TW.js +126 -0
  55. package/lib/main.js +264 -0
  56. package/lib/menu-item-group.js +308 -0
  57. package/lib/menu-item.js +491 -0
  58. package/lib/menu.js +865 -0
  59. package/lib/message-box.js +1192 -0
  60. package/lib/message.js +548 -0
  61. package/lib/mixins/emitter.js +36 -0
  62. package/lib/mixins/focus.js +15 -0
  63. package/lib/mixins/locale.js +17 -0
  64. package/lib/mixins/migrating.js +69 -0
  65. package/lib/notification.js +615 -0
  66. package/lib/option-group.js +344 -0
  67. package/lib/option.js +474 -0
  68. package/lib/page-header.js +319 -0
  69. package/lib/pagination.js +950 -0
  70. package/lib/popconfirm.js +457 -0
  71. package/lib/popover.js +617 -0
  72. package/lib/progress.js +595 -0
  73. package/lib/radio-button.js +463 -0
  74. package/lib/radio-group.js +391 -0
  75. package/lib/radio.js +497 -0
  76. package/lib/rate.js +670 -0
  77. package/lib/result.js +578 -0
  78. package/lib/row.js +149 -0
  79. package/lib/scrollbar.js +423 -0
  80. package/lib/select.js +2167 -0
  81. package/lib/skeleton-item.js +342 -0
  82. package/lib/skeleton.js +372 -0
  83. package/lib/slider.js +1199 -0
  84. package/lib/spinner.js +301 -0
  85. package/lib/statistic.js +533 -0
  86. package/lib/step.js +522 -0
  87. package/lib/steps.js +342 -0
  88. package/lib/submenu.js +701 -0
  89. package/lib/switch.js +554 -0
  90. package/lib/tab-pane.js +332 -0
  91. package/lib/tabDialog.js +1184 -0
  92. package/lib/table-column.js +952 -0
  93. package/lib/table.js +5011 -0
  94. package/lib/tabs.js +920 -0
  95. package/lib/tag.js +304 -0
  96. package/lib/theme-chalk/alert.css +1 -0
  97. package/lib/theme-chalk/aside.css +1 -0
  98. package/lib/theme-chalk/autocomplete.css +1 -0
  99. package/lib/theme-chalk/avatar.css +1 -0
  100. package/lib/theme-chalk/backtop.css +1 -0
  101. package/lib/theme-chalk/badge.css +1 -0
  102. package/lib/theme-chalk/base.css +1 -0
  103. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  104. package/lib/theme-chalk/breadcrumb.css +1 -0
  105. package/lib/theme-chalk/button-group.css +0 -0
  106. package/lib/theme-chalk/button.css +1 -0
  107. package/lib/theme-chalk/calendar.css +1 -0
  108. package/lib/theme-chalk/card.css +1 -0
  109. package/lib/theme-chalk/carousel-item.css +1 -0
  110. package/lib/theme-chalk/carousel.css +1 -0
  111. package/lib/theme-chalk/cascader-panel.css +1 -0
  112. package/lib/theme-chalk/cascader.css +1 -0
  113. package/lib/theme-chalk/checkbox-button.css +0 -0
  114. package/lib/theme-chalk/checkbox-group.css +0 -0
  115. package/lib/theme-chalk/checkbox.css +1 -0
  116. package/lib/theme-chalk/col.css +1 -0
  117. package/lib/theme-chalk/collapse-item.css +0 -0
  118. package/lib/theme-chalk/collapse.css +1 -0
  119. package/lib/theme-chalk/color-picker.css +1 -0
  120. package/lib/theme-chalk/container.css +1 -0
  121. package/lib/theme-chalk/date-picker.css +1 -0
  122. package/lib/theme-chalk/descriptions-item.css +1 -0
  123. package/lib/theme-chalk/descriptions.css +1 -0
  124. package/lib/theme-chalk/dialog.css +1 -0
  125. package/lib/theme-chalk/display.css +1 -0
  126. package/lib/theme-chalk/divider.css +1 -0
  127. package/lib/theme-chalk/drawer.css +1 -0
  128. package/lib/theme-chalk/dropdown-item.css +0 -0
  129. package/lib/theme-chalk/dropdown-menu.css +0 -0
  130. package/lib/theme-chalk/dropdown.css +1 -0
  131. package/lib/theme-chalk/empty.css +1 -0
  132. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  133. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  134. package/lib/theme-chalk/footer.css +1 -0
  135. package/lib/theme-chalk/form-item.css +0 -0
  136. package/lib/theme-chalk/form.css +1 -0
  137. package/lib/theme-chalk/header.css +1 -0
  138. package/lib/theme-chalk/icon.css +1 -0
  139. package/lib/theme-chalk/image.css +1 -0
  140. package/lib/theme-chalk/index.css +1 -0
  141. package/lib/theme-chalk/infinite-scroll.css +0 -0
  142. package/lib/theme-chalk/infiniteScroll.css +0 -0
  143. package/lib/theme-chalk/input-number.css +1 -0
  144. package/lib/theme-chalk/input.css +1 -0
  145. package/lib/theme-chalk/link.css +1 -0
  146. package/lib/theme-chalk/loading.css +1 -0
  147. package/lib/theme-chalk/main.css +1 -0
  148. package/lib/theme-chalk/menu-item-group.css +0 -0
  149. package/lib/theme-chalk/menu-item.css +0 -0
  150. package/lib/theme-chalk/menu.css +1 -0
  151. package/lib/theme-chalk/message-box.css +1 -0
  152. package/lib/theme-chalk/message.css +1 -0
  153. package/lib/theme-chalk/notification.css +1 -0
  154. package/lib/theme-chalk/option-group.css +1 -0
  155. package/lib/theme-chalk/option.css +1 -0
  156. package/lib/theme-chalk/page-header.css +1 -0
  157. package/lib/theme-chalk/pagination.css +1 -0
  158. package/lib/theme-chalk/popconfirm.css +1 -0
  159. package/lib/theme-chalk/popover.css +1 -0
  160. package/lib/theme-chalk/popper.css +1 -0
  161. package/lib/theme-chalk/progress.css +1 -0
  162. package/lib/theme-chalk/radio-button.css +1 -0
  163. package/lib/theme-chalk/radio-group.css +1 -0
  164. package/lib/theme-chalk/radio.css +1 -0
  165. package/lib/theme-chalk/rate.css +1 -0
  166. package/lib/theme-chalk/reset.css +1 -0
  167. package/lib/theme-chalk/result.css +1 -0
  168. package/lib/theme-chalk/row.css +1 -0
  169. package/lib/theme-chalk/scrollbar.css +1 -0
  170. package/lib/theme-chalk/select-dropdown.css +1 -0
  171. package/lib/theme-chalk/select.css +1 -0
  172. package/lib/theme-chalk/skeleton-item.css +1 -0
  173. package/lib/theme-chalk/skeleton.css +1 -0
  174. package/lib/theme-chalk/slider.css +1 -0
  175. package/lib/theme-chalk/spinner.css +1 -0
  176. package/lib/theme-chalk/statistic.css +1 -0
  177. package/lib/theme-chalk/step.css +1 -0
  178. package/lib/theme-chalk/steps.css +1 -0
  179. package/lib/theme-chalk/submenu.css +0 -0
  180. package/lib/theme-chalk/switch.css +1 -0
  181. package/lib/theme-chalk/tab-pane.css +0 -0
  182. package/lib/theme-chalk/tabDialog.css +1 -0
  183. package/lib/theme-chalk/table-column.css +1 -0
  184. package/lib/theme-chalk/table.css +1 -0
  185. package/lib/theme-chalk/tabs.css +1 -0
  186. package/lib/theme-chalk/tag.css +1 -0
  187. package/lib/theme-chalk/time-picker.css +1 -0
  188. package/lib/theme-chalk/time-select.css +1 -0
  189. package/lib/theme-chalk/timeline-item.css +1 -0
  190. package/lib/theme-chalk/timeline.css +1 -0
  191. package/lib/theme-chalk/tooltip.css +1 -0
  192. package/lib/theme-chalk/transfer.css +1 -0
  193. package/lib/theme-chalk/tree.css +1 -0
  194. package/lib/theme-chalk/treeSelect.css +1 -0
  195. package/lib/theme-chalk/upload.css +1 -0
  196. package/lib/time-picker.js +2967 -0
  197. package/lib/time-select.js +1765 -0
  198. package/lib/timeline-item.js +371 -0
  199. package/lib/timeline.js +275 -0
  200. package/lib/tooltip.js +425 -0
  201. package/lib/transfer.js +1102 -0
  202. package/lib/transitions/collapse-transition.js +91 -0
  203. package/lib/tree.js +2263 -0
  204. package/lib/treeSelect.js +746 -0
  205. package/lib/umd/locale/en.js +142 -0
  206. package/lib/umd/locale/zh-CN.js +142 -0
  207. package/lib/umd/locale/zh-TW.js +142 -0
  208. package/lib/upload.js +1390 -0
  209. package/lib/utils/after-leave.js +35 -0
  210. package/lib/utils/aria-dialog.js +104 -0
  211. package/lib/utils/aria-utils.js +126 -0
  212. package/lib/utils/clickoutside.js +79 -0
  213. package/lib/utils/date-util.js +310 -0
  214. package/lib/utils/date.js +369 -0
  215. package/lib/utils/dom.js +234 -0
  216. package/lib/utils/lodash.js +9421 -0
  217. package/lib/utils/menu/aria-menubar.js +24 -0
  218. package/lib/utils/menu/aria-menuitem.js +62 -0
  219. package/lib/utils/menu/aria-submenu.js +69 -0
  220. package/lib/utils/merge.js +21 -0
  221. package/lib/utils/popper.js +1261 -0
  222. package/lib/utils/popup/index.js +233 -0
  223. package/lib/utils/popup/popup-manager.js +205 -0
  224. package/lib/utils/resize-event.js +59 -0
  225. package/lib/utils/scroll-into-view.js +38 -0
  226. package/lib/utils/scrollbar-width.js +39 -0
  227. package/lib/utils/shared.js +12 -0
  228. package/lib/utils/types.js +52 -0
  229. package/lib/utils/util.js +272 -0
  230. package/lib/utils/vdom.js +13 -0
  231. package/lib/utils/vue-popper.js +202 -0
  232. package/package.json +1 -1
  233. package/packages/tabDialog/index.js +23 -0
  234. package/packages/tabDialog/src/dialog/drag.js +63 -0
  235. package/packages/tabDialog/src/dialog/dragHeight.js +34 -0
  236. package/packages/tabDialog/src/dialog/dragWidth.js +30 -0
  237. package/packages/tabDialog/src/main.vue +277 -0
  238. package/packages/theme-chalk/src/index.scss +1 -0
  239. package/packages/theme-chalk/src/tabDialog.scss +43 -0
  240. package/src/index.js +7 -4
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+ exports.i18n = exports.use = exports.t = undefined;
5
+
6
+ var _zhCN = require('element-ui/lib/locale/lang/zh-CN');
7
+
8
+ var _zhCN2 = _interopRequireDefault(_zhCN);
9
+
10
+ var _vue = require('vue');
11
+
12
+ var _vue2 = _interopRequireDefault(_vue);
13
+
14
+ var _deepmerge = require('deepmerge');
15
+
16
+ var _deepmerge2 = _interopRequireDefault(_deepmerge);
17
+
18
+ var _format = require('./format');
19
+
20
+ var _format2 = _interopRequireDefault(_format);
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
+ var format = (0, _format2.default)(_vue2.default);
25
+ var lang = _zhCN2.default;
26
+ var merged = false;
27
+ var i18nHandler = function i18nHandler() {
28
+ var vuei18n = Object.getPrototypeOf(this || _vue2.default).$t;
29
+ if (typeof vuei18n === 'function' && !!_vue2.default.locale) {
30
+ if (!merged) {
31
+ merged = true;
32
+ _vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang, _vue2.default.locale(_vue2.default.config.lang) || {}, { clone: true }));
33
+ }
34
+ return vuei18n.apply(this, arguments);
35
+ }
36
+ };
37
+
38
+ var t = exports.t = function t(path, options) {
39
+ var value = i18nHandler.apply(this, arguments);
40
+ if (value !== null && value !== undefined) return value;
41
+
42
+ var array = path.split('.');
43
+ var current = lang;
44
+
45
+ for (var i = 0, j = array.length; i < j; i++) {
46
+ var property = array[i];
47
+ value = current[property];
48
+ if (i === j - 1) return format(value, options);
49
+ if (!value) return '';
50
+ current = value;
51
+ }
52
+ return '';
53
+ };
54
+
55
+ var use = exports.use = function use(l) {
56
+ lang = l || lang;
57
+ };
58
+
59
+ var i18n = exports.i18n = function i18n(fn) {
60
+ i18nHandler = fn || i18nHandler;
61
+ };
62
+
63
+ exports.default = { use: use, t: t, i18n: i18n };
@@ -0,0 +1,126 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+ exports.default = {
5
+ el: {
6
+ colorpicker: {
7
+ confirm: 'OK',
8
+ clear: 'Clear'
9
+ },
10
+ datepicker: {
11
+ now: 'Now',
12
+ today: 'Today',
13
+ cancel: 'Cancel',
14
+ clear: 'Clear',
15
+ confirm: 'OK',
16
+ selectDate: 'Select date',
17
+ selectTime: 'Select time',
18
+ startDate: 'Start Date',
19
+ startTime: 'Start Time',
20
+ endDate: 'End Date',
21
+ endTime: 'End Time',
22
+ prevYear: 'Previous Year',
23
+ nextYear: 'Next Year',
24
+ prevMonth: 'Previous Month',
25
+ nextMonth: 'Next Month',
26
+ year: '',
27
+ month1: 'January',
28
+ month2: 'February',
29
+ month3: 'March',
30
+ month4: 'April',
31
+ month5: 'May',
32
+ month6: 'June',
33
+ month7: 'July',
34
+ month8: 'August',
35
+ month9: 'September',
36
+ month10: 'October',
37
+ month11: 'November',
38
+ month12: 'December',
39
+ week: 'week',
40
+ weeks: {
41
+ sun: 'Sun',
42
+ mon: 'Mon',
43
+ tue: 'Tue',
44
+ wed: 'Wed',
45
+ thu: 'Thu',
46
+ fri: 'Fri',
47
+ sat: 'Sat'
48
+ },
49
+ months: {
50
+ jan: 'Jan',
51
+ feb: 'Feb',
52
+ mar: 'Mar',
53
+ apr: 'Apr',
54
+ may: 'May',
55
+ jun: 'Jun',
56
+ jul: 'Jul',
57
+ aug: 'Aug',
58
+ sep: 'Sep',
59
+ oct: 'Oct',
60
+ nov: 'Nov',
61
+ dec: 'Dec'
62
+ }
63
+ },
64
+ select: {
65
+ loading: 'Loading',
66
+ noMatch: 'No matching data',
67
+ noData: 'No data',
68
+ placeholder: 'Select'
69
+ },
70
+ cascader: {
71
+ noMatch: 'No matching data',
72
+ loading: 'Loading',
73
+ placeholder: 'Select',
74
+ noData: 'No data'
75
+ },
76
+ pagination: {
77
+ goto: 'Go to',
78
+ pagesize: '/page',
79
+ total: 'Total {total}',
80
+ pageClassifier: ''
81
+ },
82
+ messagebox: {
83
+ title: 'Message',
84
+ confirm: 'OK',
85
+ cancel: 'Cancel',
86
+ error: 'Illegal input'
87
+ },
88
+ upload: {
89
+ deleteTip: 'press delete to remove',
90
+ delete: 'Delete',
91
+ preview: 'Preview',
92
+ continue: 'Continue'
93
+ },
94
+ table: {
95
+ emptyText: 'No Data',
96
+ confirmFilter: 'Confirm',
97
+ resetFilter: 'Reset',
98
+ clearFilter: 'All',
99
+ sumText: 'Sum'
100
+ },
101
+ tree: {
102
+ emptyText: 'No Data'
103
+ },
104
+ transfer: {
105
+ noMatch: 'No matching data',
106
+ noData: 'No data',
107
+ titles: ['List 1', 'List 2'], // to be translated
108
+ filterPlaceholder: 'Enter keyword', // to be translated
109
+ noCheckedFormat: '{total} items', // to be translated
110
+ hasCheckedFormat: '{checked}/{total} checked' // to be translated
111
+ },
112
+ image: {
113
+ error: 'FAILED'
114
+ },
115
+ pageHeader: {
116
+ title: 'Back' // to be translated
117
+ },
118
+ popconfirm: {
119
+ confirmButtonText: 'Yes',
120
+ cancelButtonText: 'No'
121
+ },
122
+ empty: {
123
+ description: 'No Data'
124
+ }
125
+ }
126
+ };
@@ -0,0 +1,126 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+ exports.default = {
5
+ el: {
6
+ colorpicker: {
7
+ confirm: '确定',
8
+ clear: '清空'
9
+ },
10
+ datepicker: {
11
+ now: '此刻',
12
+ today: '今天',
13
+ cancel: '取消',
14
+ clear: '清空',
15
+ confirm: '确定',
16
+ selectDate: '选择日期',
17
+ selectTime: '选择时间',
18
+ startDate: '开始日期',
19
+ startTime: '开始时间',
20
+ endDate: '结束日期',
21
+ endTime: '结束时间',
22
+ prevYear: '前一年',
23
+ nextYear: '后一年',
24
+ prevMonth: '上个月',
25
+ nextMonth: '下个月',
26
+ year: '年',
27
+ month1: '1 月',
28
+ month2: '2 月',
29
+ month3: '3 月',
30
+ month4: '4 月',
31
+ month5: '5 月',
32
+ month6: '6 月',
33
+ month7: '7 月',
34
+ month8: '8 月',
35
+ month9: '9 月',
36
+ month10: '10 月',
37
+ month11: '11 月',
38
+ month12: '12 月',
39
+ // week: '周次',
40
+ weeks: {
41
+ sun: '日',
42
+ mon: '一',
43
+ tue: '二',
44
+ wed: '三',
45
+ thu: '四',
46
+ fri: '五',
47
+ sat: '六'
48
+ },
49
+ months: {
50
+ jan: '一月',
51
+ feb: '二月',
52
+ mar: '三月',
53
+ apr: '四月',
54
+ may: '五月',
55
+ jun: '六月',
56
+ jul: '七月',
57
+ aug: '八月',
58
+ sep: '九月',
59
+ oct: '十月',
60
+ nov: '十一月',
61
+ dec: '十二月'
62
+ }
63
+ },
64
+ select: {
65
+ loading: '加载中',
66
+ noMatch: '无匹配数据',
67
+ noData: '无数据',
68
+ placeholder: '请选择'
69
+ },
70
+ cascader: {
71
+ noMatch: '无匹配数据',
72
+ loading: '加载中',
73
+ placeholder: '请选择',
74
+ noData: '暂无数据'
75
+ },
76
+ pagination: {
77
+ goto: '前往',
78
+ pagesize: '条/页',
79
+ total: '共 {total} 条',
80
+ pageClassifier: '页'
81
+ },
82
+ messagebox: {
83
+ title: '提示',
84
+ confirm: '确定',
85
+ cancel: '取消',
86
+ error: '输入的数据不合法!'
87
+ },
88
+ upload: {
89
+ deleteTip: '按 delete 键可删除',
90
+ delete: '删除',
91
+ preview: '查看图片',
92
+ continue: '继续上传'
93
+ },
94
+ table: {
95
+ emptyText: '暂无数据',
96
+ confirmFilter: '筛选',
97
+ resetFilter: '重置',
98
+ clearFilter: '全部',
99
+ sumText: '合计'
100
+ },
101
+ tree: {
102
+ emptyText: '暂无数据'
103
+ },
104
+ transfer: {
105
+ noMatch: '无匹配数据',
106
+ noData: '无数据',
107
+ titles: ['列表 1', '列表 2'],
108
+ filterPlaceholder: '请输入搜索内容',
109
+ noCheckedFormat: '共 {total} 项',
110
+ hasCheckedFormat: '已选 {checked}/{total} 项'
111
+ },
112
+ image: {
113
+ error: '加载失败'
114
+ },
115
+ pageHeader: {
116
+ title: '返回'
117
+ },
118
+ popconfirm: {
119
+ confirmButtonText: '确定',
120
+ cancelButtonText: '取消'
121
+ },
122
+ empty: {
123
+ description: '暂无数据'
124
+ }
125
+ }
126
+ };
@@ -0,0 +1,126 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+ exports.default = {
5
+ el: {
6
+ colorpicker: {
7
+ confirm: '確認',
8
+ clear: '清空'
9
+ },
10
+ datepicker: {
11
+ now: '現在',
12
+ today: '今天',
13
+ cancel: '取消',
14
+ clear: '清空',
15
+ confirm: '確認',
16
+ selectDate: '選擇日期',
17
+ selectTime: '選擇時間',
18
+ startDate: '開始日期',
19
+ startTime: '開始時間',
20
+ endDate: '結束日期',
21
+ endTime: '結束時間',
22
+ prevYear: '前一年',
23
+ nextYear: '後一年',
24
+ prevMonth: '上個月',
25
+ nextMonth: '下個月',
26
+ year: '年',
27
+ month1: '1 月',
28
+ month2: '2 月',
29
+ month3: '3 月',
30
+ month4: '4 月',
31
+ month5: '5 月',
32
+ month6: '6 月',
33
+ month7: '7 月',
34
+ month8: '8 月',
35
+ month9: '9 月',
36
+ month10: '10 月',
37
+ month11: '11 月',
38
+ month12: '12 月',
39
+ // week: '周次',
40
+ weeks: {
41
+ sun: '日',
42
+ mon: '一',
43
+ tue: '二',
44
+ wed: '三',
45
+ thu: '四',
46
+ fri: '五',
47
+ sat: '六'
48
+ },
49
+ months: {
50
+ jan: '一月',
51
+ feb: '二月',
52
+ mar: '三月',
53
+ apr: '四月',
54
+ may: '五月',
55
+ jun: '六月',
56
+ jul: '七月',
57
+ aug: '八月',
58
+ sep: '九月',
59
+ oct: '十月',
60
+ nov: '十一月',
61
+ dec: '十二月'
62
+ }
63
+ },
64
+ select: {
65
+ loading: '加載中',
66
+ noMatch: '無匹配資料',
67
+ noData: '無資料',
68
+ placeholder: '請選擇'
69
+ },
70
+ cascader: {
71
+ noMatch: '無匹配資料',
72
+ loading: '加載中',
73
+ placeholder: '請選擇',
74
+ noData: '無資料'
75
+ },
76
+ pagination: {
77
+ goto: '前往',
78
+ pagesize: '項/頁',
79
+ total: '共 {total} 項',
80
+ pageClassifier: '頁'
81
+ },
82
+ messagebox: {
83
+ title: '提示',
84
+ confirm: '確定',
85
+ cancel: '取消',
86
+ error: '輸入的資料不符規定!'
87
+ },
88
+ upload: {
89
+ deleteTip: '按 delete 鍵可刪除',
90
+ delete: '刪除',
91
+ preview: '查看圖片',
92
+ continue: '繼續上傳'
93
+ },
94
+ table: {
95
+ emptyText: '暫無資料',
96
+ confirmFilter: '篩選',
97
+ resetFilter: '重置',
98
+ clearFilter: '全部',
99
+ sumText: 'Sum' // to be translated
100
+ },
101
+ tree: {
102
+ emptyText: '暫無資料'
103
+ },
104
+ transfer: {
105
+ noMatch: '無匹配資料',
106
+ noData: '無資料',
107
+ titles: ['List 1', 'List 2'], // to be translated
108
+ filterPlaceholder: 'Enter keyword', // to be translated
109
+ noCheckedFormat: '{total} items', // to be translated
110
+ hasCheckedFormat: '{checked}/{total} checked' // to be translated
111
+ },
112
+ image: {
113
+ error: '加載失敗'
114
+ },
115
+ pageHeader: {
116
+ title: '返回'
117
+ },
118
+ popconfirm: {
119
+ confirmButtonText: 'Yes', // to be translated
120
+ cancelButtonText: 'No' // to be translated
121
+ },
122
+ empty: {
123
+ description: '暫無資料'
124
+ }
125
+ }
126
+ };
package/lib/main.js ADDED
@@ -0,0 +1,264 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 120);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 120:
196
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
+
198
+ "use strict";
199
+ // ESM COMPAT FLAG
200
+ __webpack_require__.r(__webpack_exports__);
201
+
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=863d0b22
203
+ var render = function () {
204
+ var _vm = this
205
+ var _h = _vm.$createElement
206
+ var _c = _vm._self._c || _h
207
+ return _c("main", { staticClass: "el-main" }, [_vm._t("default")], 2)
208
+ }
209
+ var staticRenderFns = []
210
+ render._withStripped = true
211
+
212
+
213
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=863d0b22
214
+
215
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js
216
+ //
217
+ //
218
+ //
219
+ //
220
+ //
221
+ //
222
+
223
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
224
+ name: 'ElMain',
225
+ componentName: 'ElMain'
226
+ });
227
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js
228
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
229
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
230
+ var componentNormalizer = __webpack_require__(0);
231
+
232
+ // CONCATENATED MODULE: ./packages/main/src/main.vue
233
+
234
+
235
+
236
+
237
+
238
+ /* normalize component */
239
+
240
+ var component = Object(componentNormalizer["a" /* default */])(
241
+ src_mainvue_type_script_lang_js,
242
+ render,
243
+ staticRenderFns,
244
+ false,
245
+ null,
246
+ null,
247
+ null
248
+
249
+ )
250
+
251
+ /* harmony default export */ var main = (component.exports);
252
+ // CONCATENATED MODULE: ./packages/main/index.js
253
+
254
+
255
+ /* istanbul ignore next */
256
+ main.install = function (Vue) {
257
+ Vue.component(main.name, main);
258
+ };
259
+
260
+ /* harmony default export */ var packages_main = __webpack_exports__["default"] = (main);
261
+
262
+ /***/ })
263
+
264
+ /******/ });