• 首页
  • 产品中心
    • 数式Oinone四大产品

      低代码开发平台无代码开发平台集成开发平台AI大模型开发
    • 数式Oinone体系能力

      用户与组织权限管理文件管理消息中心国际化业务审计
    • 数式Oinone核心产品特性

      低无一体面向软件公司场景无限制应用级扩容可分可合
  • 服务中心
    • 客户服务

      预约演示方案咨询私有部署找人定制
    • 开发者

      问答下载
    • Oinone学院

      社区学习

    《精讲面向软件公司的低代码平台——以Oinone为例》

  • 合作伙伴
    渠道申请伙伴名录专家库
  • 关于数式
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:1/14/26, 8:45 AM
Prev
Vue UI Antd
Next
Vue UI
默认页脚
Copyright © 2026 Mr.Hope