更新配置
This commit is contained in:
parent
89e89ab2ba
commit
131d3d600e
3 changed files with 6 additions and 2 deletions
|
|
@ -277,7 +277,7 @@ func (imp *Importer) DataSetting() map[string]interface{} {
|
||||||
"hideEdit": true,
|
"hideEdit": true,
|
||||||
"width": 120,
|
"width": 120,
|
||||||
"unfold": true,
|
"unfold": true,
|
||||||
"checkbox": map[string]interface{}{
|
"checkbox": []map[string]interface{}{{
|
||||||
"value": ":__effected",
|
"value": ":__effected",
|
||||||
"visible_label": false,
|
"visible_label": false,
|
||||||
"status": []map[string]interface{}{
|
"status": []map[string]interface{}{
|
||||||
|
|
@ -290,7 +290,7 @@ func (imp *Importer) DataSetting() map[string]interface{} {
|
||||||
"value": false,
|
"value": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/xiang/config"
|
||||||
"github.com/yaoapp/xiang/importer/xlsx"
|
"github.com/yaoapp/xiang/importer/xlsx"
|
||||||
)
|
)
|
||||||
|
|
@ -145,11 +146,13 @@ func TestMappingSetting(t *testing.T) {
|
||||||
|
|
||||||
imp := Select("order")
|
imp := Select("order")
|
||||||
setting := imp.MappingSetting(file)
|
setting := imp.MappingSetting(file)
|
||||||
|
utils.Dump(setting)
|
||||||
assert.NotNil(t, setting)
|
assert.NotNil(t, setting)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDataSetting(t *testing.T) {
|
func TestDataSetting(t *testing.T) {
|
||||||
imp := Select("order")
|
imp := Select("order")
|
||||||
setting := imp.DataSetting()
|
setting := imp.DataSetting()
|
||||||
|
utils.Dump(setting)
|
||||||
assert.NotNil(t, setting)
|
assert.NotNil(t, setting)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
spec.sh
1
spec.sh
|
|
@ -13,6 +13,7 @@ rm -rf ../xiang-spec/xiang/*
|
||||||
cp dist/release/xiang-* ~/Code/bin/
|
cp dist/release/xiang-* ~/Code/bin/
|
||||||
rm -f ~/Code/bin/xiang
|
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/xiang
|
||||||
|
ln -s ~/Code/bin/xiang-$VERSION-darwin-amd64 ~/Code/bin/yao
|
||||||
|
|
||||||
# 更新 README.md 中的版本
|
# 更新 README.md 中的版本
|
||||||
# repace "s/\[[0-9]+\.[0-9]+\.[0-9]+\]/[$VERSION]/g"
|
# repace "s/\[[0-9]+\.[0-9]+\.[0-9]+\]/[$VERSION]/g"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue