Skip to content

Console ​

ewColorPickerConsole prints a styled banner (version, QQ, WeChat, GitHub) in the browser console. It has no UI.

ItemValue
Package@ew-color-picker/utils (exports Console)
pluginNameewColorPickerConsole
applyOrdernot declared (registered first in the bundle)
Mount pointnone
Instancecore.plugins.ewColorPickerConsole

Printed once ​

A module-level flag ensures only the first instance prints:

ts
let hasPrintedTips = false

run() {
  if (hasPrintedTips) return
  hasPrintedTips = true
  log(...tips)
}

Disabling ​

Console has no options object ({}). To skip it, register plugins manually:

ts
import ewColorPicker from '@ew-color-picker/core'
import Box from '@ew-color-picker/box'

ewColorPicker.use(Box) // Console not imported → no banner

With the all-in-one bundle it is always registered.

Output ​

text
 ew-color-picker@2.0.2   QQ: 854806732  WeChat: eveningwater  github:https://github.com/eveningwater/ew-color-picker

Methods ​

MethodDescription
handleOptionsMerge core options (no-op today)
runPrint banner (guarded)
installCompatibility for manual install(core)