mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
refactor(frontend):调整K线图标记点样式
- 注释掉 KLineChart.vue 中的 markPoint.symbol属性,以修改标记点的显示方式 - 在 main.go 中: - 移除初始化股票数据的冗余注释代码 - 保留获取屏幕分辨率的代码并修复缩进 -调整应用程序窗口的最小高度
This commit is contained in:
parent
ffc212abc3
commit
cedff896bb
@ -225,7 +225,7 @@ function handleKLine(code,name){
|
|||||||
// borderColor0: downBorderColor
|
// borderColor0: downBorderColor
|
||||||
},
|
},
|
||||||
markPoint: {
|
markPoint: {
|
||||||
symbol: 'none',
|
//symbol: 'none',
|
||||||
label: {
|
label: {
|
||||||
formatter: function (param) {
|
formatter: function (param) {
|
||||||
return param != null ? param.value + '' : '';
|
return param != null ? param.value + '' : '';
|
||||||
|
48
main.go
48
main.go
@ -77,20 +77,20 @@ func main() {
|
|||||||
// Sort: 0,
|
// Sort: 0,
|
||||||
//})
|
//})
|
||||||
|
|
||||||
//if stocksBin != nil && len(stocksBin) > 0 {
|
if stocksBin != nil && len(stocksBin) > 0 {
|
||||||
// go initStockData()
|
go initStockData()
|
||||||
//}
|
}
|
||||||
//log.SugaredLogger.Infof("init stocksBinHK %d", len(stocksBinHK))
|
log.SugaredLogger.Infof("init stocksBinHK %d", len(stocksBinHK))
|
||||||
//
|
|
||||||
//if stocksBinHK != nil && len(stocksBinHK) > 0 {
|
if stocksBinHK != nil && len(stocksBinHK) > 0 {
|
||||||
// go initStockDataHK()
|
go initStockDataHK()
|
||||||
//}
|
}
|
||||||
//log.SugaredLogger.Infof("init stocksBinUS %d", len(stocksBinUS))
|
log.SugaredLogger.Infof("init stocksBinUS %d", len(stocksBinUS))
|
||||||
//
|
|
||||||
//if stocksBinUS != nil && len(stocksBinUS) > 0 {
|
if stocksBinUS != nil && len(stocksBinUS) > 0 {
|
||||||
// go initStockDataUS()
|
go initStockDataUS()
|
||||||
//}
|
}
|
||||||
//updateBasicInfo()
|
updateBasicInfo()
|
||||||
|
|
||||||
// Create an instance of the app structure
|
// Create an instance of the app structure
|
||||||
app := NewApp()
|
app := NewApp()
|
||||||
@ -133,12 +133,12 @@ func main() {
|
|||||||
//var width, height int
|
//var width, height int
|
||||||
//var err error
|
//var err error
|
||||||
//
|
//
|
||||||
//width, height, err = getScreenResolution()
|
width, height, err := getScreenResolution()
|
||||||
//if err != nil {
|
if err != nil {
|
||||||
// log.SugaredLogger.Error("get screen resolution error")
|
log.SugaredLogger.Error("get screen resolution error")
|
||||||
// width = 1456
|
width = 1456
|
||||||
// height = 768
|
height = 768
|
||||||
//}
|
}
|
||||||
|
|
||||||
darkTheme := data.NewSettingsApi(&data.Settings{}).GetConfig().DarkTheme
|
darkTheme := data.NewSettingsApi(&data.Settings{}).GetConfig().DarkTheme
|
||||||
backgroundColour := &options.RGBA{R: 255, G: 255, B: 255, A: 1}
|
backgroundColour := &options.RGBA{R: 255, G: 255, B: 255, A: 1}
|
||||||
@ -147,12 +147,12 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create application with options
|
// Create application with options
|
||||||
err := wails.Run(&options.App{
|
err = wails.Run(&options.App{
|
||||||
Title: "go-stock",
|
Title: "go-stock",
|
||||||
//Width: width * 4 / 5,
|
Width: width * 4 / 5,
|
||||||
//Height: height * 4 / 5,
|
Height: height * 4 / 5,
|
||||||
MinWidth: 1456,
|
MinWidth: 1456,
|
||||||
MinHeight: 900,
|
MinHeight: 768,
|
||||||
//MaxWidth: width,
|
//MaxWidth: width,
|
||||||
//MaxHeight: height,
|
//MaxHeight: height,
|
||||||
DisableResize: false,
|
DisableResize: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user