Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Oct 5, 2023
1 parent 7bfcd30 commit 7e0ecdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 42 deletions.
14 changes: 1 addition & 13 deletions lib/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,5 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type {
Component,
ComponentPublicInstance,
ComputedRef,
ExtractDefaultPropTypes,
ExtractPropTypes,
ExtractPublicPropTypes,
InjectionKey,
PropType,
Ref,
VNode,
WritableComputedRef,
} from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
}
32 changes: 3 additions & 29 deletions lib/components/ColorPicker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Description:
* @Date: 2023-09-27 12:54:30
* @LastEditors: June
* @LastEditTime: 2023-10-06 01:49:18
* @LastEditTime: 2023-10-06 02:24:15
-->
<template>
<div
Expand Down Expand Up @@ -46,7 +46,7 @@ import Gradient from './components/Gradient/index.vue'
import { cloneDeep, throttle } from 'lodash-es'
import { generateSolidStyle, generateGradientStyle } from '@l/helpers'
import { v4 as uuidv4 } from 'uuid'
import type { IColor, IGradient, IColorState } from '@l/types'
import type { IColor, IColorState } from '@l/types'
import { PropType } from 'vue'

interface IProps {
Expand Down Expand Up @@ -102,31 +102,6 @@ const props: IProps = defineProps({
}
},
},
// gradient: {
// type: Object as PropType<IGradient>,
// default: () => ({
// type: 'linear',
// degree: 0,
// points: [
// {
// id: uuidv4(),
// left: 0,
// red: 0,
// green: 0,
// blue: 0,
// alpha: 1,
// },
// {
// id: uuidv4(),
// left: 100,
// red: 255,
// green: 0,
// blue: 0,
// alpha: 1,
// },
// ],
// }),
// },
cancelText: {
type: String,
default: 'Cancel',
Expand All @@ -153,7 +128,7 @@ const props: IProps = defineProps({
defualt: '#fff',
},
})
console.log(props)

const pointLen = props.isGradient ? props.color?.points?.length || 0 : 0
const colorPickerState = reactive<IColorState>({
isGradient: props.isGradient, // 是否是渐变
Expand Down Expand Up @@ -290,7 +265,6 @@ function updateSolid(color: IColor, key?: string) {
colorPickerState.alpha,
)
colorPickerState.style = style
console.log(colorPickerState)
!props.showBtn &&
emits('change', {
style: style,
Expand Down

0 comments on commit 7e0ecdb

Please sign in to comment.