first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:10:55 +08:00
commit 1c24452b6c
1735 changed files with 150474 additions and 0 deletions

View File

@@ -0,0 +1,175 @@
"use strict";
const uni_modules_wotDesignUni_components_common_props = require("../common/props.js");
const inputProps = {
...uni_modules_wotDesignUni_components_common_props.baseProps,
customInputClass: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
customLabelClass: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
// 原生属性
/**
* 占位文本
*/
placeholder: String,
/**
* 原生属性,指定 placeholder 的样式目前仅支持color,font-size和font-weight
*/
placeholderStyle: String,
/**
* 原生属性,指定 placeholder 的样式类
*/
placeholderClass: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
/**
* 原生属性,指定光标与键盘的距离。取 input 距离底部的距离和cursor-spacing指定的距离的最小值作为光标与键盘的距离
*/
cursorSpacing: uni_modules_wotDesignUni_components_common_props.makeNumberProp(0),
/**
* 原生属性指定focus时的光标位置
*/
cursor: uni_modules_wotDesignUni_components_common_props.makeNumberProp(-1),
/**
* 原生属性光标起始位置自动聚集时有效需与selection-end搭配使用
*/
selectionStart: uni_modules_wotDesignUni_components_common_props.makeNumberProp(-1),
/**
* 原生属性光标结束位置自动聚集时有效需与selection-start搭配使用
*/
selectionEnd: uni_modules_wotDesignUni_components_common_props.makeNumberProp(-1),
/**
* 原生属性,键盘弹起时,是否自动上推页面
*/
adjustPosition: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(true),
/**
* focus时点击页面的时候不收起键盘
*/
holdKeyboard: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 设置键盘右下角按钮的文字仅在type='text'时生效可选值done / go / next / search / send
*/
confirmType: uni_modules_wotDesignUni_components_common_props.makeStringProp("done"),
/**
* 点击键盘右下角按钮时是否保持键盘不收起
*/
confirmHold: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 原生属性,获取焦点
*/
focus: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 类型可选值text / number / digit / idcard / safe-password / nickname / tel
*/
type: uni_modules_wotDesignUni_components_common_props.makeStringProp("text"),
/**
* 原生属性,最大长度
*/
maxlength: {
type: Number,
default: -1
},
/**
* 原生属性,禁用
*/
disabled: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 微信小程序原生属性,强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效)
*/
alwaysEmbed: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
// 原生属性结束
/**
* 输入框的值靠右展示
*/
alignRight: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 绑定值
*/
modelValue: uni_modules_wotDesignUni_components_common_props.makeNumericProp(""),
/**
* 显示为密码框
*/
showPassword: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 显示清空按钮
*/
clearable: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 只读
*/
readonly: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 前置图标icon组件中的图标类名
*/
prefixIcon: String,
/**
* 后置图标icon组件中的图标类名
*/
suffixIcon: String,
/**
* 显示字数限制,需要同时设置 maxlength
*/
showWordLimit: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 设置左侧标题
*/
label: String,
/**
* 设置左侧标题宽度
*/
labelWidth: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
/**
* 设置输入框大小可选值large
*/
size: String,
/**
* 设置输入框错误状态,错误状态时为红色
*/
error: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 当有label属性时设置标题和输入框垂直居中默认为顶部居中
*/
center: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 非 cell 类型下是否隐藏下划线
*/
noBorder: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 是否必填
*/
required: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
/**
* 表单域 model 字段名,在使用表单校验功能的情况下,该属性是必填的
*/
prop: String,
/**
* 表单验证规则结合wd-form组件使用
*/
rules: uni_modules_wotDesignUni_components_common_props.makeArrayProp(),
/**
* 显示清除图标的时机always 表示输入框不为空时展示focus 表示输入框聚焦且不为空时展示
* 类型: "focus" | "always"
* 默认值: "always"
*/
clearTrigger: uni_modules_wotDesignUni_components_common_props.makeStringProp("always"),
/**
* 是否在点击清除按钮时聚焦输入框
* 类型: boolean
* 默认值: true
*/
focusWhenClear: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(true),
/**
* 是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件,且在文本合成期间会触发 input 事件
* 类型: boolean
* 默认值: true
*/
ignoreCompositionEvent: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(true),
/**
* 它提供了用户在编辑元素或其内容时可能输入的数据类型的提示。在符合条件的高版本webview里uni-app的web和app-vue平台中可使用本属性。
* 类型: InputMode
* 可选值: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | "password"
* 默认值: "text"
*/
inputmode: uni_modules_wotDesignUni_components_common_props.makeStringProp("text"),
/**
* 必填标记位置可选值before标签前、after标签后
*/
markerSide: uni_modules_wotDesignUni_components_common_props.makeStringProp("before")
};
exports.inputProps = inputProps;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/wot-design-uni/components/wd-input/types.js.map

View File

@@ -0,0 +1,292 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const uni_modules_wotDesignUni_components_common_util = require("../common/util.js");
const uni_modules_wotDesignUni_components_composables_useCell = require("../composables/useCell.js");
const uni_modules_wotDesignUni_components_wdForm_types = require("../wd-form/types.js");
const uni_modules_wotDesignUni_components_composables_useParent = require("../composables/useParent.js");
const uni_modules_wotDesignUni_components_composables_useTranslate = require("../composables/useTranslate.js");
const uni_modules_wotDesignUni_components_wdInput_types = require("./types.js");
if (!Math) {
wdIcon();
}
const wdIcon = () => "../wd-icon/wd-icon.js";
const __default__ = {
name: "wd-input",
options: {
virtualHost: true,
addGlobalClass: true,
styleIsolation: "shared"
}
};
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
...__default__,
props: uni_modules_wotDesignUni_components_wdInput_types.inputProps,
emits: [
"update:modelValue",
"clear",
"blur",
"focus",
"input",
"keyboardheightchange",
"confirm",
"clicksuffixicon",
"clickprefixicon",
"click"
],
setup(__props, { emit: __emit }) {
const props = __props;
const emit = __emit;
const slots = common_vendor.useSlots();
const { translate } = uni_modules_wotDesignUni_components_composables_useTranslate.useTranslate("input");
const isPwdVisible = common_vendor.ref(false);
const clearing = common_vendor.ref(false);
const focused = common_vendor.ref(false);
const focusing = common_vendor.ref(false);
const inputValue = common_vendor.ref(getInitValue());
const cell = uni_modules_wotDesignUni_components_composables_useCell.useCell();
common_vendor.watch(
() => props.focus,
(newValue) => {
focused.value = newValue;
},
{ immediate: true, deep: true }
);
common_vendor.watch(
() => props.modelValue,
(newValue) => {
inputValue.value = uni_modules_wotDesignUni_components_common_util.isDef(newValue) ? String(newValue) : "";
}
);
const { parent: form } = uni_modules_wotDesignUni_components_composables_useParent.useParent(uni_modules_wotDesignUni_components_wdForm_types.FORM_KEY);
const placeholderValue = common_vendor.computed(() => {
return uni_modules_wotDesignUni_components_common_util.isDef(props.placeholder) ? props.placeholder : translate("placeholder");
});
const showClear = common_vendor.computed(() => {
const { disabled, readonly, clearable, clearTrigger } = props;
if (clearable && !readonly && !disabled && inputValue.value && (clearTrigger === "always" || props.clearTrigger === "focus" && focusing.value)) {
return true;
} else {
return false;
}
});
const showWordCount = common_vendor.computed(() => {
const { disabled, readonly, maxlength, showWordLimit } = props;
return Boolean(!disabled && !readonly && uni_modules_wotDesignUni_components_common_util.isDef(maxlength) && maxlength > -1 && showWordLimit);
});
const errorMessage = common_vendor.computed(() => {
if (form && props.prop && form.errorMessages && form.errorMessages[props.prop]) {
return form.errorMessages[props.prop];
} else {
return "";
}
});
const isRequired = common_vendor.computed(() => {
let formRequired = false;
if (form && form.props.rules) {
const rules = form.props.rules;
for (const key in rules) {
if (Object.prototype.hasOwnProperty.call(rules, key) && key === props.prop && Array.isArray(rules[key])) {
formRequired = rules[key].some((rule) => rule.required);
}
}
}
return props.required || props.rules.some((rule) => rule.required) || formRequired;
});
const rootClass = common_vendor.computed(() => {
return `wd-input ${props.label || slots.label ? "is-cell" : ""} ${props.center ? "is-center" : ""} ${cell.border.value ? "is-border" : ""} ${props.size ? "is-" + props.size : ""} ${props.error ? "is-error" : ""} ${props.disabled ? "is-disabled" : ""} ${inputValue.value && String(inputValue.value).length > 0 ? "is-not-empty" : ""} ${props.noBorder ? "is-no-border" : ""} ${props.customClass}`;
});
const labelClass = common_vendor.computed(() => {
return `wd-input__label ${props.customLabelClass}`;
});
const inputPlaceholderClass = common_vendor.computed(() => {
return `wd-input__placeholder ${props.placeholderClass}`;
});
const labelStyle = common_vendor.computed(() => {
return props.labelWidth ? uni_modules_wotDesignUni_components_common_util.objToStyle({
"min-width": props.labelWidth,
"max-width": props.labelWidth
}) : "";
});
function getInitValue() {
const formatted = formatValue(props.modelValue);
if (!isValueEqual(formatted, props.modelValue)) {
emit("update:modelValue", formatted);
}
return formatted;
}
function formatValue(value) {
const { maxlength } = props;
if (uni_modules_wotDesignUni_components_common_util.isDef(maxlength) && maxlength !== -1 && String(value).length > maxlength) {
return value.toString().slice(0, maxlength);
}
return value;
}
function togglePwdVisible() {
isPwdVisible.value = !isPwdVisible.value;
}
async function handleClear() {
focusing.value = false;
inputValue.value = "";
if (props.focusWhenClear) {
clearing.value = true;
focused.value = false;
}
await uni_modules_wotDesignUni_components_common_util.pause();
if (props.focusWhenClear) {
focused.value = true;
focusing.value = true;
}
emit("update:modelValue", inputValue.value);
emit("clear");
}
async function handleBlur() {
await uni_modules_wotDesignUni_components_common_util.pause(150);
if (clearing.value) {
clearing.value = false;
return;
}
focusing.value = false;
emit("blur", {
value: inputValue.value
});
}
function handleFocus({ detail }) {
focusing.value = true;
emit("focus", detail);
}
function handleInput({ detail }) {
emit("update:modelValue", inputValue.value);
emit("input", detail);
}
function handleKeyboardheightchange({ detail }) {
emit("keyboardheightchange", detail);
}
function handleConfirm({ detail }) {
emit("confirm", detail);
}
function onClickSuffixIcon() {
emit("clicksuffixicon");
}
function onClickPrefixIcon() {
emit("clickprefixicon");
}
function handleClick(event) {
emit("click", event);
}
function isValueEqual(value1, value2) {
return uni_modules_wotDesignUni_components_common_util.isEqual(String(value1), String(value2));
}
return (_ctx, _cache) => {
return common_vendor.e({
a: _ctx.label || _ctx.$slots.label
}, _ctx.label || _ctx.$slots.label ? common_vendor.e({
b: isRequired.value && _ctx.markerSide === "before"
}, isRequired.value && _ctx.markerSide === "before" ? {} : {}, {
c: _ctx.prefixIcon || _ctx.$slots.prefix
}, _ctx.prefixIcon || _ctx.$slots.prefix ? common_vendor.e({
d: _ctx.prefixIcon && !_ctx.$slots.prefix
}, _ctx.prefixIcon && !_ctx.$slots.prefix ? {
e: common_vendor.o(onClickPrefixIcon),
f: common_vendor.p({
["custom-class"]: "wd-input__icon",
name: _ctx.prefixIcon
})
} : {}) : {}, {
g: _ctx.label && !_ctx.$slots.label
}, _ctx.label && !_ctx.$slots.label ? {
h: common_vendor.t(_ctx.label)
} : _ctx.$slots.label ? {} : {}, {
i: _ctx.$slots.label,
j: isRequired.value && _ctx.markerSide === "after"
}, isRequired.value && _ctx.markerSide === "after" ? {} : {}, {
k: common_vendor.n(labelClass.value),
l: common_vendor.s(labelStyle.value)
}) : {}, {
m: (_ctx.prefixIcon || _ctx.$slots.prefix) && !_ctx.label
}, (_ctx.prefixIcon || _ctx.$slots.prefix) && !_ctx.label ? common_vendor.e({
n: _ctx.prefixIcon && !_ctx.$slots.prefix
}, _ctx.prefixIcon && !_ctx.$slots.prefix ? {
o: common_vendor.o(onClickPrefixIcon),
p: common_vendor.p({
["custom-class"]: "wd-input__icon",
name: _ctx.prefixIcon
})
} : {}) : {}, {
q: common_vendor.n(_ctx.prefixIcon ? "wd-input__inner--prefix" : ""),
r: common_vendor.n(showWordCount.value ? "wd-input__inner--count" : ""),
s: common_vendor.n(_ctx.alignRight ? "is-align-right" : ""),
t: common_vendor.n(_ctx.customInputClass),
v: _ctx.type,
w: _ctx.showPassword && !isPwdVisible.value,
x: placeholderValue.value,
y: _ctx.disabled || _ctx.readonly,
z: _ctx.maxlength,
A: focused.value,
B: _ctx.confirmType,
C: _ctx.confirmHold,
D: _ctx.cursor,
E: _ctx.cursorSpacing,
F: _ctx.placeholderStyle,
G: _ctx.selectionStart,
H: _ctx.selectionEnd,
I: _ctx.adjustPosition,
J: _ctx.holdKeyboard,
K: _ctx.alwaysEmbed,
L: inputPlaceholderClass.value,
M: _ctx.ignoreCompositionEvent,
N: _ctx.inputmode,
O: common_vendor.o([($event) => inputValue.value = $event.detail.value, handleInput]),
P: common_vendor.o(handleFocus),
Q: common_vendor.o(handleBlur),
R: common_vendor.o(handleConfirm),
S: common_vendor.o(handleKeyboardheightchange),
T: inputValue.value,
U: props.readonly
}, props.readonly ? {} : {}, {
V: showClear.value || _ctx.showPassword || _ctx.suffixIcon || showWordCount.value || _ctx.$slots.suffix
}, showClear.value || _ctx.showPassword || _ctx.suffixIcon || showWordCount.value || _ctx.$slots.suffix ? common_vendor.e({
W: showClear.value
}, showClear.value ? {
X: common_vendor.o(handleClear),
Y: common_vendor.p({
["custom-class"]: "wd-input__clear",
name: "error-fill"
})
} : {}, {
Z: _ctx.showPassword
}, _ctx.showPassword ? {
aa: common_vendor.o(togglePwdVisible),
ab: common_vendor.p({
["custom-class"]: "wd-input__icon",
name: isPwdVisible.value ? "view" : "eye-close"
})
} : {}, {
ac: showWordCount.value
}, showWordCount.value ? {
ad: common_vendor.t(String(inputValue.value).length),
ae: common_vendor.n(inputValue.value && String(inputValue.value).length > 0 ? "wd-input__count-current" : ""),
af: common_vendor.n(String(inputValue.value).length > _ctx.maxlength ? "is-error" : ""),
ag: common_vendor.t(_ctx.maxlength)
} : {}, {
ah: _ctx.suffixIcon && !_ctx.$slots.suffix
}, _ctx.suffixIcon && !_ctx.$slots.suffix ? {
ai: common_vendor.o(onClickSuffixIcon),
aj: common_vendor.p({
["custom-class"]: "wd-input__icon",
name: _ctx.suffixIcon
})
} : {}) : {}, {
ak: errorMessage.value
}, errorMessage.value ? {
al: common_vendor.t(errorMessage.value)
} : {}, {
am: common_vendor.n(rootClass.value),
an: common_vendor.s(_ctx.customStyle),
ao: common_vendor.o(handleClick)
});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4e0c9774"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/wot-design-uni/components/wd-input/wd-input.js.map

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"wd-icon": "../wd-icon/wd-icon"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['data-v-4e0c9774', am]}}" style="{{an}}" bindtap="{{ao}}"><view wx:if="{{a}}" class="{{['data-v-4e0c9774', k]}}" style="{{l}}"><text wx:if="{{b}}" class="wd-input__required wd-input__required--left data-v-4e0c9774">*</text><view wx:if="{{c}}" class="wd-input__prefix data-v-4e0c9774"><wd-icon wx:if="{{d}}" class="data-v-4e0c9774" bindclick="{{e}}" u-i="4e0c9774-0" bind:__l="__l" u-p="{{f}}"/><slot wx:else name="prefix"></slot></view><view class="wd-input__label-inner data-v-4e0c9774"><text wx:if="{{g}}" class="data-v-4e0c9774">{{h}}</text><slot wx:elif="{{i}}" name="label"></slot></view><text wx:if="{{j}}" class="wd-input__required data-v-4e0c9774">*</text></view><view class="wd-input__body data-v-4e0c9774"><view class="wd-input__value data-v-4e0c9774"><view wx:if="{{m}}" class="wd-input__prefix data-v-4e0c9774"><wd-icon wx:if="{{n}}" class="data-v-4e0c9774" bindclick="{{o}}" u-i="4e0c9774-1" bind:__l="__l" u-p="{{p}}"/><slot wx:else name="prefix"></slot></view><block wx:if="{{r0}}"><input class="{{['data-v-4e0c9774', 'wd-input__inner', q, r, s, t]}}" type="{{v}}" password="{{w}}" placeholder="{{x}}" disabled="{{y}}" maxlength="{{z}}" focus="{{A}}" confirm-type="{{B}}" confirm-hold="{{C}}" cursor="{{D}}" cursor-spacing="{{E}}" placeholder-style="{{F}}" selection-start="{{G}}" selection-end="{{H}}" adjust-position="{{I}}" hold-keyboard="{{J}}" always-embed="{{K}}" placeholder-class="{{L}}" ignoreCompositionEvent="{{M}}" inputmode="{{N}}" bindinput="{{O}}" bindfocus="{{P}}" bindblur="{{Q}}" bindconfirm="{{R}}" bindkeyboardheightchange="{{S}}" value="{{T}}"/></block><view wx:if="{{U}}" class="wd-input__readonly-mask data-v-4e0c9774"/><view wx:if="{{V}}" class="wd-input__suffix data-v-4e0c9774"><wd-icon wx:if="{{W}}" class="data-v-4e0c9774" bindclick="{{X}}" u-i="4e0c9774-2" bind:__l="__l" u-p="{{Y}}"/><wd-icon wx:if="{{Z}}" class="data-v-4e0c9774" bindclick="{{aa}}" u-i="4e0c9774-3" bind:__l="__l" u-p="{{ab}}"/><view wx:if="{{ac}}" class="wd-input__count data-v-4e0c9774"><text class="{{['data-v-4e0c9774', ae, af]}}">{{ad}}</text> /{{ag}}</view><wd-icon wx:if="{{ah}}" class="data-v-4e0c9774" bindclick="{{ai}}" u-i="4e0c9774-4" bind:__l="__l" u-p="{{aj}}"/><slot wx:else name="suffix"></slot></view></view><view wx:if="{{ak}}" class="wd-input__error-message data-v-4e0c9774">{{al}}</view></view></view>

View File

@@ -0,0 +1,600 @@
/* 水平间距 */
/* 水平间距 */
/**
* 辅助函数
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/* 转换成字符串 */
/* 判断是否存在 Modifier */
/* 判断是否存在伪类 */
/**
* 主题色切换
* @params $theme-color 主题色
* @params $type 变暗dark 变亮 'light'
* @params $mix-color 自己设置的混色
*/
/**
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
* @params $open-linear 是否开启线性渐变色
* @params $deg 渐变色角度
* @params $theme-color 当前配色
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
* @params [Array] $per-list 渐变色比例
*/
/**
* UI规范基础变量
*/
/*----------------------------------------- Theme color. start ----------------------------------------*/
/* 主题颜色 */
/* 辅助色 */
/* 文字颜色(默认浅色背景下 */
/* 暗黑模式 */
/* 图形颜色 */
/*----------------------------------------- Theme color. end -------------------------------------------*/
/*-------------------------------- Theme color application size. start --------------------------------*/
/* 文字字号 */
/* 文字字重 */
/* 尺寸 */
/*-------------------------------- Theme color application size. end --------------------------------*/
/* component var */
/* action-sheet */
/* badge */
/* button */
/* cell */
/* calendar */
/* checkbox */
/* collapse */
/* divider */
/* drop-menu */
/* input-number */
/* input */
/* textarea */
/* loadmore */
/* message-box */
/* notice-bar */
/* pagination */
/* picker */
/* col-picker */
/* overlay */
/* popup */
/* progress */
/* radio */
/* search */
/* slider */
/* sort-button */
/* steps */
/* switch */
/* tabs */
/* tag */
/* toast */
/* loading */
/* tooltip */
/* popover */
/* grid-item */
/* statustip */
/* card */
/* upload */
/* curtain */
/* notify */
/* skeleton */
/* circle */
/* swiper */
/* swiper-nav */
/* segmented */
/* tabbar */
/* tabbar-item */
/* navbar */
/* navbar-capsule */
/* table */
/* sidebar */
/* sidebar-item */
/* fab */
/* count-down */
/* keyboard */
/* number-keyboard */
/* passwod-input */
/* form-item */
/* backtop */
/* index-bar */
/* text */
/* video-preview */
/* img-cropper */
/* floating-panel */
/* signature */
/**
* 混合宏
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/**
* 辅助函数
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/* 转换成字符串 */
/* 判断是否存在 Modifier */
/* 判断是否存在伪类 */
/**
* 主题色切换
* @params $theme-color 主题色
* @params $type 变暗dark 变亮 'light'
* @params $mix-color 自己设置的混色
*/
/**
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
* @params $open-linear 是否开启线性渐变色
* @params $deg 渐变色角度
* @params $theme-color 当前配色
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
* @params [Array] $per-list 渐变色比例
*/
/**
* BEM定义块b)
*/
/* 定义元素e对于伪类会自动将 e 嵌套在 伪类 底下 */
/* 此方法用于生成穿透样式 */
/* 定义元素e对于伪类会自动将 e 嵌套在 伪类 底下 */
/* 定义状态m */
/* 定义状态m */
/* 对于需要需要嵌套在 m 底下的 e调用这个混合宏一般在切换整个组件的状态如切换颜色的时候 */
/* 状态,生成 is-$state 类名 */
/**
* 常用混合宏
*/
/* 单行超出隐藏 */
/* 多行超出隐藏 */
/* 清除浮动 */
/* 0.5px 边框 指定方向*/
/* 0.5px 边框 环绕 */
/**
* 三角形实现尖角样式,适用于背景透明情况
* @param $size 三角形高,底边为 $size * 2
* @param $bg 三角形背景颜色
*/
/**
* 正方形实现尖角样式,适用于背景不透明情况
* @param $size 正方形边长
* @param $bg 正方形背景颜色
* @param $z-index z-index属性值不得大于外部包裹器
* @param $box-shadow 阴影
*/
.wot-theme-dark .wd-input.data-v-4e0c9774 {
background: var(--wot-dark-background2, #1b1b1b);
}
.wot-theme-dark .wd-input.data-v-4e0c9774::after {
background: var(--wot-dark-color-gray, var(--wot-color-secondary, #595959));
}
.wot-theme-dark .wd-input.is-not-empty.data-v-4e0c9774:not(.is-disabled)::after {
background-color: var(--wot-dark-color, var(--wot-color-white, white));
}
.wot-theme-dark .wd-input__inner.data-v-4e0c9774 {
color: var(--wot-dark-color, var(--wot-color-white, white));
}
.wot-theme-dark .wd-input__inner.data-v-4e0c9774::-webkit-input-placeholder {
color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
}
.wot-theme-dark .wd-input__count.data-v-4e0c9774 {
color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
background: transparent;
}
.wot-theme-dark .wd-input__count-current.data-v-4e0c9774 {
color: var(--wot-dark-color, var(--wot-color-white, white));
}
.wot-theme-dark .wd-input.data-v-4e0c9774 .wd-input__icon,
.wot-theme-dark .wd-input.data-v-4e0c9774 .wd-input__clear {
color: var(--wot-dark-color, var(--wot-color-white, white));
background: transparent;
}
.wot-theme-dark .wd-input.is-cell.data-v-4e0c9774 {
background-color: var(--wot-dark-background2, #1b1b1b);
line-height: var(--wot-cell-line-height, 24px);
}
.wot-theme-dark .wd-input.is-cell.is-border.data-v-4e0c9774 {
position: relative;
}
.wot-theme-dark .wd-input.is-cell.is-border.data-v-4e0c9774::after {
position: absolute;
display: block;
content: "";
width: calc(100% - var(--wot-input-cell-padding, 10px));
height: 1px;
left: var(--wot-input-cell-padding, 10px);
top: 0;
transform: scaleY(0.5);
background: var(--wot-dark-border-color, #3a3a3c);
}
.wot-theme-dark .wd-input.is-disabled .wd-input__inner.data-v-4e0c9774 {
color: var(--wot-dark-color-gray, var(--wot-color-secondary, #595959));
background: transparent;
}
.wot-theme-dark .wd-input__label.data-v-4e0c9774 {
color: var(--wot-dark-color, var(--wot-color-white, white));
}
.wd-input.data-v-4e0c9774 {
position: relative;
-webkit-tap-highlight-color: transparent;
text-align: left;
background: var(--wot-input-bg, var(--wot-color-white, white));
}
.wd-input.data-v-4e0c9774::after {
position: absolute;
content: "";
bottom: 0;
left: 0;
right: 0;
height: 1px;
background: var(--wot-input-border-color, #dadada);
transform: scaleY(0.5);
transition: background-color 0.2s ease-in-out;
}
.wd-input.is-not-empty.data-v-4e0c9774:not(.is-disabled)::after {
background-color: var(--wot-input-not-empty-border-color, #262626);
}
.wd-input__label.data-v-4e0c9774 {
position: relative;
display: flex;
width: var(--wot-input-cell-label-width, 33%);
color: var(--wot-cell-title-color, rgba(0, 0, 0, 0.85));
margin-right: var(--wot-cell-padding, var(--wot-size-side-padding, 15px));
box-sizing: border-box;
font-size: var(--wot-input-fs, var(--wot-cell-title-fs, 14px));
flex-shrink: 0;
}
.wd-input__label-inner.data-v-4e0c9774 {
display: inline-block;
font-size: var(--wot-input-fs, var(--wot-cell-title-fs, 14px));
line-height: var(--wot-cell-line-height, 24px);
}
.wd-input__required.data-v-4e0c9774 {
font-size: var(--wot-cell-required-size, 18px);
color: var(--wot-cell-required-color, var(--wot-color-danger, #fa4350));
margin-left: var(--wot-cell-required-margin, 4px);
}
.wd-input__required--left.data-v-4e0c9774 {
margin-left: 0;
margin-right: var(--wot-cell-required-margin, 4px);
}
.wd-input__body.data-v-4e0c9774 {
flex: 1;
}
.wd-input__value.data-v-4e0c9774 {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
}
.wd-input__prefix.data-v-4e0c9774 {
margin-right: var(--wot-input-icon-margin, 8px);
font-size: var(--wot-input-fs, var(--wot-cell-title-fs, 14px));
line-height: initial;
}
.wd-input__prefix.data-v-4e0c9774 .wd-input__icon,
.wd-input__prefix.data-v-4e0c9774 .wd-input__clear {
margin-left: 0;
}
.wd-input__suffix.data-v-4e0c9774 {
flex-shrink: 0;
line-height: initial;
}
.wd-input__error-message.data-v-4e0c9774 {
color: var(--wot-form-item-error-message-color, var(--wot-color-danger, #fa4350));
font-size: var(--wot-form-item-error-message-font-size, var(--wot-fs-secondary, 12px));
line-height: var(--wot-form-item-error-message-line-height, 24px);
text-align: left;
vertical-align: middle;
}
.wd-input.is-disabled .wd-input__inner.data-v-4e0c9774 {
color: var(--wot-input-disabled-color, #d9d9d9);
background: transparent;
}
.wd-input.is-error .wd-input__inner.data-v-4e0c9774 {
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
background: transparent;
}
.wd-input.is-no-border.data-v-4e0c9774::after {
display: none;
}
.wd-input.is-no-border .wd-input__inner.data-v-4e0c9774 {
height: var(--wot-input-inner-height-no-border, 24px);
padding-top: 0;
padding-bottom: 0;
}
.wd-input.is-cell.data-v-4e0c9774 {
display: flex;
align-items: flex-start;
padding: var(--wot-input-cell-padding, 10px) var(--wot-input-padding, var(--wot-size-side-padding, 15px));
background-color: var(--wot-input-cell-bg, var(--wot-color-white, white));
}
.wd-input.is-cell.is-error.data-v-4e0c9774::after {
background: var(--wot-input-cell-border-color, var(--wot-color-border-light, #e8e8e8));
}
.wd-input.is-cell.data-v-4e0c9774 .wd-input__icon,
.wd-input.is-cell.data-v-4e0c9774 .wd-input__clear {
display: inline-flex;
align-items: center;
height: var(--wot-input-cell-height, 24px);
line-height: var(--wot-input-cell-height, 24px);
}
.wd-input.is-cell .wd-input__prefix.data-v-4e0c9774 {
display: inline-block;
margin-right: var(--wot-cell-icon-right, 4px);
}
.wd-input.is-cell .wd-input__inner.data-v-4e0c9774 {
height: var(--wot-input-cell-height, 24px);
}
.wd-input.is-cell.wd-input.data-v-4e0c9774::after {
display: none;
}
.wd-input.is-cell.is-center.data-v-4e0c9774 {
align-items: center;
}
.wd-input.is-cell.is-border.data-v-4e0c9774 {
position: relative;
}
.wd-input.is-cell.is-border.data-v-4e0c9774::after {
position: absolute;
display: block;
content: "";
width: calc(100% - var(--wot-input-cell-padding, 10px));
height: 1px;
left: var(--wot-input-cell-padding, 10px);
top: 0;
transform: scaleY(0.5);
background: var(--wot-color-border-light, #e8e8e8);
}
.wd-input.is-large.data-v-4e0c9774 {
padding: var(--wot-input-cell-padding-large, 12px);
}
.wd-input.is-large .wd-input__prefix.data-v-4e0c9774 {
font-size: var(--wot-input-fs-large, var(--wot-cell-title-fs-large, 16px));
}
.wd-input.is-large .wd-input__label-inner.data-v-4e0c9774 {
font-size: var(--wot-input-fs-large, var(--wot-cell-title-fs-large, 16px));
}
.wd-input.is-large .wd-input__inner.data-v-4e0c9774 {
font-size: var(--wot-input-fs-large, var(--wot-cell-title-fs-large, 16px));
}
.wd-input.is-large .wd-input__count.data-v-4e0c9774 {
font-size: var(--wot-input-count-fs-large, 14px);
}
.wd-input.is-large.data-v-4e0c9774 .wd-input__icon,
.wd-input.is-large.data-v-4e0c9774 .wd-input__clear {
font-size: var(--wot-input-icon-size-large, 18px);
}
.wd-input__inner.data-v-4e0c9774 {
flex: 1;
height: var(--wot-input-inner-height, 34px);
font-size: var(--wot-input-fs, var(--wot-cell-title-fs, 14px));
color: var(--wot-input-color, #262626);
outline: none;
border: none;
background: none;
padding: 0;
box-sizing: border-box;
}
.wd-input__inner.data-v-4e0c9774::-webkit-input-placeholder {
color: var(--wot-input-placeholder-color, #bfbfbf);
}
.wd-input__inner.is-align-right.data-v-4e0c9774 {
text-align: right;
}
.wd-input__readonly-mask.data-v-4e0c9774 {
position: absolute;
top: 0;
left: 0;
z-index: 2;
width: 100%;
height: 100%;
}
.data-v-4e0c9774 .wd-input__icon {
margin-left: var(--wot-input-icon-margin, 8px);
font-size: var(--wot-input-icon-size, 16px);
color: var(--wot-input-icon-color, #bfbfbf);
vertical-align: middle;
background: var(--wot-input-bg, var(--wot-color-white, white));
}
.data-v-4e0c9774 .wd-input__clear {
margin-left: var(--wot-input-icon-margin, 8px);
font-size: var(--wot-input-icon-size, 16px);
color: var(--wot-input-clear-color, #585858);
vertical-align: middle;
background: var(--wot-input-bg, var(--wot-color-white, white));
}
.wd-input__count.data-v-4e0c9774 {
margin-left: 15px;
font-size: var(--wot-input-count-fs, 14px);
color: var(--wot-input-count-color, #bfbfbf);
vertical-align: middle;
background: var(--wot-input-bg, var(--wot-color-white, white));
}
.wd-input__count-current.data-v-4e0c9774 {
color: var(--wot-input-count-current-color, #262626);
}
.wd-input__count-current.is-error.data-v-4e0c9774 {
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
}
.wd-input .wd-input__count.data-v-4e0c9774,
.wd-input .wd-input__count-current.data-v-4e0c9774 {
display: inline-flex;
}
/* 水平间距 */
/* 水平间距 */
/**
* 辅助函数
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/* 转换成字符串 */
/* 判断是否存在 Modifier */
/* 判断是否存在伪类 */
/**
* 主题色切换
* @params $theme-color 主题色
* @params $type 变暗dark 变亮 'light'
* @params $mix-color 自己设置的混色
*/
/**
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
* @params $open-linear 是否开启线性渐变色
* @params $deg 渐变色角度
* @params $theme-color 当前配色
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
* @params [Array] $per-list 渐变色比例
*/
/**
* UI规范基础变量
*/
/*----------------------------------------- Theme color. start ----------------------------------------*/
/* 主题颜色 */
/* 辅助色 */
/* 文字颜色(默认浅色背景下 */
/* 暗黑模式 */
/* 图形颜色 */
/*----------------------------------------- Theme color. end -------------------------------------------*/
/*-------------------------------- Theme color application size. start --------------------------------*/
/* 文字字号 */
/* 文字字重 */
/* 尺寸 */
/*-------------------------------- Theme color application size. end --------------------------------*/
/* component var */
/* action-sheet */
/* badge */
/* button */
/* cell */
/* calendar */
/* checkbox */
/* collapse */
/* divider */
/* drop-menu */
/* input-number */
/* input */
/* textarea */
/* loadmore */
/* message-box */
/* notice-bar */
/* pagination */
/* picker */
/* col-picker */
/* overlay */
/* popup */
/* progress */
/* radio */
/* search */
/* slider */
/* sort-button */
/* steps */
/* switch */
/* tabs */
/* tag */
/* toast */
/* loading */
/* tooltip */
/* popover */
/* grid-item */
/* statustip */
/* card */
/* upload */
/* curtain */
/* notify */
/* skeleton */
/* circle */
/* swiper */
/* swiper-nav */
/* segmented */
/* tabbar */
/* tabbar-item */
/* navbar */
/* navbar-capsule */
/* table */
/* sidebar */
/* sidebar-item */
/* fab */
/* count-down */
/* keyboard */
/* number-keyboard */
/* passwod-input */
/* form-item */
/* backtop */
/* index-bar */
/* text */
/* video-preview */
/* img-cropper */
/* floating-panel */
/* signature */
/**
* 混合宏
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/**
* 辅助函数
*/
/**
* SCSS 配置项命名空间以及BEM
*/
/* 转换成字符串 */
/* 判断是否存在 Modifier */
/* 判断是否存在伪类 */
/**
* 主题色切换
* @params $theme-color 主题色
* @params $type 变暗dark 变亮 'light'
* @params $mix-color 自己设置的混色
*/
/**
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
* @params $open-linear 是否开启线性渐变色
* @params $deg 渐变色角度
* @params $theme-color 当前配色
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
* @params [Array] $per-list 渐变色比例
*/
/**
* BEM定义块b)
*/
/* 定义元素e对于伪类会自动将 e 嵌套在 伪类 底下 */
/* 此方法用于生成穿透样式 */
/* 定义元素e对于伪类会自动将 e 嵌套在 伪类 底下 */
/* 定义状态m */
/* 定义状态m */
/* 对于需要需要嵌套在 m 底下的 e调用这个混合宏一般在切换整个组件的状态如切换颜色的时候 */
/* 状态,生成 is-$state 类名 */
/**
* 常用混合宏
*/
/* 单行超出隐藏 */
/* 多行超出隐藏 */
/* 清除浮动 */
/* 0.5px 边框 指定方向*/
/* 0.5px 边框 环绕 */
/**
* 三角形实现尖角样式,适用于背景透明情况
* @param $size 三角形高,底边为 $size * 2
* @param $bg 三角形背景颜色
*/
/**
* 正方形实现尖角样式,适用于背景不透明情况
* @param $size 正方形边长
* @param $bg 正方形背景颜色
* @param $z-index z-index属性值不得大于外部包裹器
* @param $box-shadow 阴影
*/
.wot-theme-dark .wd-input__placeholder {
color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
}
.wd-input__placeholder {
color: var(--wot-input-placeholder-color, #bfbfbf);
}
.wd-input__placeholder.is-error {
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
}