Commit dd28e57f2726346fc32bae4088345da29b3d400c
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 | 1 | import Notification from './notification.vue'; |
2 | 2 | import Vue from 'vue'; |
3 | -import { camelcaseToHyphen } from '../../../utils/assist'; | |
4 | 3 | |
5 | 4 | Notification.newInstance = properties => { |
6 | 5 | const _props = properties || {}; |
7 | 6 | |
8 | - let props = ''; | |
9 | - Object.keys(_props).forEach(prop => { | |
10 | - props += ' :' + camelcaseToHyphen(prop) + '=' + prop; | |
11 | - }); | |
12 | - | |
13 | 7 | const Instance = new Vue({ |
14 | 8 | data: _props, |
15 | 9 | render (h) { |
16 | 10 | return h(Notification, { |
17 | 11 | props: _props |
18 | - }) | |
12 | + }); | |
19 | 13 | } |
20 | 14 | }); |
21 | 15 | ... | ... |