Skip to content

fix: fix problems found during verification #2610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading