| | |
| | | * @return {[type]} [description] |
| | | */ |
| | | self.open = function (opt) { |
| | | /* let option = { |
| | | type: 1, |
| | | content: opt.content, |
| | | area: opt.area |
| | | } */ |
| | | console.log(opt) |
| | | self.closeAll() |
| | | var options = mergeJson(opt, defOptions) |
| | | console.log('11111' + options) |
| | | const id = `notification_${new Date().getTime()}_${seed++}` |
| | | options.id = id |
| | | options.layer = self |
| | | options.content.content = Vue.extend(options.content.content) |
| | | options.content.comp = Vue.extend(options.content.comp) |
| | | console.log(options) |
| | | const instance = new LayerVueExtend({ |
| | | data: options |
| | | }) |