index.js 499 B

12345678910111213141516171819202122
  1. import _mergeJSXProps from "@vue/babel-helper-vue-jsx-merge-props";
  2. import { use, isDef } from '../utils';
  3. import { inherit } from '../utils/functional'; // Types
  4. var _use = use('info'),
  5. sfc = _use[0],
  6. bem = _use[1];
  7. function Info(h, props, slots, ctx) {
  8. if (!isDef(props.info) || props.info === '') {
  9. return;
  10. }
  11. return h("div", _mergeJSXProps([{
  12. "class": bem()
  13. }, inherit(ctx, true)]), [props.info]);
  14. }
  15. Info.props = {
  16. info: [String, Number]
  17. };
  18. export default sfc(Info);