1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| import _extends from "@babel/runtime/helpers/esm/extends";
| import _mergeJSXProps from "@vue/babel-helper-vue-jsx-merge-props";
| // Utils
| import { createNamespace } from '../utils';
| import { inherit } from '../utils/functional'; // Mixins
|
| import { popupMixinProps } from '../mixins/popup'; // Components
|
| import Popup from '../popup'; // Types
|
| var _createNamespace = createNamespace('notify'),
| createComponent = _createNamespace[0],
| bem = _createNamespace[1];
|
| function Notify(h, props, slots, ctx) {
| var style = {
| color: props.color,
| background: props.background
| };
| return h(Popup, _mergeJSXProps([{
| "attrs": {
| "value": props.value,
| "position": "top",
| "overlay": false,
| "duration": 0.2,
| "lockScroll": false
| },
| "style": style,
| "class": [bem([props.type]), props.className]
| }, inherit(ctx, true)]), [(slots.default == null ? void 0 : slots.default()) || props.message]);
| }
|
| Notify.props = _extends({}, popupMixinProps, {
| color: String,
| message: [Number, String],
| duration: [Number, String],
| className: null,
| background: String,
| getContainer: [String, Function],
| type: {
| type: String,
| default: 'danger'
| }
| });
| export default createComponent(Notify);
|
|