Skip to content

Commit

Permalink
feat: 库依赖问题修改
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuanliang committed Jul 9, 2024
1 parent 8f7eda2 commit 09dd90b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/playground/vite-project/src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import { DEFAULT_PAGE_SIZE } from '@/utils/index'
import useLoading from '@/hooks/loading'
import { cloneDeep } from 'lodash-es'
import { useDictionaryStore } from '@/store'
import { Vue3ArcoTable } from 'vue3-arco-table'
const { loading, setLoading } = useLoading(false)
const dictionaryStore = useDictionaryStore()
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/vite-project/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import '@/mock'
import '@/assets/styles/global.less'
import '@/assets/styles/custom.less'

import Vue3ArcoTable from 'vue3-arco-table'
// import Vue3ArcoTable from 'vue3-arco-table'

const app = createApp(App)

app.use(store)
app.use(ArcoVue, {})
app.use(ArcoVueIcon)
app.use(Vue3ArcoTable)
// app.use(Vue3ArcoTable)

app.mount('#app')
6 changes: 3 additions & 3 deletions packages/vue3-arco-table/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "vue3-arco-table",
"version": "0.6.2",
"version": "0.6.3",
"license": "MIT",
"description": "A simple form+table component for Vue 3",
"description": "A simple form+table component for Vue3",
"author": "https://github.com/zhangyuanliang",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -34,7 +34,7 @@
"require": "./dist/vue3-arco-table.cjs"
}
},
"dependencies": {
"peerDependencies": {
"@vueuse/core": "^10.11.0",
"vue": "^3.4.29"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vue3-arco-table/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export default defineConfig({
},
outDir: 'dist',
rollupOptions: {
external: ['vue', 'arco-design'],
external: ['vue', '@arco-design'],
output: {
exports: 'named',
globals: {
vue: 'Vue',
'arco-design': 'ArcoDesign',
'@arco-design': 'ArcoDesign',
},
},
},
Expand Down

0 comments on commit 09dd90b

Please sign in to comment.