拓恒河湖长制全民护河平台WEB端
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

42 lines
812B

  1. // components/select/index.js
  2. Component({
  3. /**
  4. * 组件属性列表
  5. */
  6. options: {
  7. styleIsolation: "isolated"
  8. },
  9. properties: {
  10. data: {
  11. type: Array,
  12. },
  13. current: {
  14. type: [Number, String]
  15. },
  16. rangeKey: {
  17. type: String,
  18. default() {
  19. return ''
  20. }
  21. },
  22. disabled: {
  23. type: Boolean,
  24. default() {
  25. return false
  26. }
  27. },
  28. placeholder: {
  29. type: String,
  30. default: "请选择"
  31. }
  32. },
  33. /**
  34. * 页面的初始数据
  35. */
  36. data: {},
  37. methods: {
  38. updateChange(e) {
  39. this.triggerEvent('updateChange', {current:e.detail.value})
  40. },
  41. }
  42. })