add table表格导出
This commit is contained in:
@@ -43,7 +43,7 @@ const _hoisted_10$2 = {
|
||||
key: 1,
|
||||
class: "layui-table-cell-expand-icon-spaced"
|
||||
};
|
||||
const _hoisted_11$1 = { key: 0 };
|
||||
const _hoisted_11$2 = { key: 0 };
|
||||
const _hoisted_12$1 = { key: 1 };
|
||||
const _hoisted_13$1 = {
|
||||
key: 0,
|
||||
@@ -482,7 +482,7 @@ const _sfc_main$3 = defineComponent({
|
||||
_: 2
|
||||
}, 1032, ["content"])) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
||||
column.edit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
||||
!editIndex.value[columnIndex] ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(__props.data[column.key]), 1)) : (openBlock(), createBlock(_component_lay_input, {
|
||||
!editIndex.value[columnIndex] ? (openBlock(), createElementBlock("span", _hoisted_11$2, toDisplayString(__props.data[column.key]), 1)) : (openBlock(), createBlock(_component_lay_input, {
|
||||
key: 1,
|
||||
autofocus: true,
|
||||
modelValue: __props.data[column.key],
|
||||
@@ -645,18 +645,19 @@ const _hoisted_4$1 = /* @__PURE__ */ createElementVNode("i", {
|
||||
class: "layui-icon layui-icon-right",
|
||||
style: { "float": "right" }
|
||||
}, null, -1);
|
||||
const _hoisted_5$1 = {
|
||||
const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("i", { class: "soul-icon soul-icon-download" }, null, -1);
|
||||
const _hoisted_6$1 = {
|
||||
class: "soulbox",
|
||||
style: { "left": "100%", "top": "65px" }
|
||||
};
|
||||
const _hoisted_6$1 = {
|
||||
const _hoisted_7$1 = {
|
||||
class: "check",
|
||||
style: { "min-width": "190px" }
|
||||
};
|
||||
const _hoisted_7$1 = /* @__PURE__ */ createElementVNode("i", { class: "soul-icon" }, "\uE623", -1);
|
||||
const _hoisted_8$1 = /* @__PURE__ */ createElementVNode("i", { class: "soul-icon" }, "\uE63E", -1);
|
||||
const _hoisted_9$1 = /* @__PURE__ */ createElementVNode("i", { class: "soul-icon" }, "\uE614", -1);
|
||||
const _hoisted_10$1 = { style: { "max-height": "300px", "overflow": "auto" } };
|
||||
const _hoisted_8$1 = /* @__PURE__ */ createElementVNode("i", { class: "soul-icon" }, "\uE623", -1);
|
||||
const _hoisted_9$1 = /* @__PURE__ */ createElementVNode("i", { class: "soul-icon" }, "\uE63E", -1);
|
||||
const _hoisted_10$1 = /* @__PURE__ */ createElementVNode("i", { class: "soul-icon" }, "\uE614", -1);
|
||||
const _hoisted_11$1 = { style: { "max-height": "300px", "overflow": "auto" } };
|
||||
const _sfc_main$1 = defineComponent({
|
||||
__name: "soultable",
|
||||
props: {
|
||||
@@ -665,7 +666,7 @@ const _sfc_main$1 = defineComponent({
|
||||
list: { default: [] },
|
||||
soulkey: { default: "" }
|
||||
},
|
||||
emits: ["asc", "desc", "sx"],
|
||||
emits: ["asc", "desc", "sx", "daochu"],
|
||||
setup(__props, { emit }) {
|
||||
const props = __props;
|
||||
function asc(event) {
|
||||
@@ -674,6 +675,9 @@ const _sfc_main$1 = defineComponent({
|
||||
function desc(event) {
|
||||
emit("desc", event);
|
||||
}
|
||||
function daochu() {
|
||||
emit("daochu");
|
||||
}
|
||||
const sel = ref([]);
|
||||
const list = ref([]);
|
||||
const alllist = ref([]);
|
||||
@@ -757,9 +761,18 @@ const _sfc_main$1 = defineComponent({
|
||||
_hoisted_3$1,
|
||||
createTextVNode(" \u7B5B\u9009\u6570\u636E "),
|
||||
_hoisted_4$1
|
||||
], 32)
|
||||
], 32),
|
||||
createElementVNode("li", {
|
||||
onClick: daochu,
|
||||
class: "soul-sort",
|
||||
"data-value": "desc",
|
||||
style: { "border-bottom": "1px solid rgb(230, 230, 230)" }
|
||||
}, [
|
||||
_hoisted_5$1,
|
||||
createTextVNode(" \u5BFC\u51FAexcel ")
|
||||
])
|
||||
]),
|
||||
withDirectives(createElementVNode("div", _hoisted_5$1, [
|
||||
withDirectives(createElementVNode("div", _hoisted_6$1, [
|
||||
createVNode(_sfc_main$8, {
|
||||
"prefix-icon": "layui-icon-search",
|
||||
modelValue: seltext.value,
|
||||
@@ -767,13 +780,13 @@ const _sfc_main$1 = defineComponent({
|
||||
size: "sm",
|
||||
placeholder: "\u5173\u952E\u5B57\u641C\u7D22"
|
||||
}, null, 8, ["modelValue"]),
|
||||
createElementVNode("div", _hoisted_6$1, [
|
||||
createElementVNode("div", _hoisted_7$1, [
|
||||
createElementVNode("div", {
|
||||
class: "multiOption",
|
||||
"data-type": "all",
|
||||
onClick: _cache[2] || (_cache[2] = ($event) => select(1))
|
||||
}, [
|
||||
_hoisted_7$1,
|
||||
_hoisted_8$1,
|
||||
createTextVNode(" \u5168\u9009 ")
|
||||
]),
|
||||
createElementVNode("div", {
|
||||
@@ -781,7 +794,7 @@ const _sfc_main$1 = defineComponent({
|
||||
"data-type": "none",
|
||||
onClick: _cache[3] || (_cache[3] = ($event) => select(2))
|
||||
}, [
|
||||
_hoisted_8$1,
|
||||
_hoisted_9$1,
|
||||
createTextVNode(" \u6E05\u7A7A ")
|
||||
]),
|
||||
createElementVNode("div", {
|
||||
@@ -789,11 +802,11 @@ const _sfc_main$1 = defineComponent({
|
||||
"data-type": "reverse",
|
||||
onClick: _cache[4] || (_cache[4] = ($event) => select(3))
|
||||
}, [
|
||||
_hoisted_9$1,
|
||||
_hoisted_10$1,
|
||||
createTextVNode("\u53CD\u9009 ")
|
||||
])
|
||||
]),
|
||||
createElementVNode("ul", _hoisted_10$1, [
|
||||
createElementVNode("ul", _hoisted_11$1, [
|
||||
createVNode(_sfc_main$9, {
|
||||
modelValue: sel.value,
|
||||
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => sel.value = $event)
|
||||
@@ -1761,6 +1774,7 @@ const _sfc_main = defineComponent({
|
||||
left: soulleft.value,
|
||||
onAsc: asc,
|
||||
onDesc: desc,
|
||||
onDaochu: exportData,
|
||||
list: props.dataSource,
|
||||
soulkey: column.key,
|
||||
onSx: sx
|
||||
|
||||
Reference in New Issue
Block a user