renusify 1.4.3 → 1.4.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 (53) hide show
  1. package/components/app/index.vue +1 -10
  2. package/components/chip/style.scss +0 -1
  3. package/components/codeEditor/highlightHtml.vue +8 -2
  4. package/components/codeEditor/index.vue +13 -55
  5. package/components/codeEditor/mixin.js +18 -4
  6. package/components/form/camInput.vue +6 -2
  7. package/components/form/input.vue +2 -2
  8. package/components/form/inputTel/assets/flags.png +0 -0
  9. package/components/form/inputTel/assets/flags@2x.png +0 -0
  10. package/components/form/mask-input.vue +2 -2
  11. package/components/form/select.vue +1 -1
  12. package/components/form/text-area.vue +1 -2
  13. package/components/form/text-editor/index.vue +0 -1
  14. package/components/form/timepicker/index.vue +18 -16
  15. package/components/form/unit-input.vue +1 -0
  16. package/components/formCreator/index.vue +7 -20
  17. package/components/index.js +1 -1
  18. package/components/infinite/index.vue +9 -6
  19. package/components/map/images/destination.png +0 -0
  20. package/components/map/images/layers.png +0 -0
  21. package/components/map/images/marker-icon.png +0 -0
  22. package/components/map/images/origin.png +0 -0
  23. package/components/map/images/point.png +0 -0
  24. package/components/map/index.vue +52 -20
  25. package/components/map/leaflet.css +511 -397
  26. package/components/map/route.vue +570 -560
  27. package/components/map/select.vue +64 -48
  28. package/components/message/index.vue +22 -21
  29. package/components/modal/index.vue +20 -7
  30. package/components/modal/style.scss +17 -14
  31. package/components/{app/notify → notify}/index.vue +21 -29
  32. package/components/{app/notify → notify}/notification.vue +10 -10
  33. package/components/notify/notify.js +27 -0
  34. package/components/searchBox/index.vue +30 -12
  35. package/components/slider/index.vue +1 -0
  36. package/components/table/crud/header.vue +55 -34
  37. package/components/table/crud/index.vue +4 -4
  38. package/components/table/index.vue +366 -367
  39. package/components/table/style.scss +1 -4
  40. package/components/tabs/index.vue +9 -23
  41. package/components/timeAgo/index.vue +4 -1
  42. package/components/tour/index.vue +237 -222
  43. package/components/tree/index.vue +135 -136
  44. package/components/tree/tree-element.vue +17 -3
  45. package/directive/index.js +1 -2
  46. package/directive/mask/index.js +1 -4
  47. package/directive/skeleton/index.js +27 -0
  48. package/directive/skeleton/style.scss +37 -0
  49. package/index.js +14 -9
  50. package/package.json +1 -1
  51. package/style/transitions.scss +6 -116
  52. package/tools/helper.js +20 -0
  53. package/components/app/notify/notify.js +0 -28
package/tools/helper.js CHANGED
@@ -377,4 +377,24 @@ export function getCookie(cname) {
377
377
  }
378
378
  }
379
379
  return "";
380
+ }
381
+
382
+ export function changeColor(vars) {
383
+ let head = document.head || document.getElementsByTagName('head')[0]
384
+ let children = head.querySelectorAll("[c='color']");
385
+ if (children) {
386
+ let childArray = Array.prototype.slice.call(children);
387
+ childArray.forEach(function (child) {
388
+ child.parentNode.removeChild(child);
389
+ });
390
+ }
391
+ let style = document.createElement('style');
392
+ style.setAttribute("c", "color");
393
+ head.appendChild(style);
394
+ let css = ':root{';
395
+ for (let k in vars) {
396
+ css += k + ':' + vars[k] + ';'
397
+ }
398
+ css += '}'
399
+ style.appendChild(document.createTextNode(css));
380
400
  }
@@ -1,28 +0,0 @@
1
- class Notify {
2
- constructor () {
3
- this._config = {
4
- handler: (msg) => {
5
- },
6
- bus: 'renusifyBus',
7
- event: 'notify'
8
- };
9
- }
10
-
11
- show (message) {
12
- const config = this._config;
13
- setTimeout(() => {
14
- window[config.bus].emit(config.event, message);
15
- }, 100);
16
- }
17
-
18
- hide () {
19
- const config = this._config;
20
- window[config.bus].emit('hide-' + config.event);
21
- }
22
-
23
- listener () {
24
- window[this._config.bus].on(this._config.event, this._config.handler);
25
- }
26
- }
27
-
28
- export default new Notify();