diff --git a/src/components/ThemeColorSelect/components/ColorList.vue b/src/components/ThemeColorSelect/components/ColorList.vue new file mode 100644 index 00000000..af65fd2d --- /dev/null +++ b/src/components/ThemeColorSelect/components/ColorList.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/ThemeColorSelect/index.vue b/src/components/ThemeColorSelect/index.vue index 035d9507..1ce652ea 100644 --- a/src/components/ThemeColorSelect/index.vue +++ b/src/components/ThemeColorSelect/index.vue @@ -16,51 +16,17 @@
- - - -
- - - - {{ item.name }} - - - {{ item.pinyin.toUpperCase() }} - - - - {{ item.hex }} - - {{ - `rgb(${item.RGB[0]}, ${item.RGB[0]}, ${item.RGB[0]})` - }} - - - - - +
- - {{ appThemeDetail.name }} - - - 中国色 - - - {{ appThemeDetail.pinyin.toUpperCase() }} - + {{ appThemeDetail.name }} + 中国色 + {{ appThemeDetail.pinyin.toUpperCase() }}
@@ -86,16 +50,17 @@ import { useDesignStore } from '@/store/modules/designStore/designStore' import { AppThemeColorType } from '@/store/modules/designStore/designStore.d' import { icon } from '@/plugins' import themeColorLogo from '@/assets/images/exception/theme-color.png' +import { loadAsyncComponent } from '@/utils' +const ColorList = loadAsyncComponent(() => + import('./components/ColorList.vue') +) const { ColorWandIcon, CloseIcon } = icon.ionicons5 const designStore = useDesignStore() const modelShow = ref(false) -const { appThemeList } = designStore - const appThemeDetail = computed(() => { - console.log(designStore.getAppThemeDetail) return designStore.getAppThemeDetail }) @@ -106,7 +71,7 @@ const colorSelectHandle = (color: AppThemeColorType) => {