排序都以单字首字母为顺序
uni-index-list
组件
[
{
"letter": "A",
"data": [
"阿昌族"
]
}, {
"letter": "B",
"data": [
"保安族",
"布朗族",
"布依族",
"白族"
]
}, {
"letter": "C",
"data": [
"朝鲜族"
]
}, {
"letter": "D",
"data": [
"德昂族",
"独龙族",
"达斡尔族",
"东乡族",
"傣族",
"侗族"
]
}, {
"letter": "E",
"data": [
"鄂伦春族",
"俄罗斯族",
"鄂温克族"
]
}, {
"letter": "G",
"data": [
"仡佬族",
"高山族"
]
}, {
"letter": "H",
"data": [
"哈尼族",
"哈萨克族",
"汉族",
"回族",
"赫哲族"
]
}, {
"letter": "J",
"data": [
"基诺族",
"景颇族",
"京族"
]
}, {
"letter": "K",
"data": [
"柯尔克孜族"
]
}, {
"letter": "L",
"data": [
"珞巴族",
"傈僳族",
"黎族",
"拉祜族"
]
}, {
"letter": "M",
"data": [
"门巴族",
"蒙古族",
"仫佬族",
"毛南族",
"满族",
"苗族"
]
}, {
"letter": "N",
"data": [
"纳西族",
"怒族"
]
}, {
"letter": "P",
"data": [
"普米族"
]
}, {
"letter": "Q",
"data": [
"羌族"
]
}, {
"letter": "S",
"data": [
"撒拉族",
"水族",
"畲族"
]
}, {
"letter": "T",
"data": [
"塔吉克族",
"土家族",
"塔塔尔族",
"土族"
]
}, {
"letter": "W",
"data": [
"维吾尔族",
"佤族",
"乌孜别克族"
]
}, {
"letter": "X",
"data": [
"锡伯族"
]
}, {
"letter": "Y",
"data": [
"裕固族",
"瑶族",
"彝族"
]
}, {
"letter": "Z",
"data": [
"藏族",
"壮族"
]
}
]
uni-data-select
组件
value的规则(与排序无关):
- 首字母都必须有,超过四个字则族字的
z
取消, - 第一个中文字只标首字母,若拼音未满4个字母,则除z外优先第二个中文字增加一个拼音字母,若没有第二个中文,则第一个增加拼音字母,增加的拼音字母为首字母的后连续字母直至满4个字母
- 所有拼音都用也没有满4个字母,则重复倒数第二个字母,直至满4个
举例:
规则一:乌孜别克族wzbk
规则二:白族baiz
规则二:布依族byiz
规则二:布朗族blaz
规则二:东乡族dxiz
规则二:水族shuz
规则三:黎族liiz
[
{value:'achz',text:'阿昌族'},
{value:'banz',text:'保安族'},
{value:'blaz',text:'布朗族'},
{value:'byiz',text:'布依族'},
{value:'baiz',text:'白族'},
{value:'cxiz',text:'朝鲜族'},
{value:'danz',text:'德昂族'},
{value:'dloz',text:'独龙族'},
{value:'dwez',text:'达斡尔族'},
{value:'dxiz',text:'东乡族'},
{value:'daiz',text:'傣族'},
{value:'donz',text:'侗族'},
{value:'elcz',text:'鄂伦春族'},
{value:'elsz',text:'俄罗斯族'},
{value:'ewkz',text:'鄂温克族'},
{value:'glaz',text:'仡佬族'},
{value:'gshz',text:'高山族'},
{value:'hniz',text:'哈尼族'},
{value:'hskz',text:'哈萨克族'},
{value:'hanz',text:'汉族'},
{value:'huiz',text:'回族'},
{value:'hzhz',text:'赫哲族'},
{value:'jnuz',text:'基诺族'},
{value:'jpoz',text:'景颇族'},
{value:'jinz',text:'京族'},
{value:'kekz',text:'柯尔克孜族'},
{value:'lbaz',text:'珞巴族'},
{value:'lshz',text:'傈僳族'},
{value:'liiz',text:'黎族'},
{value:'lhuz',text:'拉祜族'},
{value:'mbaz',text:'门巴族'},
{value:'mguz',text:'蒙古族'},
{value:'mlaz',text:'仫佬族'},
{value:'mnaz',text:'毛南族'},
{value:'manz',text:'满族'},
{value:'miaz',text:'苗族'},
{value:'nxiz',text:'纳西族'},
{value:'nuuz',text:'怒族'},
{value:'pmiz',text:'普米族'},
{value:'qiaz',text:'羌族'},
{value:'slaz',text:'撒拉族'},
{value:'shuz',text:'水族'},
{value:'shez',text:'畲族'},
{value:'tjkz',text:'塔吉克族'},
{value:'tjiz',text:'土家族'},
{value:'ttez',text:'塔塔尔族'},
{value:'tuuz',text:'土族'},
{value:'wwez',text:'维吾尔族'},
{value:'waaz',text:'佤族'},
{value:'wzbk',text:'乌孜别克族'},
{value:'xboz',text:'锡伯族'},
{value:'yguz',text:'裕固族'},
{value:'yaoz',text:'瑶族'},
{value:'yiiz',text:'彝族'},
{value:'zanz',text:'藏族'},
{value:'zhuz',text:'壮族'}
]