Compare commits
10 Commits
c7194eb604
...
v1.7.0
| Author | SHA1 | Date | |
|---|---|---|---|
| d3d004b835 | |||
| 3e44d6eb9c | |||
| 03dda7b4ee | |||
| 1a117f55ce | |||
| 371ea1495b | |||
| 74e66728f8 | |||
| 29c1daeda9 | |||
| d2f3df7a45 | |||
| d2b464242b | |||
| 5c68a21ac2 |
@@ -1,18 +1,18 @@
|
||||
"use strict";
|
||||
module.exports = {
|
||||
types: [
|
||||
{ value: "✨", name: "特性: 一个新的特性" },
|
||||
{ value: "🐛", name: "修复: 修复一个Bug" },
|
||||
{ value: "📝", name: "文档: 变更的只有文档" },
|
||||
{ value: "💄", name: "格式: 空格, 分号等格式修复" },
|
||||
{ value: "♻️", name: "重构: 代码重构,注意和特性、修复区分开" },
|
||||
{ value: "🌀", name: "样式: 样式的调整" },
|
||||
{ value: "⚡️", name: "性能: 提升性能" },
|
||||
{ value: "✅", name: "测试: 添加一个测试" },
|
||||
{ value: "🔧", name: "工具: 开发工具变动(构建、脚手架工具等)" },
|
||||
{ value: "⏪", name: "回滚: 代码回退" },
|
||||
{ value: "⬆️", name: "升级: 依赖升级" },
|
||||
{ value: "⬇️", name: "降级: 依赖降级" },
|
||||
// { value: "✨", name: "特性: 一个新的特性" },
|
||||
// { value: "🐛", name: "修复: 修复一个Bug" },
|
||||
// { value: "📝", name: "文档: 变更的只有文档" },
|
||||
// { value: "💄", name: "格式: 空格, 分号等格式修复" },
|
||||
// { value: "♻️", name: "重构: 代码重构,注意和特性、修复区分开" },
|
||||
// { value: "🌀", name: "样式: 样式的调整" },
|
||||
// { value: "⚡️", name: "性能: 提升性能" },
|
||||
// { value: "✅", name: "测试: 添加一个测试" },
|
||||
// { value: "🔧", name: "工具: 开发工具变动(构建、脚手架工具等)" },
|
||||
// { value: "⏪", name: "回滚: 代码回退" },
|
||||
// { value: "⬆️", name: "升级: 依赖升级" },
|
||||
// { value: "⬇️", name: "降级: 依赖降级" },
|
||||
],
|
||||
scopes: [
|
||||
{ name: "component" },
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -172,13 +172,11 @@ function triggerRefValue(ref, newVal) {
|
||||
}
|
||||
}
|
||||
}
|
||||
var _a;
|
||||
class ComputedRefImpl {
|
||||
constructor(getter, _setter, isReadonly, isSSR) {
|
||||
this._setter = _setter;
|
||||
this.dep = void 0;
|
||||
this.__v_isRef = true;
|
||||
this[_a] = false;
|
||||
this._dirty = true;
|
||||
this.effect = new ReactiveEffect(getter, () => {
|
||||
if (!this._dirty) {
|
||||
@@ -203,7 +201,6 @@ class ComputedRefImpl {
|
||||
this._setter(newValue);
|
||||
}
|
||||
}
|
||||
_a = "__v_isReadonly";
|
||||
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
||||
let getter;
|
||||
let setter;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { getCurrentScope, onScopeDispose, computed, toRefs, getCurrentInstance, onMounted, nextTick, ref, unref, isRef, reactive, watch, customRef, onUpdated } from "vue";
|
||||
var _a;
|
||||
const isClient = typeof window !== "undefined";
|
||||
const toString = Object.prototype.toString;
|
||||
var _a$1;
|
||||
const isClient$1 = typeof window !== "undefined";
|
||||
const toString$1 = Object.prototype.toString;
|
||||
const isFunction = (val) => typeof val === "function";
|
||||
const isNumber = (val) => typeof val === "number";
|
||||
const isString = (val) => typeof val === "string";
|
||||
const isObject = (val) => toString.call(val) === "[object Object]";
|
||||
const isObject$1 = (val) => toString$1.call(val) === "[object Object]";
|
||||
const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
||||
const noop = () => {
|
||||
};
|
||||
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
||||
isClient$1 && ((_a$1 = window == null ? void 0 : window.navigator) == null ? void 0 : _a$1.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
||||
function resolveUnref(r) {
|
||||
return typeof r === "function" ? r() : unref(r);
|
||||
}
|
||||
@@ -141,7 +141,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
||||
}
|
||||
if (immediate) {
|
||||
isPending.value = true;
|
||||
if (isClient)
|
||||
if (isClient$1)
|
||||
start();
|
||||
}
|
||||
tryOnScopeDispose(stop);
|
||||
@@ -156,7 +156,7 @@ function unrefElement(elRef) {
|
||||
const plain = resolveUnref(elRef);
|
||||
return (_a2 = plain == null ? void 0 : plain.$el) != null ? _a2 : plain;
|
||||
}
|
||||
const defaultWindow = isClient ? window : void 0;
|
||||
const defaultWindow = isClient$1 ? window : void 0;
|
||||
function useEventListener(...args) {
|
||||
let target;
|
||||
let event;
|
||||
@@ -561,4 +561,9 @@ function useWindowSize(options = {}) {
|
||||
useEventListener("orientationchange", update, { passive: true });
|
||||
return { width, height };
|
||||
}
|
||||
export { TransitionPresets as T, useResizeObserver as a, useThrottleFn as b, useEventListener as c, useEyeDropper as d, useTransition as e, useMousePressed as f, isObject as i, onClickOutside as o, reactiveOmit as r, templateRef as t, useWindowSize as u };
|
||||
var _a;
|
||||
const isClient = typeof window !== "undefined";
|
||||
const toString = Object.prototype.toString;
|
||||
const isObject = (val) => toString.call(val) === "[object Object]";
|
||||
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
||||
export { TransitionPresets as T, useResizeObserver as a, useThrottleFn as b, useEventListener as c, useEyeDropper as d, useTransition as e, useMousePressed as f, isObject as g, isObject$1 as i, onClickOutside as o, reactiveOmit as r, templateRef as t, useWindowSize as u };
|
||||
|
||||
@@ -1783,7 +1783,6 @@ const _sfc_main = defineComponent({
|
||||
if (dropdownRef.value)
|
||||
dropdownRef.value.hide();
|
||||
$emits("update:modelValue", dateValue.value);
|
||||
$emits("change", dateValue.value);
|
||||
};
|
||||
provide("datePicker", {
|
||||
currentYear,
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
import { w as withInstall } from "../badge/index2.js";
|
||||
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, createVNode, createCommentVNode, toDisplayString } from "vue";
|
||||
import { _ as _sfc_main$2W } from "../_chunks/@layui/index.js";
|
||||
import { i as isObject } from "../_chunks/@vueuse/index.js";
|
||||
import { g as isObject } from "../_chunks/@vueuse/index.js";
|
||||
var index = /* @__PURE__ */ (() => ":root{--textarea-border-radius: var(--global-border-radius);--textarea-border-color: var(--global-neutral-color-3)}.layui-textarea{border-width:1px;border-style:solid;background-color:#fff;color:#000000d9;border-radius:var(--textarea-border-radius);border-color:var(--textarea-border-color);display:block;width:100%;height:auto;line-height:20px;min-height:100px;padding:6px 10px;resize:vertical;position:relative;transition:none;-webkit-transition:none}.layui-textarea-wrapper{position:relative}.layui-textarea:hover,.layui-textarea:focus{border-color:#d2d2d2!important}.layui-textarea-clear{position:absolute;color:#00000073;right:10px;top:10px}.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-texterea-count{color:inherit;white-space:nowrap;pointer-events:none;text-align:right;margin-top:4px}.layui-textarea-disabled{cursor:not-allowed!important;opacity:.6}\n")();
|
||||
const _hoisted_1 = { class: "layui-textarea-wrapper" };
|
||||
const _hoisted_2 = ["value", "placeholder", "name", "disabled", "maxlength"];
|
||||
|
||||
File diff suppressed because one or more lines are too long
2602
package/component/es/upload/index2.js
Normal file
2602
package/component/es/upload/index2.js
Normal file
File diff suppressed because one or more lines are too long
@@ -950,10 +950,11 @@ function calculateContent(title2, height, btn, type4, isMessage) {
|
||||
if (height && height.indexOf("%") != -1) {
|
||||
height = "100%";
|
||||
}
|
||||
console.log("btn", height + "px");
|
||||
if (btn && btn.length > 0) {
|
||||
if (type4 == 0) {
|
||||
if (title2) {
|
||||
return "calc(" + height + " - 137px)";
|
||||
return "calc(" + height + " - 135px)";
|
||||
} else {
|
||||
return "calc(" + height + " - 86px)";
|
||||
}
|
||||
@@ -2172,7 +2173,7 @@ const isArray$1 = Array.isArray;
|
||||
const isFunction$3 = (val) => typeof val === "function";
|
||||
const isString$1 = (val) => typeof val === "string";
|
||||
const isBoolean = (val) => typeof val === "boolean";
|
||||
const isObject$3 = (val) => val !== null && typeof val === "object";
|
||||
const isObject$4 = (val) => val !== null && typeof val === "object";
|
||||
const objectToString = Object.prototype.toString;
|
||||
const toTypeString = (value) => objectToString.call(value);
|
||||
const isPlainObject$1 = (val) => toTypeString(val) === "[object Object]";
|
||||
@@ -2188,7 +2189,7 @@ const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
||||
function hasOwn(obj, key) {
|
||||
return hasOwnProperty$1.call(obj, key);
|
||||
}
|
||||
const isObject$2 = (val) => val !== null && typeof val === "object";
|
||||
const isObject$3 = (val) => val !== null && typeof val === "object";
|
||||
const pathStateMachine = [];
|
||||
pathStateMachine[0] = {
|
||||
["w"]: [0],
|
||||
@@ -2365,7 +2366,7 @@ function parse(path) {
|
||||
}
|
||||
const cache = /* @__PURE__ */ new Map();
|
||||
function resolveValue(obj, path) {
|
||||
if (!isObject$2(obj)) {
|
||||
if (!isObject$3(obj)) {
|
||||
return null;
|
||||
}
|
||||
let hit = cache.get(path);
|
||||
@@ -2392,7 +2393,7 @@ function resolveValue(obj, path) {
|
||||
return last;
|
||||
}
|
||||
function handleFlatJson(obj) {
|
||||
if (!isObject$2(obj)) {
|
||||
if (!isObject$3(obj)) {
|
||||
return obj;
|
||||
}
|
||||
for (const key in obj) {
|
||||
@@ -2400,7 +2401,7 @@ function handleFlatJson(obj) {
|
||||
continue;
|
||||
}
|
||||
if (!key.includes(".")) {
|
||||
if (isObject$2(obj[key])) {
|
||||
if (isObject$3(obj[key])) {
|
||||
handleFlatJson(obj[key]);
|
||||
}
|
||||
} else {
|
||||
@@ -2415,7 +2416,7 @@ function handleFlatJson(obj) {
|
||||
}
|
||||
currentObj[subKeys[lastIndex]] = obj[key];
|
||||
delete obj[key];
|
||||
if (isObject$2(currentObj[subKeys[lastIndex]])) {
|
||||
if (isObject$3(currentObj[subKeys[lastIndex]])) {
|
||||
handleFlatJson(currentObj[subKeys[lastIndex]]);
|
||||
}
|
||||
}
|
||||
@@ -2454,8 +2455,8 @@ function normalizeNamed(pluralIndex, props) {
|
||||
function createMessageContext(options = {}) {
|
||||
const locale = options.locale;
|
||||
const pluralIndex = getPluralIndex(options);
|
||||
const pluralRule = isObject$3(options.pluralRules) && isString$1(locale) && isFunction$3(options.pluralRules[locale]) ? options.pluralRules[locale] : pluralDefault;
|
||||
const orgPluralRule = isObject$3(options.pluralRules) && isString$1(locale) && isFunction$3(options.pluralRules[locale]) ? pluralDefault : void 0;
|
||||
const pluralRule = isObject$4(options.pluralRules) && isString$1(locale) && isFunction$3(options.pluralRules[locale]) ? options.pluralRules[locale] : pluralDefault;
|
||||
const orgPluralRule = isObject$4(options.pluralRules) && isString$1(locale) && isFunction$3(options.pluralRules[locale]) ? pluralDefault : void 0;
|
||||
const plural = (messages2) => messages2[pluralRule(pluralIndex, messages2.length, orgPluralRule)];
|
||||
const _list = options.list || [];
|
||||
const list = (index2) => _list[index2];
|
||||
@@ -2463,7 +2464,7 @@ function createMessageContext(options = {}) {
|
||||
isNumber$2(options.pluralIndex) && normalizeNamed(pluralIndex, _named);
|
||||
const named = (key) => _named[key];
|
||||
function message(key) {
|
||||
const msg2 = isFunction$3(options.messages) ? options.messages(key) : isObject$3(options.messages) ? options.messages[key] : false;
|
||||
const msg2 = isFunction$3(options.messages) ? options.messages(key) : isObject$4(options.messages) ? options.messages[key] : false;
|
||||
return !msg2 ? options.parent ? options.parent.message(key) : DEFAULT_MESSAGE : msg2;
|
||||
}
|
||||
const _modifier = (name) => options.modifiers ? options.modifiers[name] : DEFAULT_MODIFIER;
|
||||
@@ -3727,9 +3728,9 @@ function createCoreContext(options = {}) {
|
||||
const messageCompiler = isFunction$3(options.messageCompiler) ? options.messageCompiler : _compiler;
|
||||
const onWarn = isFunction$3(options.onWarn) ? options.onWarn : warn;
|
||||
const internalOptions = options;
|
||||
const __datetimeFormatters = isObject$3(internalOptions.__datetimeFormatters) ? internalOptions.__datetimeFormatters : /* @__PURE__ */ new Map();
|
||||
const __numberFormatters = isObject$3(internalOptions.__numberFormatters) ? internalOptions.__numberFormatters : /* @__PURE__ */ new Map();
|
||||
const __meta = isObject$3(internalOptions.__meta) ? internalOptions.__meta : {};
|
||||
const __datetimeFormatters = isObject$4(internalOptions.__datetimeFormatters) ? internalOptions.__datetimeFormatters : /* @__PURE__ */ new Map();
|
||||
const __numberFormatters = isObject$4(internalOptions.__numberFormatters) ? internalOptions.__numberFormatters : /* @__PURE__ */ new Map();
|
||||
const __meta = isObject$4(internalOptions.__meta) ? internalOptions.__meta : {};
|
||||
_cid++;
|
||||
const context = {
|
||||
version,
|
||||
@@ -3911,7 +3912,7 @@ function translate(context, ...args) {
|
||||
function escapeParams(options) {
|
||||
if (isArray$1(options.list)) {
|
||||
options.list = options.list.map((item) => isString$1(item) ? escapeHtml(item) : item);
|
||||
} else if (isObject$3(options.named)) {
|
||||
} else if (isObject$4(options.named)) {
|
||||
Object.keys(options.named).forEach((key) => {
|
||||
if (isString$1(options.named[key])) {
|
||||
options.named[key] = escapeHtml(options.named[key]);
|
||||
@@ -4254,7 +4255,7 @@ function getLocaleMessages(locale, options) {
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
const isNotObjectOrIsArray = (val) => !isObject$3(val) || isArray$1(val);
|
||||
const isNotObjectOrIsArray = (val) => !isObject$4(val) || isArray$1(val);
|
||||
function deepCopy(src, des) {
|
||||
if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) {
|
||||
throw createI18nError(20);
|
||||
@@ -4395,7 +4396,7 @@ function createComposer(options = {}) {
|
||||
}
|
||||
function rt(...args) {
|
||||
const [arg1, arg2, arg3] = args;
|
||||
if (arg3 && !isObject$3(arg3)) {
|
||||
if (arg3 && !isObject$4(arg3)) {
|
||||
throw createI18nError(15);
|
||||
}
|
||||
return t(...[arg1, arg2, assign$1({ resolvedMessage: true }, arg3 || {})]);
|
||||
@@ -4932,7 +4933,7 @@ const Translation = {
|
||||
const arg = getInterpolateArg(context, keys2);
|
||||
const children = i18n2[TransrateVNodeSymbol](props.keypath, arg, options);
|
||||
const assignedAttrs = assign$1({}, attrs);
|
||||
return isString$1(props.tag) ? h(props.tag, assignedAttrs, children) : isObject$3(props.tag) ? h(props.tag, assignedAttrs, children) : h(Fragment, assignedAttrs, children);
|
||||
return isString$1(props.tag) ? h(props.tag, assignedAttrs, children) : isObject$4(props.tag) ? h(props.tag, assignedAttrs, children) : h(Fragment, assignedAttrs, children);
|
||||
};
|
||||
}
|
||||
};
|
||||
@@ -4959,7 +4960,7 @@ function renderFormatter(props, context, slotKeys, partFormatter) {
|
||||
}
|
||||
if (isString$1(props.format)) {
|
||||
options.key = props.format;
|
||||
} else if (isObject$3(props.format)) {
|
||||
} else if (isObject$4(props.format)) {
|
||||
if (isString$1(props.format.key)) {
|
||||
options.key = props.format.key;
|
||||
}
|
||||
@@ -4978,7 +4979,7 @@ function renderFormatter(props, context, slotKeys, partFormatter) {
|
||||
children = [parts];
|
||||
}
|
||||
const assignedAttrs = assign$1({}, attrs);
|
||||
return isString$1(props.tag) ? h(props.tag, assignedAttrs, children) : isObject$3(props.tag) ? h(props.tag, assignedAttrs, children) : h(Fragment, assignedAttrs, children);
|
||||
return isString$1(props.tag) ? h(props.tag, assignedAttrs, children) : isObject$4(props.tag) ? h(props.tag, assignedAttrs, children) : h(Fragment, assignedAttrs, children);
|
||||
};
|
||||
}
|
||||
const NUMBER_FORMAT_KEYS = [
|
||||
@@ -5254,7 +5255,7 @@ function useI18n$1(options = {}) {
|
||||
const global2 = i18n2.mode === "composition" ? i18n2.global : i18n2.global.__composer;
|
||||
const scope = isEmptyObject(options) ? "__i18n" in instance.type ? "local" : "global" : !options.useScope ? "local" : options.useScope;
|
||||
if (scope === "global") {
|
||||
let messages2 = isObject$3(options.messages) ? options.messages : {};
|
||||
let messages2 = isObject$4(options.messages) ? options.messages : {};
|
||||
if ("__i18nGlobal" in instance.type) {
|
||||
messages2 = getLocaleMessages(global2.locale.value, {
|
||||
messages: messages2,
|
||||
@@ -5267,7 +5268,7 @@ function useI18n$1(options = {}) {
|
||||
global2.mergeLocaleMessage(locale, messages2[locale]);
|
||||
});
|
||||
}
|
||||
if (isObject$3(options.datetimeFormats)) {
|
||||
if (isObject$4(options.datetimeFormats)) {
|
||||
const locales2 = Object.keys(options.datetimeFormats);
|
||||
if (locales2.length) {
|
||||
locales2.forEach((locale) => {
|
||||
@@ -5275,7 +5276,7 @@ function useI18n$1(options = {}) {
|
||||
});
|
||||
}
|
||||
}
|
||||
if (isObject$3(options.numberFormats)) {
|
||||
if (isObject$4(options.numberFormats)) {
|
||||
const locales2 = Object.keys(options.numberFormats);
|
||||
if (locales2.length) {
|
||||
locales2.forEach((locale) => {
|
||||
@@ -10223,16 +10224,16 @@ const component$1d = withInstall(_sfc_main$2W);
|
||||
var index$V = /* @__PURE__ */ (() => ".layui-dropdown{position:relative;display:inline-block}.layui-dropdown-content{position:absolute;z-index:99999;background-color:#fff;box-sizing:border-box;border:1px solid #e4e7ed;border-radius:2px;box-shadow:0 2px 12px #0000001a}.layui-dropdown-content>.layui-dropdown-menu{border-radius:var(--global-border-radius);margin:5px 0}.layui-dropdown-content .layui-menu{position:relative;background-color:#fff}.layui-dropdown-content .layui-menu li,.layui-dropdown-content .layui-menu-body-title a{padding:5px 15px}.layui-dropdown-content .layui-menu li{position:relative;display:flex;margin:1px 0;line-height:26px;color:#000c;font-size:14px;white-space:nowrap;cursor:pointer}.layui-dropdown-content .layui-menu li:hover{background-color:var(--global-neutral-color-2)}.layui-dropdown-content .layui-menu-body-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-dropdown-menu-prefix{margin-right:8px}.layui-dropdown-menu-suffix{margin-left:15px}.layui-dropdown-content .layui-menu li.layui-disabled:hover{background-color:inherit}:root{--icon-picker-border-radius: var(--global-border-radius);--icon-picker-checked-color: var(--global-checked-color)}.layui-iconpicker{position:relative;height:38px;line-height:38px;border-width:1px;border-style:solid;border-radius:var(--icon-picker-border-radius);cursor:pointer}.layui-iconpicker .layui-inline{height:36px;line-height:36px;vertical-align:top}.layui-iconpicker-title{padding-left:5px}.layui-iconpicker-main{padding:0 10px}.layui-iconpicker-main .layui-icon{font-size:20px}.layui-iconpicker-main .layui-inline{vertical-align:top}.layui-iconpicker-split .layui-iconpicker-main{padding:0 15px;border-right-width:1px;border-right-style:solid}.layui-iconpicker-suffix{position:relative;width:35px;text-align:center}.layui-iconpicker-suffix .layui-icon{font-size:14px;color:#00000080;transition:all .3s;display:inline-block}.layui-iconpicker-down .layui-iconpicker-suffix .layui-icon-down{transform:rotate(180deg)}.layui-iconpicker-search{padding:10px;box-shadow:0 2px 8px #f0f1f2;border-bottom:1px solid whitesmoke}.layui-iconpicker-list{width:321px}.layui-iconpicker-list ul{margin:6px}.layui-iconpicker-list li{vertical-align:top;display:inline-block;width:60px;margin:2.5px;padding:5px;overflow:hidden;border:1px solid #eee;border-radius:2px;cursor:pointer;text-align:center}.layui-iconpicker-list li:hover{background-color:var(--global-neutral-color-1);color:#00000080}.layui-iconpicker-list li.layui-this{border-color:var(--icon-picker-checked-color);color:var(--icon-picker-checked-color)}.layui-iconpicker-list li .layui-icon{font-size:20px}.layui-iconpicker-list li .layui-elip{margin-top:2px;line-height:20px;font-size:12px}.layui-iconpicker-list .layui-none{margin:30px 0 35px}.layui-iconpicker-scroll .layui-iconpicker-list{max-height:200px}.layui-iconpicker-page{position:relative;padding:10px 10px 5px;border-top:1px solid #eee;text-align:right}.layui-iconpicker-page .layui-laypage{margin:0}.layui-iconpicker-page .layui-laypage a,.layui-iconpicker-page .layui-laypage span{padding:0 10px;color:#666}.layui-iconpicker-page .layui-laypage-count{position:absolute;left:10px}.layui-iconpicker-page .layui-laypage-curr .layui-laypage-em{background:0 0}.layui-iconpicker-page .layui-laypage-curr em{color:#666;color:#0009}.layui-iconpicker-page .layui-laypage-first,.layui-iconpicker-page .layui-laypage-last,.layui-iconpicker-page .layui-laypage-spr{display:none}.layui-icon-picker-clear{color:#00000073;padding:0 0 0 10px}.layui-icon-picker-clear:hover,.layui-colorpicker-disabled{opacity:.6}.layui-colorpicker-disabled,.layui-colorpicker-disabled *{cursor:not-allowed!important}.transform{transform:rotate(180deg)}\n")();
|
||||
var index$U = /* @__PURE__ */ (() => ".layui-dropdown{position:relative;display:inline-block}.layui-dropdown-content{position:absolute;z-index:99999;background-color:#fff;box-sizing:border-box;border:1px solid #e4e7ed;border-radius:2px;box-shadow:0 2px 12px #0000001a}.layui-dropdown-content>.layui-dropdown-menu{border-radius:var(--global-border-radius);margin:5px 0}.layui-dropdown-content .layui-menu{position:relative;background-color:#fff}.layui-dropdown-content .layui-menu li,.layui-dropdown-content .layui-menu-body-title a{padding:5px 15px}.layui-dropdown-content .layui-menu li{position:relative;display:flex;margin:1px 0;line-height:26px;color:#000c;font-size:14px;white-space:nowrap;cursor:pointer}.layui-dropdown-content .layui-menu li:hover{background-color:var(--global-neutral-color-2)}.layui-dropdown-content .layui-menu-body-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-dropdown-menu-prefix{margin-right:8px}.layui-dropdown-menu-suffix{margin-left:15px}.layui-dropdown-content .layui-menu li.layui-disabled:hover{background-color:inherit}\n")();
|
||||
var _a$1;
|
||||
const isClient = typeof window !== "undefined";
|
||||
const toString = Object.prototype.toString;
|
||||
const isClient$1 = typeof window !== "undefined";
|
||||
const toString$1 = Object.prototype.toString;
|
||||
const isFunction$2 = (val) => typeof val === "function";
|
||||
const isNumber$1 = (val) => typeof val === "number";
|
||||
const isString = (val) => typeof val === "string";
|
||||
const isObject$1 = (val) => toString.call(val) === "[object Object]";
|
||||
const isObject$2 = (val) => toString$1.call(val) === "[object Object]";
|
||||
const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
||||
const noop = () => {
|
||||
};
|
||||
isClient && ((_a$1 = window == null ? void 0 : window.navigator) == null ? void 0 : _a$1.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
||||
isClient$1 && ((_a$1 = window == null ? void 0 : window.navigator) == null ? void 0 : _a$1.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
||||
function resolveUnref(r) {
|
||||
return typeof r === "function" ? r() : unref(r);
|
||||
}
|
||||
@@ -10364,7 +10365,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
||||
}
|
||||
if (immediate) {
|
||||
isPending.value = true;
|
||||
if (isClient)
|
||||
if (isClient$1)
|
||||
start();
|
||||
}
|
||||
tryOnScopeDispose(stop);
|
||||
@@ -10379,7 +10380,7 @@ function unrefElement(elRef) {
|
||||
const plain = resolveUnref(elRef);
|
||||
return (_a2 = plain == null ? void 0 : plain.$el) != null ? _a2 : plain;
|
||||
}
|
||||
const defaultWindow = isClient ? window : void 0;
|
||||
const defaultWindow = isClient$1 ? window : void 0;
|
||||
function useEventListener(...args) {
|
||||
let target;
|
||||
let event;
|
||||
@@ -12778,6 +12779,11 @@ const _sfc_main$1e = defineComponent({
|
||||
}
|
||||
});
|
||||
const component$X = withInstall(_sfc_main$1e);
|
||||
var _a;
|
||||
const isClient = typeof window !== "undefined";
|
||||
const toString = Object.prototype.toString;
|
||||
const isObject$1 = (val) => toString.call(val) === "[object Object]";
|
||||
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
||||
var index$D = /* @__PURE__ */ (() => ":root{--textarea-border-radius: var(--global-border-radius);--textarea-border-color: var(--global-neutral-color-3)}.layui-textarea{border-width:1px;border-style:solid;background-color:#fff;color:#000000d9;border-radius:var(--textarea-border-radius);border-color:var(--textarea-border-color);display:block;width:100%;height:auto;line-height:20px;min-height:100px;padding:6px 10px;resize:vertical;position:relative;transition:none;-webkit-transition:none}.layui-textarea-wrapper{position:relative}.layui-textarea:hover,.layui-textarea:focus{border-color:#d2d2d2!important}.layui-textarea-clear{position:absolute;color:#00000073;right:10px;top:10px}.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-texterea-count{color:inherit;white-space:nowrap;pointer-events:none;text-align:right;margin-top:4px}.layui-textarea-disabled{cursor:not-allowed!important;opacity:.6}\n")();
|
||||
const _hoisted_1$R = { class: "layui-textarea-wrapper" };
|
||||
const _hoisted_2$J = ["value", "placeholder", "name", "disabled", "maxlength"];
|
||||
@@ -15440,7 +15446,7 @@ const _sfc_main$V = defineComponent({
|
||||
}
|
||||
]);
|
||||
const normalizedTagData = (value) => value.map((item) => {
|
||||
if (isObject$1(item))
|
||||
if (isObject$2(item))
|
||||
return item;
|
||||
return {
|
||||
value: item,
|
||||
@@ -16065,13 +16071,11 @@ function triggerRefValue(ref2, newVal) {
|
||||
}
|
||||
}
|
||||
}
|
||||
var _a;
|
||||
class ComputedRefImpl {
|
||||
constructor(getter, _setter, isReadonly, isSSR) {
|
||||
this._setter = _setter;
|
||||
this.dep = void 0;
|
||||
this.__v_isRef = true;
|
||||
this[_a] = false;
|
||||
this._dirty = true;
|
||||
this.effect = new ReactiveEffect(getter, () => {
|
||||
if (!this._dirty) {
|
||||
@@ -16096,7 +16100,6 @@ class ComputedRefImpl {
|
||||
this._setter(newValue);
|
||||
}
|
||||
}
|
||||
_a = "__v_isReadonly";
|
||||
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
||||
let getter;
|
||||
let setter;
|
||||
@@ -45963,7 +45966,6 @@ const _sfc_main$8 = defineComponent({
|
||||
if (dropdownRef.value)
|
||||
dropdownRef.value.hide();
|
||||
$emits("update:modelValue", dateValue.value);
|
||||
$emits("change", dateValue.value);
|
||||
};
|
||||
provide("datePicker", {
|
||||
currentYear,
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./es/index.js"
|
||||
"import": "./es/index.js",
|
||||
"types": "./types/index.d.ts"
|
||||
},
|
||||
"./lib/": "./lib/",
|
||||
"./es/": "./es/"
|
||||
@@ -35,7 +36,7 @@
|
||||
"dependencies": {
|
||||
"@ctrl/tinycolor": "^3.4.1",
|
||||
"@layui/icons-vue": "^1.0.9",
|
||||
"@layui/layer-vue": "git+https://git.theluyuan.com/luyuan/layui-layer.git",
|
||||
"@layui/layer-vue": "file:../layer",
|
||||
"@layui/layui-vue": "file:",
|
||||
"@umijs/ssr-darkreader": "^4.9.45",
|
||||
"@vueuse/core": "^9.2.0",
|
||||
|
||||
@@ -27,9 +27,9 @@ export default (): UserConfigExport => {
|
||||
},
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_console: false,
|
||||
drop_debugger: true,
|
||||
pure_funcs: ["console.log"],
|
||||
pure_funcs: [],
|
||||
},
|
||||
output: {
|
||||
comments: true,
|
||||
|
||||
@@ -77,9 +77,9 @@ export default (): UserConfigExport => {
|
||||
},
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_console: false,
|
||||
drop_debugger: true,
|
||||
pure_funcs: ["console.log"],
|
||||
pure_funcs: [],
|
||||
},
|
||||
output: {
|
||||
comments: true,
|
||||
|
||||
@@ -27,9 +27,9 @@ export default (): UserConfigExport => {
|
||||
},
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_console: false,
|
||||
drop_debugger: true,
|
||||
pure_funcs: ["console.log"],
|
||||
pure_funcs: [],
|
||||
},
|
||||
output: {
|
||||
comments: true,
|
||||
|
||||
@@ -396,7 +396,6 @@ const onChange = () => {
|
||||
// @ts-ignore
|
||||
dropdownRef.value.hide();
|
||||
$emits("update:modelValue", dateValue.value);
|
||||
$emits("change", dateValue.value);
|
||||
};
|
||||
|
||||
provide("datePicker", {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -8,6 +8,9 @@ export default defineConfig({
|
||||
"/@src": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 3005,
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
|
||||
@@ -22,9 +22,9 @@ export default defineConfig({
|
||||
},
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_console: false,
|
||||
drop_debugger: true,
|
||||
pure_funcs: ["console.log"],
|
||||
pure_funcs: [],
|
||||
},
|
||||
output: {
|
||||
comments: true,
|
||||
|
||||
@@ -947,10 +947,11 @@ function calculateContent(title2, height, btn, type, isMessage) {
|
||||
if (height && height.indexOf("%") != -1) {
|
||||
height = "100%";
|
||||
}
|
||||
console.log("btn", height + "px");
|
||||
if (btn && btn.length > 0) {
|
||||
if (type == 0) {
|
||||
if (title2) {
|
||||
return "calc(" + height + " - 137px)";
|
||||
return "calc(" + height + " - 135px)";
|
||||
} else {
|
||||
return "calc(" + height + " - 86px)";
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -142,10 +142,11 @@ export function calculateContent(
|
||||
if (height && height.indexOf("%") != -1) {
|
||||
height = "100%";
|
||||
}
|
||||
console.log("btn", height + "px");
|
||||
if (btn && btn.length > 0) {
|
||||
if (type == 0) {
|
||||
if (title) {
|
||||
return "calc(" + height + " - 137px)";
|
||||
return "calc(" + height + " - 135px)";
|
||||
} else {
|
||||
return "calc(" + height + " - 86px)";
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ export default defineConfig({
|
||||
},
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_console: false,
|
||||
drop_debugger: true,
|
||||
pure_funcs: ["console.log"],
|
||||
pure_funcs: [],
|
||||
},
|
||||
output: {
|
||||
comments: true,
|
||||
|
||||
49
pnpm-lock.yaml
generated
49
pnpm-lock.yaml
generated
@@ -118,11 +118,11 @@ importers:
|
||||
specifier: ^1.0.9
|
||||
version: 1.1.0
|
||||
'@layui/layer-vue':
|
||||
specifier: git+https://git.theluyuan.com/luyuan/layui-layer.git
|
||||
version: git+https://git.theluyuan.com/luyuan/layui-layer.git#9a33139a88a82285754ff8005675378713a2e524
|
||||
specifier: git+https://git.theluyuan.com/theluyuan/layui-layer.git
|
||||
version: git+https://git.theluyuan.com/theluyuan/layui-layer.git#e35e9d8eb94e9cb2985b00830a3ed6cd20509127(vue@3.2.40)
|
||||
'@layui/layui-vue':
|
||||
specifier: 'file:'
|
||||
version: 'link:'
|
||||
version: file:package/component(vue@3.2.40)
|
||||
'@umijs/ssr-darkreader':
|
||||
specifier: ^4.9.45
|
||||
version: 4.9.45
|
||||
@@ -1099,10 +1099,17 @@ packages:
|
||||
'@layui/icons-vue@1.1.0':
|
||||
resolution: {integrity: sha512-ndc53qyUZSslUkO8ZHeBMh6i4gSTtAUqsPpKQZWML0JH6E/X3LIySe6LATeqEMmD7wWSnHJ+WBVGO4ij85Dk1g==}
|
||||
|
||||
'@layui/layer-vue@git+https://git.theluyuan.com/luyuan/layui-layer.git#9a33139a88a82285754ff8005675378713a2e524':
|
||||
resolution: {commit: 9a33139a88a82285754ff8005675378713a2e524, repo: https://git.theluyuan.com/luyuan/layui-layer.git, type: git}
|
||||
'@layui/layer-vue@git+https://git.theluyuan.com/theluyuan/layui-layer.git#4148c78700b236c67e229fc7938e133d1490fb06':
|
||||
resolution: {commit: 4148c78700b236c67e229fc7938e133d1490fb06, repo: https://git.theluyuan.com/theluyuan/layui-layer.git, type: git}
|
||||
version: 1.4.7
|
||||
|
||||
'@layui/layer-vue@git+https://git.theluyuan.com/theluyuan/layui-layer.git#e35e9d8eb94e9cb2985b00830a3ed6cd20509127':
|
||||
resolution: {commit: e35e9d8eb94e9cb2985b00830a3ed6cd20509127, repo: https://git.theluyuan.com/theluyuan/layui-layer.git, type: git}
|
||||
version: 1.4.7
|
||||
|
||||
'@layui/layui-vue@file:package/component':
|
||||
resolution: {directory: package/component, type: directory}
|
||||
|
||||
'@nodelib/fs.scandir@2.1.5':
|
||||
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
|
||||
engines: {node: '>= 8'}
|
||||
@@ -4554,7 +4561,37 @@ snapshots:
|
||||
|
||||
'@layui/icons-vue@1.1.0': {}
|
||||
|
||||
'@layui/layer-vue@git+https://git.theluyuan.com/luyuan/layui-layer.git#9a33139a88a82285754ff8005675378713a2e524': {}
|
||||
'@layui/layer-vue@git+https://git.theluyuan.com/theluyuan/layui-layer.git#4148c78700b236c67e229fc7938e133d1490fb06(vue@3.2.40)':
|
||||
dependencies:
|
||||
'@layui/layer-vue': '@layui/layui-vue@file:package/component(vue@3.2.40)'
|
||||
transitivePeerDependencies:
|
||||
- '@vue/composition-api'
|
||||
- vue
|
||||
|
||||
'@layui/layer-vue@git+https://git.theluyuan.com/theluyuan/layui-layer.git#e35e9d8eb94e9cb2985b00830a3ed6cd20509127(vue@3.2.40)':
|
||||
dependencies:
|
||||
'@layui/layer-vue': '@layui/layui-vue@file:package/component(vue@3.2.40)'
|
||||
transitivePeerDependencies:
|
||||
- '@vue/composition-api'
|
||||
- vue
|
||||
|
||||
'@layui/layui-vue@file:package/component(vue@3.2.40)':
|
||||
dependencies:
|
||||
'@ctrl/tinycolor': 3.4.1
|
||||
'@layui/icons-vue': 1.1.0
|
||||
'@layui/layer-vue': git+https://git.theluyuan.com/theluyuan/layui-layer.git#4148c78700b236c67e229fc7938e133d1490fb06(vue@3.2.40)
|
||||
'@umijs/ssr-darkreader': 4.9.45
|
||||
'@vueuse/core': 9.2.0(vue@3.2.40)
|
||||
async-validator: 4.1.1
|
||||
cropperjs: 1.5.12
|
||||
dayjs: 1.11.0
|
||||
evtd: 0.2.3
|
||||
js-image-compressor: 2.0.0
|
||||
vue-i18n: 9.1.10(vue@3.2.40)
|
||||
xlsx: https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz
|
||||
transitivePeerDependencies:
|
||||
- '@vue/composition-api'
|
||||
- vue
|
||||
|
||||
'@nodelib/fs.scandir@2.1.5':
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user