Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #357

Closed
wants to merge 22 commits into from
Closed

Main #357

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/yike-design-build/scripts/icon-gen/svgo.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const options: Config = {
{ ':style': 'innerStyle' },
{ ':stroke-width': 'strokeWidth' },
{ ':stroke-linecap': 'strokeLinecap' },
{ ':stroke-linejoin': 'strokeLinejoin' },
// { ':stroke-linejoin': 'strokeLinejoin' },
],
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/yike-design-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const size = ref('l')
const size = ref<'s' | 'l' | 'm' | 'xl'>('l')
</script>
4 changes: 0 additions & 4 deletions packages/yike-design-demo/src/router/config/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@
{
"name": "Tree 树",
"src": "tree"
},
{
"name": "TreeSelect 树形选择",
"src": "tree-select"
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions packages/yike-design-demo/src/router/modules/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ const generalRoutes: Array<RouteRecordRaw> = [
path: 'tree',
component: () => import('@/examples/tree/doc.md'),
},
{
path: 'tree-select',
component: () => import('@/examples/treeSelect/doc.md'),
},
// {
// path: 'tree-select',
// component: () => import('@/examples/treeSelect/doc.md'),
// },
{
path: 'slider',
component: () => import('@/examples/slider/doc.md'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { CSSProperties } from 'vue';
import { Size } from '../../utils';

// 导出类型
export interface TimeValue {
// 索引签名,以便ts知道如何处理未知属性
Expand All @@ -23,9 +26,9 @@ export interface TimeStep {
export interface TimePickerProps {
modelValue?: string;
defaultValue?: string | string[];
size?: InputSize;
size?: Size;
disabled?: boolean;
style?: Partial<CSSStyleDeclaration> | null;
style?: Partial<CSSProperties> | null;
type?: PickerType;
disableConfirm?: boolean;
step?: TimeStep | null;
Expand All @@ -47,4 +50,3 @@ export type TimeType = 'hour' | 'minute' | 'second';
export type ScrollBehavior = 'smooth' | 'instant';
export type PickerType = 'time' | 'time-range';
export type RangeTime = 'time' | 'startTime' | 'endTime';
type InputSize = 's' | 'm' | 'l' | 'xl';
2 changes: 1 addition & 1 deletion packages/yike-design-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"strict": true,
"strict": false,
"jsx": "preserve",
"target": "ESNext",
"module": "ESNext",
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": false,
"strict": true,
"noImplicitAny": false,
"strictNullChecks": true,
"strictNullChecks": false,
"resolveJsonModule": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"skipDefaultLibCheck": false,
"skipLibCheck": false,
"jsx": "preserve",
"types": ["node", "vite/client", "vitest/globals"],
"lib": ["esnext", "dom"],
Expand Down
Loading