Skip to content

Commit

Permalink
fix: 修复web-ele UI,Component Input Password is not registered
Browse files Browse the repository at this point in the history
  • Loading branch information
PdxLook committed Jan 7, 2025
1 parent bbbdbfa commit 5edfc73
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/web-ele/src/adapter/component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type ComponentType =
| 'IconPicker'
| 'Input'
| 'InputNumber'
| 'InputPassword'
| 'RadioGroup'
| 'Select'
| 'Space'
Expand Down Expand Up @@ -144,6 +145,14 @@ async function initComponentAdapter() {
},
Input: withDefaultPlaceholder(ElInput, 'input'),
InputNumber: withDefaultPlaceholder(ElInputNumber, 'input'),
InputPassword: (props, { attrs, slots }) => {
return h(ElInput, {
...props,
...attrs,
type: 'password',
showPassword: true,
}, slots);
},
RadioGroup: (props, { attrs, slots }) => {
let defaultSlot;
if (Reflect.has(slots, 'default')) {
Expand Down

0 comments on commit 5edfc73

Please sign in to comment.