Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: types error; import error #82

Merged
merged 5 commits into from
Aug 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/modules/components/SiderContent/Content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type { MenuItem } from './type'
const router = useRouter()
withDefaults(
defineProps<{
menus: Array<MenuItem>
menus: MenuItem[]
}>(),
{
menus: () => []
Expand Down
1 change: 0 additions & 1 deletion examples/assets/directionFonts/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ code[class*="language-"] ::selection {
}

@media print {

code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
Expand Down
2 changes: 1 addition & 1 deletion examples/data/Rest/DynamicExtendView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {
} from '@/api/data'
import type { RestDataDetail } from '@/api/data/type'
import { message } from '@/utils/message'
import { uuid } from '@/utils/utils'
import { Logger, uuid } from '@/utils/utils'

const getEmptyParams = () => {
return [{ key: '', value: '', disable: false, id: uuid() }]
Expand Down
6 changes: 3 additions & 3 deletions examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import '@/css/index.less'
import '@/css/font.less'
import '@/assets/directionFonts/iconfont.css'

import { Directive, useComponetPlugin } from 'open-data-v'
import { Directive, useComponentPlugin } from 'open-data-v'
import { createApp } from 'vue'

import router from '@/router'
Expand All @@ -13,7 +13,7 @@ import App from './App.vue'
import CodeEditor from './components/CodeEditor'
import { useLoadComponent } from './load'

const componetPlugin = useComponetPlugin({ codeEditorComponet: CodeEditor })
const componentPlugin = useComponentPlugin({ codeEditorComponet: CodeEditor })
const AsyncComponent = useLoadComponent()

const app = createApp(App)
Expand All @@ -23,7 +23,7 @@ app.use(AsyncComponent)

// 注册状态管理器
app.use(store)
app.use(componetPlugin)
app.use(componentPlugin)

// 注册路由模块

Expand Down
4 changes: 4 additions & 0 deletions examples/pages/ApiView/DataHistory/static/Static.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ const dataListContextMenus = (id: string): Optional<ContextmenuItem[]> => {
}
]
}

const dataHistoryContextMenus = (_: string): Optional<ContextmenuItem[]> => {
return []
}
</script>
<style lang="less">
.data-item {
Expand Down
1 change: 1 addition & 0 deletions mock/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import api from './modules/api'

export default api
5 changes: 2 additions & 3 deletions mock/modules/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Random } from 'mockjs'
import dataDict from './data'
import { Covid19Data } from './data'

import dataDict, { Covid19Data } from './data'

const restData = [
{
Expand Down Expand Up @@ -88,7 +88,6 @@ export default [
const result: any[] = []
Object.keys(dataDict).forEach((key: string) => {
const data = dataDict[key]
// @ts-ignore
result.push({
id: key,
name: data.name,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
"stylelint": "^15.10.3",
"stylelint-config-recommended-vue": "^1.5.0",
"tailwindcss": "^3.3.3",
"typescript": "^4.9.5",
"vite": "4.2.1",
"typescript": "^5.1.6",
"vite": "4.2.3",
"vite-plugin-vue-markdown": "^0.22.6",
"vue-eslint-parser": "^7.11.0",
"vue-tsc": "^1.8.8"
Expand Down
Loading