Skip to content

Commit

Permalink
fix: fix problems found during verification (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcr authored Dec 4, 2024
1 parent c3cf26f commit 5669126
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/renderless/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentiny/vue-renderless",
"version": "3.20.0",
"version": "3.20.1",
"private": true,
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
"author": "OpenTiny Team",
Expand Down
3 changes: 1 addition & 2 deletions packages/renderless/src/color-select-panel/vue.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { IColorSelectPanelProps, ISharedRenderlessParamHooks, ISharedRenderlessParamUtils } from '@/types'
import { initApi, initState, initWatch } from './index'
import { onMounted } from 'vue'

export const api = [
'state',
Expand Down Expand Up @@ -59,7 +58,7 @@ export const renderless = (
onClickOutside
}
initWatch(state, props, hooks, utils)
onMounted(() => {
hooks.onMounted(() => {
if (props.modelValue) {
state.input = state.currentColor
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-common/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@opentiny/vue-common",
"private": true,
"version": "3.20.0",
"version": "3.20.1",
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
"homepage": "https://opentiny.design/tiny-vue",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const setup = ({ props, context, renderless, api, extendOptions = {}, mon
// 获取组件级配置和全局配置(inject需要带有默认值,否则控制台会报警告)
let globalDesignConfig: DesignConfig = customDesignConfig.designConfig || hooks.inject(design.configKey, {})
// globalDesignConfig 可能是响应式对象,比如 computed
globalDesignConfig = globalDesignConfig.value || globalDesignConfig
globalDesignConfig = globalDesignConfig?.value || globalDesignConfig || {}
const designConfig = globalDesignConfig?.components?.[getComponentName().replace($prefix, '')]

const utils = {
Expand Down

0 comments on commit 5669126

Please sign in to comment.