fix: 打包报错

This commit is contained in:
yangmi 2022-07-25 17:19:17 +08:00
parent 427c916273
commit c3585a8fd1
5 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"version": "1.0.6", "version": "1.0.6",
"scripts": { "scripts": {
"dev": "vite --host", "dev": "vite --host",
"build": "npm run test && vite build", "build": "rimraf ./dist && npm run test && vite build",
"preview": "vite preview", "preview": "vite preview",
"new": "plop --plopfile ./plop/plopfile.js", "new": "plop --plopfile ./plop/plopfile.js",
"test": "vue-tsc --noEmit", "test": "vue-tsc --noEmit",

View File

@ -45,12 +45,14 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { PropType } from 'vue'
import { import {
GlobalSetting, GlobalSetting,
CollapseItem, CollapseItem,
SettingItemBox, SettingItemBox,
SettingItem SettingItem
} from '@/components/Pages/ChartItemSetting' } from '@/components/Pages/ChartItemSetting'
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
const props = defineProps({ const props = defineProps({
optionData: { optionData: {

View File

@ -17,6 +17,7 @@ import { useChartDataFetch } from '@/hooks'
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
import { mergeTheme } from '@/packages/public/chart' import { mergeTheme } from '@/packages/public/chart'
import { isPreview } from '@/utils' import { isPreview } from '@/utils'
import { CreateComponentType } from '@/packages/index.d'
import { includes } from './config' import { includes } from './config'
const props = defineProps({ const props = defineProps({

View File

@ -5,7 +5,7 @@ import cloneDeep from 'lodash/cloneDeep'
export const option = { export const option = {
colors: ['#1089ff', '#0000ff'], colors: ['#1089ff', '#0000ff'],
backgroundColor: '#00000000' backgroundColor: '#000000'
} }
export default class Config extends publicConfig implements CreateComponentType { export default class Config extends publicConfig implements CreateComponentType {

View File

@ -1,5 +1,6 @@
{ {
"title": { "title": {
"text": "",
"show": true, "show": true,
"textStyle": { "textStyle": {
"color": "#BFBFBF", "color": "#BFBFBF",