fish 1 year ago
parent
commit
4ff5e526f3
2 changed files with 7 additions and 6 deletions
  1. 5 5
      demo/app/app.py
  2. 2 1
      demo/app/pages/plotly_chart.py

+ 5 - 5
demo/app/app.py

@@ -76,23 +76,23 @@ class App(UserControl):
                 ),
                 ft.NavigationRailDestination(
                     icon_content=ft.Icon(ft.icons.FAVORITE),
-                    selected_icon_content=ft.Icon(name=ft.icons.FAVORITE, color=ft.colors.PINK),
+                    selected_icon_content = ft.Icon(name=ft.icons.FAVORITE, color=ft.colors.PINK),
                     label="关键词",
                 ),
                 ft.NavigationRailDestination(
                     icon_content=ft.Icon(ft.icons.SHOPIFY),
-                    selected_icon_content=ft.Icon(name=ft.icons.SHOPIFY, color=ft.colors.PINK),
+                    selected_icon_content = ft.Icon(name=ft.icons.SHOPIFY, color=ft.colors.PINK),
                     label="商品库",
                 ),
                 ft.NavigationRailDestination(
                     icon_content=ft.Icon(ft.icons.BAR_CHART),
-                    selected_icon_content=ft.Icon(name=ft.icons.BAR_CHART, color=ft.colors.PINK),
+                    selected_icon_content = ft.Icon(name=ft.icons.BAR_CHART, color=ft.colors.PINK),
                     label="数据分析",
                 ),
                 ft.NavigationRailDestination(
                     icon=ft.icons.SETTINGS_OUTLINED,
-                    selected_icon_content=ft.Icon(ft.icons.SETTINGS),
-                    label_content=ft.Text("Settings"),
+                    selected_icon_content = ft.Icon(ft.icons.SETTINGS),
+                    label_content = ft.Text("Settings"),
                 ),
             ],
             on_change=menu_changed,

+ 2 - 1
demo/app/pages/plotly_chart.py

@@ -13,7 +13,7 @@ class ChartPage():
     '''chart page '''
     
     def draw_chart(self):
-        ''' draw chart  '''
+        ''' draw chart '''
         x = ['day 1', 'day 1', 'day 1', 'day 1', 'day 1', 'day 1',
              'day 2', 'day 2', 'day 2', 'day 2', 'day 2', 'day 2']
 
@@ -45,4 +45,5 @@ class ChartPage():
         return fig
 
     def __init__(self):
+        ''''''
         super().__init__()