Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/types/react-dom-17…
Browse files Browse the repository at this point in the history
….0.9
  • Loading branch information
li-jia-nan authored Dec 28, 2023
2 parents cd7f184 + edab4bd commit b1c4e39
Show file tree
Hide file tree
Showing 73 changed files with 3,852 additions and 3,091 deletions.
19 changes: 19 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'dumi';

export default defineConfig({
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'tree-select',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
exportStatic: {},
base: '/tree-select/',
publicPath: '/tree-select/',
styles: [
`
.markdown table {
width: auto !important;
}
`,
],
});
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
'default-case': 0,
'eslint-comments/disable-enable-pair': 0,
'jsx-a11y/interactive-supports-focus': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'@typescript-eslint/no-object-literal-type-assertion': 0,
},
};
9 changes: 0 additions & 9 deletions .fatherrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from 'father';

export default defineConfig({
plugins: ['@rc-component/father-plugin'],
});
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "41 11 * * 2"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
4 changes: 2 additions & 2 deletions .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '18'

- name: cache package-lock.json
uses: actions/cache@v2
Expand All @@ -24,7 +24,7 @@ jobs:
key: lock-${{ github.sha }}

- name: create package-lock.json
run: npm i --package-lock-only
run: npm i --package-lock-only --ignore-scripts

- name: hack for singe file
run: |
Expand Down
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.storybook
.doc
*.iml
*.log
Expand Down Expand Up @@ -29,8 +28,8 @@ coverage
yarn.lock
package-lock.json
es/*
# umi
.umi
.umi-production
.umi-test
# dumi
.dumi/tmp
.dumi/tmp-test
.dumi/tmp-production
.env.local
21 changes: 0 additions & 21 deletions .umirc.ts

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ online example: https://tree-select-react-component.vercel.app/
|animation | dropdown animation name. only support slide-up now | String | '' |
|transitionName | dropdown css animation name | String | '' |
|choiceTransitionName | css animation name for selected items at multiple mode | String | '' |
|dropdownMatchSelectWidth | whether dropdown's with is same with select. Default set `min-width` same as input | bool | - |
|dropdownMatchSelectWidth | whether dropdown's with is same with select. Default set `min-width` same as input | bool | true |
|dropdownClassName | additional className applied to dropdown | String | - |
|dropdownStyle | additional style applied to dropdown | Object | {} |
|dropdownPopupAlign | specify alignment for dropdown (alignConfig of [dom-align](https://github.com/yiminghe/dom-align)) | Object | - |
Expand All @@ -81,6 +81,7 @@ online example: https://tree-select-react-component.vercel.app/
|treeDefaultExpandAll | default expand all treeNode | bool | false |
|treeDefaultExpandedKeys | default expanded treeNode keys | Array<String> | - |
|treeExpandedKeys | set tree expanded keys | Array<String> | - |
|treeExpandAction | Tree open logic, optional: false \| `click` \| `doubleClick`, same as `expandAction` of `rc-tree` | string \| boolean | `click` |
|treeCheckable | whether tree show checkbox (select callback will not fire) | bool | false |
|treeCheckStrictly | check node precisely, parent and children nodes are not associated| bool | false |
|filterTreeNode | whether filter treeNodes by input value. default filter by treeNode's treeNodeFilterProp prop's value | bool/Function(inputValue:string, treeNode:TreeNode) | Function |
Expand All @@ -91,7 +92,7 @@ online example: https://tree-select-react-component.vercel.app/
|loadData | load data asynchronously | function(node) | - |
|getPopupContainer | container which popup select menu rendered into | function(trigger:Node):Node | function(){return document.body;} |
|autoClearSearchValue | auto clear search input value when multiple select is selected/deselected | boolean | true |
| inputIcon | specify the select arrow icon | ReactNode \| (props: TreeProps) => ReactNode | - |
| suffixIcon | specify the select arrow icon | ReactNode \| (props: TreeProps) => ReactNode | - |
| clearIcon | specify the clear icon | ReactNode \| (props: TreeProps) => ReactNode | - |
| removeIcon | specify the remove icon | ReactNode \| (props: TreeProps) => ReactNode | - |
|switcherIcon| specify the switcher icon | ReactNode \| (props: TreeProps) => ReactNode | - |
Expand Down
9 changes: 7 additions & 2 deletions docs/demo/basic.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## basic
---
title: basic
nav:
title: Demo
path: /demo
---

<code src="../../examples/basic.tsx">
<code src="../../examples/basic.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/big-data.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## big-data
---
title: big-data
nav:
title: Demo
path: /demo
---

<code src="../../examples/big-data.tsx">
<code src="../../examples/big-data.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/controlled.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## controlled
---
title: controlled
nav:
title: Demo
path: /demo
---

<code src="../../examples/controlled.tsx">
<code src="../../examples/controlled.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/custom-icons.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## custom-icons
---
title: custom-icons
nav:
title: Demo
path: /demo
---

<code src="../../examples/custom-icons.tsx">
<code src="../../examples/custom-icons.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/debug.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## debug
---
title: debug
nav:
title: Demo
path: /demo
---

<code src="../../examples/debug.tsx">
<code src="../../examples/debug.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/disable.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## disable
---
title: disable
nav:
title: Demo
path: /demo
---

<code src="../../examples/disable.tsx">
<code src="../../examples/disable.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/dynamic.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## dynamic
---
title: dynamic
nav:
title: Demo
path: /demo
---

<code src="../../examples/dynamic.tsx">
<code src="../../examples/dynamic.tsx"></code>
8 changes: 8 additions & 0 deletions docs/demo/fieldNames.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: fieldNames
nav:
title: Demo
path: /demo
---

<code src="../../examples/fieldNames.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/filter.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## filter
---
title: filter
nav:
title: Demo
path: /demo
---

<code src="../../examples/filter.tsx">
<code src="../../examples/filter.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/form.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## form
---
title: form
nav:
title: Demo
path: /demo
---

<code src="../../examples/form.tsx">
<code src="../../examples/form.tsx"></code>
9 changes: 7 additions & 2 deletions docs/demo/treeNodeLabelProp.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## treeNodeLabelProp
---
title: treeNodeLabelProp
nav:
title: Demo
path: /demo
---

<code src="../../examples/treeNodeLabelProp.tsx">
<code src="../../examples/treeNodeLabelProp.tsx"></code>
8 changes: 8 additions & 0 deletions docs/demo/width.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: width
nav:
title: Demo
path: /demo
---

<code src="../../examples/width.tsx"></code>
4 changes: 3 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: rc-tree-select
hero:
title: rc-tree-select
description: React Tree Select Component
---

<embed src="../README.md"></embed>
Loading

0 comments on commit b1c4e39

Please sign in to comment.