page-style.uts 1.6 KB
Newer Older
H
hdx 已提交
1 2

export type PageStyleItem = {
3
  key : string
DCloud-WZF's avatar
DCloud-WZF 已提交
4 5
  type : string
  value : Array<any>
H
hdx 已提交
6 7
}

8 9 10
export const PageStyleArray = [
  {
    key: "navigationBarBackgroundColor",
H
hdx 已提交
11
    type: "string",
12
    value: ["#007AFF", "#FFFFFF", "#000000"]
13 14 15
  },
  {
    key: "navigationBarTextStyle",
H
hdx 已提交
16
    type: "string",
17
    value: ["white", "black"]
18 19 20
  },
  {
    key: "navigationBarTitleText",
H
hdx 已提交
21
    type: "string",
22
    value: ["title1", "title2", "title3"]
23 24 25
  },
  {
    key: "navigationStyle",
H
hdx 已提交
26
    type: "string",
27
    value: ["default", "custom"]
28 29 30
  },
  {
    key: "backgroundColor",
H
hdx 已提交
31
    type: "string",
32
    value: ["#FFFFFF", "#000000"]
33 34 35
  },
  {
    key: "backgroundColorContent",
H
hdx 已提交
36
    type: "string",
37
    value: ["#FFFFFF", "#F0F0F0", "#000000"]
38 39 40
  },
  {
    key: "backgroundTextStyle",
H
hdx 已提交
41
    type: "string",
42
    value: ["dark", "light"]
43 44 45
  },
  {
    key: "enablePullDownRefresh",
H
hdx 已提交
46
    type: "boolean",
47
    value: [true, false]
48 49 50
  },
  {
    key: "onReachBottomDistance",
H
hdx 已提交
51
    type: "number",
52
    value: [50, 100]
53 54 55
  },
  {
    key: "pageOrientation",
H
hdx 已提交
56
    type: "string",
57
    value: ["auto", "portrait", "landscape"]
58 59 60
  },
  {
    key: "backgroundColorTop",
H
hdx 已提交
61
    type: "string",
62
    value: ["#FFFFFF", "#000000"]
63 64 65
  },
  {
    key: "backgroundColorBottom",
H
hdx 已提交
66
    type: "string",
67
    value: ["#FFFFFF", "#000000"]
68 69 70
  },
  {
    key: "navigationBarAutoBackButton",
H
hdx 已提交
71
    type: "boolean",
72
    value: [true, false]
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
73 74 75 76 77 78 79 80 81 82
  },
  {
    key: "hideStatusBar",
    type: "boolean",
    value: [true, false]
  },
  {
    key: "hideBottomNavigationIndicator",
    type: "boolean",
    value: [true, false]
83
  }] as PageStyleItem[]