config.ts 902 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { DiyComponent } from '@/components/DiyEditor/util'
  2. /** 顶部导航栏属性 */
  3. export interface NavigationBarProperty {
  4. // 页面标题
  5. title: string
  6. // 页面描述
  7. description: string
  8. // 顶部导航高度
  9. navBarHeight: number
  10. // 页面背景颜色
  11. backgroundColor: string
  12. // 页面背景图片
  13. backgroundImage: string
  14. // 样式类型:默认 | 沉浸式
  15. styleType: 'default' | 'immersion'
  16. // 常驻显示
  17. alwaysShow: boolean
  18. // 是否显示返回按钮
  19. showGoBack: boolean
  20. }
  21. // 定义组件
  22. export const component = {
  23. id: 'NavigationBar',
  24. name: '顶部导航栏',
  25. icon: 'tabler:layout-navbar',
  26. property: {
  27. title: '页面标题',
  28. description: '',
  29. navBarHeight: 35,
  30. backgroundColor: '#f5f5f5',
  31. backgroundImage: '',
  32. styleType: 'default',
  33. alwaysShow: true,
  34. showGoBack: true
  35. }
  36. } as DiyComponent<NavigationBarProperty>