feat: UIComponentsComponents
This commit is contained in:
1
.prettierignore
Normal file
1
.prettierignore
Normal file
@ -0,0 +1 @@
|
||||
/src/shadcn
|
@ -1,2 +0,0 @@
|
||||
/node_modules
|
||||
/dist
|
@ -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
|
||||
|
35
src/pages/UI-components/Components/index.page.vue
Normal file
35
src/pages/UI-components/Components/index.page.vue
Normal 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>
|
@ -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
|
||||
```
|
||||
```
|
||||
|
@ -1,5 +1,5 @@
|
||||
body {
|
||||
font-weight: normal;
|
||||
/* font-weight: normal; */
|
||||
transition:
|
||||
color 0.5s,
|
||||
background-color 0.5s;
|
||||
|
@ -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';
|
||||
|
||||
|
8
src/styles/reset/tailwind.css
Normal file
8
src/styles/reset/tailwind.css
Normal 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
1
typed-router.d.ts
vendored
@ -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>>,
|
||||
|
Reference in New Issue
Block a user