diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index c28c19d3d7a09d5149d717313800347684afcb4e..34f2ab5948c164a9ffa62bc76a25aad2eba43e4a 100644 --- a/pages/API/get-current-pages/get-current-pages.uvue +++ b/pages/API/get-current-pages/get-current-pages.uvue @@ -21,19 +21,17 @@ {{currentPageStyle[item.key]}} - - - - {{item.value.getString('oldValue')}} - - {{item.value.getString('newValue')}} + + {{item2}} @@ -165,7 +163,7 @@ flex-direction: row; } - .split-h { - width: 15px; + .radio-value { + margin-left: 10px; } diff --git a/pages/API/get-current-pages/page-style.uts b/pages/API/get-current-pages/page-style.uts index 135f6155bd7cebb84418cdca1029322d54cbbc6a..1c70d11773e2fc8a6c6aa7640ba590abab3d5dbf 100644 --- a/pages/API/get-current-pages/page-style.uts +++ b/pages/API/get-current-pages/page-style.uts @@ -1,112 +1,73 @@ export type PageStyleItem = { key : string - type : string - value : UTSJSONObject + type : string + value: Array } export const PageStyleArray = [ { key: "navigationBarBackgroundColor", type: "string", - value: { - oldValue: "#F8F8F8", - newValue: "#F0F0F0", - } + value: ["#007AFF", "#FFFFFF", "#000000"] }, { key: "navigationBarTextStyle", type: "string", - value: { - oldValue: "white", - newValue: "black", - } + value: ["white", "black"] }, { key: "navigationBarTitleText", type: "string", - value: { - oldValue: "old title", - newValue: "new title", - } + value: ["title1", "title2", "title3"] }, { key: "navigationStyle", type: "string", - value: { - oldValue: "default", - newValue: "custom", - } + value: ["default", "custom"] }, { key: "backgroundColor", type: "string", - value: { - oldValue: "#ffffff", - newValue: "#000000", - } + value: ["#FFFFFF", "#000000"] }, { key: "backgroundColorContent", type: "string", - value: { - oldValue: "#ffffff", - newValue: "#000000", - } + value: ["#FFFFFF", "#F0F0F0", "#000000"] }, { key: "backgroundTextStyle", type: "string", - value: { - oldValue: "dark", - newValue: "light", - } + value: ["dark", "light"] }, { key: "enablePullDownRefresh", type: "boolean", - value: { - oldValue: true, - newValue: false, - } + value: [true, false] }, { key: "onReachBottomDistance", type: "number", - value: { - oldValue: 50, - newValue: 100, - } + value: [50, 100] }, { key: "pageOrientation", type: "string", - value: { - oldValue: "auto", - newValue: "portrait", - } + value: ["auto", "portrait", "landscape"] }, { key: "backgroundColorTop", type: "string", - value: { - oldValue: "#ffffff", - newValue: "#000000", - } + value: ["#FFFFFF", "#000000"] }, { key: "backgroundColorBottom", type: "string", - value: { - oldValue: "#ffffff", - newValue: "#000000", - } + value: ["#FFFFFF", "#000000"] }, { key: "navigationBarAutoBackButton", type: "boolean", - value: { - oldValue: true, - newValue: false, - } + value: [true, false] }] as PageStyleItem[]