File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed
packages/vue/src/form-item Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @opentiny/vue-form-item" ,
3
- "version" : " 3.18.0" ,
3
+ "type" : " module" ,
4
+ "version" : " 3.18.1" ,
4
5
"description" : " " ,
6
+ "license" : " MIT" ,
7
+ "sideEffects" : false ,
5
8
"main" : " lib/index.js" ,
6
9
"module" : " index.ts" ,
7
- "sideEffects" : false ,
8
- "type" : " module" ,
9
- "devDependencies" : {
10
- "@opentiny-internal/vue-test-utils" : " workspace:*" ,
11
- "vitest" : " ^0.31.0"
12
- },
13
10
"scripts" : {
14
11
"build" : " pnpm -w build:ui $npm_package_name" ,
15
12
"//postversion" : " pnpm build"
16
13
},
17
14
"dependencies" : {
18
- "@opentiny/vue-tooltip" : " workspace:~" ,
19
15
"@opentiny/vue-common" : " workspace:~" ,
16
+ "@opentiny/vue-icon" : " workspace:~" ,
20
17
"@opentiny/vue-renderless" : " workspace:~" ,
21
- "@opentiny/vue-icon " : " workspace:~"
18
+ "@opentiny/vue-tooltip " : " workspace:~"
22
19
},
23
- "license" : " MIT"
24
- }
20
+ "devDependencies" : {
21
+ "@opentiny-internal/vue-test-utils" : " workspace:*" ,
22
+ "vitest" : " ^0.31.0"
23
+ }
24
+ }
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ export default defineComponent({
181
181
// 兼容 2.0 组件 validation 是否有 required
182
182
state .validationRequired = propsData .validation && !! propsData .validation .required
183
183
}
184
- // 如果为 2.0 的验证 不会使用 toolltip 组件
184
+ // 如果为 2.0 的验证 不会使用 tooltip 组件
185
185
if (propsData .validation ) {
186
186
return item
187
187
}
@@ -221,7 +221,8 @@ export default defineComponent({
221
221
}
222
222
data = item .props
223
223
}
224
- data .class = deduplicateCssClass (' tiny-tooltip' + stringifyCssClass (data .class ))
224
+ const mergeClass = ` tiny-tooltip ${stringifyCssClass (data .class )} `
225
+ data .class = deduplicateCssClass (mergeClass )
225
226
return item
226
227
})
227
228
: null
You can’t perform that action at this time.
0 commit comments