拓恒河湖长制全民护河平台WEB端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
719B

  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. },
  29. /**
  30. * 页面的初始数据
  31. */
  32. data: {},
  33. methods: {
  34. updateChange(e) {
  35. this.triggerEvent('updateChange', {current:e.detail.value})
  36. },
  37. }
  38. })