Coder Social home page Coder Social logo

`time-picker` 存在以下问题: 1. 当 `readonly` 属性被设置为 `true` 时,输入框仍然可以编辑,并且按键点击后就会触发面板,就可以修改数据。 2. 在 `readonly` 或者 `disabled` 状态下,通过 `v-model:popup-visible` 可以打开面板,打开后可对数据进行更改。 3. 文档提到了 `trigger-props` 属性,但是在源码中未找到相应的实现。 about arco-design-vue HOT 1 CLOSED

eicoder avatar eicoder commented on July 27, 2024
`time-picker` 存在以下问题: 1. 当 `readonly` 属性被设置为 `true` 时,输入框仍然可以编辑,并且按键点击后就会触发面板,就可以修改数据。 2. 在 `readonly` 或者 `disabled` 状态下,通过 `v-model:popup-visible` 可以打开面板,打开后可对数据进行更改。 3. 文档提到了 `trigger-props` 属性,但是在源码中未找到相应的实现。

from arco-design-vue.

Comments (1)

eicoder avatar eicoder commented on July 27, 2024 1

希望placeholder属性开放string[]类型

/**
     * @zh 提示文案
     * @en Prompt copy
     * */
    placeholder: {
      type: String,
    },

组件有时间选择器和时间范围选择器,所以placeholder应支持数组配置,目前类型定义只开放string类型,但实际上代码也是支持string[]的

const computedPlaceholder = computed(() => {
      const _placeholder = placeholder?.value;
      // 单个
      if (!isRange.value) {
        return !isUndefined(_placeholder)
          ? _placeholder
          : t('datePicker.placeholder.time');
      }
      // 范围
      if (isUndefined(_placeholder)) {
        return t('datePicker.rangePlaceholder.time');
      }
      if (!isArray(_placeholder)) {
        return [_placeholder, _placeholder];
      }
      return _placeholder;
    });

from arco-design-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.