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.
- package/components/app/index.vue +1 -10
- package/components/chip/style.scss +0 -1
- package/components/codeEditor/highlightHtml.vue +8 -2
- package/components/codeEditor/index.vue +13 -55
- package/components/codeEditor/mixin.js +18 -4
- package/components/form/camInput.vue +6 -2
- package/components/form/input.vue +2 -2
- package/components/form/inputTel/assets/flags.png +0 -0
- package/components/form/inputTel/assets/flags@2x.png +0 -0
- package/components/form/mask-input.vue +2 -2
- package/components/form/select.vue +1 -1
- package/components/form/text-area.vue +1 -2
- package/components/form/text-editor/index.vue +0 -1
- package/components/form/timepicker/index.vue +18 -16
- package/components/form/unit-input.vue +1 -0
- package/components/formCreator/index.vue +7 -20
- package/components/index.js +1 -1
- package/components/infinite/index.vue +9 -6
- package/components/map/images/destination.png +0 -0
- package/components/map/images/layers.png +0 -0
- package/components/map/images/marker-icon.png +0 -0
- package/components/map/images/origin.png +0 -0
- package/components/map/images/point.png +0 -0
- package/components/map/index.vue +52 -20
- package/components/map/leaflet.css +511 -397
- package/components/map/route.vue +570 -560
- package/components/map/select.vue +64 -48
- package/components/message/index.vue +22 -21
- package/components/modal/index.vue +20 -7
- package/components/modal/style.scss +17 -14
- package/components/{app/notify → notify}/index.vue +21 -29
- package/components/{app/notify → notify}/notification.vue +10 -10
- package/components/notify/notify.js +27 -0
- package/components/searchBox/index.vue +30 -12
- package/components/slider/index.vue +1 -0
- package/components/table/crud/header.vue +55 -34
- package/components/table/crud/index.vue +4 -4
- package/components/table/index.vue +366 -367
- package/components/table/style.scss +1 -4
- package/components/tabs/index.vue +9 -23
- package/components/timeAgo/index.vue +4 -1
- package/components/tour/index.vue +237 -222
- package/components/tree/index.vue +135 -136
- package/components/tree/tree-element.vue +17 -3
- package/directive/index.js +1 -2
- package/directive/mask/index.js +1 -4
- package/directive/skeleton/index.js +27 -0
- package/directive/skeleton/style.scss +37 -0
- package/index.js +14 -9
- package/package.json +1 -1
- package/style/transitions.scss +6 -116
- package/tools/helper.js +20 -0
- 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();
|