Skip to content

Commit 7e0ecdb

Browse files
committed
fix: update
1 parent 7bfcd30 commit 7e0ecdb

File tree

2 files changed

+4
-42
lines changed

2 files changed

+4
-42
lines changed

lib/auto-imports.d.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,5 @@ declare global {
6161
// for type re-export
6262
declare global {
6363
// @ts-ignore
64-
export type {
65-
Component,
66-
ComponentPublicInstance,
67-
ComputedRef,
68-
ExtractDefaultPropTypes,
69-
ExtractPropTypes,
70-
ExtractPublicPropTypes,
71-
InjectionKey,
72-
PropType,
73-
Ref,
74-
VNode,
75-
WritableComputedRef,
76-
} from 'vue'
64+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
7765
}

lib/components/ColorPicker/index.vue

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Description:
44
* @Date: 2023-09-27 12:54:30
55
* @LastEditors: June
6-
* @LastEditTime: 2023-10-06 01:49:18
6+
* @LastEditTime: 2023-10-06 02:24:15
77
-->
88
<template>
99
<div
@@ -46,7 +46,7 @@ import Gradient from './components/Gradient/index.vue'
4646
import { cloneDeep, throttle } from 'lodash-es'
4747
import { generateSolidStyle, generateGradientStyle } from '@l/helpers'
4848
import { v4 as uuidv4 } from 'uuid'
49-
import type { IColor, IGradient, IColorState } from '@l/types'
49+
import type { IColor, IColorState } from '@l/types'
5050
import { PropType } from 'vue'
5151
5252
interface IProps {
@@ -102,31 +102,6 @@ const props: IProps = defineProps({
102102
}
103103
},
104104
},
105-
// gradient: {
106-
// type: Object as PropType<IGradient>,
107-
// default: () => ({
108-
// type: 'linear',
109-
// degree: 0,
110-
// points: [
111-
// {
112-
// id: uuidv4(),
113-
// left: 0,
114-
// red: 0,
115-
// green: 0,
116-
// blue: 0,
117-
// alpha: 1,
118-
// },
119-
// {
120-
// id: uuidv4(),
121-
// left: 100,
122-
// red: 255,
123-
// green: 0,
124-
// blue: 0,
125-
// alpha: 1,
126-
// },
127-
// ],
128-
// }),
129-
// },
130105
cancelText: {
131106
type: String,
132107
default: 'Cancel',
@@ -153,7 +128,7 @@ const props: IProps = defineProps({
153128
defualt: '#fff',
154129
},
155130
})
156-
console.log(props)
131+
157132
const pointLen = props.isGradient ? props.color?.points?.length || 0 : 0
158133
const colorPickerState = reactive<IColorState>({
159134
isGradient: props.isGradient, // 是否是渐变
@@ -290,7 +265,6 @@ function updateSolid(color: IColor, key?: string) {
290265
colorPickerState.alpha,
291266
)
292267
colorPickerState.style = style
293-
console.log(colorPickerState)
294268
!props.showBtn &&
295269
emits('change', {
296270
style: style,

0 commit comments

Comments
 (0)