first commit
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var uni_modules_wotDesignUni_components_common_props = require("../common/props.js");
|
||||
const textareaProps = {
|
||||
...uni_modules_wotDesignUni_components_common_props.baseProps,
|
||||
customTextareaContainerClass: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
|
||||
customTextareaClass: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
|
||||
customLabelClass: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
|
||||
modelValue: uni_modules_wotDesignUni_components_common_props.makeNumericProp(""),
|
||||
placeholder: String,
|
||||
placeholderStyle: String,
|
||||
placeholderClass: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
|
||||
disabled: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
maxlength: uni_modules_wotDesignUni_components_common_props.makeNumberProp(-1),
|
||||
autoFocus: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
focus: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
autoHeight: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
fixed: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
cursorSpacing: uni_modules_wotDesignUni_components_common_props.makeNumberProp(0),
|
||||
cursor: uni_modules_wotDesignUni_components_common_props.makeNumberProp(-1),
|
||||
confirmType: String,
|
||||
confirmHold: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
showConfirmBar: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(true),
|
||||
selectionStart: uni_modules_wotDesignUni_components_common_props.makeNumberProp(-1),
|
||||
selectionEnd: uni_modules_wotDesignUni_components_common_props.makeNumberProp(-1),
|
||||
adjustPosition: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(true),
|
||||
disableDefaultPadding: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
holdKeyboard: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
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),
|
||||
prefixIcon: String,
|
||||
showWordLimit: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
label: String,
|
||||
labelWidth: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
|
||||
size: String,
|
||||
error: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
center: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
noBorder: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
required: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(false),
|
||||
prop: uni_modules_wotDesignUni_components_common_props.makeStringProp(""),
|
||||
rules: uni_modules_wotDesignUni_components_common_props.makeArrayProp(),
|
||||
clearTrigger: uni_modules_wotDesignUni_components_common_props.makeStringProp("always"),
|
||||
focusWhenClear: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(true),
|
||||
ignoreCompositionEvent: uni_modules_wotDesignUni_components_common_props.makeBooleanProp(true),
|
||||
inputmode: uni_modules_wotDesignUni_components_common_props.makeStringProp("text"),
|
||||
markerSide: uni_modules_wotDesignUni_components_common_props.makeStringProp("before")
|
||||
};
|
||||
exports.textareaProps = textareaProps;
|
||||
+266
@@ -0,0 +1,266 @@
|
||||
"use strict";
|
||||
var common_vendor = require("../../../../common/vendor.js");
|
||||
var uni_modules_wotDesignUni_components_common_util = require("../common/util.js");
|
||||
var uni_modules_wotDesignUni_components_composables_useCell = require("../composables/useCell.js");
|
||||
var uni_modules_wotDesignUni_components_wdForm_types = require("../wd-form/types.js");
|
||||
var uni_modules_wotDesignUni_components_composables_useParent = require("../composables/useParent.js");
|
||||
var uni_modules_wotDesignUni_components_composables_useTranslate = require("../composables/useTranslate.js");
|
||||
var uni_modules_wotDesignUni_components_wdTextarea_types = require("./types.js");
|
||||
require("../common/AbortablePromise.js");
|
||||
require("../wd-cell-group/types.js");
|
||||
require("../common/props.js");
|
||||
require("../../locale/index.js");
|
||||
require("../../locale/lang/zh-CN.js");
|
||||
if (!Math) {
|
||||
wdIcon();
|
||||
}
|
||||
const wdIcon = () => "../wd-icon/wd-icon.js";
|
||||
const __default__ = {
|
||||
name: "wd-textarea",
|
||||
options: {
|
||||
virtualHost: true,
|
||||
addGlobalClass: true,
|
||||
styleIsolation: "shared"
|
||||
}
|
||||
};
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
...__default__,
|
||||
props: uni_modules_wotDesignUni_components_wdTextarea_types.textareaProps,
|
||||
emits: [
|
||||
"update:modelValue",
|
||||
"clear",
|
||||
"blur",
|
||||
"focus",
|
||||
"input",
|
||||
"keyboardheightchange",
|
||||
"confirm",
|
||||
"linechange",
|
||||
"clickprefixicon",
|
||||
"click"
|
||||
],
|
||||
setup(__props, { emit }) {
|
||||
const props = __props;
|
||||
const { translate } = uni_modules_wotDesignUni_components_composables_useTranslate.useTranslate("textarea");
|
||||
const slots = common_vendor.useSlots();
|
||||
const placeholderValue = common_vendor.computed$1(() => {
|
||||
return uni_modules_wotDesignUni_components_common_util.isDef(props.placeholder) ? props.placeholder : translate("placeholder");
|
||||
});
|
||||
const clearing = common_vendor.ref(false);
|
||||
const focused = common_vendor.ref(false);
|
||||
const focusing = common_vendor.ref(false);
|
||||
const inputValue = common_vendor.ref("");
|
||||
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) : "";
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
);
|
||||
const { parent: form } = uni_modules_wotDesignUni_components_composables_useParent.useParent(uni_modules_wotDesignUni_components_wdForm_types.FORM_KEY);
|
||||
const showClear = common_vendor.computed$1(() => {
|
||||
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$1(() => {
|
||||
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$1(() => {
|
||||
if (form && props.prop && form.errorMessages && form.errorMessages[props.prop]) {
|
||||
return form.errorMessages[props.prop];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
});
|
||||
const isRequired = common_vendor.computed$1(() => {
|
||||
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 currentLength = common_vendor.computed$1(() => {
|
||||
return Array.from(String(formatValue(props.modelValue))).length;
|
||||
});
|
||||
const rootClass = common_vendor.computed$1(() => {
|
||||
return `wd-textarea ${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" : ""} ${props.autoHeight ? "is-auto-height" : ""} ${currentLength.value > 0 ? "is-not-empty" : ""} ${props.noBorder ? "is-no-border" : ""} ${props.customClass}`;
|
||||
});
|
||||
common_vendor.computed$1(() => {
|
||||
return `wd-textarea__label ${props.customLabelClass}`;
|
||||
});
|
||||
const inputPlaceholderClass = common_vendor.computed$1(() => {
|
||||
return `wd-textarea__placeholder ${props.placeholderClass}`;
|
||||
});
|
||||
const countClass = common_vendor.computed$1(() => {
|
||||
return `${currentLength.value > 0 ? "wd-textarea__count-current" : ""} ${currentLength.value > props.maxlength ? "is-error" : ""}`;
|
||||
});
|
||||
const labelStyle = common_vendor.computed$1(() => {
|
||||
return props.labelWidth ? uni_modules_wotDesignUni_components_common_util.objToStyle({
|
||||
"min-width": props.labelWidth,
|
||||
"max-width": props.labelWidth
|
||||
}) : "";
|
||||
});
|
||||
common_vendor.onBeforeMount(() => {
|
||||
initState();
|
||||
});
|
||||
function initState() {
|
||||
inputValue.value = formatValue(inputValue.value);
|
||||
emit("update:modelValue", inputValue.value);
|
||||
}
|
||||
function formatValue(value) {
|
||||
if (value === null || value === void 0)
|
||||
return "";
|
||||
const { maxlength, showWordLimit } = props;
|
||||
if (showWordLimit && maxlength !== -1 && String(value).length > maxlength) {
|
||||
return value.toString().substring(0, maxlength);
|
||||
}
|
||||
return `${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({ detail }) {
|
||||
await uni_modules_wotDesignUni_components_common_util.pause(150);
|
||||
if (clearing.value) {
|
||||
clearing.value = false;
|
||||
return;
|
||||
}
|
||||
focusing.value = false;
|
||||
emit("blur", {
|
||||
value: inputValue.value,
|
||||
cursor: detail.cursor ? detail.cursor : null
|
||||
});
|
||||
}
|
||||
function handleFocus({ detail }) {
|
||||
focusing.value = true;
|
||||
emit("focus", detail);
|
||||
}
|
||||
function handleInput({ detail }) {
|
||||
inputValue.value = formatValue(inputValue.value);
|
||||
emit("update:modelValue", inputValue.value);
|
||||
emit("input", detail);
|
||||
}
|
||||
function handleKeyboardheightchange({ detail }) {
|
||||
emit("keyboardheightchange", detail);
|
||||
}
|
||||
function handleConfirm({ detail }) {
|
||||
emit("confirm", detail);
|
||||
}
|
||||
function handleLineChange({ detail }) {
|
||||
emit("linechange", detail);
|
||||
}
|
||||
function onClickPrefixIcon() {
|
||||
emit("clickprefixicon");
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: _ctx.label || _ctx.$slots.label
|
||||
}, _ctx.label || _ctx.$slots.label ? common_vendor.e({
|
||||
b: common_vendor.unref(isRequired) && _ctx.markerSide === "before"
|
||||
}, common_vendor.unref(isRequired) && _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-textarea__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: common_vendor.unref(isRequired) && _ctx.markerSide === "after"
|
||||
}, common_vendor.unref(isRequired) && _ctx.markerSide === "after" ? {} : {}, {
|
||||
k: common_vendor.s(common_vendor.unref(labelStyle))
|
||||
}) : {}, {
|
||||
l: common_vendor.n(`wd-textarea__inner ${_ctx.customTextareaClass}`),
|
||||
m: common_vendor.unref(placeholderValue),
|
||||
n: _ctx.disabled || _ctx.readonly,
|
||||
o: _ctx.maxlength,
|
||||
p: focused.value,
|
||||
q: _ctx.autoFocus,
|
||||
r: _ctx.placeholderStyle,
|
||||
s: common_vendor.unref(inputPlaceholderClass),
|
||||
t: _ctx.autoHeight,
|
||||
v: _ctx.cursorSpacing,
|
||||
w: _ctx.fixed,
|
||||
x: _ctx.cursor,
|
||||
y: _ctx.showConfirmBar,
|
||||
z: _ctx.selectionStart,
|
||||
A: _ctx.selectionEnd,
|
||||
B: _ctx.adjustPosition,
|
||||
C: _ctx.holdKeyboard,
|
||||
D: _ctx.confirmType,
|
||||
E: _ctx.confirmHold,
|
||||
F: _ctx.disableDefaultPadding,
|
||||
G: _ctx.ignoreCompositionEvent,
|
||||
H: _ctx.inputmode,
|
||||
I: common_vendor.o([($event) => inputValue.value = $event.detail.value, handleInput]),
|
||||
J: common_vendor.o(handleFocus),
|
||||
K: common_vendor.o(handleBlur),
|
||||
L: common_vendor.o(handleConfirm),
|
||||
M: common_vendor.o(handleLineChange),
|
||||
N: common_vendor.o(handleKeyboardheightchange),
|
||||
O: inputValue.value,
|
||||
P: common_vendor.unref(errorMessage)
|
||||
}, common_vendor.unref(errorMessage) ? {
|
||||
Q: common_vendor.t(common_vendor.unref(errorMessage))
|
||||
} : {}, {
|
||||
R: props.readonly
|
||||
}, props.readonly ? {} : {}, {
|
||||
S: common_vendor.unref(showClear)
|
||||
}, common_vendor.unref(showClear) ? {
|
||||
T: common_vendor.o(handleClear),
|
||||
U: common_vendor.p({
|
||||
["custom-class"]: "wd-textarea__clear",
|
||||
name: "error-fill"
|
||||
})
|
||||
} : {}, {
|
||||
V: common_vendor.unref(showWordCount)
|
||||
}, common_vendor.unref(showWordCount) ? {
|
||||
W: common_vendor.t(common_vendor.unref(currentLength)),
|
||||
X: common_vendor.n(common_vendor.unref(countClass)),
|
||||
Y: common_vendor.t(_ctx.maxlength)
|
||||
} : {}, {
|
||||
Z: common_vendor.n(`wd-textarea__value ${common_vendor.unref(showClear) ? "is-suffix" : ""} ${_ctx.customTextareaContainerClass} ${common_vendor.unref(showWordCount) ? "is-show-limit" : ""}`),
|
||||
aa: common_vendor.n(common_vendor.unref(rootClass)),
|
||||
ab: common_vendor.s(_ctx.customStyle)
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2b9f99c9"], ["__file", "D:/\u7F51\u6291\u4E91Time/\u79C1\u6D3B/2000\u7B97\u5366/src/uni_modules/wot-design-uni/components/wd-textarea/wd-textarea.vue"]]);
|
||||
wx.createComponent(Component);
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wd-icon": "../wd-icon/wd-icon"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-2b9f99c9', aa]}}" style="{{ab}}"><view wx:if="{{a}}" class="wd-textarea__label data-v-2b9f99c9" style="{{k}}"><text wx:if="{{b}}" class="wd-textarea__required wd-textarea__required--left data-v-2b9f99c9">*</text><view wx:if="{{c}}" class="wd-textarea__prefix data-v-2b9f99c9"><wd-icon wx:if="{{d}}" class="data-v-2b9f99c9" bindclick="{{e}}" u-i="2b9f99c9-0" bind:__l="__l" u-p="{{f}}"/><slot wx:else name="prefix"></slot></view><view class="wd-textarea__label-inner data-v-2b9f99c9"><text wx:if="{{g}}" class="data-v-2b9f99c9">{{h}}</text><slot wx:elif="{{i}}" name="label"></slot></view><text wx:if="{{j}}" class="wd-textarea__required data-v-2b9f99c9">*</text></view><view class="{{['data-v-2b9f99c9', Z]}}"><block wx:if="{{r0}}"><textarea class="{{['data-v-2b9f99c9', l]}}" show-count="{{false}}" placeholder="{{m}}" disabled="{{n}}" maxlength="{{o}}" focus="{{p}}" auto-focus="{{q}}" placeholder-style="{{r}}" placeholder-class="{{s}}" auto-height="{{t}}" cursor-spacing="{{v}}" fixed="{{w}}" cursor="{{x}}" show-confirm-bar="{{y}}" selection-start="{{z}}" selection-end="{{A}}" adjust-position="{{B}}" hold-keyboard="{{C}}" confirm-type="{{D}}" confirm-hold="{{E}}" disable-default-padding="{{F}}" ignoreCompositionEvent="{{G}}" inputmode="{{H}}" bindinput="{{I}}" bindfocus="{{J}}" bindblur="{{K}}" bindconfirm="{{L}}" bindlinechange="{{M}}" bindkeyboardheightchange="{{N}}" value="{{O}}"/></block><view wx:if="{{P}}" class="wd-textarea__error-message data-v-2b9f99c9">{{Q}}</view><view wx:if="{{R}}" class="wd-textarea__readonly-mask data-v-2b9f99c9"/><view class="wd-textarea__suffix data-v-2b9f99c9"><wd-icon wx:if="{{S}}" class="data-v-2b9f99c9" bindclick="{{T}}" u-i="2b9f99c9-1" bind:__l="__l" u-p="{{U}}"/><view wx:if="{{V}}" class="wd-textarea__count data-v-2b9f99c9"><text class="{{['data-v-2b9f99c9', X]}}">{{W}}</text> /{{Y}}</view></view></view></view>
|
||||
+659
@@ -0,0 +1,659 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
/**
|
||||
* 辅助函数
|
||||
*/
|
||||
/**
|
||||
* 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-textarea.data-v-2b9f99c9 {
|
||||
background: var(--wot-dark-background2, #1b1b1b);
|
||||
}
|
||||
.wot-theme-dark .wd-textarea.data-v-2b9f99c9::after {
|
||||
background: var(--wot-dark-color-gray, var(--wot-color-secondary, #595959));
|
||||
}
|
||||
.wot-theme-dark .wd-textarea.is-not-empty.data-v-2b9f99c9:not(.is-disabled)::after {
|
||||
background-color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
}
|
||||
.wot-theme-dark .wd-textarea__value.data-v-2b9f99c9 {
|
||||
background: var(--wot-dark-background2, #1b1b1b);
|
||||
}
|
||||
.wot-theme-dark .wd-textarea__inner.data-v-2b9f99c9 {
|
||||
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
}
|
||||
.wot-theme-dark .wd-textarea__inner.data-v-2b9f99c9::-webkit-input-placeholder {
|
||||
color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
|
||||
}
|
||||
.wot-theme-dark .wd-textarea__count.data-v-2b9f99c9 {
|
||||
color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
|
||||
background: transparent;
|
||||
}
|
||||
.wot-theme-dark .wd-textarea__count-current.data-v-2b9f99c9 {
|
||||
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
}
|
||||
.wot-theme-dark .wd-textarea.data-v-2b9f99c9 .wd-textarea__icon,
|
||||
.wot-theme-dark .wd-textarea.data-v-2b9f99c9 .wd-textarea__clear {
|
||||
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
background: transparent;
|
||||
}
|
||||
.wot-theme-dark .wd-textarea.is-cell.data-v-2b9f99c9 {
|
||||
background-color: var(--wot-dark-background2, #1b1b1b);
|
||||
}
|
||||
.wot-theme-dark .wd-textarea.is-cell.is-border.data-v-2b9f99c9 {
|
||||
position: relative;
|
||||
}
|
||||
.wot-theme-dark .wd-textarea.is-cell.is-border.data-v-2b9f99c9::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
content: "";
|
||||
width: calc(100% - var(--wot-textarea-cell-padding, 10px));
|
||||
height: 1px;
|
||||
left: var(--wot-textarea-cell-padding, 10px);
|
||||
top: 0;
|
||||
transform: scaleY(0.5);
|
||||
background: var(--wot-dark-border-color, #3a3a3c);
|
||||
}
|
||||
.wot-theme-dark .wd-textarea.is-disabled .wd-textarea__inner.data-v-2b9f99c9 {
|
||||
color: var(--wot-dark-color-gray, var(--wot-color-secondary, #595959));
|
||||
background: transparent;
|
||||
}
|
||||
.wot-theme-dark .wd-textarea__label.data-v-2b9f99c9 {
|
||||
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
}
|
||||
.wd-textarea.data-v-2b9f99c9 {
|
||||
position: relative;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
text-align: left;
|
||||
background: var(--wot-textarea-bg, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
padding: var(--wot-textarea-cell-padding, 10px) var(--wot-textarea-padding, var(--wot-size-side-padding, 15px));
|
||||
}
|
||||
.wd-textarea.data-v-2b9f99c9::after {
|
||||
position: absolute;
|
||||
display: none;
|
||||
content: "";
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: var(--wot-textarea-border-color, #dadada);
|
||||
transform: scaleY(0.5);
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
}
|
||||
.wd-textarea__label.data-v-2b9f99c9 {
|
||||
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-textarea-fs, var(--wot-cell-title-fs, 14px));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.wd-textarea__label-inner.data-v-2b9f99c9 {
|
||||
display: inline-block;
|
||||
line-height: var(--wot-cell-line-height, 24px);
|
||||
font-size: var(--wot-textarea-fs, var(--wot-cell-title-fs, 14px));
|
||||
}
|
||||
.wd-textarea__required.data-v-2b9f99c9 {
|
||||
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-textarea__required--left.data-v-2b9f99c9 {
|
||||
margin-left: 0;
|
||||
margin-right: var(--wot-cell-required-margin, 4px);
|
||||
}
|
||||
.wd-textarea__prefix.data-v-2b9f99c9 {
|
||||
margin-right: var(--wot-textarea-icon-margin, 8px);
|
||||
font-size: var(--wot-textarea-fs, var(--wot-cell-title-fs, 14px));
|
||||
line-height: initial;
|
||||
}
|
||||
.wd-textarea__prefix.data-v-2b9f99c9 .wd-textarea__icon {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wd-textarea__suffix.data-v-2b9f99c9 {
|
||||
flex-shrink: 0;
|
||||
line-height: initial;
|
||||
}
|
||||
.wd-textarea__value.data-v-2b9f99c9 {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
font-size: 0;
|
||||
background: var(--wot-textarea-bg, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.wd-textarea__value.is-show-limit.data-v-2b9f99c9 {
|
||||
padding-bottom: 36px;
|
||||
}
|
||||
.wd-textarea__value.is-suffix.data-v-2b9f99c9 {
|
||||
padding-right: calc(var(--wot-textarea-icon-size, 16px) + 8px);
|
||||
}
|
||||
.wd-textarea__inner.data-v-2b9f99c9 {
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
font-size: var(--wot-textarea-fs, var(--wot-cell-title-fs, 14px));
|
||||
line-height: var(--wot-cell-line-height, 24px);
|
||||
color: var(--wot-textarea-color, #262626);
|
||||
outline: none;
|
||||
background: none;
|
||||
border: none;
|
||||
box-sizing: border-box;
|
||||
word-break: break-word;
|
||||
min-height: 24px;
|
||||
}
|
||||
.wd-textarea__inner.data-v-2b9f99c9::-webkit-input-placeholder {
|
||||
color: var(--wot-input-placeholder-color, #bfbfbf);
|
||||
}
|
||||
.wd-textarea__suffix.data-v-2b9f99c9 {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.data-v-2b9f99c9 .wd-textarea__icon {
|
||||
margin-left: var(--wot-textarea-icon-margin, 8px);
|
||||
font-size: var(--wot-textarea-icon-size, 16px);
|
||||
color: var(--wot-textarea-icon-color, #bfbfbf);
|
||||
background: var(--wot-textarea-bg, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
}
|
||||
.data-v-2b9f99c9 .wd-textarea__clear {
|
||||
margin-left: var(--wot-textarea-icon-margin, 8px);
|
||||
font-size: var(--wot-textarea-icon-size, 16px);
|
||||
color: var(--wot-textarea-clear-color, #585858);
|
||||
vertical-align: middle;
|
||||
background: var(--wot-textarea-bg, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
line-height: var(--wot-cell-line-height, 24px);
|
||||
}
|
||||
.wd-textarea__count.data-v-2b9f99c9 {
|
||||
position: absolute;
|
||||
bottom: 8px;
|
||||
right: 0;
|
||||
font-size: var(--wot-textarea-count-fs, 14px);
|
||||
color: var(--wot-textarea-count-color, #bfbfbf);
|
||||
background: var(--wot-textarea-bg, var(--wot-color-white, rgb(255, 255, 255)));
|
||||
line-height: 20px;
|
||||
display: inline-flex;
|
||||
}
|
||||
.wd-textarea__count-current.data-v-2b9f99c9 {
|
||||
color: var(--wot-textarea-count-current-color, #262626);
|
||||
}
|
||||
.wd-textarea__count-current.is-error.data-v-2b9f99c9 {
|
||||
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
|
||||
}
|
||||
.wd-textarea__readonly-mask.data-v-2b9f99c9 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.wd-textarea__error-message.data-v-2b9f99c9 {
|
||||
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-textarea.is-not-empty.data-v-2b9f99c9:not(.is-disabled)::after {
|
||||
background-color: var(--wot-textarea-not-empty-border-color, #262626);
|
||||
}
|
||||
.wd-textarea.is-disabled .wd-textarea__inner.data-v-2b9f99c9 {
|
||||
color: var(--wot-input-disabled-color, #d9d9d9);
|
||||
background: transparent;
|
||||
}
|
||||
.wd-textarea.is-error .wd-textarea__inner.data-v-2b9f99c9 {
|
||||
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
|
||||
background: transparent;
|
||||
}
|
||||
.wd-textarea.is-auto-height.data-v-2b9f99c9:not(.is-cell) {
|
||||
padding: 5px 0;
|
||||
}
|
||||
.wd-textarea.is-auto-height.data-v-2b9f99c9::after {
|
||||
display: block;
|
||||
}
|
||||
.wd-textarea.is-no-border.data-v-2b9f99c9::after {
|
||||
display: none;
|
||||
}
|
||||
.wd-textarea.is-cell.data-v-2b9f99c9 {
|
||||
display: flex;
|
||||
line-height: var(--wot-cell-line-height, 24px);
|
||||
}
|
||||
.wd-textarea.is-cell.is-error.data-v-2b9f99c9::after {
|
||||
background: var(--wot-textarea-cell-border-color, var(--wot-color-border-light, #e8e8e8));
|
||||
}
|
||||
.wd-textarea.is-cell .wd-textarea__value.data-v-2b9f99c9 {
|
||||
flex: 1;
|
||||
}
|
||||
.wd-textarea.is-cell.data-v-2b9f99c9 .wd-textarea__icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: var(--wot-textarea-cell-height, 24px);
|
||||
line-height: var(--wot-textarea-cell-height, 24px);
|
||||
}
|
||||
.wd-textarea.is-cell .wd-textarea__prefix.data-v-2b9f99c9 {
|
||||
display: inline-block;
|
||||
margin-right: var(--wot-cell-icon-right, 4px);
|
||||
}
|
||||
.wd-textarea.is-cell.wd-textarea.data-v-2b9f99c9::after {
|
||||
display: none;
|
||||
}
|
||||
.wd-textarea.is-cell .wd-textarea__suffix.data-v-2b9f99c9 {
|
||||
right: 0;
|
||||
}
|
||||
.wd-textarea.is-cell.is-center.data-v-2b9f99c9 {
|
||||
align-items: center;
|
||||
}
|
||||
.wd-textarea.is-cell.is-border.data-v-2b9f99c9 {
|
||||
position: relative;
|
||||
}
|
||||
.wd-textarea.is-cell.is-border.data-v-2b9f99c9::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
content: "";
|
||||
width: calc(100% - var(--wot-textarea-cell-padding, 10px));
|
||||
height: 1px;
|
||||
left: var(--wot-textarea-cell-padding, 10px);
|
||||
top: 0;
|
||||
transform: scaleY(0.5);
|
||||
background: var(--wot-color-border-light, #e8e8e8);
|
||||
}
|
||||
.wd-textarea.is-large.data-v-2b9f99c9 {
|
||||
padding: var(--wot-textarea-cell-padding-large, 12px);
|
||||
}
|
||||
.wd-textarea.is-large .wd-textarea__prefix.data-v-2b9f99c9 {
|
||||
font-size: var(--wot-textarea-fs-large, var(--wot-cell-title-fs-large, 16px));
|
||||
}
|
||||
.wd-textarea.is-large .wd-textarea__label-inner.data-v-2b9f99c9 {
|
||||
font-size: var(--wot-textarea-fs-large, var(--wot-cell-title-fs-large, 16px));
|
||||
}
|
||||
.wd-textarea.is-large .wd-textarea__inner.data-v-2b9f99c9 {
|
||||
font-size: var(--wot-textarea-fs-large, var(--wot-cell-title-fs-large, 16px));
|
||||
}
|
||||
.wd-textarea.is-large .wd-textarea__count.data-v-2b9f99c9 {
|
||||
font-size: var(--wot-textarea-count-fs-large, 14px);
|
||||
}
|
||||
.wd-textarea.is-large.data-v-2b9f99c9 .wd-textarea__icon,
|
||||
.wd-textarea.is-large.data-v-2b9f99c9 .wd-textarea__clear {
|
||||
font-size: var(--wot-textarea-icon-size-large, 18px);
|
||||
}
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
/**
|
||||
* 辅助函数
|
||||
*/
|
||||
/**
|
||||
* 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-textarea__placeholder {
|
||||
color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
|
||||
}
|
||||
.wd-textarea__placeholder {
|
||||
color: var(--wot-input-placeholder-color, #bfbfbf);
|
||||
}
|
||||
.wd-textarea__placeholder.is-error {
|
||||
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
|
||||
}
|
||||
Reference in New Issue
Block a user