Oinone
Product
Oinone
Oinone Framework
100% Metadata-Driven Enterprise Low-Code Framework
Aino
Aino
AI Innovation, Now I Know — Enterprise AI Agent Platform
Use CasesPricingCommunity
Resources
📖
Documentation
Developer docs & API reference
💬
Support
Technical support
📄
Changelog
Product release notes
🏡
About
About Us
0571-88757863

Vue UI El


In Oinone Kunlun, some components are implemented based on the third-party component library "Element Plus". These components can be used not only for Widget components, but also directly for any Vue component using Vue native writing. This article will provide a detailed introduction to the usage and API definitions of these components.

Ⅰ. Import

import { OioColorPicker } from '@oinone/kunlun-vue-ui-el';

Ⅱ. Reference List

(Ⅰ) Data Display

ColorPicker

Basic Usage

<template>
  <oio-color-picker v-model:value="value" />
</template>

Color Picker with Input Box

<template>
  <oio-color-picker v-model:value="value" has-input />
  <oio-color-picker v-model:value="value" has-input input-placement="prepend" />
</template>

Only Apply Oinone Theme Style

<template>
  <!-- Basic usage -->
  <div class="oio-color-picker">
    <el-color-picker popper-class="oio-color-picker-popper" v-model="value" />
  </div>
  <!-- Color picker with input box -->
  <div class="oio-color-picker">
    <el-input v-model="value" readonly>
      <template #append>
        <div class="oio-color-picker-inner">
          <el-color-picker popper-class="oio-color-picker-popper" v-model="value" />
        </div>
      </template>
    </el-input>
  </div>
</template>

For more usage methods, please refer to: Element Plus ColorPicker Color Picker For Vue

API

Props

Parameter NameTypeDefault ValueDescription
valuestring-Bound color value (two-way binding)
defaultValuestring-Initial color value
readonlybooleanfalseWhether it is in read-only mode (prohibits color selection)
disabledbooleanfalseWhether to disable the component
colorFormatColorFormatColorFormat.RGBColor format (enum value or string, such as 'hex', 'hsl')
predefinestring[]DEFAULT_PREDEFINEPreset color list (supports RGB/HEX formats, automatically deduplicates and handles transparency)
showAlphabooleantrueWhether to display the alpha adjustment slider
hasInputbooleanfalseWhether to display the input box
inputPlacementColorInputPlacementColorInputPlacement.BEFOREInput box position (enum value, controls before or after the color picker)
inputPlaceholderstring'Please select a color'Input box placeholder text
inputReadonlybooleantrueWhether the input box is read-only (takes effect when hasInput: true)
disabledLastedColorbooleanfalseWhether to disable the recently used colors function
lastedColorCountnumber4Number of recently used colors

Events

Event NameParameter TypeDescription
update:valuestringTriggered when the color value changes (two-way binding)
changestringTriggered when color selection is completed
Edit this page
Last Updated:6/23/25, 6:42 AM
Prev
Vue UI Antd
Next
Vue UI
默认页脚
Copyright © 2026 Mr.Hope