props.ts 699 B

123456789101112131415161718192021222324
  1. // @ts-nocheck
  2. import { DividerProps } from './type';
  3. import { PropType } from '@/uni_modules/lime-shared/vue';
  4. export default {
  5. /** 文本位置(仅在水平分割线有效) */
  6. align: {
  7. type: String as PropType<DividerProps['align']>,
  8. default: 'center' as DividerProps['align'],
  9. validator(val : DividerProps['align']) : boolean {
  10. if (!val) return true;
  11. return ['left', 'right', 'center'].includes(val);
  12. },
  13. },
  14. /** 子元素 */
  15. content: {
  16. type: String as PropType<lDividerProps['content']>,
  17. },
  18. /** 是否虚线(仅在水平分割线有效) */
  19. dashed: Boolean,
  20. /** 分隔线类型有两种:水平和垂直 */
  21. vertical: Boolean,
  22. color: String,
  23. textColor: String,
  24. }