renderele.js 346 B

123456789101112131415
  1. import { h } from 'vue'
  2. import HcIcon from '../global/components/hc-icon/index.vue'
  3. export const HcIconJs = ({ui, fill, name, line}) => {
  4. return h(HcIcon, {
  5. ui: ui ?? '',
  6. fill: fill || false,
  7. name: name ?? '',
  8. line: line !== false
  9. })
  10. }
  11. export const hIconJs = (obj) => {
  12. return () => HcIconJs(obj);
  13. }