UNPKG

vant-fork

Version:

Lightweight Mobile UI Components built on Vue

42 lines (38 loc) 877 B
var _components; import Info from '../info'; import create from '../utils/create-basic'; export default create({ render: function render() { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; return _c('i', _vm._g({ class: [_vm.classPrefix, _vm.classPrefix + "-" + _vm.name], style: _vm.style }, _vm.$listeners), [_vm._t("default"), _c('van-info', { attrs: { "info": _vm.info } })], 2); }, name: 'icon', components: (_components = {}, _components[Info.name] = Info, _components), props: { name: String, info: [String, Number], color: String, size: String, classPrefix: { type: String, default: 'van-icon' } }, computed: { style: function style() { return { color: this.color, fontSize: this.size }; } } });