renusify 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/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 +1 -1
  8. package/components/form/mask-input.vue +2 -2
  9. package/components/form/text-area.vue +1 -1
  10. package/components/form/text-editor/index.vue +0 -1
  11. package/components/form/timepicker/index.vue +18 -16
  12. package/components/form/unit-input.vue +1 -0
  13. package/components/formCreator/index.vue +7 -20
  14. package/components/index.js +1 -1
  15. package/components/infinite/index.vue +9 -6
  16. package/components/map/index.vue +52 -20
  17. package/components/map/leaflet.css +511 -397
  18. package/components/map/route.vue +570 -560
  19. package/components/map/select.vue +64 -48
  20. package/components/message/index.vue +22 -21
  21. package/components/modal/index.vue +20 -7
  22. package/components/modal/style.scss +17 -14
  23. package/components/{app/notify → notify}/index.vue +21 -29
  24. package/components/{app/notify → notify}/notification.vue +10 -10
  25. package/components/notify/notify.js +27 -0
  26. package/components/searchBox/index.vue +30 -12
  27. package/components/slider/index.vue +1 -0
  28. package/components/table/index.vue +366 -367
  29. package/components/table/style.scss +1 -4
  30. package/components/tabs/index.vue +9 -23
  31. package/components/timeAgo/index.vue +4 -1
  32. package/components/tour/index.vue +237 -222
  33. package/components/tree/index.vue +135 -136
  34. package/components/tree/tree-element.vue +17 -3
  35. package/directive/index.js +1 -2
  36. package/directive/mask/index.js +1 -4
  37. package/directive/skeleton/index.js +27 -0
  38. package/directive/skeleton/style.scss +37 -0
  39. package/index.js +14 -9
  40. package/package.json +1 -1
  41. package/style/transitions.scss +6 -116
  42. package/tools/helper.js +20 -0
  43. 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();