feat: UIComponentsComponents
All checks were successful
/ depcheck (push) Successful in 2m49s
/ lint-build-and-check (push) Successful in 2m38s
/ build-and-deploy-to-vercel (push) Successful in 3m22s
/ surge (push) Successful in 3m7s
/ playwright (push) Successful in 5m9s

This commit is contained in:
mini2024
2025-03-24 00:22:24 +08:00
parent e42241ddc5
commit 22d3eedea0
9 changed files with 57 additions and 4 deletions

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
/src/shadcn

View File

@ -1,2 +0,0 @@
/node_modules
/dist

View File

@ -1,16 +1,20 @@
## 配置项目
- https://github.dev/CesiumGS/cesium-vite-example
### 其他
- https://cesium.com/blog/2024/02/13/configuring-vite-or-webpack-for-cesiumjs/
- https://cesium.com/learn/cesiumjs-learn/cesiumjs-quickstart/
- vite-plugin-cesium
## 参考
- [vue-cesium](https://zouyaoji.top/vue-cesium/#/zh-CN/component/controls/vc-navigation)
- https://cesium.pages.dev/
## 离线地图
- https://github.com/CesiumGS/cesium/tree/main/Documentation/OfflineGuide
- https://blog.csdn.net/lhllhllhl_/article/details/145857779
- https://blog.csdn.net/m0_54849806/article/details/126070809
@ -20,10 +24,12 @@
## TLE
### 格式
- https://celestrak.org/NORAD/documentation/tle-fmt.php
- https://en.wikipedia.org/wiki/Two-line_element_set#Format
### 轨道数据
- https://celestrak.org/NORAD/elements/
- https://www.n2yo.com/satellites/?c=PRC&t=country
- https://www.space-track.org/#catalog

View File

@ -0,0 +1,35 @@
<script setup lang="ts">
import { Button as ShadcnButton } from '@/shadcn/components/ui/button';
</script>
<template>
<div class="flex flex-col items-center justify-center space-y-4 bg-white p-4">
<div class="flex flex-wrap gap-4" b="1px solid red" p="4">
<a-button type="primary">Primary Button</a-button>
<a-button>Default Button</a-button>
<a-button type="dashed">Dashed Button</a-button>
<a-button type="text">Text Button</a-button>
<a-button type="link">Link Button</a-button>
</div>
<div class="flex space-x-4" b="1px solid red" p="4">
<Button label="PrimevueButton" />
<Button variant="outlined" label="Outlined" />
<Button variant="text" label="Text" />
<Button variant="link" label="Link" />
</div>
<div class="flex space-x-4" b="1px solid red" p="4">
<ShadcnButton>ShadcnButton</ShadcnButton>
<ShadcnButton variant="secondary">Secondary</ShadcnButton>
<ShadcnButton variant="destructive">Destructive</ShadcnButton>
<ShadcnButton variant="outline">Outline</ShadcnButton>
<ShadcnButton variant="ghost">Ghost</ShadcnButton>
<ShadcnButton variant="link">Link</ShadcnButton>
</div>
<div class="flex space-x-4" b="1px solid red" p="4">
<a-input placeholder="Basic usage" />
</div>
</div>
</template>
<style scoped></style>

View File

@ -1,7 +1,9 @@
- https://www.shadcn-vue.com/docs/components/button.html
- https://github.com/unovue/shadcn-vue/issues/34
- https://github.com/unocss-community/unocss-preset-shadcn?tab=readme-ov-file#usage
- https://unocss-preset-shadcn.vercel.app/
```
npx shadcn-vue@latest add button
```
```

View File

@ -1,5 +1,5 @@
body {
font-weight: normal;
/* font-weight: normal; */
transition:
color 0.5s,
background-color 0.5s;

View File

@ -4,6 +4,8 @@ import 'nprogress/nprogress.css'; // <link rel="stylesheet" href="https://testin
// import '@unocss/reset/tailwind.css';
import '@unocss/reset/tailwind-compat.css';
import './reset/tailwind.css';
//
import './base.css';
import './main.less';

View File

@ -0,0 +1,8 @@
/* https://github.com/unocss/unocss/issues/2127 */
:where(button:not(.ant-btn):not(.p-button)),
:where([type='button']:not(.ant-btn):not(.p-button)),
:where([type='reset']:not(.ant-btn):not(.p-button)),
:where([type='submit']:not(.ant-btn):not(.p-button)) {
background-color: transparent;
}

1
typed-router.d.ts vendored
View File

@ -33,6 +33,7 @@ declare module 'vue-router/auto-routes' {
'ToolStyle': RouteRecordInfo<'ToolStyle', '/Tool/style', Record<never, never>, Record<never, never>>,
'ToolTsEnumUtil': RouteRecordInfo<'ToolTsEnumUtil', '/Tool/ts-enum-util', Record<never, never>, Record<never, never>>,
'UIComponentsAntdV': RouteRecordInfo<'UIComponentsAntdV', '/UI-components/AntdV', Record<never, never>, Record<never, never>>,
'UIComponentsComponents': RouteRecordInfo<'UIComponentsComponents', '/UI-components/Components', Record<never, never>, Record<never, never>>,
'UIComponentsInfiniteLoading': RouteRecordInfo<'UIComponentsInfiniteLoading', '/UI-components/infinite-loading', Record<never, never>, Record<never, never>>,
'UIComponentsInfiniteLoadingDetail': RouteRecordInfo<'UIComponentsInfiniteLoadingDetail', '/UI-components/infinite-loading/detail', Record<never, never>, Record<never, never>>,
'UIComponentsPrimeVue': RouteRecordInfo<'UIComponentsPrimeVue', '/UI-components/PrimeVue', Record<never, never>, Record<never, never>>,