mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-23 09:54:16 +08:00
chore: auto merge branches (#52014)
Some checks failed
Publish Any Commit / build (push) Has been cancelled
🔀 Sync mirror to Gitee / mirror (push) Has been cancelled
✅ test / lint (push) Has been cancelled
✅ test / test-react-legacy (16, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (16, 2/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 2/2) (push) Has been cancelled
✅ test / test-node (push) Has been cancelled
✅ test / test-react-latest (dom, 1/2) (push) Has been cancelled
✅ test / test-react-latest (dom, 2/2) (push) Has been cancelled
✅ test / build (push) Has been cancelled
✅ test / test lib/es module (es, 1/2) (push) Has been cancelled
✅ test / test lib/es module (es, 2/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 1/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 2/2) (push) Has been cancelled
👁️ Visual Regression Persist Start / test image (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 2/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Has been cancelled
✅ test / test-coverage (push) Has been cancelled
Some checks failed
Publish Any Commit / build (push) Has been cancelled
🔀 Sync mirror to Gitee / mirror (push) Has been cancelled
✅ test / lint (push) Has been cancelled
✅ test / test-react-legacy (16, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (16, 2/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 2/2) (push) Has been cancelled
✅ test / test-node (push) Has been cancelled
✅ test / test-react-latest (dom, 1/2) (push) Has been cancelled
✅ test / test-react-latest (dom, 2/2) (push) Has been cancelled
✅ test / build (push) Has been cancelled
✅ test / test lib/es module (es, 1/2) (push) Has been cancelled
✅ test / test lib/es module (es, 2/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 1/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 2/2) (push) Has been cancelled
👁️ Visual Regression Persist Start / test image (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 2/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Has been cancelled
✅ test / test-coverage (push) Has been cancelled
chore: merge master into feature
This commit is contained in:
commit
cd346d95db
@ -65,6 +65,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"css": {
|
||||
"formatter": {
|
||||
"quoteStyle": "single"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"include": ["**/*.test.ts", "**/*.test.tsx", "tests/**/*", "scripts/**/*", ".dumi/**/*"],
|
||||
|
@ -7,7 +7,30 @@ import type { PickerLocale } from '../generatePicker';
|
||||
const locale: PickerLocale = {
|
||||
lang: {
|
||||
placeholder: '날짜 선택',
|
||||
yearPlaceholder: '연도 선택',
|
||||
quarterPlaceholder: '분기 선택',
|
||||
monthPlaceholder: '월 선택',
|
||||
weekPlaceholder: '주 선택',
|
||||
rangePlaceholder: ['시작일', '종료일'],
|
||||
rangeYearPlaceholder: ['시작 연도', '종료 연도'],
|
||||
rangeMonthPlaceholder: ['시작 월', '종료 월'],
|
||||
rangeQuarterPlaceholder: ['시작 분기', '종료 분기'],
|
||||
rangeWeekPlaceholder: ['시작 주', '종료 주'],
|
||||
shortWeekDays: ['일', '월', '화', '수', '목', '금', '토'],
|
||||
shortMonths: [
|
||||
'1월',
|
||||
'2월',
|
||||
'3월',
|
||||
'4월',
|
||||
'5월',
|
||||
'6월',
|
||||
'7월',
|
||||
'8월',
|
||||
'9월',
|
||||
'10월',
|
||||
'11월',
|
||||
'12월',
|
||||
],
|
||||
...CalendarLocale,
|
||||
},
|
||||
timePickerLocale: {
|
||||
|
@ -28,22 +28,14 @@ describe('Divider', () => {
|
||||
});
|
||||
|
||||
it('support bool dashed', () => {
|
||||
const { container } = render(
|
||||
<Divider dashed>
|
||||
test test test
|
||||
</Divider>,
|
||||
);
|
||||
const { container } = render(<Divider dashed>test test test</Divider>);
|
||||
expect(container?.querySelector<HTMLSpanElement>('.ant-divider-dashed')).toHaveStyle({
|
||||
borderStyle: 'dashed',
|
||||
});
|
||||
});
|
||||
|
||||
it('support string variant', () => {
|
||||
const { container } = render(
|
||||
<Divider variant="dotted">
|
||||
test dotted
|
||||
</Divider>,
|
||||
);
|
||||
const { container } = render(<Divider variant="dotted">test dotted</Divider>);
|
||||
expect(container?.querySelector<HTMLSpanElement>('.ant-divider-dotted')).toHaveStyle({
|
||||
borderStyle: 'dotted',
|
||||
});
|
||||
|
@ -7,17 +7,21 @@ const App: React.FC = () => (
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
||||
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
||||
</p>
|
||||
<Divider style={{ borderColor: '#7cb305' }}>Solid</Divider>
|
||||
<Divider style={{ borderColor: '#7cb305' }}>Solid</Divider>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
||||
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
||||
</p>
|
||||
<Divider variant="dotted" style={{ borderColor: '#7cb305' }}>Dotted</Divider>
|
||||
<Divider variant="dotted" style={{ borderColor: '#7cb305' }}>
|
||||
Dotted
|
||||
</Divider>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
||||
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
||||
</p>
|
||||
<Divider variant="dashed" style={{ borderColor: '#7cb305' }} dashed >Dashed</Divider>
|
||||
<Divider variant="dashed" style={{ borderColor: '#7cb305' }} dashed>
|
||||
Dashed
|
||||
</Divider>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
||||
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
||||
|
@ -116,7 +116,7 @@ describe('FloatButtonGroup', () => {
|
||||
fireEvent.click(container.querySelector('.ant-float-btn-group')!);
|
||||
expect(onClick).toHaveBeenCalled();
|
||||
expect(onClick2).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
it('warning if set `open` but not set `trigger`', () => {
|
||||
const warnSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
|
||||
|
@ -208,7 +208,7 @@ const OTP = React.forwardRef<OTPRef, OTPProps>((props, ref) => {
|
||||
const nextCells = patchValue(index, txt);
|
||||
|
||||
const nextIndex = Math.min(index + txt.length, length - 1);
|
||||
if (nextIndex !== index && nextCells[index] !== undefined) {
|
||||
if (nextIndex !== index && nextCells[index] !== undefined) {
|
||||
refs.current[nextIndex]?.focus();
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ const InternalItem = React.forwardRef<HTMLDivElement, ListItemProps>((props, ref
|
||||
};
|
||||
|
||||
const prefixCls = getPrefixCls('list', customizePrefixCls);
|
||||
const actionsContent = (actions && actions.length > 0) && (
|
||||
const actionsContent = actions && actions.length > 0 && (
|
||||
<ul
|
||||
className={classNames(`${prefixCls}-item-action`, moduleClass('actions'))}
|
||||
key="actions"
|
||||
|
@ -80,7 +80,7 @@ const localeValues: Locale = {
|
||||
copy: 'Копировать',
|
||||
copied: 'Скопировано',
|
||||
expand: 'Раскрыть',
|
||||
collapse: "Свернуть",
|
||||
collapse: 'Свернуть',
|
||||
},
|
||||
Form: {
|
||||
optional: '(необязательно)',
|
||||
@ -144,7 +144,7 @@ const localeValues: Locale = {
|
||||
transparent: 'Прозрачный',
|
||||
singleColor: 'Один цвет',
|
||||
gradientColor: 'Градиент',
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export default localeValues;
|
||||
|
@ -32,7 +32,7 @@ const localeValues: Locale = {
|
||||
selectAll: 'Barchasini tanlash',
|
||||
selectInvert: 'Tanlovni aylantirish',
|
||||
selectNone: "Barcha ma'lumotlarni tozalang",
|
||||
selectionAll: "Barchasini tanlash",
|
||||
selectionAll: 'Barchasini tanlash',
|
||||
sortTitle: 'Tartiblash',
|
||||
expand: 'Satirni yozish',
|
||||
collapse: "Satirni yig'ish",
|
||||
@ -47,7 +47,7 @@ const localeValues: Locale = {
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: "Yopish",
|
||||
cancelText: 'Yopish',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
|
@ -203,7 +203,7 @@ One of the Table `columns` prop for describing the table's columns, Column has t
|
||||
| filterDropdownProps | Customized dropdown props, `filterDropdownOpen` and `onFilterDropdownOpenChange` were available before `<5.22.0` | [DropdownProps](/components/dropdown#api) | - | 5.22.0 |
|
||||
| fixed | (IE not support) Set column to be fixed: `true`(same as left) `'left'` `'right'` | boolean \| string | false | |
|
||||
| key | Unique key of this column, you can ignore this prop if you've set a unique `dataIndex` | string | - | |
|
||||
| render | Renderer of the table cell. The return value should be a ReactNode | function(text, record, index) {} | - | |
|
||||
| render | Renderer of the table cell. `value` is the value of current cell; `record` is the value object of current row; `index` is the row number. The return value should be a ReactNode | function(value, record, index) {} | - | |
|
||||
| responsive | The list of breakpoints at which to display this column. Always visible if not set | [Breakpoint](https://github.com/ant-design/ant-design/blob/015109b42b85c63146371b4e32b883cf97b088e8/components/_util/responsiveObserve.ts#L1)\[] | - | 4.2.0 |
|
||||
| rowScope | Set scope attribute for all cells in this column | `row` \| `rowgroup` | - | 5.1.0 |
|
||||
| shouldCellUpdate | Control cell render logic | (record, prevRecord) => boolean | - | 4.3.0 |
|
||||
|
@ -205,7 +205,7 @@ const columns = [
|
||||
| filterDropdownProps | 自定义下拉属性,在 `<5.22.0` 之前可用 `filterDropdownOpen` 和 `onFilterDropdownOpenChange` | [DropdownProps](/components/dropdown#api) | - | 5.22.0 |
|
||||
| fixed | (IE 下无效)列是否固定,可选 `true` (等效于 `left`) `left` `right` | boolean \| string | false | |
|
||||
| key | React 需要的 key,如果已经设置了唯一的 `dataIndex`,可以忽略这个属性 | string | - | |
|
||||
| render | 生成复杂数据的渲染函数,参数分别为当前行的值,当前行数据,行索引 | function(text, record, index) {} | - | |
|
||||
| render | 生成复杂数据的渲染函数,参数分别为当前单元格的值,当前行数据,行索引 | function(value, record, index) {} | - | |
|
||||
| responsive | 响应式 breakpoint 配置列表。未设置则始终可见。 | [Breakpoint](https://github.com/ant-design/ant-design/blob/015109b42b85c63146371b4e32b883cf97b088e8/components/_util/responsiveObserve.ts#L1)\[] | - | 4.2.0 |
|
||||
| rowScope | 设置列范围 | `row` \| `rowgroup` | - | 5.1.0 |
|
||||
| shouldCellUpdate | 自定义单元格渲染时机 | (record, prevRecord) => boolean | - | 4.3.0 |
|
||||
|
12
package.json
12
package.json
@ -125,20 +125,20 @@
|
||||
"rc-collapse": "~3.9.0",
|
||||
"rc-dialog": "~9.6.0",
|
||||
"rc-drawer": "~7.2.0",
|
||||
"rc-dropdown": "~4.2.0",
|
||||
"rc-field-form": "~2.6.0",
|
||||
"rc-dropdown": "~4.2.1",
|
||||
"rc-field-form": "~2.7.0",
|
||||
"rc-image": "~7.11.0",
|
||||
"rc-input": "~1.6.4",
|
||||
"rc-input-number": "~9.3.0",
|
||||
"rc-mentions": "~2.18.0",
|
||||
"rc-menu": "~9.16.0",
|
||||
"rc-motion": "^2.9.3",
|
||||
"rc-motion": "^2.9.4",
|
||||
"rc-notification": "~5.6.2",
|
||||
"rc-pagination": "~5.0.0",
|
||||
"rc-picker": "~4.8.3",
|
||||
"rc-progress": "~4.0.0",
|
||||
"rc-rate": "~2.13.0",
|
||||
"rc-resize-observer": "^1.4.0",
|
||||
"rc-resize-observer": "^1.4.1",
|
||||
"rc-segmented": "~2.7.0",
|
||||
"rc-select": "~14.16.4",
|
||||
"rc-slider": "~11.1.7",
|
||||
@ -151,7 +151,7 @@
|
||||
"rc-tree": "~5.10.1",
|
||||
"rc-tree-select": "~5.24.5",
|
||||
"rc-upload": "~4.8.1",
|
||||
"rc-util": "^5.44.0",
|
||||
"rc-util": "^5.44.2",
|
||||
"scroll-into-view-if-needed": "^3.1.0",
|
||||
"throttle-debounce": "^5.0.2"
|
||||
},
|
||||
@ -349,4 +349,4 @@
|
||||
"resolutions": {
|
||||
"nwsapi": "2.2.13"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ function addPluginsForProduction(config) {
|
||||
analyzerMode: 'static',
|
||||
openAnalyzer: false,
|
||||
reportFilename: '../report.html',
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
if (newConfig.mode === 'production' && !process.env.PRODUCTION_ONLY) {
|
||||
@ -53,7 +53,7 @@ function addPluginsForProduction(config) {
|
||||
new DuplicatePackageCheckerPlugin({
|
||||
verbose: true,
|
||||
emitError: true,
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ function addPluginsForProduction(config) {
|
||||
}),
|
||||
new CircularDependencyPlugin({
|
||||
failOnError: true,
|
||||
})
|
||||
}),
|
||||
);
|
||||
|
||||
return newConfig;
|
||||
|
Loading…
Reference in New Issue
Block a user