Commit dd28e57f2726346fc32bae4088345da29b3d400c

Authored by Aresn
1 parent e8e1677b

update Notice

Showing 1 changed file with 1 additions and 7 deletions   Show diff stats
src/components/base/notification/index.js
1 import Notification from './notification.vue'; 1 import Notification from './notification.vue';
2 import Vue from 'vue'; 2 import Vue from 'vue';
3 -import { camelcaseToHyphen } from '../../../utils/assist';  
4 3
5 Notification.newInstance = properties => { 4 Notification.newInstance = properties => {
6 const _props = properties || {}; 5 const _props = properties || {};
7 6
8 - let props = '';  
9 - Object.keys(_props).forEach(prop => {  
10 - props += ' :' + camelcaseToHyphen(prop) + '=' + prop;  
11 - });  
12 -  
13 const Instance = new Vue({ 7 const Instance = new Vue({
14 data: _props, 8 data: _props,
15 render (h) { 9 render (h) {
16 return h(Notification, { 10 return h(Notification, {
17 props: _props 11 props: _props
18 - }) 12 + });
19 } 13 }
20 }); 14 });
21 15