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

feat(mobile): optimize the common package name on mobile devices #2775

Closed
wants to merge 1 commit into from
Closed
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
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/mobile/components/action-sheet/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<script lang="ts">
import { renderless, api } from './renderless/vue'
import { $prefix, setup, defineComponent } from '@mobile-root/vue-common'
import { $prefix, setup, defineComponent } from '@mobile-root/common'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new import path @mobile-root/common is correctly configured and available in the project to prevent module resolution errors.

import '@opentiny/vue-theme-mobile/action-sheet/index.less'
import BScroll from '@better-scroll/core'
import { actionSheetProps } from './action-sheet'
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/alert/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<script lang="ts">
import { renderless, api } from './renderless/vue'
import { setup, defineComponent } from '@mobile-root/vue-common'
import { setup, defineComponent } from '@mobile-root/common'
import { iconClose, iconSuccess, iconError, iconHelp, iconWarningTriangle } from '@opentiny/vue-icon'
import type { IAlertApi } from './alert'
import { alertProps } from './alert'
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/avatar/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
-->
<script lang="tsx">
import { $prefix, setup, h, defineComponent } from '@mobile-root/vue-common'
import { $prefix, setup, h, defineComponent } from '@mobile-root/common'
import { renderless, api } from './renderless/vue'
import '@opentiny/vue-theme-mobile/avatar/index.less'

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/badge/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<script lang="ts">
import { renderless, api } from './renderless/vue'
import { setup, defineComponent } from '@mobile-root/vue-common'
import { setup, defineComponent } from '@mobile-root/common'
import { badgeProps } from './badge'
import '@opentiny/vue-theme-mobile/badge/index.less'

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/button/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<script lang="ts">
import { renderless, api } from './renderless/vue'
import { setup, defineComponent } from '@mobile-root/vue-common'
import { setup, defineComponent } from '@mobile-root/common'
import { buttonProps } from './button'
import '@opentiny/vue-theme-mobile/button/index.less'

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/checkbox-group/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<script lang="tsx">
import { renderless, api } from './renderless/vue'
import { $prefix, setup, defineComponent } from '@mobile-root/vue-common'
import { $prefix, setup, defineComponent } from '@mobile-root/common'
import Checkbox from '../../checkbox'
import { CheckboxGroupProps } from './checkbox-group'
import '@opentiny/vue-theme-mobile/checkbox-group/index.less'
Expand Down
168 changes: 0 additions & 168 deletions packages/mobile/components/checkbox/src/checkbox.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/mobile/components/checkbox/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<script lang="ts">
import { renderless, api } from './renderless/vue'
import { $prefix, setup, defineComponent } from '@mobile-root/vue-common'
import { $prefix, setup, defineComponent } from '@mobile-root/common'
import { checkboxProps } from './checkbox'
import '@opentiny/vue-theme-mobile/checkbox/index.less'

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/container/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<script lang="ts">
import { renderless, api } from './renderless/vue'
import { setup, defineComponent } from '@mobile-root/vue-common'
import { setup, defineComponent } from '@mobile-root/common'
import { containerProps } from './container'
import '@opentiny/vue-theme-mobile/container/index.less'

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/date-picker/src/date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
import type { PropType } from '@mobile-root/vue-common'
import type { PropType } from '@mobile-root/common'
import { iconClose } from '@opentiny/vue-icon'
import type { ComputedRef, ExtractPropTypes } from 'vue'
import type { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from '../../../types/shared.type'
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/components/date-picker/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</template>

<script lang="ts">
import { props, setup, defineComponent } from '@mobile-root/vue-common'
import { props, setup, defineComponent } from '@mobile-root/common'
import { renderless, api } from './renderless/vue'
import MiniPicker from '../../mini-picker'
import Input from '../../input'
Expand Down
Loading
Loading