Skip to content

Commit

Permalink
更新配置
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Jan 20, 2022
1 parent 89e89ab commit 131d3d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importer/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (imp *Importer) DataSetting() map[string]interface{} {
"hideEdit": true,
"width": 120,
"unfold": true,
"checkbox": map[string]interface{}{
"checkbox": []map[string]interface{}{{
"value": ":__effected",
"visible_label": false,
"status": []map[string]interface{}{
Expand All @@ -290,7 +290,7 @@ func (imp *Importer) DataSetting() map[string]interface{} {
"value": false,
},
},
},
}},
},
},
},
Expand Down
3 changes: 3 additions & 0 deletions importer/importer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/yaoapp/kun/utils"
"github.com/yaoapp/xiang/config"
"github.com/yaoapp/xiang/importer/xlsx"
)
Expand Down Expand Up @@ -145,11 +146,13 @@ func TestMappingSetting(t *testing.T) {

imp := Select("order")
setting := imp.MappingSetting(file)
utils.Dump(setting)
assert.NotNil(t, setting)
}

func TestDataSetting(t *testing.T) {
imp := Select("order")
setting := imp.DataSetting()
utils.Dump(setting)
assert.NotNil(t, setting)
}
1 change: 1 addition & 0 deletions spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rm -rf ../xiang-spec/xiang/*
cp dist/release/xiang-* ~/Code/bin/
rm -f ~/Code/bin/xiang
ln -s ~/Code/bin/xiang-$VERSION-darwin-amd64 ~/Code/bin/xiang
ln -s ~/Code/bin/xiang-$VERSION-darwin-amd64 ~/Code/bin/yao

# 更新 README.md 中的版本
# repace "s/\[[0-9]+\.[0-9]+\.[0-9]+\]/[$VERSION]/g"
Expand Down

0 comments on commit 131d3d6

Please sign in to comment.