变更
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { w as withInstall } from "../badge/index2.js";
|
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 _sfc_main$2W } from "../_chunks/@layui/index.js";
|
||||||
import { _ as _export_sfc } from "../dropdownMenu/index2.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")();
|
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,
|
maxlength: null,
|
||||||
max: null,
|
max: null,
|
||||||
min: null,
|
min: null,
|
||||||
qfw: { type: Boolean, default: false }
|
qfw: { type: Boolean, default: false },
|
||||||
|
align: { default: "left" }
|
||||||
},
|
},
|
||||||
emits: ["blur", "input", "update:modelValue", "change", "focus", "clear"],
|
emits: ["blur", "input", "update:modelValue", "change", "focus", "clear"],
|
||||||
setup(__props, { emit }) {
|
setup(__props, { emit }) {
|
||||||
@@ -244,6 +245,9 @@ const _sfc_main = defineComponent({
|
|||||||
}, null, 8, ["type"]))
|
}, null, 8, ["type"]))
|
||||||
])) : createCommentVNode("", true),
|
])) : createCommentVNode("", true),
|
||||||
createElementVNode("input", {
|
createElementVNode("input", {
|
||||||
|
style: normalizeStyle({
|
||||||
|
textAlign: __props.align
|
||||||
|
}),
|
||||||
type: type.value,
|
type: type.value,
|
||||||
name: __props.name,
|
name: __props.name,
|
||||||
disabled: __props.disabled,
|
disabled: __props.disabled,
|
||||||
@@ -263,7 +267,7 @@ const _sfc_main = defineComponent({
|
|||||||
onCompositionend,
|
onCompositionend,
|
||||||
ref_key: "input",
|
ref_key: "input",
|
||||||
ref: input
|
ref: input
|
||||||
}, null, 40, _hoisted_5),
|
}, null, 44, _hoisted_5),
|
||||||
__props.password && unref(hasContent) ? (openBlock(), createElementBlock("span", {
|
__props.password && unref(hasContent) ? (openBlock(), createElementBlock("span", {
|
||||||
key: 1,
|
key: 1,
|
||||||
class: "layui-input-password",
|
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;
|
max?: number;
|
||||||
min?: number;
|
min?: number;
|
||||||
qfw?: boolean;
|
qfw?: boolean;
|
||||||
|
align?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<InputProps>(), {
|
const props = withDefaults(defineProps<InputProps>(), {
|
||||||
@@ -41,6 +42,7 @@ const props = withDefaults(defineProps<InputProps>(), {
|
|||||||
modelValue: "",
|
modelValue: "",
|
||||||
size: "md",
|
size: "md",
|
||||||
qfw: false,
|
qfw: false,
|
||||||
|
align: "left",
|
||||||
});
|
});
|
||||||
|
|
||||||
interface InputEmits {
|
interface InputEmits {
|
||||||
@@ -217,6 +219,9 @@ const showPassword = () => {
|
|||||||
></lay-icon>
|
></lay-icon>
|
||||||
</span>
|
</span>
|
||||||
<input
|
<input
|
||||||
|
:style="{
|
||||||
|
textAlign: align,
|
||||||
|
}"
|
||||||
:type="type"
|
:type="type"
|
||||||
:name="name"
|
:name="name"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
|||||||
@@ -730,6 +730,6 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.layui-table-cell :deep(.layui-input input) {
|
.layui-table-cell :deep(.layui-input input) {
|
||||||
padding-left: 0;
|
//padding-left: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user