Skip to content

Commit c8cd737

Browse files
LuckyFBBliuxy0551
authored andcommitted
fix: all classname startWith dtc
1 parent 09c4c77 commit c8cd737

File tree

11 files changed

+28
-60
lines changed

11 files changed

+28
-60
lines changed

src/contentLayout/__tests__/__snapshots__/contentLayout.test.tsx.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ exports[`test contentLayout should support contentLayout success render 1`] = `
66
"baseElement": <body>
77
<div>
88
<div
9-
class="content-layout"
9+
class="dtc-content-layout"
1010
style="height: calc(100vh - 96px);"
1111
/>
1212
</div>
1313
</body>,
1414
"container": <div>
1515
<div
16-
class="content-layout"
16+
class="dtc-content-layout"
1717
style="height: calc(100vh - 96px);"
1818
/>
1919
</div>,

src/contentLayout/__tests__/contentLayout.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('test contentLayout', () => {
2626
/>
2727
</ContentLayout>
2828
);
29-
expect(container.querySelector<HTMLDivElement>('.content-layout')?.style.height).toBe(
29+
expect(container.querySelector<HTMLDivElement>('.dtc-content-layout')?.style.height).toBe(
3030
'calc(100vh - 96px)'
3131
);
3232
});
@@ -47,7 +47,7 @@ describe('test contentLayout', () => {
4747
/>
4848
</ContentLayout>
4949
);
50-
expect(container.querySelector<HTMLDivElement>('.content-layout')?.style.height).toBe(
50+
expect(container.querySelector<HTMLDivElement>('.dtc-content-layout')?.style.height).toBe(
5151
'500px'
5252
);
5353
});

src/contentLayout/index.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.content-layout {
1+
.dtc-content-layout {
22
display: flex;
33
flex-direction: column;
44
overflow: hidden;

src/contentLayout/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface IProps {
1111
className?: string;
1212
}
1313

14-
export const NAME = 'content-layout';
14+
export const NAME = 'dtc-content-layout';
1515

1616
const ContentLayout = (props: IProps) => {
1717
const { height = 'calc(100vh - 96px)', style, className, children } = props;

src/dropdown/style.scss

-32
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
// .dtc-mul-select-dropdown {
2-
// .dtc-option-select-overlay {
3-
// background: #FFF;
4-
// box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
5-
// border-radius: 2px;
6-
// width: 220px;
7-
// height: auto;
8-
// .dtc-option-select-overlay-menu {
9-
// max-height: 240px;
10-
// overflow-y: scroll;
11-
// }
12-
// .ant-checkbox-group {
13-
// width: 100%;
14-
// }
15-
// .ant-divider-horizontal {
16-
// background: #E8E8E8;
17-
// width: 204px;
18-
// margin: 0 0 0 8px;
19-
// min-width: 204px;
20-
// }
21-
// .dtc-option-select-overlay-row {
22-
// padding: 8px;
23-
// &.footer-box {
24-
// display: flex;
25-
// justify-content: space-between;
26-
// align-items: center;
27-
// width: 100%;
28-
// }
29-
// }
30-
// }
31-
// }
32-
331
$gap: 8px;
342
$item-size: 32px;
353

src/filterRules/__tests__/__snapshots__/filterRules.test.tsx.snap

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ exports[`FilterRules should support FilterRules success render 1`] = `
66
"baseElement": <body>
77
<div>
88
<div
9-
class="ruleController"
9+
class="dtc-ruleController"
1010
>
1111
<div
12-
class="ruleController__item"
12+
class="dtc-ruleController__item"
1313
>
1414
<div
15-
class="ruleController__item--component"
15+
class="dtc-ruleController__item--component"
1616
>
1717
<input
1818
class="ant-input"
@@ -21,7 +21,7 @@ exports[`FilterRules should support FilterRules success render 1`] = `
2121
/>
2222
</div>
2323
<div
24-
class="ruleController__item--operation"
24+
class="dtc-ruleController__item--operation"
2525
>
2626
<span
2727
aria-label="plus-circle"
@@ -76,13 +76,13 @@ exports[`FilterRules should support FilterRules success render 1`] = `
7676
</body>,
7777
"container": <div>
7878
<div
79-
class="ruleController"
79+
class="dtc-ruleController"
8080
>
8181
<div
82-
class="ruleController__item"
82+
class="dtc-ruleController__item"
8383
>
8484
<div
85-
class="ruleController__item--component"
85+
class="dtc-ruleController__item--component"
8686
>
8787
<input
8888
class="ant-input"
@@ -91,7 +91,7 @@ exports[`FilterRules should support FilterRules success render 1`] = `
9191
/>
9292
</div>
9393
<div
94-
class="ruleController__item--operation"
94+
class="dtc-ruleController__item--operation"
9595
>
9696
<span
9797
aria-label="plus-circle"

src/filterRules/ruleController/index.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
.ruleController {
1+
.dtc-ruleController {
22
&__condition {
33
position: relative;
4-
.ruleController__condition--active {
4+
.dtc-ruleController__condition--active {
55
padding-left: 32px;
66
.condition__box--line {
77
width: 33px;

src/filterRules/ruleController/index.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export const RulesController = <T,>(props: IProps<T>) => {
137137
return (
138138
<div
139139
key={item.key}
140-
className={classnames('ruleController__condition', {
141-
'ruleController__condition--active': item.children.length > 1,
140+
className={classnames('dtc-ruleController__condition', {
141+
'dtc-ruleController__condition--active': item.children.length > 1,
142142
})}
143143
>
144144
<div
@@ -193,15 +193,15 @@ export const RulesController = <T,>(props: IProps<T>) => {
193193
}
194194
// 渲染自定义的 component
195195
return (
196-
<div className="ruleController__item" key={item.key}>
196+
<div className="dtc-ruleController__item" key={item.key}>
197197
{value?.children && (
198198
<span
199-
className={classnames('ruleController__item--line', {
199+
className={classnames('dtc-ruleController__item--line', {
200200
disabled,
201201
})}
202202
/>
203203
)}
204-
<div className="ruleController__item--component">
204+
<div className="dtc-ruleController__item--component">
205205
{component({
206206
rowKey: item.key,
207207
disabled: composeDisabled,
@@ -211,7 +211,7 @@ export const RulesController = <T,>(props: IProps<T>) => {
211211
})}
212212
</div>
213213
{!composeDisabled && (
214-
<div className="ruleController__item--operation">
214+
<div className="dtc-ruleController__item--operation">
215215
{item.level === maxLevel ? null : (
216216
<PlusCircleOutlined
217217
className="icon"
@@ -233,7 +233,7 @@ export const RulesController = <T,>(props: IProps<T>) => {
233233
calculateTreeItemHeight(value, !!disabled);
234234

235235
return (
236-
<div className="ruleController">
236+
<div className="dtc-ruleController">
237237
{renderCondition(value, [], !!disabled || !!value.disabled)}
238238
</div>
239239
);

src/modal/__tests__/__snapshots__/modal.test.tsx.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports[`Test Modal Component Should Match snapshot 1`] = `
1515
<div
1616
aria-labelledby="test-id"
1717
aria-modal="true"
18-
class="ant-modal dt-modal"
18+
class="ant-modal dtc-modal"
1919
role="dialog"
2020
style="width: 520px;"
2121
>
@@ -72,7 +72,7 @@ exports[`Test Modal Component Should Match snapshot 1`] = `
7272
style="padding: 0px;"
7373
>
7474
<section
75-
class="dt-modal-body"
75+
class="dtc-modal-body"
7676
>
7777
<div>
7878
test

src/modal/index.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$modal-max-height: 80vh;
22

3-
.dt-modal {
3+
.dtc-modal {
44
.ant-modal-content {
55
max-height: $modal-max-height;
66
display: flex;

src/modal/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function InternalModal({
3535

3636
return (
3737
<Modal
38-
className={classNames('dt-modal', className)}
38+
className={classNames('dtc-modal', className)}
3939
bodyStyle={{ padding: 0, ...bodyStyle }}
4040
width={finalWidth}
4141
{...rest}
@@ -47,7 +47,7 @@ export default function InternalModal({
4747
{...(isValidBanner(banner) ? {} : omit(banner, 'message'))}
4848
/>
4949
)}
50-
<section className="dt-modal-body">{children}</section>
50+
<section className="dtc-modal-body">{children}</section>
5151
</Modal>
5252
);
5353
}

0 commit comments

Comments
 (0)