Skip to content

Releases: didi/mand-mobile

v2.5.1

04 Sep 14:42
Compare
Choose a tag to compare

中文:

  • Feat

    • 增加部分全局reset样式
    • 新增组件Skeleton
    • 新增组件TextareaItem
    • 新增组件RadioGroupRadioBox
    • ActionBarResultPage增加按钮配置属性type , plain, round, inactive, loading, icon, iconSvg#544
    • Dialog单例模式增加onShowonHide
    • InputItem增加属性preview-type用于设置预填展示时类型
    <md-input-item
      type="bankCard" <!-- 正常输入时表单类型 -->
      preview-type="text" <!-- 预填展示时表单类型 -->
      title="银行卡号"
      value="6222 **** **** 1234"  <!-- 带掩码的预填值 -->
    ></md-input-item>
  • Fix

    • 修复Swiper滑出滚动区域时无法正常翻页问题#540
    • 修改按钮背景色设置属性为background,容器元素为div

English:

  • Feat

    • Add part of global reset style
    • Add new component Skeleton
    • Add new component TextareaItem
    • Add new components RadioGroup and RadioBox
    • Add options type , plain, round, inactive, loading, icon, iconSvg to ActionBar and ResultPage button configration#544
    • Add handlers onShow and onHide to singleton mode Dialog
    • InputItem add prop preview-type, used to set the type of pre-filled impression
    <md-input-item
      type="bankCard" <!-- type when entering normally -->
      preview-type="text" <!-- type when pre-filling display -->
      title="银行卡号"
      value="6222 **** **** 1234"  <!-- pre-filled value with mask -->
    ></md-input-item>
  • Fix

    • fix page flipping problem when sliding out of touch area in Swiper#540
    • modify button background color setting property to background and the container element to div

v2.4.2

13 Aug 05:01
Compare
Choose a tag to compare

中文:

  • Fix
    • 修复FieldItemInputItem标题和内容对齐的样式问题#528
    • 修复FieldItemInputItem在安卓设备中内容字体加粗问题

English:

  • Fix
    • fix style issues with FieldItem and InputItem headers and content alignment#528
    • bolder font weight in android devices of FieldItem and InputItem

v2.4.1

03 Aug 03:23
Compare
Choose a tag to compare

中文:

  • Fix
    • 修复InputItem使用虚拟键盘输入时无法限制字符长度的问题#524
    • 修复Amount使用动效时数字的精度问题

English:

  • Fix
    • Fix the problem that InputItem cannot limit the max length of characters when using virtual keyboard input#524
    • Fix Amount with the loss of precision in animation mode

v2.4.0

29 Jul 06:42
Compare
Choose a tag to compare

中文:

  • Design

    • 🍭金融设计规范更新,Popup类组件标题栏border-radius8px变为40px(大圆角模式),Dialog组件border-radius8px变为12px

    Design

  • Feature

    • PopupTitleBar增加以下属性:

      • large-radius,用于支持大圆角模式
      • only-close,用于快捷设置单个关闭按钮
      • title-align,用于设置标题描述位置(left/right/center)
    • Picker, DatePicker, TabPicker, Selector, Cashier增加属性large-radius用于支持支持大圆角模式

    • Selector增加属性hide-title-bar,用于支持在无需确认模式下隐藏标题栏,增加插槽headerfooter

    • Button增加属性loading,用于设置加载状态

    • Dialog属性btns中增加两个状态设置disabled(禁用态)/loading(加载态),并在handler中回传btn实例#500

      export default {
        data () {
          return {
            btns: [{
              text: '搜索',
              handler: this.btnHandler
            }]
          }
        },
        methods: {
          btnHandler (btn) {
            this.$set(btn, 'loading', true)
            this.$set(btn, 'text', '搜索中')
          },
        }
      }
  • Fix

    • 修复InputItemStepper有默认值时会在组件初始化时误触发change事件#495
    • Amount大写模式兼容负数#510

English:

  • Design

    • 🍭Financial design specification update, the title bar border-radius of Popup based components changed from 8px to 40px (Large-Radius pattern), border-radius of Dialog changed from 8px to 12px

    Design

  • Feature

    • PopupTitleBar adds following Props:

      • large-radius for supporting Large-Radius pattern
      • only-close, used to quickly set a single close button
      • title-align, used to set the position of title and description(left/right/center)
    • Picker, DatePicker, TabPicker, Selector, Cashier add Prop large-radius for supporting Large-Radius pattern

    • Selector adds Prop hide-title-bar, used to support hiding the title bar in no confirmation mode, and adds slots headerfooter

    • Button adds Prop loading, used to set the loading status

    • Dialog Prop btns adds two status settings disabled/loading, and passing back the btn instance in handler#500

      export default {
        data () {
          return {
            btns: [{
              text: 'Search',
              handler: this.btnHandler
            }]
          }
        },
        methods: {
          btnHandler (btn) {
            this.$set(btn, 'loading', true)
            this.$set(btn, 'text', 'Searching')
          },
        }
      }
  • Fix

    • fix InputItem and Stepper with default values will trigger the change event when the component is initialized#495
    • Amount capital mode is compatible with negative numbers#510

v2.3.3

18 Jul 07:07
Compare
Choose a tag to compare

中文:

  • Fix
    • 修复Toast自定义位置时的样式兼容问题#485
    • 修复TabPicker设置default-value时,TabBar无法自动选中最后一项的问题#488
    • 修复SelectorCheckList点击图标无法选中的问题#491
    • 修复Popup无法覆盖NoticeBar的问题#492
    • 修复Stepper中部分stylus变量赋值错误

English:

  • Fix
    • Fix compatibility issues when fixing Toast custom positions#485
    • Fix TabPicker when setting default-value, TabBar can't automatically select the last item#488
    • Fix Selector and CheckList click icons can't select current item#491
    • Fix this problem Popup can't cover NoticeBar#492
    • Fix partial stylus variable assignment error in Stepper

v2.3.2

05 Jul 08:28
Compare
Choose a tag to compare

中文:

  • Fix
    • 修复Codebox初始化无法赋值的问题
    • 修复NumberKeyboard按键点击易误触的体验问题#477

English:

  • Fix
    • fix Codebox value could not be assigned when initializing
    • fix the problem that the NumberKeyboard keys may be clicked incorrectly#477

v2.3.1

22 Jun 13:07
Compare
Choose a tag to compare

中文:

  • Feature

    • NumberKeyboard增加属性isHideConfirm,用来控制确认键点击动作是否自动隐藏键盘#474
    • NumberKeyboard增加默认插槽
  • Fix

    • 修复Slider的进度条计算错误#472
    • 修复NumberKeyboard按键点击易误触的体验问题#477

English:

  • Feature

    • NumberKeyboard adds property isHideConfirm, used to control whether the confirmation button click action automatically hides the keyboard#474
    • NumberKeyboard add default slot
  • Fix

    • fix 'Slider` progress bar width calculation error#472
    • fix the problem that the NumberKeyboard keys may be clicked incorrectly#477

v2.3.0

13 Jun 12:03
Compare
Choose a tag to compare

中文:

  • Feature

    • CheckCheckList增加图标大小、位置等相关配置属性#383
    • CheckList插槽增加indexselected字段
      <template>
        <md-check-list :options="data">
          <template slot-scope="{ option, index, selected }">
            <!-- xxx -->
          </template>
        </md-check-list>
      </template>
    • RadioList插槽增加indexselected字段,且当icon置空时不展示图标
    • Selector增加属性multi,支持多选#296
    • Toast增加属性component,支持以组件形式引入并定制#445
    • ScrollView增加属性is-prevent,支持设置当在非可滚动区域触发滚动时是否也阻止默认行为#454
  • Fix

    • 修复Swiper属性isLoop为true时,autoplay失效的问题#452
    • 修复Dialog属性maskClosable为true时,关闭弹窗导致报错#471

English:

  • Feature

    • Check and CheckList increase the icon size, location and other related configuration properties#383
    • CheckList slot adds index, selected field
      <template>
        <md-check-list :options="data">
          <template slot-scope="{ option, index, selected }">
            <!-- xxx -->
          </template>
        </md-check-list>
      </template>
    • RadioList slot adds index, selected fields, and does not display icons when icon is empty
    • Selector adds property multi to support multiple selections#296
    • Toast adds the attribute component, which is used and customized in component form#445
    • ScrollViewadds propertyis-prevent` to support setting whether to prevent the default behavior when scrolling in non-scrollable areas#454
  • Fix

    • Fix autoplay invalidation when Swiper property isLoop is true#452
    • Fix error caused by closing dialog, when Dialog property maskClosable is true#471

v2.2.4

26 May 12:17
Compare
Choose a tag to compare

中文:

  • Fix
    • 修复TabBar第一项和最后一项选中后无法自动修复位置的问题#434
    • TabBar选项内部文字不可选中

English:

  • Fix
    • Fix the problem that the first and last items of TabBar cannot be automatically repaired after they are selected#434
    • Texts of TabBar items cannot be selected

v2.2.3

25 May 02:17
Compare
Choose a tag to compare

中文:

  • Fix
    • 工具样式hairline使用border取代widthheight

English:

  • Fix
    • Utility style hairline replaces width and height with border