Skip to content

Commit

Permalink
perf: uni-icons 兼容 top bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaotian committed Dec 11, 2023
1 parent 8dd96f1 commit 0bf500f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 645 deletions.
6 changes: 6 additions & 0 deletions uni_modules/uni-icons/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.0.6(2023-12-11)
- 优化 兼容老版本icon类型,如 top ,bottom 等
## 2.0.5(2023-12-11)
- 优化 兼容老版本icon类型,如 top ,bottom 等
## 2.0.4(2023-12-06)
- 优化 uni-app x 下示例项目图标排序
## 2.0.3(2023-12-06)
- 修复 nvue下引入组件报错的bug
## 2.0.2(2023-12-05)
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uni-icons/components/uni-icons/uni-icons.uvue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script>
import { fontData, IconsDataItem } from './uniicons-uvue'
import { fontData, IconsDataItem } from './uniicons_file'

/**
* Icons 图标
Expand Down
8 changes: 4 additions & 4 deletions uni_modules/uni-icons/components/uni-icons/uni-icons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</template>

<script>
import { fontData } from './uniicons.js';
import { fontData } from './uniicons_file.ts';
// #ifdef APP-NVUE
var domModule = weex.requireModule('dom');
import iconUrl from './uniicons.ttf'
Expand Down Expand Up @@ -57,7 +57,7 @@
},
data() {
return {
icons: fontData
icons: fontData
}
},
computed: {
Expand All @@ -68,7 +68,7 @@
}
return ''
},
iconSize() {
iconSize() {
if (typeof this.size == 'string') {
return this.size
}
Expand Down Expand Up @@ -105,4 +105,4 @@
text-decoration: none;
text-align: center;
}
</style>
</style>
8 changes: 8 additions & 0 deletions uni_modules/uni-icons/components/uni-icons/uniicons.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@
content: "\e6b8";
}

.uniui-bottom:before {
content: "\e6b8";
}

.uniui-arrowright:before {
content: "\e6d5";
}
Expand All @@ -143,6 +147,10 @@
content: "\e6b6";
}

.uniui-top:before {
content: "\e6b6";
}

.uniui-left:before {
content: "\e6b7";
}
Expand Down
Loading

0 comments on commit 0bf500f

Please sign in to comment.