UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

31 lines 680 B
import { defineComponent, h } from 'vue'; import { NBaseLoading } from "../../_internal/index.mjs"; import { useLocale } from "../../_mixins/index.mjs"; export default defineComponent({ name: 'LogLoader', props: { clsPrefix: { type: String, required: true } }, setup() { return { locale: useLocale('Log').localeRef }; }, render() { const { clsPrefix } = this; return h("div", { class: `${clsPrefix}-log-loader` }, h(NBaseLoading, { clsPrefix: clsPrefix, strokeWidth: 24, scale: 0.85 }), h("span", { class: `${clsPrefix}-log-loader__content` }, this.locale.loading)); } });