Skip to content

Commit ce35aef

Browse files
authored
fix(form): [form] fix form tooltip class name (#2154)
1 parent fde4fab commit ce35aef

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
22
"name": "@opentiny/vue-form-item",
3-
"version": "3.18.0",
3+
"type": "module",
4+
"version": "3.18.1",
45
"description": "",
6+
"license": "MIT",
7+
"sideEffects": false,
58
"main": "lib/index.js",
69
"module": "index.ts",
7-
"sideEffects": false,
8-
"type": "module",
9-
"devDependencies": {
10-
"@opentiny-internal/vue-test-utils": "workspace:*",
11-
"vitest": "^0.31.0"
12-
},
1310
"scripts": {
1411
"build": "pnpm -w build:ui $npm_package_name",
1512
"//postversion": "pnpm build"
1613
},
1714
"dependencies": {
18-
"@opentiny/vue-tooltip": "workspace:~",
1915
"@opentiny/vue-common": "workspace:~",
16+
"@opentiny/vue-icon": "workspace:~",
2017
"@opentiny/vue-renderless": "workspace:~",
21-
"@opentiny/vue-icon": "workspace:~"
18+
"@opentiny/vue-tooltip": "workspace:~"
2219
},
23-
"license": "MIT"
24-
}
20+
"devDependencies": {
21+
"@opentiny-internal/vue-test-utils": "workspace:*",
22+
"vitest": "^0.31.0"
23+
}
24+
}

packages/vue/src/form-item/src/pc.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default defineComponent({
181181
// 兼容 2.0 组件 validation 是否有 required
182182
state.validationRequired = propsData.validation && !!propsData.validation.required
183183
}
184-
// 如果为 2.0 的验证 不会使用 toolltip 组件
184+
// 如果为 2.0 的验证 不会使用 tooltip 组件
185185
if (propsData.validation) {
186186
return item
187187
}
@@ -221,7 +221,8 @@ export default defineComponent({
221221
}
222222
data = item.props
223223
}
224-
data.class = deduplicateCssClass('tiny-tooltip' + stringifyCssClass(data.class))
224+
const mergeClass = `tiny-tooltip ${stringifyCssClass(data.class)}`
225+
data.class = deduplicateCssClass(mergeClass)
225226
return item
226227
})
227228
: null

0 commit comments

Comments
 (0)