Skip to content

form表单校验时,中英切换,提示内容没有变更 #998

@xuanjinliang

Description

@xuanjinliang
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.10

Environment

Vue version 2.6.10

Reproduction link

https://vue.ant.design/components/form-cn/

Steps to reproduce

主要的是 v-decorator 当切换语言时,提示内容没有变更
代码如下:

<a-date-picker
        style="width: 100%"
        :showTime="showTime"
        :format="format"
        :placeholder="$t('startTip')"
        :disabledDate="startDisabledDate"
        v-decorator="['startTime', startRule]"
      />

computed: {
  startRule() {
      return {
        rules: [
          {
            required: true,
            message: () => this.$t('startTip')
          }
        ]
      }
    },
}

What is expected?

Language can be switched

What is actually happening?

Language can be switched

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