Skip to content

Commit

Permalink
fixed 展开已选择项的所有父节点,并且居中显示,方便修改操作;搜索模式下展开已选项
Browse files Browse the repository at this point in the history
   @varlamov88 [Expand parent nodes of selected item. Scroll menu to selected item](riophae#310)

   使用选项: scrollPositionOnCenter = true

```
   <treeselect
            v-model="orgCode"
            :clearable="true"
            :scrollPositionOnCenter="true"
            :default-expand-level="0"
          />
```
  • Loading branch information
emacle committed Jul 3, 2020
1 parent 1991587 commit bc485a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"testonly": "npm run cleanup-cov && karma start test/unit/karma.config.js --single-run",
"test": "npm run testonly",
"pretest": "npm run lint",
"lint:js": "eslint --ext .js --ext .vue --cache --cache-location node_modules/.cache/eslint .",
"lint:js": "eslint --ext .js --ext .vue --cache --cache-location node_modules/.cache/eslint --rule 'no-console: 2' .",
"lint:css": "stylelint '**/*.less'",
"lint": "npm run lint:js && npm run lint:css",
"verify-builds": "size-limit && node build/verify-builds.js",
Expand Down

0 comments on commit bc485a7

Please sign in to comment.