2022-11-15 01:16:55 +00:00
|
|
|
import { w as withInstall } from "../badge/index2.js";
|
|
|
|
import { defineComponent, useSlots, openBlock, createElementBlock, createElementVNode, unref, renderSlot, toDisplayString } from "vue";
|
|
|
|
import { u as useI18n } from "../datePicker/index2.js";
|
|
|
|
import { c as computed } from "../_chunks/@vue/index.js";
|
|
|
|
var _imports_0 = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjYyMHB4IiBoZWlnaHQ9IjIwMHB4IiB2aWV3Qm94PSIwIDAgNjIwIDIwMCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCiAgICA8dGl0bGU+R3JvdXAgMzU8L3RpdGxlPg0KICAgIDxkZWZzPg0KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjEwMCUiIHkxPSIyOC4zODU1MzY1JSIgeDI9IjUwJSIgeTI9IjYwLjEyODI3NjglIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+DQogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjQTNCMUJGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iMCUiPjwvc3RvcD4NCiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNBM0IxQkYiIG9mZnNldD0iMTAwJSI+PC9zdG9wPg0KICAgICAgICA8L2xpbmVhckdyYWRpZW50Pg0KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9Ii0xLjExMDIyMzAyZS0xNCUiIHkxPSI1MCUiIHgyPSIxMDAlIiB5Mj0iNTAlIiBpZD0ibGluZWFyR3JhZGllbnQtMiI+DQogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjQTNCMUJGIiBzdG9wLW9wYWNpdHk9IjAiIG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LDE
|
|
|
|
var index = /* @__PURE__ */ (() => ".layui-empty{margin:0 8px;font-size:14px;line-height:22px;text-align:center}.layui-empty-image{margin-bottom:8px}.layui-empty-image img{height:100px;margin:auto}.layui-empty-description{margin:0}.layui-empty-extra{margin-top:30px}\n")();
|
|
|
|
const _hoisted_1 = { class: "layui-empty" };
|
|
|
|
const _hoisted_2 = { class: "layui-empty-image" };
|
|
|
|
const _hoisted_3 = {
|
|
|
|
key: 1,
|
|
|
|
class: "layui-empty-image-default",
|
|
|
|
src: _imports_0
|
|
|
|
};
|
|
|
|
const _hoisted_4 = { class: "layui-empty-description" };
|
|
|
|
const _hoisted_5 = { class: "layui-empty-extra" };
|
|
|
|
const __default__ = {
|
|
|
|
name: "LayEmpty"
|
|
|
|
};
|
|
|
|
const _sfc_main = defineComponent({
|
|
|
|
...__default__,
|
|
|
|
props: {
|
|
|
|
description: null,
|
|
|
|
image: null
|
|
|
|
},
|
|
|
|
setup(__props) {
|
|
|
|
const props = __props;
|
|
|
|
const { t } = useI18n();
|
|
|
|
const slots = useSlots();
|
2024-10-22 01:09:41 +00:00
|
|
|
const description = computed(
|
|
|
|
() => props.description ? props.description : t("empty.description")
|
|
|
|
);
|
2022-11-15 01:16:55 +00:00
|
|
|
return (_ctx, _cache) => {
|
|
|
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
|
|
createElementVNode("div", _hoisted_2, [
|
|
|
|
unref(slots).image ? renderSlot(_ctx.$slots, "image", { key: 0 }) : (openBlock(), createElementBlock("img", _hoisted_3))
|
|
|
|
]),
|
|
|
|
createElementVNode("div", _hoisted_4, toDisplayString(unref(description)), 1),
|
|
|
|
createElementVNode("div", _hoisted_5, [
|
|
|
|
renderSlot(_ctx.$slots, "extra")
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
const component = withInstall(_sfc_main);
|
|
|
|
export { _sfc_main as _, component as c };
|