linear-gradient 则表示是线性渐变. 如果是 monochrome 则表示是单色选择',
+ 'en-US':
+ 'Determine the color mode of the color selection panel. If it islinear-gradient, it means it is a linear gradient If it ismonochrome, it means monochrome selection'
+ },
+ mode: ['pc'],
+ pcDemo: 'linear-gradient',
+ meta: { stable: '3.27.0' }
}
],
events: [
diff --git a/examples/sites/demos/pc/app/color-select-panel/linear-gradient-composition-api.vue b/examples/sites/demos/pc/app/color-select-panel/linear-gradient-composition-api.vue
new file mode 100644
index 0000000000..ad10212505
--- /dev/null
+++ b/examples/sites/demos/pc/app/color-select-panel/linear-gradient-composition-api.vue
@@ -0,0 +1,38 @@
+
+
+
+ color-mode设置显示色彩选择的色彩模式。',
+ 'en-US': 'Set the color mode for display color selection throughcolor mode.'
+ },
+ codeFiles: ['linear-gradient.vue']
+ },
{
demoId: 'alpha',
name: {
diff --git a/packages/renderless/src/color-select-panel/alpha-select/index.ts b/packages/renderless/src/color-select-panel/alpha-select/index.ts
index 1d024e2cf5..c5cbaf804d 100644
--- a/packages/renderless/src/color-select-panel/alpha-select/index.ts
+++ b/packages/renderless/src/color-select-panel/alpha-select/index.ts
@@ -1,13 +1,21 @@
-import type { IColorSelectPanelAlphProps, IColorSelectPanelRef, ISharedRenderlessParamHooks } from '@/types'
+import type {
+ ColorPanelContext,
+ IColorSelectPanelAlphProps,
+ IColorSelectPanelRef,
+ ISharedRenderlessParamHooks
+} from '@/types'
import type { Color } from '../utils/color'
import { getClientXY } from '../utils/getClientXY'
+import { useContext } from '../utils/context'
type State = ReturnType