@dou-ui/sheet 0.1.0-alpha.1 → 0.1.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/sheet-menu.js.map +1 -1
- package/dist/components/sheet-menu.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/components/sheet-menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/sheet-toolbar.js.map +1 -1
- package/dist/components/sheet-toolbar.vue_vue_type_script_setup_true_lang.js +50 -61
- package/dist/components/sheet-toolbar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/sheet.js.map +1 -1
- package/dist/sheet.vue_vue_type_script_setup_true_lang.js +5 -0
- package/dist/sheet.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.js +0 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/sheet.vue.d.ts +1 -0
- package/dist/types/types.d.ts +8 -0
- package/package.json +6 -6
|
@@ -12,57 +12,49 @@ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock
|
|
|
12
12
|
import { BaselineIcon, BoldIcon, CellsMergeIcon, ChevronDownIcon, DecimalDecreaseIcon, DecimalIncreaseIcon, DownloadIcon, FilterIcon, ItalicIcon, LinkIcon, PaintBucketIcon, PaletteIcon, RedoIcon, ShieldLockIcon, SortAscendingIcon, SortDescendingIcon, SortIcon, StrikethroughIcon, TableCheckIcon, TableFreezeIcon, TableHighlightIcon, TextAlignCenterIcon, TextAlignLeftIcon, TextAlignRightIcon, TextValignBottomIcon, TextValignMiddleIcon, TextValignTopIcon, TypeXIcon, UnderlineIcon, UndoIcon, UploadIcon, WrapTextIcon } from "@dou-ui/icons";
|
|
13
13
|
// src/components/sheet-toolbar.vue?vue&type=script&setup=true&lang.ts
|
|
14
14
|
var _hoisted_1 = { class: "dou-sheet-toolbar" };
|
|
15
|
-
var _hoisted_2 = {
|
|
16
|
-
var _hoisted_3 = {
|
|
15
|
+
var _hoisted_2 = {
|
|
17
16
|
key: 1,
|
|
18
17
|
class: "dou-sheet-toolbar__text"
|
|
19
18
|
};
|
|
20
|
-
var
|
|
19
|
+
var _hoisted_3 = {
|
|
21
20
|
key: 1,
|
|
22
21
|
class: "dou-sheet-toolbar__text"
|
|
23
22
|
};
|
|
24
|
-
var
|
|
23
|
+
var _hoisted_4 = {
|
|
25
24
|
key: 1,
|
|
26
25
|
class: "dou-sheet-toolbar__text"
|
|
27
26
|
};
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var _hoisted_10 = [
|
|
27
|
+
var _hoisted_5 = { class: "dou-sheet-toolbar__format-label" };
|
|
28
|
+
var _hoisted_6 = { class: "dou-sheet-toolbar__example" };
|
|
29
|
+
var _hoisted_7 = ["aria-label"];
|
|
30
|
+
var _hoisted_8 = [
|
|
33
31
|
"aria-pressed",
|
|
34
32
|
"aria-label",
|
|
35
33
|
"title",
|
|
36
34
|
"onClick"
|
|
37
35
|
];
|
|
38
|
-
var
|
|
36
|
+
var _hoisted_9 = [
|
|
39
37
|
"aria-pressed",
|
|
40
38
|
"aria-label",
|
|
41
39
|
"title",
|
|
42
40
|
"onClick"
|
|
43
41
|
];
|
|
44
|
-
var
|
|
42
|
+
var _hoisted_10 = {
|
|
45
43
|
key: 0,
|
|
46
44
|
"aria-hidden": "true"
|
|
47
45
|
};
|
|
48
|
-
var
|
|
46
|
+
var _hoisted_11 = [
|
|
49
47
|
"aria-pressed",
|
|
50
48
|
"aria-expanded",
|
|
51
49
|
"aria-label",
|
|
52
50
|
"title",
|
|
53
51
|
"onClick"
|
|
54
52
|
];
|
|
55
|
-
var
|
|
53
|
+
var _hoisted_12 = {
|
|
56
54
|
key: 0,
|
|
57
55
|
"aria-hidden": "true"
|
|
58
56
|
};
|
|
59
|
-
var
|
|
60
|
-
var _hoisted_16 = { class: "dou-sheet-toolbar__trigger" };
|
|
61
|
-
var _hoisted_17 = { class: "dou-sheet-toolbar__trigger" };
|
|
62
|
-
var _hoisted_18 = { class: "dou-sheet-toolbar__trigger" };
|
|
63
|
-
var _hoisted_19 = { class: "dou-sheet-toolbar__trigger" };
|
|
64
|
-
var _hoisted_20 = { class: "dou-sheet-toolbar__trigger" };
|
|
65
|
-
var _hoisted_21 = ["accept"];
|
|
57
|
+
var _hoisted_13 = ["accept"];
|
|
66
58
|
var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
67
59
|
name: "DouSheetToolbar",
|
|
68
60
|
__name: "sheet-toolbar",
|
|
@@ -705,10 +697,10 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
705
697
|
return openBlock(), createBlock(unref(DouTooltip), {
|
|
706
698
|
key: item.key,
|
|
707
699
|
content: item.label,
|
|
708
|
-
disabled:
|
|
700
|
+
disabled: !item.icon,
|
|
709
701
|
placement: "bottom"
|
|
710
702
|
}, {
|
|
711
|
-
default: withCtx(() => [
|
|
703
|
+
default: withCtx(() => [createVNode(unref(DouDropdown), {
|
|
712
704
|
open: menuOpen.value === tool,
|
|
713
705
|
placement: "bottom-start",
|
|
714
706
|
disabled: item.disabled,
|
|
@@ -727,6 +719,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
727
719
|
divided: grand.divided,
|
|
728
720
|
tone: grand.tone,
|
|
729
721
|
shortcut: coarse.value ? void 0 : childShortcut(grand),
|
|
722
|
+
description: grand.description,
|
|
730
723
|
onClick: ($event) => runChild(grand)
|
|
731
724
|
}, createSlots({
|
|
732
725
|
default: withCtx(() => [createTextVNode(" " + toDisplayString(childLabel(grand)), 1)]),
|
|
@@ -740,6 +733,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
740
733
|
"divided",
|
|
741
734
|
"tone",
|
|
742
735
|
"shortcut",
|
|
736
|
+
"description",
|
|
743
737
|
"onClick"
|
|
744
738
|
]);
|
|
745
739
|
}), 128))]),
|
|
@@ -750,6 +744,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
750
744
|
divided: child.divided,
|
|
751
745
|
tone: child.tone,
|
|
752
746
|
shortcut: coarse.value ? void 0 : childShortcut(child),
|
|
747
|
+
description: child.description,
|
|
753
748
|
onClick: ($event) => runChild(child)
|
|
754
749
|
}, createSlots({
|
|
755
750
|
default: withCtx(() => [createTextVNode(" " + toDisplayString(childLabel(child)), 1)]),
|
|
@@ -763,6 +758,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
763
758
|
"divided",
|
|
764
759
|
"tone",
|
|
765
760
|
"shortcut",
|
|
761
|
+
"description",
|
|
766
762
|
"onClick"
|
|
767
763
|
]))], 64);
|
|
768
764
|
}), 128))]),
|
|
@@ -772,7 +768,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
772
768
|
"aria-label": item.label
|
|
773
769
|
}, {
|
|
774
770
|
trailing: withCtx(() => [createVNode(unref(ChevronDownIcon))]),
|
|
775
|
-
default: withCtx(() => [item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : (openBlock(), createElementBlock("span",
|
|
771
|
+
default: withCtx(() => [item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(item.label), 1))]),
|
|
776
772
|
_: 2
|
|
777
773
|
}, 1032, ["aria-label"])]),
|
|
778
774
|
_: 2
|
|
@@ -780,7 +776,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
780
776
|
"open",
|
|
781
777
|
"disabled",
|
|
782
778
|
"onUpdate:open"
|
|
783
|
-
])])
|
|
779
|
+
])]),
|
|
784
780
|
_: 2
|
|
785
781
|
}, 1032, ["content", "disabled"]);
|
|
786
782
|
}), 128)) : extras.value.get(tool) ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList([extras.value.get(tool)], (item) => {
|
|
@@ -799,7 +795,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
799
795
|
disabled: item.disabled,
|
|
800
796
|
"onUpdate:pressed": ($event) => runExtra(item)
|
|
801
797
|
}, {
|
|
802
|
-
default: withCtx(() => [item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : (openBlock(), createElementBlock("span",
|
|
798
|
+
default: withCtx(() => [item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(item.label), 1))]),
|
|
803
799
|
_: 2
|
|
804
800
|
}, 1032, [
|
|
805
801
|
"pressed",
|
|
@@ -815,7 +811,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
815
811
|
disabled: item.disabled,
|
|
816
812
|
onClick: ($event) => runExtra(item)
|
|
817
813
|
}, {
|
|
818
|
-
default: withCtx(() => [item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : (openBlock(), createElementBlock("span",
|
|
814
|
+
default: withCtx(() => [item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(item.label), 1))]),
|
|
819
815
|
_: 2
|
|
820
816
|
}, 1032, [
|
|
821
817
|
"aria-label",
|
|
@@ -864,7 +860,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
864
860
|
class: "dou-sheet-toolbar__format-item",
|
|
865
861
|
onClick: ($event) => setFormat(option)
|
|
866
862
|
}, {
|
|
867
|
-
suffix: withCtx(() => [createElementVNode("span",
|
|
863
|
+
suffix: withCtx(() => [createElementVNode("span", _hoisted_6, toDisplayString(exampleOf(option)), 1)]),
|
|
868
864
|
default: withCtx(() => [createTextVNode(toDisplayString(option.label) + " ", 1)]),
|
|
869
865
|
_: 2
|
|
870
866
|
}, 1032, ["value", "onClick"]);
|
|
@@ -877,7 +873,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
877
873
|
"aria-label": `${unref(m).numberFormat}:${formatLabel.value}`
|
|
878
874
|
}, {
|
|
879
875
|
trailing: withCtx(() => [createVNode(unref(ChevronDownIcon))]),
|
|
880
|
-
default: withCtx(() => [createElementVNode("span",
|
|
876
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_5, toDisplayString(formatLabel.value), 1)]),
|
|
881
877
|
_: 1
|
|
882
878
|
}, 8, ["aria-label"])]),
|
|
883
879
|
_: 2
|
|
@@ -930,10 +926,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
930
926
|
}, 1032, ["content", "shortcut"])) : tool === "color" || tool === "fill" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
931
927
|
key: 7,
|
|
932
928
|
content: tool === "color" ? unref(m).textColor : unref(m).fillColor,
|
|
933
|
-
disabled: colorOpen.value === tool,
|
|
934
929
|
placement: "bottom"
|
|
935
930
|
}, {
|
|
936
|
-
default: withCtx(() => [
|
|
931
|
+
default: withCtx(() => [createVNode(unref(DouPopover), {
|
|
937
932
|
open: colorOpen.value === tool,
|
|
938
933
|
placement: "bottom-start",
|
|
939
934
|
disabled: disabled.value,
|
|
@@ -951,7 +946,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
951
946
|
"aria-label": unref(m).colorDefault,
|
|
952
947
|
title: unref(m).colorDefault,
|
|
953
948
|
onClick: ($event) => setColor(tool, {})
|
|
954
|
-
}, null, 10,
|
|
949
|
+
}, null, 10, _hoisted_8),
|
|
955
950
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(TONES), (tone) => {
|
|
956
951
|
return openBlock(), createElementBlock("button", {
|
|
957
952
|
key: tone,
|
|
@@ -961,7 +956,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
961
956
|
"aria-label": toneLabel(tone),
|
|
962
957
|
title: toneLabel(tone),
|
|
963
958
|
onClick: ($event) => setColor(tool, { tone })
|
|
964
|
-
}, [tool === "color" ? (openBlock(), createElementBlock("span",
|
|
959
|
+
}, [tool === "color" ? (openBlock(), createElementBlock("span", _hoisted_10, "A")) : createCommentVNode("", true)], 10, _hoisted_9);
|
|
965
960
|
}), 128)),
|
|
966
961
|
createElementVNode("button", {
|
|
967
962
|
type: "button",
|
|
@@ -972,8 +967,8 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
972
967
|
title: unref(m).colorCustom,
|
|
973
968
|
style: normalizeStyle({ "--dou-sheet-swatch": colorOf(tool).css }),
|
|
974
969
|
onClick: ($event) => openCustom(tool, $event)
|
|
975
|
-
}, [colorOf(tool).css && tool === "color" ? (openBlock(), createElementBlock("span",
|
|
976
|
-
], 8,
|
|
970
|
+
}, [colorOf(tool).css && tool === "color" ? (openBlock(), createElementBlock("span", _hoisted_12, "A")) : !colorOf(tool).css ? (openBlock(), createBlock(unref(PaletteIcon), { key: 1 })) : createCommentVNode("", true)], 14, _hoisted_11)
|
|
971
|
+
], 8, _hoisted_7), custom.value === tool ? (openBlock(), createBlock(unref(DouColorPanel), {
|
|
977
972
|
key: 0,
|
|
978
973
|
modelValue: customColor.value,
|
|
979
974
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => customColor.value = $event),
|
|
@@ -1003,9 +998,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1003
998
|
"open",
|
|
1004
999
|
"disabled",
|
|
1005
1000
|
"onUpdate:open"
|
|
1006
|
-
])])
|
|
1001
|
+
])]),
|
|
1007
1002
|
_: 2
|
|
1008
|
-
}, 1032, ["content"
|
|
1003
|
+
}, 1032, ["content"])) : tool === "align" ? (openBlock(), createBlock(unref(DouToggleGroup), {
|
|
1009
1004
|
key: 8,
|
|
1010
1005
|
type: "single",
|
|
1011
1006
|
"model-value": align.value,
|
|
@@ -1032,10 +1027,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1032
1027
|
}, 8, ["model-value", "disabled"])) : tool === "valign" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1033
1028
|
key: 9,
|
|
1034
1029
|
content: unref(m).verticalAlign,
|
|
1035
|
-
disabled: menuOpen.value === tool,
|
|
1036
1030
|
placement: "bottom"
|
|
1037
1031
|
}, {
|
|
1038
|
-
default: withCtx(() => [
|
|
1032
|
+
default: withCtx(() => [createVNode(unref(DouDropdown), {
|
|
1039
1033
|
open: menuOpen.value === tool,
|
|
1040
1034
|
placement: "bottom-start",
|
|
1041
1035
|
disabled: disabled.value,
|
|
@@ -1074,9 +1068,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1074
1068
|
"open",
|
|
1075
1069
|
"disabled",
|
|
1076
1070
|
"onUpdate:open"
|
|
1077
|
-
])])
|
|
1071
|
+
])]),
|
|
1078
1072
|
_: 2
|
|
1079
|
-
}, 1032, ["content"
|
|
1073
|
+
}, 1032, ["content"])) : tool === "wrap" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1080
1074
|
key: 10,
|
|
1081
1075
|
content: unref(m).wrap,
|
|
1082
1076
|
placement: "bottom"
|
|
@@ -1133,10 +1127,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1133
1127
|
}, 8, ["content"])) : tool === "protect" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1134
1128
|
key: 13,
|
|
1135
1129
|
content: unref(m).protect.menu,
|
|
1136
|
-
disabled: menuOpen.value === tool,
|
|
1137
1130
|
placement: "bottom"
|
|
1138
1131
|
}, {
|
|
1139
|
-
default: withCtx(() => [
|
|
1132
|
+
default: withCtx(() => [createVNode(unref(DouDropdown), {
|
|
1140
1133
|
open: menuOpen.value === tool,
|
|
1141
1134
|
placement: "bottom-start",
|
|
1142
1135
|
disabled: disabled.value,
|
|
@@ -1172,15 +1165,14 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1172
1165
|
"open",
|
|
1173
1166
|
"disabled",
|
|
1174
1167
|
"onUpdate:open"
|
|
1175
|
-
])])
|
|
1168
|
+
])]),
|
|
1176
1169
|
_: 2
|
|
1177
|
-
}, 1032, ["content"
|
|
1170
|
+
}, 1032, ["content"])) : tool === "freeze" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1178
1171
|
key: 14,
|
|
1179
1172
|
content: unref(m).freeze,
|
|
1180
|
-
disabled: menuOpen.value === tool,
|
|
1181
1173
|
placement: "bottom"
|
|
1182
1174
|
}, {
|
|
1183
|
-
default: withCtx(() => [
|
|
1175
|
+
default: withCtx(() => [createVNode(unref(DouDropdown), {
|
|
1184
1176
|
open: menuOpen.value === tool,
|
|
1185
1177
|
placement: "bottom-start",
|
|
1186
1178
|
disabled: disabled.value,
|
|
@@ -1217,15 +1209,14 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1217
1209
|
"open",
|
|
1218
1210
|
"disabled",
|
|
1219
1211
|
"onUpdate:open"
|
|
1220
|
-
])])
|
|
1212
|
+
])]),
|
|
1221
1213
|
_: 2
|
|
1222
|
-
}, 1032, ["content"
|
|
1214
|
+
}, 1032, ["content"])) : tool === "sort" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1223
1215
|
key: 15,
|
|
1224
1216
|
content: unref(m).filter.sort,
|
|
1225
|
-
disabled: menuOpen.value === tool,
|
|
1226
1217
|
placement: "bottom"
|
|
1227
1218
|
}, {
|
|
1228
|
-
default: withCtx(() => [
|
|
1219
|
+
default: withCtx(() => [createVNode(unref(DouDropdown), {
|
|
1229
1220
|
open: menuOpen.value === tool,
|
|
1230
1221
|
placement: "bottom-start",
|
|
1231
1222
|
disabled: disabled.value,
|
|
@@ -1260,9 +1251,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1260
1251
|
"open",
|
|
1261
1252
|
"disabled",
|
|
1262
1253
|
"onUpdate:open"
|
|
1263
|
-
])])
|
|
1254
|
+
])]),
|
|
1264
1255
|
_: 2
|
|
1265
|
-
}, 1032, ["content"
|
|
1256
|
+
}, 1032, ["content"])) : tool === "filter" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1266
1257
|
key: 16,
|
|
1267
1258
|
content: unref(sheet).commands.get("filter")?.label,
|
|
1268
1259
|
placement: "bottom"
|
|
@@ -1284,10 +1275,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1284
1275
|
}, 8, ["content"])) : tool === "conditional" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1285
1276
|
key: 17,
|
|
1286
1277
|
content: unref(m).formats.title,
|
|
1287
|
-
disabled: menuOpen.value === tool,
|
|
1288
1278
|
placement: "bottom"
|
|
1289
1279
|
}, {
|
|
1290
|
-
default: withCtx(() => [
|
|
1280
|
+
default: withCtx(() => [createVNode(unref(DouDropdown), {
|
|
1291
1281
|
open: menuOpen.value === tool,
|
|
1292
1282
|
placement: "bottom-start",
|
|
1293
1283
|
disabled: disabled.value,
|
|
@@ -1386,15 +1376,14 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1386
1376
|
"open",
|
|
1387
1377
|
"disabled",
|
|
1388
1378
|
"onUpdate:open"
|
|
1389
|
-
])])
|
|
1379
|
+
])]),
|
|
1390
1380
|
_: 2
|
|
1391
|
-
}, 1032, ["content"
|
|
1381
|
+
}, 1032, ["content"])) : tool === "export" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1392
1382
|
key: 18,
|
|
1393
1383
|
content: unref(m).file.export,
|
|
1394
|
-
disabled: menuOpen.value === tool,
|
|
1395
1384
|
placement: "bottom"
|
|
1396
1385
|
}, {
|
|
1397
|
-
default: withCtx(() => [
|
|
1386
|
+
default: withCtx(() => [createVNode(unref(DouDropdown), {
|
|
1398
1387
|
open: menuOpen.value === tool,
|
|
1399
1388
|
placement: "bottom-start",
|
|
1400
1389
|
"onUpdate:open": ($event) => onMenu(tool, $event)
|
|
@@ -1440,9 +1429,9 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1440
1429
|
_: 1
|
|
1441
1430
|
}, 8, ["aria-label"])]),
|
|
1442
1431
|
_: 1
|
|
1443
|
-
}, 8, ["open", "onUpdate:open"])])
|
|
1432
|
+
}, 8, ["open", "onUpdate:open"])]),
|
|
1444
1433
|
_: 2
|
|
1445
|
-
}, 1032, ["content"
|
|
1434
|
+
}, 1032, ["content"])) : tool === "import" ? (openBlock(), createBlock(unref(DouTooltip), {
|
|
1446
1435
|
key: 19,
|
|
1447
1436
|
content: unref(m).file.import,
|
|
1448
1437
|
placement: "bottom"
|
|
@@ -1506,7 +1495,7 @@ var sheet_toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
1506
1495
|
"aria-hidden": "true",
|
|
1507
1496
|
onChange: onPicked,
|
|
1508
1497
|
onCancel: onPickCancel
|
|
1509
|
-
}, null, 40,
|
|
1498
|
+
}, null, 40, _hoisted_13),
|
|
1510
1499
|
createVNode(format_dialog_default, {
|
|
1511
1500
|
open: dialogOpen.value,
|
|
1512
1501
|
"onUpdate:open": _cache[12] || (_cache[12] = ($event) => dialogOpen.value = $event),
|