Skip to content

Commit

Permalink
refactor: 解耦了核心模块
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsGoo committed Aug 30, 2023
1 parent 00e121b commit 3879abd
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 99 deletions.
2 changes: 1 addition & 1 deletion examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import { NGlobalStyle, NLoadingBarProvider } from 'naive-ui'
import { useCanvasState } from 'open-data-v'
import { useCanvasState } from 'open-data-v/designer'
import { computed, provide, readonly, ref } from 'vue'
import { RouterView, useRouter } from 'vue-router'
Expand Down
3 changes: 2 additions & 1 deletion examples/api/pages/type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { CanvasStyleData, ComponentDataType } from 'open-data-v'
import type { ComponentDataType } from 'open-data-v/base'
import type { CanvasStyleData } from 'open-data-v/designer'

export interface LayoutData {
id?: string
Expand Down
2 changes: 1 addition & 1 deletion examples/data/Quick/Content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<script lang="ts" setup>
import type { SelectOption } from 'naive-ui'
import { NButton, NInput, NInputGroup, NSelect } from 'naive-ui'
import { StaticKey, useEventBus } from 'open-data-v'
import { StaticKey, useEventBus } from 'open-data-v/base'
import { StaticContent } from 'open-data-v/data/static'
import { onMounted, reactive, ref, watch } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion examples/data/Rest/DynamicExtendContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import type { AxiosResponse } from 'axios'
import type { SelectOption } from 'naive-ui'
import { NButton, NButtonGroup, NInput, NSelect, NSpace } from 'naive-ui'
import { StaticKey, useEventBus } from 'open-data-v'
import { StaticKey, useEventBus } from 'open-data-v/base'
import { useRequest } from 'open-data-v/data/hooks/http'
import type { RestOption, RestResponse } from 'open-data-v/data/rest'
import {
Expand Down
2 changes: 1 addition & 1 deletion 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, useComponentPlugin } from 'open-data-v'
import { Directive, useComponentPlugin } from 'open-data-v/designer'
import { createApp } from 'vue'

import router from '@/router'
Expand Down
4 changes: 2 additions & 2 deletions examples/load.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { BaseComponent } from 'open-data-v'
import { useCanvasState } from 'open-data-v'
import type { BaseComponent } from 'open-data-v/base'
import { useCanvasState } from 'open-data-v/designer'
import type { App } from 'vue'
import { defineAsyncComponent } from 'vue'

Expand Down
2 changes: 1 addition & 1 deletion examples/router/modules/docs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ComponentItem } from 'open-data-v'
import type { ComponentItem } from 'open-data-v/designer'

import type { GroupType } from '@/enum'
import { ComponentGroupList } from '@/enum'
Expand Down
2 changes: 1 addition & 1 deletion examples/scriptView/Conetent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<script lang="ts" setup>
import { NButton, NButtonGroup, NCard, NDivider, NInput, NSpace, NTabPane, NTabs } from 'naive-ui'
import { StaticKey, useEventBus } from 'open-data-v'
import { StaticKey, useEventBus } from 'open-data-v/base'
import { makeFunction } from 'open-data-v/scripts'
import { reactive, ref } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion examples/scriptView/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</template>
<script setup lang="ts">
import { NCard, NGradientText, NInput, NLi, NOl, NTabPane, NTabs } from 'naive-ui'
import { eventBus, StaticKey } from 'open-data-v'
import { eventBus, StaticKey } from 'open-data-v/base'
import { onMounted, ref } from 'vue'
import { getAfterScriptListApi } from '@/api/data/afterScript'
Expand Down
2 changes: 1 addition & 1 deletion examples/utils/http/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
import Axios from 'axios'
import { useCanvasState } from 'open-data-v'
import { useCanvasState } from 'open-data-v/designer'

import { useUserStoreWithOut } from '@/store/modules/user'
import type { ResultType } from '@/utils/http/config'
Expand Down
2 changes: 1 addition & 1 deletion resource/Container/Tabs/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
</div>
</template>
<script setup lang="ts">
import { Group, Shape, useCanvasState } from 'open-data-v'
import type { CustomComponent } from 'open-data-v/base'
import { DataMode, useProp } from 'open-data-v/base'
import { Group, Shape, useCanvasState } from 'open-data-v/designer'
import {
filterStyle,
getComponentStyle,
Expand Down
87 changes: 0 additions & 87 deletions src/index.ts

This file was deleted.

0 comments on commit 3879abd

Please sign in to comment.