1.1.2 • Published 10 months ago

kingcwt-ui-color-selector v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

ColorSelector

This is a color selector because Vue ant design does not have a built-in color selector like React ant design, and no one was found in the color selector about the Vue technology stack. However, we can only refer to and extract the source code of Vue designing Vue, and then package it for our own use

  • vue3-ColorSelector
parametertypedescribe
colorStringThe value of the current color
handleChangeColorFunctionMethod of manipulating colors
  • install
// yarn
yarn add kingcwt-ui-color-selector -D
// pnpm
pnpm i kingcwt-ui-color-selector -D
// npm
npm i kingcwt-ui-color-selector -D
  • Usage method
import { ref } from 'vue';
import {ColorSelector } from 'kingcwt-ui-color-selector'
import "kingcwt-ui-color-selector/es/style.css"

const color = ref('#f5f6f7')

const handleChangeColor = (str:string)=>{
  console.log(str,'color')
  color.value = str;
}


<template>
  <ColorSelector :color="color" :handleChangeColor="handleChangeColor"  />
</template>
1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago