props.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { defineProps } from '../../libs/util/props';
  2. export default defineProps('actionSheet', {
  3. // 操作菜单是否展示 (默认false)
  4. show: {
  5. type: Boolean,
  6. default: false
  7. },
  8. // 标题
  9. title: {
  10. type: String,
  11. default: ''
  12. },
  13. // 弹窗标题样式
  14. titleStyle: {
  15. type: [Object, String, Array],
  16. default: () => ({})
  17. },
  18. // 选项上方的描述信息
  19. description: {
  20. type: String,
  21. default: ''
  22. },
  23. // 数据
  24. actions: {
  25. type: Array,
  26. default: []
  27. },
  28. // 取消按钮的文字,不为空时显示按钮
  29. cancelText: {
  30. type: String,
  31. default: ''
  32. },
  33. // 是否显示关闭图标
  34. closeable: {
  35. type: Boolean,
  36. default: false
  37. },
  38. // 点击某个菜单项时是否关闭弹窗
  39. closeOnClickAction: {
  40. type: Boolean,
  41. default: true
  42. },
  43. // 处理底部安全区(默认true)
  44. safeAreaInsetBottom: {
  45. type: Boolean,
  46. default: true
  47. },
  48. // 小程序的打开方式
  49. openType: {
  50. type: String,
  51. default: ''
  52. },
  53. // 点击遮罩是否允许关闭 (默认true)
  54. closeOnClickOverlay: {
  55. type: Boolean,
  56. default: true
  57. },
  58. // 圆角值
  59. round: {
  60. type: [String, Number],
  61. default: 0
  62. },
  63. // 高度
  64. height: {
  65. type: [String, Number],
  66. default: ''
  67. }
  68. })