diff --git a/packages/picker/en-US.md b/packages/picker/en-US.md
index 37f94ea2a..48e5bba1d 100644
--- a/packages/picker/en-US.md
+++ b/packages/picker/en-US.md
@@ -147,6 +147,11 @@ Picker events will pass different parameters according to the columns are single
| cancel | Triggered when click cancel button | Single column:current value,current index
Multiple columns:current values,current indexes |
| change | Triggered when current option changed | Single column:Picker instance, current value,current index
Multiple columns:Picker instance, current values,column index |
+### Slot
+
+| name | Description |
+|------|------|
+| title | Custom title |
### Data struct of columns
diff --git a/packages/picker/index.js b/packages/picker/index.js
index beb8114ad..68309fc74 100644
--- a/packages/picker/index.js
+++ b/packages/picker/index.js
@@ -54,7 +54,12 @@ export default sfc({
onChange(columnIndex) {
if (this.simple) {
- this.$emit('change', this, this.getColumnValue(0), this.getColumnIndex(0));
+ this.$emit(
+ 'change',
+ this,
+ this.getColumnValue(0),
+ this.getColumnIndex(0)
+ );
} else {
this.$emit('change', this, this.getValues(), columnIndex);
}
@@ -96,7 +101,10 @@ export default sfc({
// set options of column by index
setColumnValues(index, options) {
const column = this.children[index];
- if (column && JSON.stringify(column.options) !== JSON.stringify(options)) {
+ if (
+ column &&
+ JSON.stringify(column.options) !== JSON.stringify(options)
+ ) {
column.options = options;
column.setIndex(0);
}
@@ -153,7 +161,10 @@ export default sfc({