init
This commit is contained in:
5653
.svn/pristine/b7/b7160d0edd936df0830afe0891b8b52139199278.svn-base
Normal file
5653
.svn/pristine/b7/b7160d0edd936df0830afe0891b8b52139199278.svn-base
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,132 @@
|
||||
import { w as withInstall } from "../badge/index2.js";
|
||||
import { defineComponent, inject, openBlock, createBlock, Transition, withCtx, renderSlot, useCssVars, ref, provide, createElementBlock, Fragment, createCommentVNode } from "vue";
|
||||
const __default__$1 = {
|
||||
name: "LayCollapseTransition"
|
||||
};
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
...__default__$1,
|
||||
setup(__props) {
|
||||
const time = inject("time");
|
||||
const elTransition = `${time}s height ease-in-out, ${time}s padding-top ease-in-out, ${time}s padding-bottom ease-in-out`;
|
||||
const beforeEnter = (el) => {
|
||||
el.style.transition = elTransition;
|
||||
if (!el.dataset)
|
||||
el.dataset = {};
|
||||
el.dataset.oldPaddingTop = el.style.paddingTop;
|
||||
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
||||
el.style.height = 0;
|
||||
el.style.paddingTop = 0;
|
||||
el.style.paddingBottom = 0;
|
||||
};
|
||||
const enter = (el) => {
|
||||
el.dataset.oldOverflow = el.style.overflow;
|
||||
if (el.scrollHeight !== 0) {
|
||||
el.style.height = el.scrollHeight + "px";
|
||||
el.style.paddingTop = el.dataset.oldPaddingTop;
|
||||
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
||||
} else {
|
||||
el.style.height = "";
|
||||
el.style.paddingTop = el.dataset.oldPaddingTop;
|
||||
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
||||
}
|
||||
el.style.overflow = "hidden";
|
||||
};
|
||||
const afterEnter = (el) => {
|
||||
el.style.transition = "";
|
||||
el.style.height = "";
|
||||
el.style.overflow = el.dataset.oldOverflow;
|
||||
};
|
||||
const beforeLeave = (el) => {
|
||||
if (!el.dataset)
|
||||
el.dataset = {};
|
||||
el.dataset.oldPaddingTop = el.style.paddingTop;
|
||||
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
||||
el.dataset.oldOverflow = el.style.overflow;
|
||||
var computedStyle = getComputedStyle(el, null);
|
||||
el.style.height = el.scrollHeight - parseInt(computedStyle.paddingTop) - parseInt(computedStyle.paddingBottom) + "px";
|
||||
el.style.overflow = "hidden";
|
||||
};
|
||||
const leave = (el) => {
|
||||
if (el.scrollHeight !== 0) {
|
||||
el.style.transition = elTransition;
|
||||
el.style.height = 0;
|
||||
el.style.paddingTop = 0;
|
||||
el.style.paddingBottom = 0;
|
||||
}
|
||||
};
|
||||
const afterLeave = (el) => {
|
||||
el.style.transition = "";
|
||||
el.style.height = "";
|
||||
el.style.overflow = el.dataset.oldOverflow;
|
||||
el.style.paddingTop = el.dataset.oldPaddingTop;
|
||||
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(Transition, {
|
||||
onBeforeEnter: beforeEnter,
|
||||
onEnter: enter,
|
||||
onAfterEnter: afterEnter,
|
||||
onBeforeLeave: beforeLeave,
|
||||
onLeave: leave,
|
||||
onAfterLeave: afterLeave
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
renderSlot(_ctx.$slots, "default")
|
||||
]),
|
||||
_: 3
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
var fadeTransition_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-to,.fade-leave-from{opacity:1}.fade-enter-active,.fade-leave-active{transition:var(--ee595422)}\n")();
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "fadeTransition",
|
||||
setup(__props) {
|
||||
useCssVars((_ctx) => ({
|
||||
"ee595422": transition.value
|
||||
}));
|
||||
const time = inject("time");
|
||||
const transition = ref(`opacity ${time}s ease`);
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(Transition, { name: "fade" }, {
|
||||
default: withCtx(() => [
|
||||
renderSlot(_ctx.$slots, "default")
|
||||
]),
|
||||
_: 3
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
const __default__ = {
|
||||
name: "LayTransition"
|
||||
};
|
||||
const _sfc_main = defineComponent({
|
||||
...__default__,
|
||||
props: {
|
||||
type: { default: "collapse" },
|
||||
enable: { type: Boolean, default: true },
|
||||
time: { default: 0.3 }
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
provide("time", props.time);
|
||||
return (_ctx, _cache) => {
|
||||
return __props.enable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
||||
__props.type === "collapse" ? (openBlock(), createBlock(_sfc_main$2, { key: 0 }, {
|
||||
default: withCtx(() => [
|
||||
renderSlot(_ctx.$slots, "default")
|
||||
]),
|
||||
_: 3
|
||||
})) : createCommentVNode("", true),
|
||||
__props.type === "fade" ? (openBlock(), createBlock(_sfc_main$1, { key: 1 }, {
|
||||
default: withCtx(() => [
|
||||
renderSlot(_ctx.$slots, "default")
|
||||
]),
|
||||
_: 3
|
||||
})) : createCommentVNode("", true)
|
||||
], 64)) : renderSlot(_ctx.$slots, "default", { key: 1 });
|
||||
};
|
||||
}
|
||||
});
|
||||
const component = withInstall(_sfc_main);
|
||||
export { _sfc_main as _, component as c };
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"module": "esnext",
|
||||
"target": "es2015",
|
||||
"moduleResolution": "Node",
|
||||
"strict": true,
|
||||
"allowJs": true,
|
||||
"resolveJsonModule": true,
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"esModuleInterop": true,
|
||||
"declarationDir": "types",
|
||||
"jsx": "preserve",
|
||||
"lib": ["ESNext","DOM"]
|
||||
},
|
||||
"include": ["src/**/*","shims-vue.d.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "BluetoothIcon",
|
||||
};
|
||||
</script>
|
||||
<script setup lang="ts">
|
||||
import LayIcon from "../component/icon/index";
|
||||
|
||||
const props = defineProps<{
|
||||
color?: string;
|
||||
size?: string;
|
||||
}>();
|
||||
</script>
|
||||
<template>
|
||||
<lay-icon
|
||||
:color="props.color"
|
||||
:size="props.size"
|
||||
type="layui-icon-bluetooth"
|
||||
/>
|
||||
</template>
|
||||
@@ -0,0 +1 @@
|
||||
.layui-footer{box-sizing:border-box}
|
||||
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
import { Ref } from "vue";
|
||||
export declare type DatePickerType = "date" | "datetime" | "year" | "time" | "month";
|
||||
export declare type provideType = {
|
||||
currentYear: Ref;
|
||||
currentMonth: Ref;
|
||||
currentDay: Ref;
|
||||
dateValue: Ref;
|
||||
hms: Ref;
|
||||
type: string;
|
||||
showPanel: Ref;
|
||||
clear: Function;
|
||||
now: Function;
|
||||
ok: Function;
|
||||
range: boolean;
|
||||
rangeValue: {
|
||||
first: string;
|
||||
last: string;
|
||||
hover: string;
|
||||
firstTime: {
|
||||
hh: number;
|
||||
mm: number;
|
||||
ss: number;
|
||||
};
|
||||
lastTime: {
|
||||
hh: number;
|
||||
mm: number;
|
||||
ss: number;
|
||||
};
|
||||
};
|
||||
rangeSeparator: string;
|
||||
simple: boolean;
|
||||
timestamp: boolean;
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
import { w as withInstall } from "../badge/index2.js";
|
||||
import { defineComponent, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
||||
var index = /* @__PURE__ */ (() => ".layui-breadcrumb{font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999}.layui-breadcrumb a:hover{color:var(--global-checked-color)!important}.layui-breadcrumb a:nth-last-child(2){color:#666;font-style:normal}.layui-breadcrumb span:last-child{display:none}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:var(--global-neutral-color-7)}\n")();
|
||||
const _hoisted_1 = { class: "layui-breadcrumb" };
|
||||
const __default__ = {
|
||||
name: "LayBreadcrumb"
|
||||
};
|
||||
const _sfc_main = defineComponent({
|
||||
...__default__,
|
||||
props: {
|
||||
separator: { default: "/" }
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
provide("separator", props.separator);
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createElementBlock("span", _hoisted_1, [
|
||||
renderSlot(_ctx.$slots, "default")
|
||||
]);
|
||||
};
|
||||
}
|
||||
});
|
||||
const component = withInstall(_sfc_main);
|
||||
export { component as default };
|
||||
Reference in New Issue
Block a user