Skip to content

Commit ea2f3f4

Browse files
committed
fix(label): modify mobile bug
1 parent 926fb6e commit ea2f3f4

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

packages/mobile/components/label/src/label.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
import type { ComputedRef, ExtractPropTypes } from 'vue'
1313
import type { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from '../../../types/shared.type'
14+
1415
export type { ISharedRenderlessParamHooks } from '../../../types/shared.type'
1516

1617
export const labelProps = {

packages/mobile/components/label/src/mobile.vue

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,12 @@
1818

1919
<script lang="ts">
2020
import { renderless, api } from './renderless/vue'
21-
import { props, setup, defineComponent } from '../../../vue-common'
21+
import { setup, defineComponent } from '../../../vue-common'
22+
import { labelProps } from './label'
2223
import '@opentiny/vue-theme-mobile/label/index.less'
2324
2425
export default defineComponent({
25-
props: [
26-
...props,
27-
'label',
28-
'color',
29-
'size',
30-
'type',
31-
'wholeline',
32-
'position',
33-
'ellipsis',
34-
'decimal',
35-
'limit',
36-
'isRequired',
37-
'bold'
38-
],
26+
props: labelProps,
3927
emits: ['click'],
4028
setup(props, context) {
4129
return setup({ props, context, renderless, api })

0 commit comments

Comments
 (0)