diff --git a/packages/vue/src/statistic/index.ts b/packages/vue/src/statistic/index.ts index 4772ba68d5..c98829b3f2 100644 --- a/packages/vue/src/statistic/index.ts +++ b/packages/vue/src/statistic/index.ts @@ -9,7 +9,7 @@ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ -import Statistic from './src/index.js' +import Statistic from './src/index' import '@opentiny/vue-theme/statistic/index.less' import { version } from './package.json' diff --git a/packages/vue/src/statistic/src/index.ts b/packages/vue/src/statistic/src/index.ts index 489e0112a8..fe53422a4e 100644 --- a/packages/vue/src/statistic/src/index.ts +++ b/packages/vue/src/statistic/src/index.ts @@ -1,5 +1,4 @@ import type { PropType } from '@opentiny/vue-common' -import type { StyleValue } from 'vue' import { $props, $prefix, $setup, defineComponent } from '@opentiny/vue-common' import template from 'virtual-template?pc' @@ -28,7 +27,7 @@ export const statisticProps = { suffix: String, title: [String, Object], valueStyle: { - type: definePropType([String, Object, Array]) + type: [String, Object, Array] }, groupSeparator: { type: String,