Skip to content

Commit

Permalink
chore: 移除ant-design-vue样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ZvonimirSun committed Sep 2, 2024
1 parent 69c7b33 commit cad373c
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 170 deletions.
2 changes: 1 addition & 1 deletion src/styles/icons.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[class^="i-"]:not([class^="i-typography"]) {
[class^="i-"] {
mask: var(--un-icon) no-repeat;
mask-size: 100% 100%;
-webkit-mask: var(--un-icon) no-repeat;
Expand Down
8 changes: 0 additions & 8 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "typography.scss";
@import "icons.scss";

:root {
Expand Down Expand Up @@ -84,13 +83,6 @@ a.ant-typography, .ant-typography a {
color: var(--el-color-primary) !important;
}

.ant-list-item-meta-title {
color: var(--el-text-color-primary) !important;
}
.ant-list-item-meta-description {
color: var(--el-text-color-primary) !important;
}

.el-dialog {
@media screen and (max-width: 768px) {
--el-dialog-width: 90% !important;
Expand Down
28 changes: 0 additions & 28 deletions src/styles/typography.scss

This file was deleted.

6 changes: 0 additions & 6 deletions src/tools/anyRule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ function validator(rule, value, callback) {
right: .8rem;
top: .8rem;
display: block;
& + div {
.ant-tooltip-inner {
white-space: nowrap;
}
}
}
}
</style>
3 changes: 0 additions & 3 deletions src/tools/base64.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,4 @@ function exchange() {
</template>

<style lang="scss">
textarea.ant-input {
resize: none;
}
</style>
8 changes: 0 additions & 8 deletions src/tools/geoJson/child/MainMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,6 @@ function selectFeature(index: number) {
display: flex;
gap: .8rem;
margin-top: .8rem;
.ant-form-item {
margin: unset;
}
& + .ant-form-item {
margin-top: .8rem;
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/tools/imageBase64.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ function onImagePreview() {
gap: .8rem;
}
.ant-input-textarea {
margin: 0;
resize: none;
}
.preview {
margin: 0;
padding: 0;
Expand Down
20 changes: 0 additions & 20 deletions src/tools/imgHosting/child/imgList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,25 +123,5 @@ async function copyImgUrl({ url } = {} as { url: string }) {
color: var(--el-text-color-placeholder);
}
}
:deep(.ant-image) {
cursor: pointer;
}
:deep(.ant-card-body) {
padding: .8rem;
width: 20rem;
}
:deep(.ant-card-actions) {
& > li {
margin: 0;
}
}
.ant-space {
flex-wrap: wrap;
}
}
</style>
12 changes: 0 additions & 12 deletions src/tools/imgHosting/child/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,23 +205,11 @@ function save() {
}
}
.commonConfigPanel {
.ant-space {
flex-wrap: wrap;
}
}
.el-form-item {
margin-bottom: .8rem;
&:last-child {
margin-bottom: 0;
}
}
.custom-copy-wrapper :deep(.ant-radio-wrapper) {
display: flex;
height: 32px;
line-height: 32px;
}
</style>
5 changes: 0 additions & 5 deletions src/tools/imgHosting/imgHosting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ const activeKey = ref('home')
.el-tabs__header {
height: 4rem !important;
margin-bottom: .8rem;
.ant-tabs-tab {
height: 4rem !important;
line-height: 4rem !important;
}
}
.el-tabs__content {
Expand Down
12 changes: 0 additions & 12 deletions src/tools/jsonEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -631,16 +631,4 @@ function clickDragger() {
width: calc(100% - 42px);
}
}
:deep(.ant-list-item) {
&.selected, &:hover {
.ant-list-item-meta-title {
color: var(--el-color-black) !important;
}
.ant-list-item-meta-description {
color: var(--el-color-black) !important;
}
}
}
</style>
8 changes: 0 additions & 8 deletions src/tools/qrcode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@ async function decodeQRCode(img: HTMLImageElement) {
</template>

<style scoped lang="scss">
.ant-form-item {
margin-bottom: .8rem;
&:last-child {
margin-bottom: 0;
}
}
.upload-container {
cursor: pointer;
font-size: 30px;
Expand Down
3 changes: 0 additions & 3 deletions src/tools/random.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,4 @@ export default defineComponent({
</template>

<style scoped lang="scss">
.ant-input-number {
width: 100%;
}
</style>
10 changes: 0 additions & 10 deletions src/tools/relationship.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ function backspace() {
</template>

<style scoped lang="scss">
.ant-form-item {
margin-bottom: .8rem;
}
.ant-typography {
textarea {
margin-bottom: .8rem;
Expand All @@ -185,10 +181,4 @@ function backspace() {
margin: 0 0 .8rem;
}
}
.ant-space {
flex-wrap: wrap;
width: 100%;
margin-bottom: .8rem;
}
</style>
16 changes: 0 additions & 16 deletions src/tools/urlEncode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,6 @@ function revertHistory(history: Array<string>) {
</template>

<style scoped lang="scss">
.ant-space-vertical {
width: 100%;
}
.ant-btn-group {
flex-flow: row wrap;
.ant-btn {
margin-bottom: 5px;
@media (max-width: 450px) {
padding: 0 8px;
}
}
}
.history-list {
display: flex;
flex-direction: row;
Expand Down
7 changes: 0 additions & 7 deletions src/tools/uuid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,4 @@ function reset() {
width: 100%;
margin-top: 1.6rem;
}
.btnGroup {
.ant-btn + .ant-btn {
margin-left: .8rem;
}
}
</style>
17 changes: 0 additions & 17 deletions src/tools/watermark.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,6 @@ export default {
</template>

<style scoped lang="scss">
:deep(.ant-upload) {
width: 100% !important;
}
:deep(.ant-input-group-addon) {
padding: 0;
border: unset;
}
.ant-form-item {
margin-bottom: .8rem;
&:last-child {
margin-bottom: 0;
}
}
.preview {
width: 100%;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default defineConfig({
Sitemap({ tools, hostname: config.siteOrigin }),
],
optimizeDeps: {
include: ['vue', 'element-plus', 'ant-design-vue'],
include: ['vue', 'element-plus'],
},
resolve: {
alias: {
Expand Down

0 comments on commit cad373c

Please sign in to comment.