Skip to content

Commit 5669126

Browse files
authored
fix: fix problems found during verification (#2610)
1 parent c3cf26f commit 5669126

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

packages/renderless/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opentiny/vue-renderless",
3-
"version": "3.20.0",
3+
"version": "3.20.1",
44
"private": true,
55
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
66
"author": "OpenTiny Team",

packages/renderless/src/color-select-panel/vue.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { IColorSelectPanelProps, ISharedRenderlessParamHooks, ISharedRenderlessParamUtils } from '@/types'
22
import { initApi, initState, initWatch } from './index'
3-
import { onMounted } from 'vue'
43

54
export const api = [
65
'state',
@@ -59,7 +58,7 @@ export const renderless = (
5958
onClickOutside
6059
}
6160
initWatch(state, props, hooks, utils)
62-
onMounted(() => {
61+
hooks.onMounted(() => {
6362
if (props.modelValue) {
6463
state.input = state.currentColor
6564
}

packages/vue-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opentiny/vue-common",
33
"private": true,
4-
"version": "3.20.0",
4+
"version": "3.20.1",
55
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
66
"homepage": "https://opentiny.design/tiny-vue",
77
"keywords": [

packages/vue-common/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export const setup = ({ props, context, renderless, api, extendOptions = {}, mon
176176
// 获取组件级配置和全局配置(inject需要带有默认值,否则控制台会报警告)
177177
let globalDesignConfig: DesignConfig = customDesignConfig.designConfig || hooks.inject(design.configKey, {})
178178
// globalDesignConfig 可能是响应式对象,比如 computed
179-
globalDesignConfig = globalDesignConfig.value || globalDesignConfig
179+
globalDesignConfig = globalDesignConfig?.value || globalDesignConfig || {}
180180
const designConfig = globalDesignConfig?.components?.[getComponentName().replace($prefix, '')]
181181

182182
const utils = {

0 commit comments

Comments
 (0)