Skip to content

[主题类型丢失] 升级项目库版本后,主题类型丢失 #35

@panchaoco

Description

@panchaoco

Describe the bug

当我升级该依赖版本到1.9.0之后,主题类型丢失了

Reproduce link

No response

To reproduce

我按照https://vue-styled-components.com/zh/guide/advances/theming 文档配置后,之前的项目主题类型可以正常获取。现在失效了,以下我的示例代码

import '@vue-styled-components/core'

export {}

declare module '@vue-styled-components/core' {
  interface Colors {
    primary: string
    upColor: string
    downColor: string
    textPrimaryColor: string
    titleColor: string
    labelColor: string
    valueColor: string
    backgroundColor: string
    text1: string
    border: string
    btnBg1: string
    tabBg2: string
    tabActive: string
    tabInactive: string
    label2: string
    text3: string
    ciBg1: string
    rowHeaderBg: string
    cardBg: string
    formItemBg: string
    placeholder: string
  }

  interface Theme {
 
    theme: 'light' | 'dark'
    colors: Colors
    chineseFontFamily: string
    charFontFamily: string
  }

  export interface DefaultTheme extends Theme {}
}

image

Expected behavior

No response

Actual behavior

No response

Package version

1.9.0

Framework version

No response

Node version

No response

Browsers version

No response

OS version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions