| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | import _extends from "@babel/runtime/helpers/esm/extends";import _mergeJSXProps from "@vue/babel-helper-vue-jsx-merge-props";// Utilsimport { createNamespace } from '../utils';import { inherit } from '../utils/functional'; // Mixinsimport { popupMixinProps } from '../mixins/popup'; // Componentsimport Popup from '../popup'; // Typesvar _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);
 |