cy-element-ui 1.0.0 → 1.0.2

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 (370) hide show
  1. package/README.md +0 -29
  2. package/lib/alert.js +420 -0
  3. package/lib/aside.js +277 -0
  4. package/lib/autocomplete.js +952 -0
  5. package/lib/avatar.js +363 -0
  6. package/lib/backtop.js +404 -0
  7. package/lib/badge.js +334 -0
  8. package/lib/breadcrumb-item.js +322 -0
  9. package/lib/breadcrumb.js +293 -0
  10. package/lib/button-group.js +262 -0
  11. package/lib/button.js +357 -0
  12. package/lib/calendar.js +933 -0
  13. package/lib/card.js +297 -0
  14. package/lib/carousel-item.js +434 -0
  15. package/lib/carousel.js +707 -0
  16. package/lib/cascader-panel.js +1558 -0
  17. package/lib/cascader.js +1439 -0
  18. package/lib/checkbox-button.js +583 -0
  19. package/lib/checkbox-group.js +313 -0
  20. package/lib/checkbox.js +627 -0
  21. package/lib/col.js +177 -0
  22. package/lib/collapse-item.js +497 -0
  23. package/lib/collapse.js +329 -0
  24. package/lib/color-picker.js +1943 -0
  25. package/lib/container.js +288 -0
  26. package/lib/date-picker.js +6335 -0
  27. package/lib/descriptions-item.js +140 -0
  28. package/lib/descriptions.js +457 -0
  29. package/lib/dialog.js +598 -0
  30. package/lib/directives/mousewheel.js +26 -0
  31. package/lib/directives/repeat-click.js +33 -0
  32. package/lib/divider.js +313 -0
  33. package/lib/drawer.js +592 -0
  34. package/lib/dropdown-item.js +316 -0
  35. package/lib/dropdown-menu.js +351 -0
  36. package/lib/dropdown.js +643 -0
  37. package/lib/element-ui.common.js +44032 -0
  38. package/lib/empty.js +730 -0
  39. package/lib/footer.js +277 -0
  40. package/lib/form-item.js +826 -0
  41. package/lib/form.js +466 -0
  42. package/lib/header.js +277 -0
  43. package/lib/icon.js +265 -0
  44. package/lib/image.js +1138 -0
  45. package/lib/index.js +1 -0
  46. package/lib/infinite-scroll.js +301 -0
  47. package/lib/input-number.js +752 -0
  48. package/lib/input.js +998 -0
  49. package/lib/link.js +332 -0
  50. package/lib/loading.js +631 -0
  51. package/lib/locale/format.js +56 -0
  52. package/lib/locale/index.js +63 -0
  53. package/lib/locale/lang/af-ZA.js +126 -0
  54. package/lib/locale/lang/ar.js +125 -0
  55. package/lib/locale/lang/az.js +126 -0
  56. package/lib/locale/lang/bg.js +126 -0
  57. package/lib/locale/lang/bn.js +126 -0
  58. package/lib/locale/lang/ca.js +125 -0
  59. package/lib/locale/lang/cs-CZ.js +128 -0
  60. package/lib/locale/lang/da.js +125 -0
  61. package/lib/locale/lang/de.js +127 -0
  62. package/lib/locale/lang/ee.js +126 -0
  63. package/lib/locale/lang/el.js +126 -0
  64. package/lib/locale/lang/en.js +126 -0
  65. package/lib/locale/lang/eo.js +126 -0
  66. package/lib/locale/lang/es.js +125 -0
  67. package/lib/locale/lang/eu.js +126 -0
  68. package/lib/locale/lang/fa.js +126 -0
  69. package/lib/locale/lang/fi.js +126 -0
  70. package/lib/locale/lang/fr.js +125 -0
  71. package/lib/locale/lang/he.js +126 -0
  72. package/lib/locale/lang/hr.js +126 -0
  73. package/lib/locale/lang/hu.js +125 -0
  74. package/lib/locale/lang/hy-AM.js +126 -0
  75. package/lib/locale/lang/id.js +126 -0
  76. package/lib/locale/lang/is.js +126 -0
  77. package/lib/locale/lang/it.js +125 -0
  78. package/lib/locale/lang/ja.js +126 -0
  79. package/lib/locale/lang/kg.js +126 -0
  80. package/lib/locale/lang/km.js +126 -0
  81. package/lib/locale/lang/ko.js +126 -0
  82. package/lib/locale/lang/ku.js +126 -0
  83. package/lib/locale/lang/kz.js +126 -0
  84. package/lib/locale/lang/lo-LA.js +126 -0
  85. package/lib/locale/lang/lt.js +126 -0
  86. package/lib/locale/lang/lv.js +126 -0
  87. package/lib/locale/lang/mn.js +126 -0
  88. package/lib/locale/lang/ms.js +125 -0
  89. package/lib/locale/lang/nb-NO.js +125 -0
  90. package/lib/locale/lang/nl.js +126 -0
  91. package/lib/locale/lang/pl.js +126 -0
  92. package/lib/locale/lang/pt-br.js +126 -0
  93. package/lib/locale/lang/pt.js +126 -0
  94. package/lib/locale/lang/ro.js +126 -0
  95. package/lib/locale/lang/ru-RU.js +126 -0
  96. package/lib/locale/lang/si.js +126 -0
  97. package/lib/locale/lang/sk.js +128 -0
  98. package/lib/locale/lang/sl.js +126 -0
  99. package/lib/locale/lang/sr-Latn.js +126 -0
  100. package/lib/locale/lang/sr.js +126 -0
  101. package/lib/locale/lang/sv-SE.js +126 -0
  102. package/lib/locale/lang/sw.js +126 -0
  103. package/lib/locale/lang/ta.js +125 -0
  104. package/lib/locale/lang/th.js +126 -0
  105. package/lib/locale/lang/tk.js +126 -0
  106. package/lib/locale/lang/tr-TR.js +126 -0
  107. package/lib/locale/lang/ua.js +126 -0
  108. package/lib/locale/lang/ug-CN.js +126 -0
  109. package/lib/locale/lang/uz-UZ.js +126 -0
  110. package/lib/locale/lang/vi.js +126 -0
  111. package/lib/locale/lang/zh-CN.js +126 -0
  112. package/lib/locale/lang/zh-TW.js +126 -0
  113. package/lib/main.js +264 -0
  114. package/lib/menu-item-group.js +308 -0
  115. package/lib/menu-item.js +491 -0
  116. package/lib/menu.js +865 -0
  117. package/lib/message-box.js +1192 -0
  118. package/lib/message.js +548 -0
  119. package/lib/mixins/emitter.js +36 -0
  120. package/lib/mixins/focus.js +15 -0
  121. package/lib/mixins/locale.js +17 -0
  122. package/lib/mixins/migrating.js +69 -0
  123. package/lib/notification.js +615 -0
  124. package/lib/option-group.js +344 -0
  125. package/lib/option.js +474 -0
  126. package/lib/page-header.js +319 -0
  127. package/lib/pagination.js +950 -0
  128. package/lib/popconfirm.js +457 -0
  129. package/lib/popover.js +617 -0
  130. package/lib/progress.js +595 -0
  131. package/lib/radio-button.js +463 -0
  132. package/lib/radio-group.js +391 -0
  133. package/lib/radio.js +497 -0
  134. package/lib/rate.js +670 -0
  135. package/lib/result.js +578 -0
  136. package/lib/row.js +149 -0
  137. package/lib/scrollbar.js +423 -0
  138. package/lib/select.js +2167 -0
  139. package/lib/skeleton-item.js +342 -0
  140. package/lib/skeleton.js +372 -0
  141. package/lib/slider.js +1199 -0
  142. package/lib/spinner.js +301 -0
  143. package/lib/statistic.js +533 -0
  144. package/lib/step.js +522 -0
  145. package/lib/steps.js +342 -0
  146. package/lib/submenu.js +701 -0
  147. package/lib/switch.js +554 -0
  148. package/lib/tab-pane.js +332 -0
  149. package/lib/table-column.js +952 -0
  150. package/lib/table.js +5010 -0
  151. package/lib/tabs.js +920 -0
  152. package/lib/tag.js +304 -0
  153. package/lib/theme-chalk/README.md +33 -0
  154. package/lib/theme-chalk/package.json +35 -0
  155. package/lib/theme-chalk/src/alert.scss +147 -0
  156. package/lib/theme-chalk/src/aside.scss +7 -0
  157. package/lib/theme-chalk/src/autocomplete.scss +80 -0
  158. package/lib/theme-chalk/src/avatar.scss +51 -0
  159. package/lib/theme-chalk/src/backtop.scss +22 -0
  160. package/lib/theme-chalk/src/badge.scss +57 -0
  161. package/lib/theme-chalk/src/base.scss +2 -0
  162. package/lib/theme-chalk/src/breadcrumb-item.scss +0 -0
  163. package/lib/theme-chalk/src/breadcrumb.scss +55 -0
  164. package/lib/theme-chalk/src/button-group.scss +0 -0
  165. package/lib/theme-chalk/src/button.scss +262 -0
  166. package/lib/theme-chalk/src/calendar.scss +79 -0
  167. package/lib/theme-chalk/src/card.scss +32 -0
  168. package/lib/theme-chalk/src/carousel-item.scss +50 -0
  169. package/lib/theme-chalk/src/carousel.scss +161 -0
  170. package/lib/theme-chalk/src/cascader-panel.scss +120 -0
  171. package/lib/theme-chalk/src/cascader.scss +182 -0
  172. package/lib/theme-chalk/src/checkbox-button.scss +0 -0
  173. package/lib/theme-chalk/src/checkbox-group.scss +0 -0
  174. package/lib/theme-chalk/src/checkbox.scss +359 -0
  175. package/lib/theme-chalk/src/col.scss +156 -0
  176. package/lib/theme-chalk/src/collapse-item.scss +0 -0
  177. package/lib/theme-chalk/src/collapse.scss +63 -0
  178. package/lib/theme-chalk/src/color-picker.scss +384 -0
  179. package/lib/theme-chalk/src/common/popup.scss +42 -0
  180. package/lib/theme-chalk/src/common/transition.scss +99 -0
  181. package/lib/theme-chalk/src/common/var.scss +1028 -0
  182. package/lib/theme-chalk/src/container.scss +14 -0
  183. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
  184. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  185. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
  186. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
  187. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  188. package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
  189. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
  190. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  191. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  192. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
  193. package/lib/theme-chalk/src/date-picker.scss +12 -0
  194. package/lib/theme-chalk/src/descriptions-item.scss +42 -0
  195. package/lib/theme-chalk/src/descriptions.scss +111 -0
  196. package/lib/theme-chalk/src/dialog.scss +123 -0
  197. package/lib/theme-chalk/src/display.scss +12 -0
  198. package/lib/theme-chalk/src/divider.scss +47 -0
  199. package/lib/theme-chalk/src/drawer.scss +219 -0
  200. package/lib/theme-chalk/src/dropdown-item.scss +0 -0
  201. package/lib/theme-chalk/src/dropdown-menu.scss +0 -0
  202. package/lib/theme-chalk/src/dropdown.scss +182 -0
  203. package/lib/theme-chalk/src/empty.scss +45 -0
  204. package/lib/theme-chalk/src/fonts/element-icons.ttf +0 -0
  205. package/lib/theme-chalk/src/fonts/element-icons.woff +0 -0
  206. package/lib/theme-chalk/src/footer.scss +8 -0
  207. package/lib/theme-chalk/src/form-item.scss +0 -0
  208. package/lib/theme-chalk/src/form.scss +167 -0
  209. package/lib/theme-chalk/src/header.scss +8 -0
  210. package/lib/theme-chalk/src/icon.scss +1167 -0
  211. package/lib/theme-chalk/src/image.scss +179 -0
  212. package/lib/theme-chalk/src/index.scss +87 -0
  213. package/lib/theme-chalk/src/infinite-scroll.scss +0 -0
  214. package/lib/theme-chalk/src/infiniteScroll.scss +0 -0
  215. package/lib/theme-chalk/src/input-number.scss +180 -0
  216. package/lib/theme-chalk/src/input.scss +360 -0
  217. package/lib/theme-chalk/src/link.scss +81 -0
  218. package/lib/theme-chalk/src/loading.scss +96 -0
  219. package/lib/theme-chalk/src/main.scss +12 -0
  220. package/lib/theme-chalk/src/menu-item-group.scss +0 -0
  221. package/lib/theme-chalk/src/menu-item.scss +0 -0
  222. package/lib/theme-chalk/src/menu.scss +289 -0
  223. package/lib/theme-chalk/src/message-box.scss +226 -0
  224. package/lib/theme-chalk/src/message.scss +120 -0
  225. package/lib/theme-chalk/src/mixins/_button.scss +81 -0
  226. package/lib/theme-chalk/src/mixins/config.scss +4 -0
  227. package/lib/theme-chalk/src/mixins/function.scss +44 -0
  228. package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
  229. package/lib/theme-chalk/src/mixins/utils.scss +39 -0
  230. package/lib/theme-chalk/src/notification.scss +99 -0
  231. package/lib/theme-chalk/src/option-group.scss +42 -0
  232. package/lib/theme-chalk/src/option.scss +36 -0
  233. package/lib/theme-chalk/src/page-header.scss +41 -0
  234. package/lib/theme-chalk/src/pagination.scss +295 -0
  235. package/lib/theme-chalk/src/popconfirm.scss +16 -0
  236. package/lib/theme-chalk/src/popover.scss +40 -0
  237. package/lib/theme-chalk/src/popper.scss +101 -0
  238. package/lib/theme-chalk/src/progress.scss +141 -0
  239. package/lib/theme-chalk/src/radio-button.scss +113 -0
  240. package/lib/theme-chalk/src/radio-group.scss +9 -0
  241. package/lib/theme-chalk/src/radio.scss +199 -0
  242. package/lib/theme-chalk/src/rate.scss +49 -0
  243. package/lib/theme-chalk/src/reset.scss +79 -0
  244. package/lib/theme-chalk/src/result.scss +61 -0
  245. package/lib/theme-chalk/src/row.scss +43 -0
  246. package/lib/theme-chalk/src/scrollbar.scss +72 -0
  247. package/lib/theme-chalk/src/select-dropdown.scss +62 -0
  248. package/lib/theme-chalk/src/select.scss +152 -0
  249. package/lib/theme-chalk/src/skeleton-item.scss +84 -0
  250. package/lib/theme-chalk/src/skeleton.scss +40 -0
  251. package/lib/theme-chalk/src/slider.scss +250 -0
  252. package/lib/theme-chalk/src/spinner.scss +44 -0
  253. package/lib/theme-chalk/src/statistic.scss +38 -0
  254. package/lib/theme-chalk/src/step.scss +317 -0
  255. package/lib/theme-chalk/src/steps.scss +20 -0
  256. package/lib/theme-chalk/src/submenu.scss +0 -0
  257. package/lib/theme-chalk/src/switch.scss +116 -0
  258. package/lib/theme-chalk/src/tab-pane.scss +0 -0
  259. package/lib/theme-chalk/src/table-column.scss +97 -0
  260. package/lib/theme-chalk/src/table.scss +564 -0
  261. package/lib/theme-chalk/src/tabs.scss +602 -0
  262. package/lib/theme-chalk/src/tag.scss +163 -0
  263. package/lib/theme-chalk/src/time-picker.scss +8 -0
  264. package/lib/theme-chalk/src/time-select.scss +37 -0
  265. package/lib/theme-chalk/src/timeline-item.scss +86 -0
  266. package/lib/theme-chalk/src/timeline.scss +14 -0
  267. package/lib/theme-chalk/src/tooltip.scss +141 -0
  268. package/lib/theme-chalk/src/transfer.scss +227 -0
  269. package/lib/theme-chalk/src/tree.scss +123 -0
  270. package/lib/theme-chalk/src/upload.scss +603 -0
  271. package/lib/time-picker.js +2967 -0
  272. package/lib/time-select.js +1765 -0
  273. package/lib/timeline-item.js +371 -0
  274. package/lib/timeline.js +275 -0
  275. package/lib/tooltip.js +425 -0
  276. package/lib/transfer.js +1102 -0
  277. package/lib/transitions/collapse-transition.js +91 -0
  278. package/lib/tree.js +2263 -0
  279. package/lib/treeselect.js +682 -0
  280. package/lib/umd/locale/af-ZA.js +142 -0
  281. package/lib/umd/locale/ar.js +141 -0
  282. package/lib/umd/locale/az.js +141 -0
  283. package/lib/umd/locale/bg.js +142 -0
  284. package/lib/umd/locale/bn.js +141 -0
  285. package/lib/umd/locale/ca.js +141 -0
  286. package/lib/umd/locale/cs-CZ.js +144 -0
  287. package/lib/umd/locale/da.js +141 -0
  288. package/lib/umd/locale/de.js +143 -0
  289. package/lib/umd/locale/ee.js +142 -0
  290. package/lib/umd/locale/el.js +142 -0
  291. package/lib/umd/locale/en.js +142 -0
  292. package/lib/umd/locale/eo.js +142 -0
  293. package/lib/umd/locale/es.js +141 -0
  294. package/lib/umd/locale/eu.js +142 -0
  295. package/lib/umd/locale/fa.js +142 -0
  296. package/lib/umd/locale/fi.js +142 -0
  297. package/lib/umd/locale/fr.js +141 -0
  298. package/lib/umd/locale/he.js +142 -0
  299. package/lib/umd/locale/hr.js +142 -0
  300. package/lib/umd/locale/hu.js +141 -0
  301. package/lib/umd/locale/hy-AM.js +142 -0
  302. package/lib/umd/locale/id.js +142 -0
  303. package/lib/umd/locale/is.js +142 -0
  304. package/lib/umd/locale/it.js +141 -0
  305. package/lib/umd/locale/ja.js +142 -0
  306. package/lib/umd/locale/kg.js +142 -0
  307. package/lib/umd/locale/km.js +142 -0
  308. package/lib/umd/locale/ko.js +142 -0
  309. package/lib/umd/locale/ku.js +142 -0
  310. package/lib/umd/locale/kz.js +142 -0
  311. package/lib/umd/locale/lo-LA.js +141 -0
  312. package/lib/umd/locale/lt.js +142 -0
  313. package/lib/umd/locale/lv.js +142 -0
  314. package/lib/umd/locale/mn.js +142 -0
  315. package/lib/umd/locale/ms.js +141 -0
  316. package/lib/umd/locale/nb-NO.js +141 -0
  317. package/lib/umd/locale/nl.js +142 -0
  318. package/lib/umd/locale/pl.js +142 -0
  319. package/lib/umd/locale/pt-br.js +142 -0
  320. package/lib/umd/locale/pt.js +142 -0
  321. package/lib/umd/locale/ro.js +142 -0
  322. package/lib/umd/locale/ru-RU.js +142 -0
  323. package/lib/umd/locale/si.js +142 -0
  324. package/lib/umd/locale/sk.js +144 -0
  325. package/lib/umd/locale/sl.js +142 -0
  326. package/lib/umd/locale/sr-Latn.js +142 -0
  327. package/lib/umd/locale/sr.js +142 -0
  328. package/lib/umd/locale/sv-SE.js +142 -0
  329. package/lib/umd/locale/sw.js +142 -0
  330. package/lib/umd/locale/ta.js +141 -0
  331. package/lib/umd/locale/th.js +142 -0
  332. package/lib/umd/locale/tk.js +142 -0
  333. package/lib/umd/locale/tr-TR.js +142 -0
  334. package/lib/umd/locale/ua.js +142 -0
  335. package/lib/umd/locale/ug-CN.js +142 -0
  336. package/lib/umd/locale/uz-UZ.js +142 -0
  337. package/lib/umd/locale/vi.js +142 -0
  338. package/lib/umd/locale/zh-CN.js +142 -0
  339. package/lib/umd/locale/zh-TW.js +142 -0
  340. package/lib/upload.js +1390 -0
  341. package/lib/utils/after-leave.js +35 -0
  342. package/lib/utils/aria-dialog.js +104 -0
  343. package/lib/utils/aria-utils.js +126 -0
  344. package/lib/utils/clickoutside.js +79 -0
  345. package/lib/utils/date-util.js +310 -0
  346. package/lib/utils/date.js +369 -0
  347. package/lib/utils/dom.js +234 -0
  348. package/lib/utils/lodash.js +9421 -0
  349. package/lib/utils/menu/aria-menubar.js +24 -0
  350. package/lib/utils/menu/aria-menuitem.js +62 -0
  351. package/lib/utils/menu/aria-submenu.js +69 -0
  352. package/lib/utils/merge.js +21 -0
  353. package/lib/utils/popper.js +1261 -0
  354. package/lib/utils/popup/index.js +233 -0
  355. package/lib/utils/popup/popup-manager.js +205 -0
  356. package/lib/utils/resize-event.js +59 -0
  357. package/lib/utils/scroll-into-view.js +38 -0
  358. package/lib/utils/scrollbar-width.js +39 -0
  359. package/lib/utils/shared.js +12 -0
  360. package/lib/utils/types.js +52 -0
  361. package/lib/utils/util.js +272 -0
  362. package/lib/utils/vdom.js +13 -0
  363. package/lib/utils/vue-popper.js +202 -0
  364. package/package.json +2 -2
  365. package/packages/theme-cy/lib/base.css +0 -0
  366. package/packages/theme-cy/lib/index.css +1 -0
  367. package/packages/theme-cy/lib/treeselect.css +1 -0
  368. package/packages/theme-cy/src/treeselect.scss +84 -1
  369. package/packages/treeselect/src/main.vue +0 -88
  370. package/src/index.js +1 -1
@@ -0,0 +1,272 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+ exports.isMac = exports.isEmpty = exports.isEqual = exports.arrayEquals = exports.looseEqual = exports.capitalize = exports.kebabCase = exports.autoprefixer = exports.isFirefox = exports.isEdge = exports.isIE = exports.coerceTruthyValueToArray = exports.arrayFind = exports.arrayFindIndex = exports.escapeRegexpString = exports.valueEquals = exports.generateId = exports.getValueByPath = undefined;
5
+
6
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
7
+
8
+ exports.noop = noop;
9
+ exports.hasOwn = hasOwn;
10
+ exports.toObject = toObject;
11
+ exports.getPropByPath = getPropByPath;
12
+ exports.rafThrottle = rafThrottle;
13
+ exports.objToArray = objToArray;
14
+
15
+ var _vue = require('vue');
16
+
17
+ var _vue2 = _interopRequireDefault(_vue);
18
+
19
+ var _types = require('element-ui/lib/utils/types');
20
+
21
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
+
23
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
24
+
25
+ function noop() {};
26
+
27
+ function hasOwn(obj, key) {
28
+ return hasOwnProperty.call(obj, key);
29
+ };
30
+
31
+ function extend(to, _from) {
32
+ for (var key in _from) {
33
+ to[key] = _from[key];
34
+ }
35
+ return to;
36
+ };
37
+
38
+ function toObject(arr) {
39
+ var res = {};
40
+ for (var i = 0; i < arr.length; i++) {
41
+ if (arr[i]) {
42
+ extend(res, arr[i]);
43
+ }
44
+ }
45
+ return res;
46
+ };
47
+
48
+ var getValueByPath = exports.getValueByPath = function getValueByPath(object, prop) {
49
+ prop = prop || '';
50
+ var paths = prop.split('.');
51
+ var current = object;
52
+ var result = null;
53
+ for (var i = 0, j = paths.length; i < j; i++) {
54
+ var path = paths[i];
55
+ if (!current) break;
56
+
57
+ if (i === j - 1) {
58
+ result = current[path];
59
+ break;
60
+ }
61
+ current = current[path];
62
+ }
63
+ return result;
64
+ };
65
+
66
+ function getPropByPath(obj, path, strict) {
67
+ var tempObj = obj;
68
+ path = path.replace(/\[(\w+)\]/g, '.$1');
69
+ path = path.replace(/^\./, '');
70
+
71
+ var keyArr = path.split('.');
72
+ var i = 0;
73
+ for (var len = keyArr.length; i < len - 1; ++i) {
74
+ if (!tempObj && !strict) break;
75
+ var key = keyArr[i];
76
+ if (key in tempObj) {
77
+ tempObj = tempObj[key];
78
+ } else {
79
+ if (strict) {
80
+ throw new Error('please transfer a valid prop path to form item!');
81
+ }
82
+ break;
83
+ }
84
+ }
85
+ return {
86
+ o: tempObj,
87
+ k: keyArr[i],
88
+ v: tempObj ? tempObj[keyArr[i]] : null
89
+ };
90
+ };
91
+
92
+ var generateId = exports.generateId = function generateId() {
93
+ return Math.floor(Math.random() * 10000);
94
+ };
95
+
96
+ var valueEquals = exports.valueEquals = function valueEquals(a, b) {
97
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
98
+ if (a === b) return true;
99
+ if (!(a instanceof Array)) return false;
100
+ if (!(b instanceof Array)) return false;
101
+ if (a.length !== b.length) return false;
102
+ for (var i = 0; i !== a.length; ++i) {
103
+ if (a[i] !== b[i]) return false;
104
+ }
105
+ return true;
106
+ };
107
+
108
+ var escapeRegexpString = exports.escapeRegexpString = function escapeRegexpString() {
109
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
110
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
111
+ };
112
+
113
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
114
+ var arrayFindIndex = exports.arrayFindIndex = function arrayFindIndex(arr, pred) {
115
+ for (var i = 0; i !== arr.length; ++i) {
116
+ if (pred(arr[i])) {
117
+ return i;
118
+ }
119
+ }
120
+ return -1;
121
+ };
122
+
123
+ var arrayFind = exports.arrayFind = function arrayFind(arr, pred) {
124
+ var idx = arrayFindIndex(arr, pred);
125
+ return idx !== -1 ? arr[idx] : undefined;
126
+ };
127
+
128
+ // coerce truthy value to array
129
+ var coerceTruthyValueToArray = exports.coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
130
+ if (Array.isArray(val)) {
131
+ return val;
132
+ } else if (val) {
133
+ return [val];
134
+ } else {
135
+ return [];
136
+ }
137
+ };
138
+
139
+ var isIE = exports.isIE = function isIE() {
140
+ return !_vue2.default.prototype.$isServer && !isNaN(Number(document.documentMode));
141
+ };
142
+
143
+ var isEdge = exports.isEdge = function isEdge() {
144
+ return !_vue2.default.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
145
+ };
146
+
147
+ var isFirefox = exports.isFirefox = function isFirefox() {
148
+ return !_vue2.default.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
149
+ };
150
+
151
+ var autoprefixer = exports.autoprefixer = function autoprefixer(style) {
152
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
153
+ var rules = ['transform', 'transition', 'animation'];
154
+ var prefixes = ['ms-', 'webkit-'];
155
+ rules.forEach(function (rule) {
156
+ var value = style[rule];
157
+ if (rule && value) {
158
+ prefixes.forEach(function (prefix) {
159
+ style[prefix + rule] = value;
160
+ });
161
+ }
162
+ });
163
+ return style;
164
+ };
165
+
166
+ var kebabCase = exports.kebabCase = function kebabCase(str) {
167
+ var hyphenateRE = /([^-])([A-Z])/g;
168
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
169
+ };
170
+
171
+ var capitalize = exports.capitalize = function capitalize(str) {
172
+ if (!(0, _types.isString)(str)) return str;
173
+ return str.charAt(0).toUpperCase() + str.slice(1);
174
+ };
175
+
176
+ var looseEqual = exports.looseEqual = function looseEqual(a, b) {
177
+ var isObjectA = (0, _types.isObject)(a);
178
+ var isObjectB = (0, _types.isObject)(b);
179
+ if (isObjectA && isObjectB) {
180
+ return JSON.stringify(a) === JSON.stringify(b);
181
+ } else if (!isObjectA && !isObjectB) {
182
+ return String(a) === String(b);
183
+ } else {
184
+ return false;
185
+ }
186
+ };
187
+
188
+ var arrayEquals = exports.arrayEquals = function arrayEquals(arrayA, arrayB) {
189
+ arrayA = arrayA || [];
190
+ arrayB = arrayB || [];
191
+
192
+ if (arrayA.length !== arrayB.length) {
193
+ return false;
194
+ }
195
+
196
+ for (var i = 0; i < arrayA.length; i++) {
197
+ if (!looseEqual(arrayA[i], arrayB[i])) {
198
+ return false;
199
+ }
200
+ }
201
+
202
+ return true;
203
+ };
204
+
205
+ var isEqual = exports.isEqual = function isEqual(value1, value2) {
206
+ if (Array.isArray(value1) && Array.isArray(value2)) {
207
+ return arrayEquals(value1, value2);
208
+ }
209
+ return looseEqual(value1, value2);
210
+ };
211
+
212
+ var isEmpty = exports.isEmpty = function isEmpty(val) {
213
+ // null or undefined
214
+ if (val == null) return true;
215
+
216
+ if (typeof val === 'boolean') return false;
217
+
218
+ if (typeof val === 'number') return !val;
219
+
220
+ if (val instanceof Error) return val.message === '';
221
+
222
+ switch (Object.prototype.toString.call(val)) {
223
+ // String or Array
224
+ case '[object String]':
225
+ case '[object Array]':
226
+ return !val.length;
227
+
228
+ // Map or Set or File
229
+ case '[object File]':
230
+ case '[object Map]':
231
+ case '[object Set]':
232
+ {
233
+ return !val.size;
234
+ }
235
+ // Plain Object
236
+ case '[object Object]':
237
+ {
238
+ return !Object.keys(val).length;
239
+ }
240
+ }
241
+
242
+ return false;
243
+ };
244
+
245
+ function rafThrottle(fn) {
246
+ var locked = false;
247
+ return function () {
248
+ var _this = this;
249
+
250
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
251
+ args[_key] = arguments[_key];
252
+ }
253
+
254
+ if (locked) return;
255
+ locked = true;
256
+ window.requestAnimationFrame(function (_) {
257
+ fn.apply(_this, args);
258
+ locked = false;
259
+ });
260
+ };
261
+ }
262
+
263
+ function objToArray(obj) {
264
+ if (Array.isArray(obj)) {
265
+ return obj;
266
+ }
267
+ return isEmpty(obj) ? [] : [obj];
268
+ }
269
+
270
+ var isMac = exports.isMac = function isMac() {
271
+ return !_vue2.default.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
272
+ };
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
6
+
7
+ exports.isVNode = isVNode;
8
+
9
+ var _util = require('element-ui/lib/utils/util');
10
+
11
+ function isVNode(node) {
12
+ return node !== null && (typeof node === 'undefined' ? 'undefined' : _typeof(node)) === 'object' && (0, _util.hasOwn)(node, 'componentOptions');
13
+ };
@@ -0,0 +1,202 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _vue = require('vue');
6
+
7
+ var _vue2 = _interopRequireDefault(_vue);
8
+
9
+ var _popup = require('element-ui/lib/utils/popup');
10
+
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ var PopperJS = _vue2.default.prototype.$isServer ? function () {} : require('./popper');
14
+ var stop = function stop(e) {
15
+ return e.stopPropagation();
16
+ };
17
+
18
+ /**
19
+ * @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
20
+ * @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
21
+ * @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
22
+ * @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
23
+ * @param {Boolean} [visible=false] Visibility of the popup element.
24
+ * @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
25
+ */
26
+ exports.default = {
27
+ props: {
28
+ transformOrigin: {
29
+ type: [Boolean, String],
30
+ default: true
31
+ },
32
+ placement: {
33
+ type: String,
34
+ default: 'bottom'
35
+ },
36
+ boundariesPadding: {
37
+ type: Number,
38
+ default: 5
39
+ },
40
+ reference: {},
41
+ popper: {},
42
+ offset: {
43
+ default: 0
44
+ },
45
+ value: Boolean,
46
+ visibleArrow: Boolean,
47
+ arrowOffset: {
48
+ type: Number,
49
+ default: 35
50
+ },
51
+ appendToBody: {
52
+ type: Boolean,
53
+ default: true
54
+ },
55
+ popperOptions: {
56
+ type: Object,
57
+ default: function _default() {
58
+ return {
59
+ gpuAcceleration: false
60
+ };
61
+ }
62
+ }
63
+ },
64
+
65
+ data: function data() {
66
+ return {
67
+ showPopper: false,
68
+ currentPlacement: ''
69
+ };
70
+ },
71
+
72
+
73
+ watch: {
74
+ value: {
75
+ immediate: true,
76
+ handler: function handler(val) {
77
+ this.showPopper = val;
78
+ this.$emit('input', val);
79
+ }
80
+ },
81
+
82
+ showPopper: function showPopper(val) {
83
+ if (this.disabled) return;
84
+ val ? this.updatePopper() : this.destroyPopper();
85
+ this.$emit('input', val);
86
+ }
87
+ },
88
+
89
+ methods: {
90
+ createPopper: function createPopper() {
91
+ var _this = this;
92
+
93
+ if (this.$isServer) return;
94
+ this.currentPlacement = this.currentPlacement || this.placement;
95
+ if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
96
+ return;
97
+ }
98
+
99
+ var options = this.popperOptions;
100
+ var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
101
+ var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
102
+
103
+ if (!reference && this.$slots.reference && this.$slots.reference[0]) {
104
+ reference = this.referenceElm = this.$slots.reference[0].elm;
105
+ }
106
+
107
+ if (!popper || !reference) return;
108
+ if (this.visibleArrow) this.appendArrow(popper);
109
+ if (this.appendToBody) document.body.appendChild(this.popperElm);
110
+ if (this.popperJS && this.popperJS.destroy) {
111
+ this.popperJS.destroy();
112
+ }
113
+
114
+ options.placement = this.currentPlacement;
115
+ options.offset = this.offset;
116
+ options.arrowOffset = this.arrowOffset;
117
+ this.popperJS = new PopperJS(reference, popper, options);
118
+ this.popperJS.onCreate(function (_) {
119
+ _this.$emit('created', _this);
120
+ _this.resetTransformOrigin();
121
+ _this.$nextTick(_this.updatePopper);
122
+ });
123
+ if (typeof options.onUpdate === 'function') {
124
+ this.popperJS.onUpdate(options.onUpdate);
125
+ }
126
+ this.popperJS._popper.style.zIndex = _popup.PopupManager.nextZIndex();
127
+ this.popperElm.addEventListener('click', stop);
128
+ },
129
+ updatePopper: function updatePopper() {
130
+ var popperJS = this.popperJS;
131
+ if (popperJS) {
132
+ popperJS.update();
133
+ if (popperJS._popper) {
134
+ popperJS._popper.style.zIndex = _popup.PopupManager.nextZIndex();
135
+ }
136
+ } else {
137
+ this.createPopper();
138
+ }
139
+ },
140
+ doDestroy: function doDestroy(forceDestroy) {
141
+ /* istanbul ignore if */
142
+ if (!this.popperJS || this.showPopper && !forceDestroy) return;
143
+ this.popperJS.destroy();
144
+ this.popperJS = null;
145
+ },
146
+ destroyPopper: function destroyPopper() {
147
+ if (this.popperJS) {
148
+ this.resetTransformOrigin();
149
+ }
150
+ },
151
+ resetTransformOrigin: function resetTransformOrigin() {
152
+ if (!this.transformOrigin) return;
153
+ var placementMap = {
154
+ top: 'bottom',
155
+ bottom: 'top',
156
+ left: 'right',
157
+ right: 'left'
158
+ };
159
+ var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
160
+ var origin = placementMap[placement];
161
+ this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? 'center ' + origin : origin + ' center';
162
+ },
163
+ appendArrow: function appendArrow(element) {
164
+ var hash = void 0;
165
+ if (this.appended) {
166
+ return;
167
+ }
168
+
169
+ this.appended = true;
170
+
171
+ for (var item in element.attributes) {
172
+ if (/^_v-/.test(element.attributes[item].name)) {
173
+ hash = element.attributes[item].name;
174
+ break;
175
+ }
176
+ }
177
+
178
+ var arrow = document.createElement('div');
179
+
180
+ if (hash) {
181
+ arrow.setAttribute(hash, '');
182
+ }
183
+ arrow.setAttribute('x-arrow', '');
184
+ arrow.className = 'popper__arrow';
185
+ element.appendChild(arrow);
186
+ }
187
+ },
188
+
189
+ beforeDestroy: function beforeDestroy() {
190
+ this.doDestroy(true);
191
+ if (this.popperElm && this.popperElm.parentNode === document.body) {
192
+ this.popperElm.removeEventListener('click', stop);
193
+ document.body.removeChild(this.popperElm);
194
+ }
195
+ },
196
+
197
+
198
+ // call destroy in keep-alive mode
199
+ deactivated: function deactivated() {
200
+ this.$options.beforeDestroy[0].call(this);
201
+ }
202
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cy-element-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "基于ElementUI开发的组件",
5
5
  "main": "lib/element-ui.common.js",
6
6
  "files": [
@@ -63,7 +63,7 @@
63
63
  "url": "https://github.com/ElemeFE/element/issues"
64
64
  },
65
65
  "unpkg": "lib/index.js",
66
- "style": "lib/theme-chalk/index.css",
66
+ "style": ["lib/theme-chalk/index.css", "lib/theme-cy/index.css"],
67
67
  "web-types": "./web-types.json",
68
68
  "dependencies": {
69
69
  "async-validator": "~1.8.1",
File without changes
@@ -0,0 +1 @@
1
+ .cy-treeselect-select{width:217px;height:36px;line-height:36px;border:1px solid #DCDFE6;border-radius:4px;padding:0 29px 0 15px;cursor:pointer;overflow:hidden;position:relative;-webkit-transition:all .3s;transition:all .3s}.cy-treeselect-select .cy-treeselect-select-v{width:100%;color:#606266;font-size:14px;white-space:nowrap;overflow:auto}.cy-treeselect-select .cy-treeselect-select-v-placeholder{color:#c0c4cc}.cy-treeselect-select .cy-treeselect-select-v-icon{color:#C0C4CC;position:absolute;top:0;right:9px}.cy-treeselect-select .cy-treeselect-select-v-icon .cy-treeselect-select-v-arrow{-webkit-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition:all .3s;transition:all .3s}.cy-treeselect-select .cy-treeselect-select-v-icon .cy-treeselect-select-v-arrow-show{-webkit-transform:rotateZ(-180deg);transform:rotateZ(-180deg)}.cy-treeselect-select.small{height:32px;line-height:32px}.cy-treeselect-select.small .cy-treeselect-select-v{font-size:13px}.cy-treeselect-select.mini{height:28px;line-height:28px}.cy-treeselect-select.mini .cy-treeselect-select-v{font-size:12px}.cy-treeselect-select:hover{border-color:#C0C4CC}.cy-treeselect-select-con-t{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #DCDFE6}.cy-treeselect-select-con-c{max-height:300px;overflow:auto}.el-form-item--medium .el-form-item--content .cy-treeselect{width:100%;height:36px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--medium .el-form-item--content .cy-treeselect>span{display:inline-block;width:100%}
@@ -0,0 +1 @@
1
+ .cy-treeselect-select{width:217px;height:36px;line-height:36px;border:1px solid #DCDFE6;border-radius:4px;padding:0 29px 0 15px;cursor:pointer;overflow:hidden;position:relative;-webkit-transition:all .3s;transition:all .3s}.cy-treeselect-select .cy-treeselect-select-v{width:100%;color:#606266;font-size:14px;white-space:nowrap;overflow:auto}.cy-treeselect-select .cy-treeselect-select-v-placeholder{color:#c0c4cc}.cy-treeselect-select .cy-treeselect-select-v-icon{color:#C0C4CC;position:absolute;top:0;right:9px}.cy-treeselect-select .cy-treeselect-select-v-icon .cy-treeselect-select-v-arrow{-webkit-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition:all .3s;transition:all .3s}.cy-treeselect-select .cy-treeselect-select-v-icon .cy-treeselect-select-v-arrow-show{-webkit-transform:rotateZ(-180deg);transform:rotateZ(-180deg)}.cy-treeselect-select.small{height:32px;line-height:32px}.cy-treeselect-select.small .cy-treeselect-select-v{font-size:13px}.cy-treeselect-select.mini{height:28px;line-height:28px}.cy-treeselect-select.mini .cy-treeselect-select-v{font-size:12px}.cy-treeselect-select:hover{border-color:#C0C4CC}.cy-treeselect-select-con-t{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #DCDFE6}.cy-treeselect-select-con-c{max-height:300px;overflow:auto}.el-form-item--medium .el-form-item--content .cy-treeselect{width:100%;height:36px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--medium .el-form-item--content .cy-treeselect>span{display:inline-block;width:100%}
@@ -1,4 +1,87 @@
1
1
  @import "./base.scss";
2
2
 
3
- .cy-treeselect {
3
+ .cy-treeselect-select {
4
+ width: 217px;
5
+ height: 36px;
6
+ line-height: 36px;
7
+ border: 1px solid #DCDFE6;
8
+ border-radius: 4px;
9
+ padding: 0 29px 0 15px;
10
+ cursor: pointer;
11
+ overflow: hidden;
12
+ position: relative;
13
+ transition: all .3s;
14
+
15
+ .cy-treeselect-select-v {
16
+ width: 100%;
17
+ color: #606266;
18
+ font-size: 14px;
19
+ white-space: nowrap;
20
+ overflow: auto;
21
+ }
22
+
23
+ .cy-treeselect-select-v-placeholder {
24
+ color: #c0c4cc;
25
+ }
26
+
27
+ .cy-treeselect-select-v-icon {
28
+ color: #C0C4CC;
29
+ position: absolute;
30
+ top: 0;
31
+ right: 9px;
32
+
33
+ .cy-treeselect-select-v-arrow {
34
+ transform: rotateZ(0deg);
35
+ transition: all .3s;
36
+ }
37
+
38
+ .cy-treeselect-select-v-arrow-show {
39
+ transform: rotateZ(-180deg);
40
+ }
41
+ }
42
+ }
43
+
44
+ .cy-treeselect-select.small {
45
+ height: 32px;
46
+ line-height: 32px;
47
+
48
+ .cy-treeselect-select-v {
49
+ font-size: 13px;
50
+ }
51
+ }
52
+
53
+ .cy-treeselect-select.mini {
54
+ height: 28px;
55
+ line-height: 28px;
56
+
57
+ .cy-treeselect-select-v {
58
+ font-size: 12px;
59
+ }
60
+ }
61
+
62
+ .cy-treeselect-select:hover {
63
+ border-color: #C0C4CC;
64
+ }
65
+
66
+ .cy-treeselect-select-con-t {
67
+ padding-bottom: 5px;
68
+ margin-bottom: 5px;
69
+ border-bottom: 1px solid #DCDFE6;
70
+ }
71
+
72
+ .cy-treeselect-select-con-c {
73
+ max-height: 300px;
74
+ overflow: auto;
75
+ }
76
+
77
+ .el-form-item--medium .el-form-item--content .cy-treeselect {
78
+ width: 100%;
79
+ height: 36px;
80
+ display: flex;
81
+ align-items: center;
82
+
83
+ > span {
84
+ display: inline-block;
85
+ width: 100%;
86
+ }
4
87
  }
@@ -241,91 +241,3 @@ export default {
241
241
  }
242
242
  };
243
243
  </script>
244
-
245
- <style scoped lang="scss">
246
- .cy-treeselect-select {
247
- width: 217px;
248
- height: 36px;
249
- line-height: 36px;
250
- border: 1px solid #DCDFE6;
251
- border-radius: 4px;
252
- padding: 0 29px 0 15px;
253
- cursor: pointer;
254
- overflow: hidden;
255
- position: relative;
256
- transition: all .3s;
257
-
258
- .cy-treeselect-select-v {
259
- width: 100%;
260
- color: #606266;
261
- font-size: 14px;
262
- white-space: nowrap;
263
- overflow: auto;
264
- }
265
-
266
- .cy-treeselect-select-v-placeholder {
267
- color: #c0c4cc;
268
- }
269
-
270
- .cy-treeselect-select-v-icon {
271
- color: #C0C4CC;
272
- position: absolute;
273
- top: 0;
274
- right: 9px;
275
-
276
- .cy-treeselect-select-v-arrow {
277
- transform: rotateZ(0deg);
278
- transition: all .3s;
279
- }
280
-
281
- .cy-treeselect-select-v-arrow-show {
282
- transform: rotateZ(-180deg);
283
- }
284
- }
285
- }
286
-
287
- .cy-treeselect-select.small {
288
- height: 32px;
289
- line-height: 32px;
290
-
291
- .cy-treeselect-select-v {
292
- font-size: 13px;
293
- }
294
- }
295
-
296
- .cy-treeselect-select.mini {
297
- height: 28px;
298
- line-height: 28px;
299
-
300
- .cy-treeselect-select-v {
301
- font-size: 12px;
302
- }
303
- }
304
-
305
- .cy-treeselect-select:hover {
306
- border-color: #C0C4CC;
307
- }
308
-
309
- .cy-treeselect-select-con-t {
310
- padding-bottom: 5px;
311
- margin-bottom: 5px;
312
- border-bottom: 1px solid #DCDFE6;
313
- }
314
-
315
- .cy-treeselect-select-con-c {
316
- max-height: 300px;
317
- overflow: auto;
318
- }
319
-
320
- .el-form-item--medium .el-form-item--content .cy-treeselect {
321
- width: 100%;
322
- height: 36px;
323
- display: flex;
324
- align-items: center;
325
-
326
- > span {
327
- display: inline-block;
328
- width: 100%;
329
- }
330
- }
331
- </style>
package/src/index.js CHANGED
@@ -214,7 +214,7 @@ if (typeof window !== 'undefined' && window.Vue) {
214
214
  }
215
215
 
216
216
  export default {
217
- version: '2.15.14',
217
+ version: '1.0.0',
218
218
  locale: locale.use,
219
219
  i18n: locale.i18n,
220
220
  install,