|
@@ -8,8 +8,12 @@ Component({
|
|
|
type: String,
|
|
|
value: "default", //默认样式
|
|
|
},
|
|
|
- sort: Array, //排序规则列表
|
|
|
- search: Boolean, //是否开启搜索
|
|
|
+ sort: {
|
|
|
+ type: Array
|
|
|
+ }, //排序规则列表
|
|
|
+ search: {
|
|
|
+ type: Boolean
|
|
|
+ }, //是否开启搜索
|
|
|
list: { //功能列表
|
|
|
type: Array,
|
|
|
value: [{
|
|
@@ -32,10 +36,18 @@ Component({
|
|
|
id: "filtrate"
|
|
|
}]
|
|
|
},
|
|
|
- condition: String, //搜索内容
|
|
|
- onClick: Function,
|
|
|
- startUsing: Boolean, //启用搜索
|
|
|
- onSearch: Function, //搜索回调
|
|
|
+ condition: {
|
|
|
+ type: String
|
|
|
+ }, //搜索内容
|
|
|
+ onClick: {
|
|
|
+ type: Function
|
|
|
+ },
|
|
|
+ startUsing: {
|
|
|
+ type: Boolean
|
|
|
+ }, //启用搜索
|
|
|
+ onSearch: {
|
|
|
+ type: Function
|
|
|
+ }, //搜索回调
|
|
|
record: { //记录历史
|
|
|
type: Boolean,
|
|
|
value: true
|