vue-pro/yudao-ui-admin-vue3/plop/component/component.hbs

12 lines
262 B
Handlebars
Raw Normal View History

2022-07-18 19:06:37 +08:00
<script setup lang="ts">
import { useDesign } from '@/hooks/web/useDesign'
const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('{{ name }}')
</script>
<template>
<div :class="`${prefixCls}-{{ name }}`">{{ upperFirstName }}</div>
</template>