变更
This commit is contained in:
parent
e263b19eaa
commit
54695b7cc5
@ -1,5 +1,5 @@
|
||||
import { w as withInstall } from "../badge/index2.js";
|
||||
import { openBlock, createElementBlock, createElementVNode, defineComponent, useSlots, ref, computed, watch, normalizeClass, unref, renderSlot, createCommentVNode, createBlock, createVNode, withModifiers } from "vue";
|
||||
import { openBlock, createElementBlock, createElementVNode, defineComponent, useSlots, ref, computed, watch, normalizeClass, unref, renderSlot, createCommentVNode, createBlock, normalizeStyle, createVNode, withModifiers } from "vue";
|
||||
import { _ as _sfc_main$2W } from "../_chunks/@layui/index.js";
|
||||
import { _ as _export_sfc } from "../dropdownMenu/index2.js";
|
||||
var index = /* @__PURE__ */ (() => ":root{--input-border-radius: var(--global-border-radius);--input-border-color: var(--global-neutral-color-3)}.layui-input{width:100%;height:38px;line-height:38px;border-width:1px;border-style:solid;border-color:var(--input-border-color);border-radius:var(--input-border-radius);display:inline-flex}.layui-input input{height:38px;line-height:38px;background-color:#fff;color:#000000d9;padding-left:10px;display:inline-block;border:none;height:100%;width:100%}.layui-input-append{background-color:#fafafa;border-left:1px solid var(--input-border-color);display:flex;padding:0 15px;flex:none;align-items:center}.layui-input-prepend{background-color:#fafafa;border-right:1px solid var(--input-border-color);display:flex;padding:0 15px;flex:none;align-items:center}.layui-input-wrapper{width:100%;display:inline-flex;border:none}.layui-input:hover,.layui-input:focus-within{border-color:#d2d2d2}.layui-input-clear,.layui-input-prefix,.layui-input-suffix,.layui-input-password{background-color:#fff}.layui-input-clear,.layui-input-password,.layui-input-prefix,.layui-input-suffix{display:flex;flex:none;align-items:center;padding:0 10px}.layui-input-has-prefix input{padding:0}.layui-input-clear,.layui-input-password{color:#00000073}.layui-input-clear:hover{opacity:.6}.layui-input input::-webkit-input-placeholder{line-height:1.3}.layui-input input::-ms-reveal{display:none}.layui-input-disabled{border-color:var(--input-border-color)!important}.layui-input-disabled{opacity:.6}.layui-input-disabled,.layui-input-disabled *{cursor:not-allowed!important}.layui-input[size=lg]{height:44px}.layui-input[size=lg] .layui-input{height:44px;line-height:44px}.layui-input[size=md]{height:38px}.layui-input[size=md] .layui-input{height:38px;line-height:38px}.layui-input[size=sm]{height:32px}.layui-input[size=sm] .layui-input{height:32px;line-height:32px}.layui-input[size=xs]{height:26px}.layui-input[size=xs] .layui-input{height:26px;line-height:26px}\n")();
|
||||
@ -88,7 +88,8 @@ const _sfc_main = defineComponent({
|
||||
maxlength: null,
|
||||
max: null,
|
||||
min: null,
|
||||
qfw: { type: Boolean, default: false }
|
||||
qfw: { type: Boolean, default: false },
|
||||
align: { default: "left" }
|
||||
},
|
||||
emits: ["blur", "input", "update:modelValue", "change", "focus", "clear"],
|
||||
setup(__props, { emit }) {
|
||||
@ -244,6 +245,9 @@ const _sfc_main = defineComponent({
|
||||
}, null, 8, ["type"]))
|
||||
])) : createCommentVNode("", true),
|
||||
createElementVNode("input", {
|
||||
style: normalizeStyle({
|
||||
textAlign: __props.align
|
||||
}),
|
||||
type: type.value,
|
||||
name: __props.name,
|
||||
disabled: __props.disabled,
|
||||
@ -263,7 +267,7 @@ const _sfc_main = defineComponent({
|
||||
onCompositionend,
|
||||
ref_key: "input",
|
||||
ref: input
|
||||
}, null, 40, _hoisted_5),
|
||||
}, null, 44, _hoisted_5),
|
||||
__props.password && unref(hasContent) ? (openBlock(), createElementBlock("span", {
|
||||
key: 1,
|
||||
class: "layui-input-password",
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
12
lib/index.js
12
lib/index.js
File diff suppressed because one or more lines are too long
@ -30,6 +30,7 @@ export interface InputProps {
|
||||
max?: number;
|
||||
min?: number;
|
||||
qfw?: boolean;
|
||||
align?: string;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<InputProps>(), {
|
||||
@ -41,6 +42,7 @@ const props = withDefaults(defineProps<InputProps>(), {
|
||||
modelValue: "",
|
||||
size: "md",
|
||||
qfw: false,
|
||||
align: "left",
|
||||
});
|
||||
|
||||
interface InputEmits {
|
||||
@ -217,6 +219,9 @@ const showPassword = () => {
|
||||
></lay-icon>
|
||||
</span>
|
||||
<input
|
||||
:style="{
|
||||
textAlign: align,
|
||||
}"
|
||||
:type="type"
|
||||
:name="name"
|
||||
:disabled="disabled"
|
||||
|
@ -730,6 +730,6 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
||||
|
||||
<style scoped>
|
||||
.layui-table-cell :deep(.layui-input input) {
|
||||
padding-left: 0;
|
||||
//padding-left: 0;
|
||||
}
|
||||
</style>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user