Skip to content

Commit a75f53d

Browse files
sallerli1threedayAAAAAdanranVm
authored
merge next into main (#1848)
* fix(pro:transfer): maximum recursive updates exceeded under vue 3.4 * feat: dynamic theme with theme tokens is now supported (#1737) BREAKING CHANGE: original css vars and less vars are removed BREAKING CHANGE: original default theme is removed, seer is now default theme BREAKING CHANGE: original style entries is removed, now only index is provided * feat: remove typography support (#1738) BREAKING CHANGE: typography is removed * feat(cdk:theme): add cdk theme support (#1739) * build: update prerelease script * docs(release): publish v2.0.0-beta.0 * docs(release): update changelog * ci: update test * feat: add dark theme (#1751) * feat: add dark theme * build: update eslint and prettier dependencies * docs: add theme documentations (#1754) * docs(release): publish v2.0.0-beta.1 * docs(release): update changelog * fix: style dependencies missing in on-demand import entries (#1755) * feat: add theme entries for on-demand import (#1756) * docs: update docs for v2 (#1757) * fix(comp:checkbox): button theme not registered (#1758) * docs(release): publish v2.0.0-beta.2 * docs(release): update changelog * fix(pro:layout): logo title color theme var reference error (#1759) * feat(comp:table): change rowHeight theme tokens to paddings (#1760) * fix(comp:pagination): change lg size font size to fontSizeSm (#1761) * fix(comp:modal): adjust the icon of the modal that confirm the mode (#1763) * fix(comp:modal): fix adjust modal icon height (#1762) * feat: modify disable color theme tokens (#1764) * feat(comp:theme): root level IxThemeProvider is no longer needed (#1765) * feat(cdk:forms): add `interactions` trigger (#1766) * feat(comp:drawer): distance is configurable and determined by drawer size (#1767) * feat(comp:table): add insetShadow to horizontal overlowed container (#1768) * fix(pro:layout): style error when theme style not injected (#1769) * fix(cdk:forms): interactions trigger dosen't work (#1770) * fix(pro:layout): dark theme overlay menu style error (#1771) * build: update theme doc (#1772) * docs(release): publish v2.0.0-beta.3 * docs(release): update changelog * feat(cdk:scroll): virtual scroll supports horizontal (#1775) BREAKING CHANGE: itemHeight is deprecated, use rowHeight instead BREAKING CHANGE: itemRender is deprecated, use rowRender instead * fix(comp:cascader): the value is incorrect after clicking the clear icon (#1774) * feat(comp:table): add virtualHorizontal support (#1776) * fix(comp:select): selectOptionFontSize theme var reference error (#1777) * docs(release): publish v2.0.0-beta.4 * docs(release): update changelog * feat(comp:tag): support compact group tags (#1779) * fix(comp:popover,tooltip): replace paddings with theme variables (#1780) * fix(comp:table): pagination should hide when data empty (#1782) * fix(comp:head): modify header bar style (#1781) * fix(comp:tree): update tree line style (#1783) * fix(cdk:popper): modify default placement to `bottomStart` (#1785) * feat(comp:table): column align supports cell and title (#1784) * fix(comp:upload): file is not uploaded when maxCount is 1 (#1786) * fix(comp:upload): file remove icon should be 'close' (#1787) * fix(comp:tabs): tabs segment mod nav font-weight should be normal (#1788) * fix(comp): modify offline color token (#1789) * fix(comp:timeline): modify contentMarginBottom to marginSizeLg (#1791) * fix(comp:collapse): modify header font-size to fontSizeHeaderSm (#1790) * fix(comp:tag): modify tag normal bg color (#1792) * fix(pro:search): replace spacing with theme tokens (#1793) * fix(comp:table): table header not visible when width not collected (#1794) * fix(pro:search): container zIndex shouldn't be set when not focused (#1795) * fix(pro:search): searchable fields should keep search text after value change (#1796) * docs: update theme docs (#1797) * fix(comp:table): scroll classes is determined by scroll overflowed (#1798) * fix(comp:tree): virtual treeNode slots not passed (#1799) * build: remove uncessary console statements * fix(comp:tree): virtual treeNode slots not passed * docs(release): publish v2.0.0-beta.5 * docs(release): update changelog * docs(comp:empty): change empty slot demo style (#1803) * fix(comp:header): change bar height (#1804) * docs(comp:table): set table demo head count column align to left (#1805) * docs(comp:modal): set demo margin bottom to 0px (#1806) * docs(comp:table): set table demo operation col gap (#1807) * docs(comp:dropdown): demo icon vertical center (#1810) * fix(comp:alert): change alert icon marigin-right to marginSizeXs(#1802) * fix(comp:collapse): change header prefix margin right to marginSizeMd (#1811) * fix(comp:tag): change tag padding x to 8px, use box-shadow instead of border (#1801) * fix(cdk:popper): arrow size not properly calculated (#1813) * feat(cdk:scroll): add simulated scroll support to VirtualScroll (#1812) * build: fix lint errors (#1816) * feat(pro:search): select field supports caching selected data (#1814) * fix(comp:*): modify all overlay default placement to bottomStart (#1815) * fix(comp:tag): reset bordered style from box-shadow to border (#1817) * fix(pro:search): quick select panel search bar overflows (#1819) * docs(comp): update theme docs (#1820) * fix(comp:select): theme token optionGroupMargin unit error (#1821) * docs(release): publish v2.0.0-beta.6 * docs(release): update changelog * fix(comp:popover): remove content padding top (#1822) * fix(comp:button): button is not vertical center when it has icon (#1830) * fix(comp:cascader): remote search is error (#1832) * fix(comp:select): when input change multiply model input width is error (#1829) * docs(comp:stepper): modify size default value (#1827) * feat(cdk:scroll): virtual scrollTo supports horizontal target (#1833) BREAKING CHANGE: scrollTo option index is deprecated, use rowIndex instead BREAKING CHANGE: scrollTo option offset is deprecated, use verticalOffset instead BREAKING CHANGE: scrollTo option key is deprecated, use rowKey instead BREAKING CHANGE: scrollTo option align is deprecated, use verticalAlign instead * fix(comp:table): inconsecutive fixed columns are not fixed (#1835) * fix(comp:table): virtual table scroll sync should be done by virtual scrollTo API (#1834) * fix(comp:drawer): destroyOnHide drawer doesn't destroy if visible is set false before enter transition (#1836) * fix(pro:table): hovering layout tool trigger shouldn't show resize handle (#1838) * fix(cdk:scroll): optimize virtual scroll render pool resuage (#1837) * fix(comp:popconfirm): change style (#1823) * fix(comp:tree): modify tree line spacing (#1839) * fix(comp:alert,tag): replace rgba bg color with color with no alpha (#1840) mix color with alpha with container bg color to get a bg color with no alpha * style(pro:transfer,tree): modify tree node horizontal padding (#1841) * fix(comp:header): header bar should be aligned top (#1842) * fix(comp:select): search input should be cleared after option selected (#1843) * fix(comp:table): tree table line doesn't appear normally (#1844) * docs: update theme doc (#1845) * docs: update deprecated API list (#1847) * fix(cdk:form,comp:icon): fix suspected memory leak (#1846) --------- Co-authored-by: jing <[email protected]> Co-authored-by: danranVm <[email protected]>
1 parent 181bf35 commit a75f53d

File tree

1,696 files changed

+29048
-12377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,696 files changed

+29048
-12377
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ module.exports = {
116116
'prettier/prettier': ['error', prettierConfig],
117117

118118
// ts
119+
'@typescript-eslint/ban-ts-comment': 'off',
119120
'@typescript-eslint/brace-style': ['error', '1tbs'],
120121
'@typescript-eslint/explicit-module-boundary-types': 'error',
121122
'@typescript-eslint/member-delimiter-style': [

.husky/commit-msg

100755100644
File mode changed.

.husky/pre-commit

100755100644
File mode changed.

CHANGELOG.md

+242-2
Large diffs are not rendered by default.

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": ["packages/*"],
3-
"version": "1.12.4",
3+
"version": "2.0.0-beta.6",
44
"command": {
55
"publish": {
66
"allowBranch": ["main", "release", "next", "hotfix"],

package.json

+14-7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"clean": "lerna run clean && rimraf coverage dist node_modules pnpm-lock.yaml",
99
"start": "gulp start --cwd ./packages/site --gulpfile ./scripts/gulp/gulpfile.ts",
1010
"build": "npm-run-all -s build:clean -p build:lib build:declaration build:style build:site",
11+
"build:package": "npm-run-all -s build:clean -p build:lib build:declaration build:style",
1112
"build:pre-version": "npm-run-all -s build:clean -p build:lib build:declaration build:style build:site-pre-version",
1213
"build:clean": "gulp build:clean --gulpfile ./scripts/gulp/gulpfile.ts",
1314
"build:lib": "gulp build:lib --gulpfile ./scripts/gulp/gulpfile.ts",
@@ -17,10 +18,12 @@
1718
"build:site-pre-version": "gulp build:site-pre-version --cwd ./packages/site --gulpfile ./scripts/gulp/gulpfile.ts",
1819
"icons": "gulp icons --gulpfile ./scripts/gulp/gulpfile.ts",
1920
"gen": "ts-node scripts/gen/generate.ts",
21+
"theme:update": "ts-node scripts/gen/theme/run.ts",
22+
"colors:update": "ts-node scripts/gen/colors/run.ts",
2023
"lessvariable:update": "ts-node scripts/gen/style-variable/update.ts",
2124
"prepare": "husky install",
2225
"preinstall": "npx only-allow pnpm",
23-
"version": "lerna version --conventional-commits --no-push --exact",
26+
"version": "lerna version --conventional-commits --conventional-prerelease --no-push --exact",
2427
"test": "vitest",
2528
"lint": "npm-run-all -p ls-lint eslint stylelint markdownlint",
2629
"lint:fix": "npm-run-all -p ls-lint eslint:fix stylelint:fix markdownlint:fix",
@@ -94,23 +97,25 @@
9497
"codecov": "^3.8.3",
9598
"cz-git": "^1.7.1",
9699
"esbuild": "^0.15.18",
97-
"eslint": "^8.48.0",
100+
"eslint": "^8.54.0",
98101
"eslint-import-resolver-custom-alias": "^1.3.2",
99102
"eslint-plugin-header": "^3.1.1",
100-
"eslint-plugin-import": "^2.28.1",
101-
"eslint-plugin-jsdoc": "^46.5.1",
102-
"eslint-plugin-prettier": "^5.0.0",
103-
"eslint-plugin-vue": "^9.17.0",
103+
"eslint-plugin-import": "^2.29.0",
104+
"eslint-plugin-jsdoc": "^46.9.0",
105+
"eslint-plugin-prettier": "^5.0.1",
106+
"eslint-plugin-vue": "^9.18.1",
104107
"fast-glob": "^3.3.1",
105108
"figlet": "^1.6.0",
106109
"fs-extra": "^10.1.0",
107110
"gulp": "^4.0.2",
111+
"happy-dom": "^12.10.3",
108112
"husky": "^8.0.3",
109113
"inquirer": "^8.2.6",
110114
"jsdom": "^20.0.3",
111115
"lerna": "^7.2.0",
112116
"less": "^4.2.0",
113117
"lint-staged": "^13.3.0",
118+
"lodash": "^4.17.21",
114119
"lodash-es": "^4.17.21",
115120
"markdownlint-cli": "^0.32.2",
116121
"marked": "^4.3.0",
@@ -119,7 +124,7 @@
119124
"parse5": "^7.1.2",
120125
"postcss": "^8.4.29",
121126
"postcss-less": "^6.0.0",
122-
"prettier": "^3.0.3",
127+
"prettier": "^3.1.0",
123128
"prismjs": "^1.29.0",
124129
"resolve-bin": "^1.0.1",
125130
"rimraf": "^4.4.1",
@@ -132,9 +137,11 @@
132137
"ts-node": "^10.9.1",
133138
"ts-toolbelt": "^9.6.0",
134139
"tslib": "^2.6.2",
140+
"typedoc": "^0.25.4",
135141
"typescript": "^4.9.5",
136142
"unplugin-vue-components": "^0.22.12",
137143
"vite": "^4.4.9",
144+
"vite-node": "^0.34.6",
138145
"vite-plugin-chunk-split": "^0.4.7",
139146
"vite-plugin-static-copy": "^0.9.0",
140147
"vitest": "^0.24.5",

packages/cdk/CHANGELOG.md

+124-2
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,150 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
## [1.12.4](https://github.com/IDuxFE/idux/compare/v1.12.2...v1.12.4) (2024-01-02)
6+
# [2.0.0-beta.6](https://github.com/IDuxFE/idux/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2024-01-17)
7+
8+
9+
### Bug Fixes
10+
11+
* **cdk:popper:** arrow size not properly calculated ([#1813](https://github.com/IDuxFE/idux/issues/1813)) ([f7abe16](https://github.com/IDuxFE/idux/commit/f7abe16f9b8bf71124d46fc96c8a6594d36ef64e))
12+
13+
14+
### Features
15+
16+
* **cdk:scroll:** add simulated scroll support to VirtualScroll ([#1812](https://github.com/IDuxFE/idux/issues/1812)) ([17ccefa](https://github.com/IDuxFE/idux/commit/17ccefaf3cd0689e12e69be9d5af95578a12eae5))
17+
18+
19+
20+
21+
22+
# [2.0.0-beta.5](https://github.com/IDuxFE/idux/compare/v1.12.2...v2.0.0-beta.5) (2024-01-08)
723

824

925
### Bug Fixes
1026

1127
* **cdk:drag-drop:** remove user-select none style ([#1743](https://github.com/IDuxFE/idux/issues/1743)) ([d76dcda](https://github.com/IDuxFE/idux/commit/d76dcdabf443c1aa3399d82271fbbcbee79e260f))
28+
* **cdk:forms:** interactions trigger dosen't work ([#1770](https://github.com/IDuxFE/idux/issues/1770)) ([fc44cbf](https://github.com/IDuxFE/idux/commit/fc44cbf912b2ba78f4847ad599d64d89464c408a))
29+
* **cdk:popper:** modify default placement to `bottomStart` ([#1785](https://github.com/IDuxFE/idux/issues/1785)) ([5d9ddc4](https://github.com/IDuxFE/idux/commit/5d9ddc4d9e21226c9d7ef89b223cc4eb574ac611))
1230

1331

32+
### Features
33+
34+
* add dark theme ([#1751](https://github.com/IDuxFE/idux/issues/1751)) ([415f07f](https://github.com/IDuxFE/idux/commit/415f07f5c5a23ac1737865b945417e1424a7086b))
35+
* **cdk:forms:** add `interactions` trigger ([#1766](https://github.com/IDuxFE/idux/issues/1766)) ([83c60e7](https://github.com/IDuxFE/idux/commit/83c60e729ec1d1979a1250f1d1cd88583a4be5ec))
36+
* **cdk:scroll:** virtual scroll supports horizontal ([#1775](https://github.com/IDuxFE/idux/issues/1775)) ([77a0411](https://github.com/IDuxFE/idux/commit/77a0411370fb88e15e192850b57ae9bc5956a884))
37+
* **cdk:theme:** add cdk theme support ([#1739](https://github.com/IDuxFE/idux/issues/1739)) ([ab9cb89](https://github.com/IDuxFE/idux/commit/ab9cb894e44be39dcf1310a4a0ff3a66be1d3649))
38+
* dynamic theme with theme tokens is now supported ([#1737](https://github.com/IDuxFE/idux/issues/1737)) ([5976f6d](https://github.com/IDuxFE/idux/commit/5976f6dcfecd276ad7c3406786266f65453da8dd))
39+
40+
41+
### BREAKING CHANGES
42+
43+
* **cdk:scroll:** itemHeight is deprecated, use rowHeight instead
44+
* **cdk:scroll:** itemRender is deprecated, use rowRender instead
45+
* original css vars and less vars are removed
46+
* original default theme is removed, seer is now default theme
47+
* original style entries is removed, now only index is provided
1448

1549

1650

17-
## [1.12.3](https://github.com/IDuxFE/idux/compare/v1.12.2...v1.12.3) (2023-12-05)
51+
52+
53+
# [2.0.0-beta.4](https://github.com/IDuxFE/idux/compare/v1.12.2...v2.0.0-beta.4) (2023-12-27)
1854

1955

2056
### Bug Fixes
2157

2258
* **cdk:drag-drop:** remove user-select none style ([#1743](https://github.com/IDuxFE/idux/issues/1743)) ([d76dcda](https://github.com/IDuxFE/idux/commit/d76dcdabf443c1aa3399d82271fbbcbee79e260f))
59+
* **cdk:forms:** interactions trigger dosen't work ([#1770](https://github.com/IDuxFE/idux/issues/1770)) ([c099b1a](https://github.com/IDuxFE/idux/commit/c099b1a50545ecc28c40a7610320614dbf23866e))
60+
61+
62+
### Features
63+
64+
* add dark theme ([#1751](https://github.com/IDuxFE/idux/issues/1751)) ([a4540ec](https://github.com/IDuxFE/idux/commit/a4540ecb226f110b0fdd74a4d4525427db02d926))
65+
* **cdk:forms:** add `interactions` trigger ([#1766](https://github.com/IDuxFE/idux/issues/1766)) ([dcdbfb3](https://github.com/IDuxFE/idux/commit/dcdbfb3effa0461edb0806fe4b08b59c78e45833))
66+
* **cdk:scroll:** virtual scroll supports horizontal ([#1775](https://github.com/IDuxFE/idux/issues/1775)) ([4b39705](https://github.com/IDuxFE/idux/commit/4b39705af35cff3422dc7666777409c2f80030b1))
67+
* **cdk:theme:** add cdk theme support ([#1739](https://github.com/IDuxFE/idux/issues/1739)) ([6616ebc](https://github.com/IDuxFE/idux/commit/6616ebc5472367231d52f9f55a923b1504a8c5dc))
68+
* dynamic theme with theme tokens is now supported ([#1737](https://github.com/IDuxFE/idux/issues/1737)) ([f587f3a](https://github.com/IDuxFE/idux/commit/f587f3aa856b0576a6d9bb8b1d428301c4f5cccb))
69+
70+
71+
### BREAKING CHANGES
72+
73+
* **cdk:scroll:** itemHeight is deprecated, use rowHeight instead
74+
* **cdk:scroll:** itemRender is deprecated, use rowRender instead
75+
* original css vars and less vars are removed
76+
* original default theme is removed, seer is now default theme
77+
* original style entries is removed, now only index is provided
2378

2479

2580

2681

2782

83+
# [2.0.0-beta.3](https://github.com/IDuxFE/idux/compare/v1.12.3...v2.0.0-beta.3) (2023-12-11)
84+
85+
86+
### Bug Fixes
87+
88+
* **cdk:forms:** interactions trigger dosen't work ([#1770](https://github.com/IDuxFE/idux/issues/1770)) ([c099b1a](https://github.com/IDuxFE/idux/commit/c099b1a50545ecc28c40a7610320614dbf23866e))
89+
90+
91+
### Features
92+
93+
* add dark theme ([#1751](https://github.com/IDuxFE/idux/issues/1751)) ([a4540ec](https://github.com/IDuxFE/idux/commit/a4540ecb226f110b0fdd74a4d4525427db02d926))
94+
* **cdk:forms:** add `interactions` trigger ([#1766](https://github.com/IDuxFE/idux/issues/1766)) ([dcdbfb3](https://github.com/IDuxFE/idux/commit/dcdbfb3effa0461edb0806fe4b08b59c78e45833))
95+
* **cdk:theme:** add cdk theme support ([#1739](https://github.com/IDuxFE/idux/issues/1739)) ([6616ebc](https://github.com/IDuxFE/idux/commit/6616ebc5472367231d52f9f55a923b1504a8c5dc))
96+
* dynamic theme with theme tokens is now supported ([#1737](https://github.com/IDuxFE/idux/issues/1737)) ([f587f3a](https://github.com/IDuxFE/idux/commit/f587f3aa856b0576a6d9bb8b1d428301c4f5cccb))
97+
98+
99+
### BREAKING CHANGES
100+
101+
* original css vars and less vars are removed
102+
* original default theme is removed, seer is now default theme
103+
* original style entries is removed, now only index is provided
104+
105+
106+
107+
108+
109+
# [2.0.0-beta.1](https://github.com/IDuxFE/idux/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2023-11-29)
110+
111+
112+
### Features
113+
114+
* add dark theme ([#1751](https://github.com/IDuxFE/idux/issues/1751)) ([411ed2b](https://github.com/IDuxFE/idux/commit/411ed2b90f15e3b8c7f1989429fa023065304143))
115+
116+
117+
118+
119+
120+
# [2.0.0-beta.0](https://github.com/IDuxFE/idux/compare/v1.12.2...v2.0.0-beta.0) (2023-11-23)
121+
122+
123+
### Features
124+
125+
* **cdk:theme:** add cdk theme support ([#1739](https://github.com/IDuxFE/idux/issues/1739)) ([f34f0e5](https://github.com/IDuxFE/idux/commit/f34f0e573d294719abe216dd2f3fbf196bcd021b))
126+
* dynamic theme with theme tokens is now supported ([#1737](https://github.com/IDuxFE/idux/issues/1737)) ([ea22a8f](https://github.com/IDuxFE/idux/commit/ea22a8fa8fb863a4c546b9af62025718779d3463))
127+
128+
129+
### BREAKING CHANGES
130+
131+
* original css vars and less vars are removed
132+
* original default theme is removed, seer is now default theme
133+
* original style entries is removed, now only index is provided
134+
135+
## [1.12.4](https://github.com/IDuxFE/idux/compare/v1.12.2...v1.12.4) (2024-01-02)
136+
137+
138+
### Bug Fixes
139+
140+
* **cdk:drag-drop:** remove user-select none style ([#1743](https://github.com/IDuxFE/idux/issues/1743)) ([d76dcda](https://github.com/IDuxFE/idux/commit/d76dcdabf443c1aa3399d82271fbbcbee79e260f))
141+
142+
## [1.12.3](https://github.com/IDuxFE/idux/compare/v1.12.2...v1.12.3) (2023-12-05)
143+
144+
145+
### Bug Fixes
146+
147+
* **cdk:drag-drop:** remove user-select none style ([#1743](https://github.com/IDuxFE/idux/issues/1743)) ([d76dcda](https://github.com/IDuxFE/idux/commit/d76dcdabf443c1aa3399d82271fbbcbee79e260f))
148+
149+
28150
## [1.9.4](https://github.com/IDuxFE/idux/compare/v1.9.3...v1.9.4) (2023-08-28)
29151

30152
**Note:** Version bump only for package @idux/cdk

packages/cdk/a11y/demo/FocusMonitor.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ onBeforeUnmount(() => {
5252

5353
<style scoped lang="less">
5454
.example-focus-monitor {
55-
background-color: @color-grey;
55+
background-color: #a3a3a3;
5656
padding: 20px;
5757
5858
.cdk-mouse-focused {
59-
background: @color-blue;
59+
background: #1c6eff;
6060
}
6161
6262
.cdk-keyboard-focused {
63-
background: @color-green;
63+
background: #39c317;
6464
}
6565
6666
.cdk-touch-focused {
67-
background: @color-magenta;
67+
background: #d619be;
6868
}
6969
7070
.cdk-program-focused {
71-
background: @color-red;
71+
background: #f52727;
7272
}
7373
7474
.ix-button {

packages/cdk/forms/docs/Api.zh.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function useFormControl<T>(
8484
| `disabled` | 默认禁用当前控件 | `boolean \| (control: AbstractControl, initializing: boolean) => boolean` | - | `initializing``true` 时,表示处于初始化中,此时 `control` 的部分属性还不能访问。 |
8585
| `name` | 控件的名称 | `string` | - | 通常用于自定义提示信息 |
8686
| `example` | 控件的示例 | `string` | - | 通常用于自定义提示信息 |
87-
| `trigger` | 验证器触发的时机 | `'change' \| 'blur' \| 'submit'` | `change` | - |
87+
| `trigger` | 验证器触发的时机 | `'change' \| 'blur' \| 'submit' \| 'interactions'` | `change` | - |
8888
| `validators` | 一个同步验证器函数或数组 | `ValidatorFn \| ValidatorFn[]` | - | - |
8989
| `asyncValidators` | 一个异步验证器函数或数组 | `AsyncValidatorFn \| AsyncValidatorFn[]` | - | - |
9090

@@ -231,6 +231,10 @@ export abstract class AbstractControl<T = any> {
231231
* 如果用户在 UI 中尚未更改控件的值,则该控件是 `pristine`
232232
*/
233233
readonly pristine: ComputedRef<boolean>;
234+
/**
235+
* 如果控件被执行过校验,则 `validated``true`
236+
*/
237+
readonly validated: ComputedRef<boolean>;
234238
/**
235239
* 此控件的父级控制器, 如果不存在则为 `undefined`
236240
*/
@@ -244,7 +248,7 @@ export abstract class AbstractControl<T = any> {
244248
* 可选值: `'change'` | `'blur'` | `'submit'`
245249
* 默认值: `'change'`
246250
*/
247-
get trigger(): 'change' | 'blur' | 'submit';
251+
get trigger(): 'change' | 'blur' | 'submit' | 'interactions';
248252
/**
249253
* 此控件的名称,通常用于验证提示信息
250254
*/

0 commit comments

Comments
 (0)