cy-element-ui 1.1.18 → 1.1.20

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 (255) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/theme-chalk/BreadcrumbItem.css +0 -0
  3. package/lib/theme-chalk/ButtonGroup.css +0 -0
  4. package/lib/theme-chalk/CarouselItem.css +0 -0
  5. package/lib/theme-chalk/CascaderPanel.css +0 -0
  6. package/lib/theme-chalk/CheckboxButton.css +0 -0
  7. package/lib/theme-chalk/CheckboxGroup.css +0 -0
  8. package/lib/theme-chalk/CollapseItem.css +0 -0
  9. package/lib/theme-chalk/ColorPicker.css +0 -0
  10. package/lib/theme-chalk/DatePicker.css +0 -0
  11. package/lib/theme-chalk/DescriptionsItem.css +0 -0
  12. package/lib/theme-chalk/DropdownItem.css +0 -0
  13. package/lib/theme-chalk/DropdownMenu.css +0 -0
  14. package/lib/theme-chalk/FormItem.css +0 -0
  15. package/lib/theme-chalk/InputNumber.css +0 -0
  16. package/lib/theme-chalk/MenuItem.css +0 -0
  17. package/lib/theme-chalk/MenuItemGroup.css +0 -0
  18. package/lib/theme-chalk/MessageBox.css +0 -0
  19. package/lib/theme-chalk/OptionGroup.css +0 -0
  20. package/lib/theme-chalk/PageHeader.css +0 -0
  21. package/lib/theme-chalk/RadioButton.css +0 -0
  22. package/lib/theme-chalk/RadioGroup.css +0 -0
  23. package/lib/theme-chalk/SkeletonItem.css +0 -0
  24. package/lib/theme-chalk/TabPane.css +0 -0
  25. package/lib/theme-chalk/TableColumn.css +0 -0
  26. package/lib/theme-chalk/TimePicker.css +0 -0
  27. package/lib/theme-chalk/TimeSelect.css +0 -0
  28. package/lib/theme-chalk/TimelineItem.css +0 -0
  29. package/lib/theme-chalk/alert.css +1 -0
  30. package/lib/theme-chalk/aside.css +1 -0
  31. package/lib/theme-chalk/autocomplete.css +1 -0
  32. package/lib/theme-chalk/avatar.css +1 -0
  33. package/lib/theme-chalk/backtop.css +1 -0
  34. package/lib/theme-chalk/badge.css +1 -0
  35. package/lib/theme-chalk/base.css +1 -0
  36. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  37. package/lib/theme-chalk/breadcrumb.css +1 -0
  38. package/lib/theme-chalk/button-group.css +0 -0
  39. package/lib/theme-chalk/button.css +1 -0
  40. package/lib/theme-chalk/calendar.css +1 -0
  41. package/lib/theme-chalk/card.css +1 -0
  42. package/lib/theme-chalk/carousel-item.css +1 -0
  43. package/lib/theme-chalk/carousel.css +1 -0
  44. package/lib/theme-chalk/cascader-panel.css +1 -0
  45. package/lib/theme-chalk/cascader.css +1 -0
  46. package/lib/theme-chalk/checkbox-button.css +0 -0
  47. package/lib/theme-chalk/checkbox-group.css +0 -0
  48. package/lib/theme-chalk/checkbox.css +1 -0
  49. package/lib/theme-chalk/col.css +1 -0
  50. package/lib/theme-chalk/collapse-item.css +0 -0
  51. package/lib/theme-chalk/collapse.css +1 -0
  52. package/lib/theme-chalk/color-picker.css +1 -0
  53. package/lib/theme-chalk/container.css +1 -0
  54. package/lib/theme-chalk/date-picker.css +1 -0
  55. package/lib/theme-chalk/descriptions-item.css +1 -0
  56. package/lib/theme-chalk/descriptions.css +1 -0
  57. package/lib/theme-chalk/dialog.css +1 -0
  58. package/lib/theme-chalk/display.css +1 -0
  59. package/lib/theme-chalk/divider.css +1 -0
  60. package/lib/theme-chalk/drawer.css +1 -0
  61. package/lib/theme-chalk/dropdown-item.css +0 -0
  62. package/lib/theme-chalk/dropdown-menu.css +0 -0
  63. package/lib/theme-chalk/dropdown.css +1 -0
  64. package/lib/theme-chalk/element.css +1 -0
  65. package/lib/theme-chalk/empty.css +1 -0
  66. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  67. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  68. package/lib/theme-chalk/footer.css +1 -0
  69. package/lib/theme-chalk/form-item.css +0 -0
  70. package/lib/theme-chalk/form.css +1 -0
  71. package/lib/theme-chalk/header.css +1 -0
  72. package/lib/theme-chalk/icon.css +1 -0
  73. package/lib/theme-chalk/image.css +1 -0
  74. package/lib/theme-chalk/index.css +1 -0
  75. package/lib/theme-chalk/infinite-scroll.css +0 -0
  76. package/lib/theme-chalk/infiniteScroll.css +0 -0
  77. package/lib/theme-chalk/input-number.css +1 -0
  78. package/lib/theme-chalk/input.css +1 -0
  79. package/lib/theme-chalk/link.css +1 -0
  80. package/lib/theme-chalk/loading.css +1 -0
  81. package/lib/theme-chalk/main.css +1 -0
  82. package/lib/theme-chalk/menu-item-group.css +0 -0
  83. package/lib/theme-chalk/menu-item.css +0 -0
  84. package/lib/theme-chalk/menu.css +1 -0
  85. package/lib/theme-chalk/message-box.css +1 -0
  86. package/lib/theme-chalk/message.css +1 -0
  87. package/lib/theme-chalk/notification.css +1 -0
  88. package/lib/theme-chalk/option-group.css +1 -0
  89. package/lib/theme-chalk/option.css +1 -0
  90. package/lib/theme-chalk/page-header.css +1 -0
  91. package/lib/theme-chalk/pagination.css +1 -0
  92. package/lib/theme-chalk/popconfirm.css +1 -0
  93. package/lib/theme-chalk/popover.css +1 -0
  94. package/lib/theme-chalk/popper.css +1 -0
  95. package/lib/theme-chalk/progress.css +1 -0
  96. package/lib/theme-chalk/radio-button.css +1 -0
  97. package/lib/theme-chalk/radio-group.css +1 -0
  98. package/lib/theme-chalk/radio.css +1 -0
  99. package/lib/theme-chalk/rate.css +1 -0
  100. package/lib/theme-chalk/reset.css +1 -0
  101. package/lib/theme-chalk/result.css +1 -0
  102. package/lib/theme-chalk/row.css +1 -0
  103. package/lib/theme-chalk/scrollbar.css +1 -0
  104. package/lib/theme-chalk/select-dropdown.css +1 -0
  105. package/lib/theme-chalk/select.css +1 -0
  106. package/lib/theme-chalk/selectDisplayInput.css +1 -0
  107. package/lib/theme-chalk/skeleton-item.css +1 -0
  108. package/lib/theme-chalk/skeleton.css +1 -0
  109. package/lib/theme-chalk/slider.css +1 -0
  110. package/lib/theme-chalk/spinner.css +1 -0
  111. package/lib/theme-chalk/statistic.css +1 -0
  112. package/lib/theme-chalk/step.css +1 -0
  113. package/lib/theme-chalk/steps.css +1 -0
  114. package/lib/theme-chalk/subTitle.css +1 -0
  115. package/lib/theme-chalk/submenu.css +0 -0
  116. package/lib/theme-chalk/switch.css +1 -0
  117. package/lib/theme-chalk/tab-pane.css +0 -0
  118. package/lib/theme-chalk/tabDialog.css +1 -0
  119. package/lib/theme-chalk/table-column.css +1 -0
  120. package/lib/theme-chalk/table.css +1 -0
  121. package/lib/theme-chalk/tabs.css +1 -0
  122. package/lib/theme-chalk/tag.css +1 -0
  123. package/lib/theme-chalk/time-picker.css +1 -0
  124. package/lib/theme-chalk/time-select.css +1 -0
  125. package/lib/theme-chalk/timeline-item.css +1 -0
  126. package/lib/theme-chalk/timeline.css +1 -0
  127. package/lib/theme-chalk/tooltip.css +1 -0
  128. package/lib/theme-chalk/transfer.css +1 -0
  129. package/lib/theme-chalk/tree.css +1 -0
  130. package/lib/theme-chalk/treeSelect.css +1 -0
  131. package/lib/theme-chalk/upload.css +1 -0
  132. package/package.json +1 -1
  133. package/packages/theme-chalk/gulpfile.js +0 -1
  134. package/packages/theme-chalk/src/BreadcrumbItem.scss +0 -0
  135. package/packages/theme-chalk/src/ButtonGroup.scss +0 -0
  136. package/packages/theme-chalk/src/CarouselItem.scss +0 -0
  137. package/packages/theme-chalk/src/CascaderPanel.scss +0 -0
  138. package/packages/theme-chalk/src/CheckboxButton.scss +0 -0
  139. package/packages/theme-chalk/src/CheckboxGroup.scss +0 -0
  140. package/packages/theme-chalk/src/CollapseItem.scss +0 -0
  141. package/packages/theme-chalk/src/ColorPicker.scss +0 -0
  142. package/packages/theme-chalk/src/DatePicker.scss +0 -0
  143. package/packages/theme-chalk/src/DescriptionsItem.scss +0 -0
  144. package/packages/theme-chalk/src/DropdownItem.scss +0 -0
  145. package/packages/theme-chalk/src/DropdownMenu.scss +0 -0
  146. package/packages/theme-chalk/src/FormItem.scss +0 -0
  147. package/packages/theme-chalk/src/InputNumber.scss +0 -0
  148. package/packages/theme-chalk/src/MenuItem.scss +0 -0
  149. package/packages/theme-chalk/src/MenuItemGroup.scss +0 -0
  150. package/packages/theme-chalk/src/MessageBox.scss +0 -0
  151. package/packages/theme-chalk/src/OptionGroup.scss +0 -0
  152. package/packages/theme-chalk/src/PageHeader.scss +0 -0
  153. package/packages/theme-chalk/src/RadioButton.scss +0 -0
  154. package/packages/theme-chalk/src/RadioGroup.scss +0 -0
  155. package/packages/theme-chalk/src/SkeletonItem.scss +0 -0
  156. package/packages/theme-chalk/src/TabPane.scss +0 -0
  157. package/packages/theme-chalk/src/TableColumn.scss +0 -0
  158. package/packages/theme-chalk/src/TimePicker.scss +0 -0
  159. package/packages/theme-chalk/src/TimeSelect.scss +0 -0
  160. package/packages/theme-chalk/src/TimelineItem.scss +0 -0
  161. package/packages/theme-chalk/src/index.scss +89 -89
  162. package/src/index.js +1 -1
  163. package/lib/Alert.js +0 -420
  164. package/lib/Aside.js +0 -277
  165. package/lib/Autocomplete.js +0 -2051
  166. package/lib/Avatar.js +0 -363
  167. package/lib/Backtop.js +0 -404
  168. package/lib/Badge.js +0 -334
  169. package/lib/Breadcrumb.js +0 -293
  170. package/lib/BreadcrumbItem.js +0 -322
  171. package/lib/Button.js +0 -357
  172. package/lib/ButtonGroup.js +0 -262
  173. package/lib/Calendar.js +0 -1146
  174. package/lib/Card.js +0 -297
  175. package/lib/Carousel.js +0 -707
  176. package/lib/CarouselItem.js +0 -434
  177. package/lib/Cascader.js +0 -4641
  178. package/lib/CascaderPanel.js +0 -2602
  179. package/lib/Checkbox.js +0 -627
  180. package/lib/CheckboxButton.js +0 -583
  181. package/lib/CheckboxGroup.js +0 -313
  182. package/lib/Col.js +0 -177
  183. package/lib/Collapse.js +0 -329
  184. package/lib/CollapseItem.js +0 -497
  185. package/lib/ColorPicker.js +0 -2885
  186. package/lib/Container.js +0 -288
  187. package/lib/CySelectDisplayInput.js +0 -367
  188. package/lib/CySubTitle.js +0 -295
  189. package/lib/CyTabDialog.js +0 -1184
  190. package/lib/CyTreeSelect.js +0 -4422
  191. package/lib/DatePicker.js +0 -7574
  192. package/lib/Descriptions.js +0 -457
  193. package/lib/DescriptionsItem.js +0 -140
  194. package/lib/Dialog.js +0 -598
  195. package/lib/Divider.js +0 -313
  196. package/lib/Drawer.js +0 -592
  197. package/lib/Dropdown.js +0 -856
  198. package/lib/DropdownItem.js +0 -316
  199. package/lib/DropdownMenu.js +0 -351
  200. package/lib/Empty.js +0 -730
  201. package/lib/Footer.js +0 -277
  202. package/lib/Form.js +0 -466
  203. package/lib/FormItem.js +0 -826
  204. package/lib/Header.js +0 -277
  205. package/lib/Icon.js +0 -265
  206. package/lib/Image.js +0 -1138
  207. package/lib/InfiniteScroll.js +0 -301
  208. package/lib/Input.js +0 -999
  209. package/lib/InputNumber.js +0 -1552
  210. package/lib/Link.js +0 -332
  211. package/lib/Loading.js +0 -631
  212. package/lib/Main.js +0 -264
  213. package/lib/Menu.js +0 -865
  214. package/lib/MenuItem.js +0 -818
  215. package/lib/MenuItemGroup.js +0 -308
  216. package/lib/Message.js +0 -548
  217. package/lib/MessageBox.js +0 -2134
  218. package/lib/Notification.js +0 -615
  219. package/lib/Option.js +0 -474
  220. package/lib/OptionGroup.js +0 -344
  221. package/lib/PageHeader.js +0 -319
  222. package/lib/Pagination.js +0 -4123
  223. package/lib/Popconfirm.js +0 -1025
  224. package/lib/Popover.js +0 -617
  225. package/lib/Progress.js +0 -595
  226. package/lib/Radio.js +0 -497
  227. package/lib/RadioButton.js +0 -463
  228. package/lib/RadioGroup.js +0 -391
  229. package/lib/Rate.js +0 -670
  230. package/lib/Result.js +0 -578
  231. package/lib/Row.js +0 -149
  232. package/lib/Scrollbar.js +0 -423
  233. package/lib/Select.js +0 -3368
  234. package/lib/Skeleton.js +0 -372
  235. package/lib/SkeletonItem.js +0 -342
  236. package/lib/Slider.js +0 -2854
  237. package/lib/Spinner.js +0 -301
  238. package/lib/Statistic.js +0 -533
  239. package/lib/Step.js +0 -522
  240. package/lib/Steps.js +0 -342
  241. package/lib/Submenu.js +0 -700
  242. package/lib/Switch.js +0 -554
  243. package/lib/TabPane.js +0 -332
  244. package/lib/Table.js +0 -6125
  245. package/lib/TableColumn.js +0 -1481
  246. package/lib/Tabs.js +0 -920
  247. package/lib/Tag.js +0 -304
  248. package/lib/TimePicker.js +0 -4059
  249. package/lib/TimeSelect.js +0 -2871
  250. package/lib/Timeline.js +0 -275
  251. package/lib/TimelineItem.js +0 -371
  252. package/lib/Tooltip.js +0 -425
  253. package/lib/Transfer.js +0 -2557
  254. package/lib/Tree.js +0 -2680
  255. package/lib/Upload.js +0 -1782
package/lib/Row.js DELETED
@@ -1,149 +0,0 @@
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 = 128);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 128:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- // ESM COMPAT FLAG
95
- __webpack_require__.r(__webpack_exports__);
96
-
97
- // CONCATENATED MODULE: ./packages/row/src/row.js
98
- /* harmony default export */ var row = ({
99
- name: 'ElRow',
100
-
101
- componentName: 'ElRow',
102
-
103
- props: {
104
- tag: {
105
- type: String,
106
- default: 'div'
107
- },
108
- gutter: Number,
109
- type: String,
110
- justify: {
111
- type: String,
112
- default: 'start'
113
- },
114
- align: String
115
- },
116
-
117
- computed: {
118
- style: function style() {
119
- var ret = {};
120
-
121
- if (this.gutter) {
122
- ret.marginLeft = '-' + this.gutter / 2 + 'px';
123
- ret.marginRight = ret.marginLeft;
124
- }
125
-
126
- return ret;
127
- }
128
- },
129
-
130
- render: function render(h) {
131
- return h(this.tag, {
132
- class: ['el-row', this.justify !== 'start' ? 'is-justify-' + this.justify : '', this.align ? 'is-align-' + this.align : '', { 'el-row--flex': this.type === 'flex' }],
133
- style: this.style
134
- }, this.$slots.default);
135
- }
136
- });
137
- // CONCATENATED MODULE: ./packages/row/index.js
138
-
139
-
140
- /* istanbul ignore next */
141
- row.install = function (Vue) {
142
- Vue.component(row.name, row);
143
- };
144
-
145
- /* harmony default export */ var packages_row = __webpack_exports__["default"] = (row);
146
-
147
- /***/ })
148
-
149
- /******/ });
package/lib/Scrollbar.js DELETED
@@ -1,423 +0,0 @@
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 = 18);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 1:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("element-ui/lib/utils/dom");
94
-
95
- /***/ }),
96
-
97
- /***/ 10:
98
- /***/ (function(module, exports) {
99
-
100
- module.exports = require("element-ui/lib/utils/resize-event");
101
-
102
- /***/ }),
103
-
104
- /***/ 17:
105
- /***/ (function(module, exports) {
106
-
107
- module.exports = require("element-ui/lib/utils/scrollbar-width");
108
-
109
- /***/ }),
110
-
111
- /***/ 18:
112
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
-
114
- "use strict";
115
- // ESM COMPAT FLAG
116
- __webpack_require__.r(__webpack_exports__);
117
-
118
- // EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
119
- var resize_event_ = __webpack_require__(10);
120
-
121
- // EXTERNAL MODULE: external "element-ui/lib/utils/scrollbar-width"
122
- var scrollbar_width_ = __webpack_require__(17);
123
- var scrollbar_width_default = /*#__PURE__*/__webpack_require__.n(scrollbar_width_);
124
-
125
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
126
- var util_ = __webpack_require__(3);
127
-
128
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
129
- var dom_ = __webpack_require__(1);
130
-
131
- // CONCATENATED MODULE: ./packages/scrollbar/src/util.js
132
- var BAR_MAP = {
133
- vertical: {
134
- offset: 'offsetHeight',
135
- scroll: 'scrollTop',
136
- scrollSize: 'scrollHeight',
137
- size: 'height',
138
- key: 'vertical',
139
- axis: 'Y',
140
- client: 'clientY',
141
- direction: 'top'
142
- },
143
- horizontal: {
144
- offset: 'offsetWidth',
145
- scroll: 'scrollLeft',
146
- scrollSize: 'scrollWidth',
147
- size: 'width',
148
- key: 'horizontal',
149
- axis: 'X',
150
- client: 'clientX',
151
- direction: 'left'
152
- }
153
- };
154
-
155
- function renderThumbStyle(_ref) {
156
- var move = _ref.move,
157
- size = _ref.size,
158
- bar = _ref.bar;
159
-
160
- var style = {};
161
- var translate = 'translate' + bar.axis + '(' + move + '%)';
162
-
163
- style[bar.size] = size;
164
- style.transform = translate;
165
- style.msTransform = translate;
166
- style.webkitTransform = translate;
167
-
168
- return style;
169
- };
170
- // CONCATENATED MODULE: ./packages/scrollbar/src/bar.js
171
-
172
-
173
-
174
- /* istanbul ignore next */
175
- /* harmony default export */ var src_bar = ({
176
- name: 'Bar',
177
-
178
- props: {
179
- vertical: Boolean,
180
- size: String,
181
- move: Number
182
- },
183
-
184
- computed: {
185
- bar: function bar() {
186
- return BAR_MAP[this.vertical ? 'vertical' : 'horizontal'];
187
- },
188
- wrap: function wrap() {
189
- return this.$parent.wrap;
190
- }
191
- },
192
-
193
- render: function render(h) {
194
- var size = this.size,
195
- move = this.move,
196
- bar = this.bar;
197
-
198
-
199
- return h(
200
- 'div',
201
- {
202
- 'class': ['el-scrollbar__bar', 'is-' + bar.key],
203
- on: {
204
- 'mousedown': this.clickTrackHandler
205
- }
206
- },
207
- [h('div', {
208
- ref: 'thumb',
209
- 'class': 'el-scrollbar__thumb',
210
- on: {
211
- 'mousedown': this.clickThumbHandler
212
- },
213
-
214
- style: renderThumbStyle({ size: size, move: move, bar: bar }) })]
215
- );
216
- },
217
-
218
-
219
- methods: {
220
- clickThumbHandler: function clickThumbHandler(e) {
221
- // prevent click event of right button
222
- if (e.ctrlKey || e.button === 2) {
223
- return;
224
- }
225
- this.startDrag(e);
226
- this[this.bar.axis] = e.currentTarget[this.bar.offset] - (e[this.bar.client] - e.currentTarget.getBoundingClientRect()[this.bar.direction]);
227
- },
228
- clickTrackHandler: function clickTrackHandler(e) {
229
- var offset = Math.abs(e.target.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]);
230
- var thumbHalf = this.$refs.thumb[this.bar.offset] / 2;
231
- var thumbPositionPercentage = (offset - thumbHalf) * 100 / this.$el[this.bar.offset];
232
-
233
- this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
234
- },
235
- startDrag: function startDrag(e) {
236
- e.stopImmediatePropagation();
237
- this.cursorDown = true;
238
-
239
- Object(dom_["on"])(document, 'mousemove', this.mouseMoveDocumentHandler);
240
- Object(dom_["on"])(document, 'mouseup', this.mouseUpDocumentHandler);
241
- document.onselectstart = function () {
242
- return false;
243
- };
244
- },
245
- mouseMoveDocumentHandler: function mouseMoveDocumentHandler(e) {
246
- if (this.cursorDown === false) return;
247
- var prevPage = this[this.bar.axis];
248
-
249
- if (!prevPage) return;
250
-
251
- var offset = (this.$el.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]) * -1;
252
- var thumbClickPosition = this.$refs.thumb[this.bar.offset] - prevPage;
253
- var thumbPositionPercentage = (offset - thumbClickPosition) * 100 / this.$el[this.bar.offset];
254
-
255
- this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
256
- },
257
- mouseUpDocumentHandler: function mouseUpDocumentHandler(e) {
258
- this.cursorDown = false;
259
- this[this.bar.axis] = 0;
260
- Object(dom_["off"])(document, 'mousemove', this.mouseMoveDocumentHandler);
261
- document.onselectstart = null;
262
- }
263
- },
264
-
265
- destroyed: function destroyed() {
266
- Object(dom_["off"])(document, 'mouseup', this.mouseUpDocumentHandler);
267
- }
268
- });
269
- // CONCATENATED MODULE: ./packages/scrollbar/src/main.js
270
- // reference https://github.com/noeldelgado/gemini-scrollbar/blob/master/index.js
271
-
272
-
273
-
274
-
275
-
276
-
277
- /* istanbul ignore next */
278
- /* harmony default export */ var main = ({
279
- name: 'ElScrollbar',
280
-
281
- components: { Bar: src_bar },
282
-
283
- props: {
284
- native: Boolean,
285
- wrapStyle: {},
286
- wrapClass: {},
287
- viewClass: {},
288
- viewStyle: {},
289
- noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能
290
- tag: {
291
- type: String,
292
- default: 'div'
293
- }
294
- },
295
-
296
- data: function data() {
297
- return {
298
- sizeWidth: '0',
299
- sizeHeight: '0',
300
- moveX: 0,
301
- moveY: 0
302
- };
303
- },
304
-
305
-
306
- computed: {
307
- wrap: function wrap() {
308
- return this.$refs.wrap;
309
- }
310
- },
311
-
312
- render: function render(h) {
313
- var gutter = scrollbar_width_default()();
314
- var style = this.wrapStyle;
315
-
316
- if (gutter) {
317
- var gutterWith = '-' + gutter + 'px';
318
- var gutterStyle = 'margin-bottom: ' + gutterWith + '; margin-right: ' + gutterWith + ';';
319
-
320
- if (Array.isArray(this.wrapStyle)) {
321
- style = Object(util_["toObject"])(this.wrapStyle);
322
- style.marginRight = style.marginBottom = gutterWith;
323
- } else if (typeof this.wrapStyle === 'string') {
324
- style += gutterStyle;
325
- } else {
326
- style = gutterStyle;
327
- }
328
- }
329
- var view = h(this.tag, {
330
- class: ['el-scrollbar__view', this.viewClass],
331
- style: this.viewStyle,
332
- ref: 'resize'
333
- }, this.$slots.default);
334
- var wrap = h(
335
- 'div',
336
- {
337
- ref: 'wrap',
338
- style: style,
339
- on: {
340
- 'scroll': this.handleScroll
341
- },
342
-
343
- 'class': [this.wrapClass, 'el-scrollbar__wrap', gutter ? '' : 'el-scrollbar__wrap--hidden-default'] },
344
- [[view]]
345
- );
346
- var nodes = void 0;
347
-
348
- if (!this.native) {
349
- nodes = [wrap, h(src_bar, {
350
- attrs: {
351
- move: this.moveX,
352
- size: this.sizeWidth }
353
- }), h(src_bar, {
354
- attrs: {
355
- vertical: true,
356
- move: this.moveY,
357
- size: this.sizeHeight }
358
- })];
359
- } else {
360
- nodes = [h(
361
- 'div',
362
- {
363
- ref: 'wrap',
364
- 'class': [this.wrapClass, 'el-scrollbar__wrap'],
365
- style: style },
366
- [[view]]
367
- )];
368
- }
369
- return h('div', { class: 'el-scrollbar' }, nodes);
370
- },
371
-
372
-
373
- methods: {
374
- handleScroll: function handleScroll() {
375
- var wrap = this.wrap;
376
-
377
- this.moveY = wrap.scrollTop * 100 / wrap.clientHeight;
378
- this.moveX = wrap.scrollLeft * 100 / wrap.clientWidth;
379
- },
380
- update: function update() {
381
- var heightPercentage = void 0,
382
- widthPercentage = void 0;
383
- var wrap = this.wrap;
384
- if (!wrap) return;
385
-
386
- heightPercentage = wrap.clientHeight * 100 / wrap.scrollHeight;
387
- widthPercentage = wrap.clientWidth * 100 / wrap.scrollWidth;
388
-
389
- this.sizeHeight = heightPercentage < 100 ? heightPercentage + '%' : '';
390
- this.sizeWidth = widthPercentage < 100 ? widthPercentage + '%' : '';
391
- }
392
- },
393
-
394
- mounted: function mounted() {
395
- if (this.native) return;
396
- this.$nextTick(this.update);
397
- !this.noresize && Object(resize_event_["addResizeListener"])(this.$refs.resize, this.update);
398
- },
399
- beforeDestroy: function beforeDestroy() {
400
- if (this.native) return;
401
- !this.noresize && Object(resize_event_["removeResizeListener"])(this.$refs.resize, this.update);
402
- }
403
- });
404
- // CONCATENATED MODULE: ./packages/scrollbar/index.js
405
-
406
-
407
- /* istanbul ignore next */
408
- main.install = function (Vue) {
409
- Vue.component(main.name, main);
410
- };
411
-
412
- /* harmony default export */ var scrollbar = __webpack_exports__["default"] = (main);
413
-
414
- /***/ }),
415
-
416
- /***/ 3:
417
- /***/ (function(module, exports) {
418
-
419
- module.exports = require("element-ui/lib/utils/util");
420
-
421
- /***/ })
422
-
423
- /******/ });