init
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
x<01><>=JAF<><46><15><>K<EFBFBD>T<EFBFBD><54><EFBFBD>x<EFBFBD><78><EFBFBD>\dvf<76>6<EFBFBD><36>P0<13>
|
||||
64<EFBFBD><EFBFBD>dO#<23>^<5E>><3E><><EFBFBD>|<7C>O<>a<EFBFBD>T<EFBFBD>ޞչ<14><>S,<0B>ޡ؞ib<>e<EFBFBD>"ԡ<>أ<EFBFBD>x.<2E>
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,24 @@
|
||||
import { w as withInstall } from "../badge/index2.js";
|
||||
import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
||||
var index = /* @__PURE__ */ (() => ":root{--block-default-color: var(--global-checked-color);--block-border-radius: var(--global-border-radius)}.layui-quote{padding:15px;line-height:1.6;margin-bottom:10px;border-left:5px solid var(--block-default-color);border-radius:var(--block-border-radius);background-color:var(--global-neutral-color-1)}.layui-quote-nm{border-left:5px solid #eee}\n")();
|
||||
const __default__ = {
|
||||
name: "LayQuote"
|
||||
};
|
||||
const _sfc_main = defineComponent({
|
||||
...__default__,
|
||||
props: {
|
||||
type: null
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createElementBlock("div", {
|
||||
class: normalizeClass(["layui-quote", [__props.type ? `layui-quote-${props.type}` : ""]])
|
||||
}, [
|
||||
renderSlot(_ctx.$slots, "default")
|
||||
], 2);
|
||||
};
|
||||
}
|
||||
});
|
||||
const component = withInstall(_sfc_main);
|
||||
export { component as default };
|
||||
@@ -0,0 +1 @@
|
||||
export declare type InputNumberSize = "lg" | "md" | "sm" | "xs";
|
||||
@@ -0,0 +1,16 @@
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "SurveyIcon",
|
||||
};
|
||||
</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-survey" />
|
||||
</template>
|
||||
Binary file not shown.
@@ -0,0 +1,88 @@
|
||||
<!-- done -->
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "LayButton",
|
||||
};
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import "./index.less";
|
||||
import { computed } from "vue";
|
||||
import {
|
||||
ButtonBorder,
|
||||
ButtonEmits,
|
||||
ButtonNativeType,
|
||||
ButtonSize,
|
||||
ButtonType,
|
||||
} from "./interface";
|
||||
|
||||
export interface ButtonProps {
|
||||
type?: ButtonType;
|
||||
size?: ButtonSize;
|
||||
prefixIcon?: string;
|
||||
suffixIcon?: string;
|
||||
loadingIcon?: string;
|
||||
borderStyle?: string;
|
||||
border?: ButtonBorder;
|
||||
fluid?: boolean;
|
||||
radius?: boolean;
|
||||
loading?: boolean;
|
||||
disabled?: boolean;
|
||||
nativeType?: ButtonNativeType;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<ButtonProps>(), {
|
||||
loadingIcon: "layui-icon-loading-one",
|
||||
borderStyle: "soild",
|
||||
nativeType: "button",
|
||||
loading: false,
|
||||
radius: false,
|
||||
fluid: false,
|
||||
});
|
||||
|
||||
const emits = defineEmits(ButtonEmits);
|
||||
|
||||
const onClick = (event: MouseEvent) => {
|
||||
if (!props.disabled) {
|
||||
emits("click", event);
|
||||
}
|
||||
};
|
||||
|
||||
const styles = computed(() => {
|
||||
return {
|
||||
border: `1px ${props.borderStyle}`,
|
||||
};
|
||||
});
|
||||
|
||||
const classes = computed(() => {
|
||||
return [
|
||||
{
|
||||
"layui-btn-fluid": props.fluid,
|
||||
"layui-btn-radius": props.radius,
|
||||
"layui-btn-disabled": props.disabled,
|
||||
},
|
||||
props.type ? `layui-btn-${props.type}` : "",
|
||||
props.size ? `layui-btn-${props.size}` : "",
|
||||
props.border ? `layui-border-${props.border}` : "",
|
||||
];
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<button
|
||||
class="layui-btn"
|
||||
:class="classes"
|
||||
:style="styles"
|
||||
:type="nativeType"
|
||||
@click="onClick"
|
||||
>
|
||||
<i v-if="prefixIcon" :class="`layui-icon ${prefixIcon}`"></i>
|
||||
<i
|
||||
v-if="loading"
|
||||
:class="loadingIcon"
|
||||
class="layui-icon layui-anim layui-anim-rotate layui-anim-loop"
|
||||
></i>
|
||||
<slot v-else></slot>
|
||||
<i v-if="suffixIcon" :class="`layui-icon ${suffixIcon}`"></i>
|
||||
</button>
|
||||
</template>
|
||||
Binary file not shown.
Reference in New Issue
Block a user