MiniSelect.js 623 B

123456789101112131415161718192021222324
  1. import _extends from 'babel-runtime/helpers/extends';
  2. import VcSelect, { SelectProps } from '../select';
  3. import { getOptionProps, filterEmpty, getListeners } from '../_util/props-util';
  4. export default {
  5. props: _extends({}, SelectProps),
  6. Option: VcSelect.Option,
  7. render: function render() {
  8. var h = arguments[0];
  9. var selectOptionsProps = getOptionProps(this);
  10. var selelctProps = {
  11. props: _extends({}, selectOptionsProps, {
  12. size: 'small'
  13. }),
  14. on: getListeners(this)
  15. };
  16. return h(
  17. VcSelect,
  18. selelctProps,
  19. [filterEmpty(this.$slots['default'])]
  20. );
  21. }
  22. };