feat: tusimple theme clear icon

This commit is contained in:
07akioni 2021-02-10 22:21:40 +08:00
parent f15ee6d101
commit d4f8ec7486
3 changed files with 28 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"name": "@naive-ui/tusimple-theme",
"main": "lib/index.js",
"module": "es/index.js",
"version": "2.0.0-beta.5",
"version": "0.1.0",
"author": "07akioni",
"license": "MIT",
"publishConfig": {

View File

@ -0,0 +1,25 @@
import { h, VNode } from 'vue'
function clear (): VNode {
return (
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g transform="translate(-579.000000, -1679.000000)" fill="currentColor">
<g transform="translate(119.000000, 1482.000000)">
<g transform="translate(0.000000, 104.000000)">
<g transform="translate(0.000000, 93.000000)">
<g transform="translate(460.000000, 0.000000)">
<path d="M12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 Z M15.5355339,8.46446609 C15.906532,8.83546417 15.906532,9.4369709 15.5355339,9.80796898 L13.34421,11.9992929 L15.5355339,14.192031 C15.906532,14.5630291 15.906532,15.1645358 15.5355339,15.5355339 C15.1645358,15.906532 14.5630291,15.906532 14.192031,15.5355339 L12,13.3420887 L9.80796898,15.5355339 C9.4369709,15.906532 8.83546417,15.906532 8.46446609,15.5355339 C8.09346802,15.1645358 8.09346802,14.5630291 8.46446609,14.192031 L10.6572042,11.9992929 L8.46446609,9.80796898 C8.09346802,9.4369709 8.09346802,8.83546417 8.46446609,8.46446609 C8.83546417,8.09346802 9.4369709,8.09346802 9.80796898,8.46446609 L12.0007071,10.65579 L14.192031,8.46446609 C14.5630291,8.09346802 15.1645358,8.09346802 15.5355339,8.46446609 Z"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>
) as VNode
}
export const icons = {
clear
}

View File

@ -3,6 +3,7 @@ import { NConfigProvider } from 'naive-ui'
import { renderFilter, renderSorter } from './data-table'
import { unconfigurableStyle, mountSvgDefs } from './unconfigurable-style'
import { themeOverrides } from './theme-overrides'
import { icons } from './icons'
export default defineComponent({
name: 'TsConfigProvider',
@ -36,6 +37,7 @@ export default defineComponent({
<NConfigProvider
themeOverrides={themeOverrides}
componentProps={this.componentProps}
icons={icons}
onBeforeMount={this.onBeforeMount}
>
{this.$slots}