From dd28e57f2726346fc32bae4088345da29b3d400c Mon Sep 17 00:00:00 2001 From: Aresn Date: Thu, 1 Jun 2017 10:52:27 +0800 Subject: [PATCH] update Notice --- src/components/base/notification/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/base/notification/index.js b/src/components/base/notification/index.js index 794bac5..b9453cf 100644 --- a/src/components/base/notification/index.js +++ b/src/components/base/notification/index.js @@ -1,21 +1,15 @@ import Notification from './notification.vue'; import Vue from 'vue'; -import { camelcaseToHyphen } from '../../../utils/assist'; Notification.newInstance = properties => { const _props = properties || {}; - let props = ''; - Object.keys(_props).forEach(prop => { - props += ' :' + camelcaseToHyphen(prop) + '=' + prop; - }); - const Instance = new Vue({ data: _props, render (h) { return h(Notification, { props: _props - }) + }); } }); -- libgit2 0.21.4