text: /**
   * https://developers.weixin.qq.com/miniprogram/dev/component/slider.html
   */
  module.exports = {
      properties: [{
          name: 'min',
          get(domNode) {
              return +domNode.getAttribute('min') || 0
          },
      }, {
          name: 'max',
          get(domNode) {
              const value = parseFloat(domNode.getAttribute('max'))
              return !isNaN(value) ? value : 100
          },
      }, {
          name: 'step',
          get(domNode) {
              const value = parseFloat(domNode.getAttribute('step'))
              return !isNaN(value) ? value : 1
          },
      }, {
          name: 'disabled',
          get(domNode) {
              return !!domNode.getAttribute('disabled')
          },
      }, {
          name: 'value',
          canBeUserChanged: true,
          get(domNode) {
              return +domNode.getAttribute('value') || 0
          },
      }, {
          name: 'color',
          get(domNode) {
              return domNode.getAttribute('color') || '#e9e9e9'
          },
      }, {
          name: 'selectedColor',
          get(domNode) {
              return domNode.getAttribute('selected-color') || '#1aad19'
          },
      }, {
          name: 'activeColor',
          get(domNode) {
              return domNode.getAttribute('active-color') || '#1aad19'
          },
      }, {
          name: 'backgroundColor',
          get(domNode) {
              return domNode.getAttribute('background-color') || '#e9e9e9'
          },
      }, {
          name: 'blockSize',
          get(domNode) {
              const value = parseFloat(domNode.getAttribute('block-size'))
              return !isNaN(value) ? value : 28
          },
      }, {
          name: 'blockColor',
          get(domNode) {
              return domNode.getAttribute('block-color') || '#ffffff'
          },
      }, {
          name: 'showValue',
          get(domNode) {
              return !!domNode.getAttribute('show-value')
          },
      }],
      handles: {
          onSliderChange(evt) {
              const domNode = this.getDomNodeFromEvt(evt)
              if (!domNode) return
  
              domNode.$$setAttributeWithoutUpdate('value', evt.detail.value)
  
              // 可被用户行为改变的值，需要记录
              domNode._oldValues = domNode._oldValues || {}
              domNode._oldValues.value = evt.detail.value
  
              this.callSingleEvent('change', evt)
          },
  
          onSliderChanging(evt) {
              this.callSingleEvent('changing', evt)
          },
      },
  }
  