mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[improvement] IndexBar: add default highlight color and more less vars
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { use } from '../utils';
|
||||
import { TouchMixin } from '../mixins/touch';
|
||||
import { ParentMixin } from '../mixins/relation';
|
||||
import { GREEN } from '../utils/color';
|
||||
import { on, off } from '../utils/event';
|
||||
import { getScrollTop, getElementTop, getScrollEventTarget } from '../utils/scroll';
|
||||
|
||||
@@ -18,7 +19,10 @@ export default sfc({
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
highlightColor: String,
|
||||
highlightColor: {
|
||||
type: String,
|
||||
default: GREEN
|
||||
},
|
||||
indexList: {
|
||||
type: Array,
|
||||
default() {
|
||||
|
Reference in New Issue
Block a user