|
@@ -2,12 +2,48 @@
|
|
import "./index.css";
|
|
import "./index.css";
|
|
function Lingdu_input(prop) {
|
|
function Lingdu_input(prop) {
|
|
|
|
|
|
|
|
+ function valueChange(e) {
|
|
|
|
+ prop.onchang && prop.onchang(e.target.value);
|
|
|
|
+ }
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<div class="Lingdu_input">
|
|
<div class="Lingdu_input">
|
|
<div className="Label_text">
|
|
<div className="Label_text">
|
|
- {prop.Lingdu_label || ''}
|
|
|
|
|
|
+ {prop.label || ''}
|
|
</div>
|
|
</div>
|
|
- <input type={prop.type || 'text'} />
|
|
|
|
|
|
+ <Show when={prop.iconType === 'user'}>
|
|
|
|
+ <svg
|
|
|
|
+ class="Label_icon"
|
|
|
|
+ viewBox="0 0 1024 1024"
|
|
|
|
+ version="1.1"
|
|
|
|
+ xmlns="http://www.w3.org/2000/svg"
|
|
|
|
+ width="16"
|
|
|
|
+ height="16"
|
|
|
|
+ >
|
|
|
|
+ <path d="M632 344m-120 0a120 120 0 1 0 240 0 120 120 0 1 0-240 0Z" fill="#A9D8FF" p-id="4206" ></path>
|
|
|
|
+ <path d="M809 800H503c-48.1 0-87-39-87-87 0-111 90-201 201-201h78c111 0 201 90 201 201 0 48-39 87-87 87z" fill="#A9D8FF" ></path>
|
|
|
|
+ <path d="M440 296m-168 0a168 168 0 1 0 336 0 168 168 0 1 0-336 0Z" fill="#298DF7" p-id="4208" ></path>
|
|
|
|
+ <path d="M638.2 896H241.8C179 896 128 845 128 782.2 128 633 249 512 398.2 512h83.6C631 512 752 633 752 782.2 752 845 701 896 638.2 896z" fill="#298DF7" ></path>
|
|
|
|
+ </svg>
|
|
|
|
+ </Show>
|
|
|
|
+ <Show when={prop.iconType === 'psw'}>
|
|
|
|
+ <svg
|
|
|
|
+ class="Label_icon"
|
|
|
|
+ viewBox="0 0 1024 1024"
|
|
|
|
+ version="1.1"
|
|
|
|
+ xmlns="http://www.w3.org/2000/svg"
|
|
|
|
+ width="16"
|
|
|
|
+ height="16"
|
|
|
|
+ >
|
|
|
|
+ <path d="M842.666667 384h-74.666667V277.333333a234.666667 234.666667 0 1 0-469.333333 0v106.666667H224a53.393333 53.393333 0 0 0-53.333333 53.333333v490.666667a53.393333 53.393333 0 0 0 53.333333 53.333333h618.666667a53.393333 53.393333 0 0 0 53.333333-53.333333V437.333333a53.393333 53.393333 0 0 0-53.333333-53.333333z m-288 295.006667V789.333333a21.333333 21.333333 0 0 1-42.666667 0v-110.326666a64 64 0 1 1 42.666667 0zM725.333333 384H341.333333V277.333333c0-105.866667 86.133333-192 192-192s192 86.133333 192 192z" fill="#298df7" p-id="5471"></path>
|
|
|
|
+ </svg>
|
|
|
|
+ </Show>
|
|
|
|
+ <input
|
|
|
|
+ oninput={valueChange}
|
|
|
|
+ value={prop.value || ''}
|
|
|
|
+ placeholder={prop.placeholder || '请输入'}
|
|
|
|
+ type={prop.type || 'text'}
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
}
|
|
}
|