@opendesign-plus-test/components 0.0.1-rc.133 → 0.0.1-rc.134
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +10 -12
- package/dist/components/sig/OSigDetail.vue.d.ts +2 -0
- package/dist/components/sig/OSigList.vue.d.ts +2 -2
- package/dist/components/sig/components/OSigItem.vue.d.ts +4 -1
- package/dist/components/sig/components/OSigRepo.vue.d.ts +2 -0
- package/dist/components/sig/types.d.ts +2 -1
- package/dist/components.cjs.js +37 -37
- package/dist/components.css +1 -1
- package/dist/components.es.js +7113 -7017
- package/dist/treeshaking/_virtual/icon-filter.mjs +5 -6
- package/dist/treeshaking/_virtual/icon-filter2.mjs +21 -0
- package/dist/treeshaking/components/activity/OActivityApproval.css +6 -3
- package/dist/treeshaking/components/activity/OActivityApproval2.css +6 -3
- package/dist/treeshaking/components/activity/OActivityForm.css +6 -3
- package/dist/treeshaking/components/activity/OActivityForm2.css +6 -3
- package/dist/treeshaking/components/activity/OActivityMyCalendar.css +6 -3
- package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +6 -3
- package/dist/treeshaking/components/common/ThFilter.vue.mjs +1 -1
- package/dist/treeshaking/components/common/TooltipText.vue.mjs +2 -3
- package/dist/treeshaking/components/element-plus/OElCookieNotice.css +6 -3
- package/dist/treeshaking/components/element-plus/OElCookieNotice2.css +6 -3
- package/dist/treeshaking/components/meeting/OMeetingCalendar.css +6 -3
- package/dist/treeshaking/components/meeting/OMeetingForm.css +6 -3
- package/dist/treeshaking/components/meeting/OMeetingForm2.css +6 -3
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.css +6 -3
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar2.css +6 -3
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.css +6 -3
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector2.css +6 -3
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.css +6 -3
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles2.css +6 -3
- package/dist/treeshaking/components/sig/OSigDetail.vue.d.ts +2 -0
- package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +13 -10
- package/dist/treeshaking/components/sig/OSigList.css +81 -317
- package/dist/treeshaking/components/sig/OSigList.vue.d.ts +2 -2
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +294 -204
- package/dist/treeshaking/components/sig/components/OSigItem.css +63 -68
- package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +4 -1
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +6 -6
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.d.ts +2 -0
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +3 -2
- package/dist/treeshaking/components/sig/types.d.ts +2 -1
- package/dist/treeshaking/i18n/en.mjs +0 -1
- package/dist/treeshaking/i18n/zh.mjs +0 -1
- package/package.json +1 -1
- package/dist/components/sig/components/config-sig.d.ts +0 -1
- package/dist/treeshaking/components/sig/components/config-sig.d.ts +0 -1
- package/dist/treeshaking/components/sig/components/config-sig.mjs +0 -4
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString, createVNode, withCtx,
|
|
2
|
-
import { ElSelect, ElOption } from "element-plus";
|
|
3
|
-
import "element-plus/es/components/select/style/css";
|
|
4
|
-
import "element-plus/es/components/option/style/css";
|
|
1
|
+
import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, toDisplayString, createVNode, withCtx, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
|
|
5
2
|
import { useDebounceFn, onClickOutside, useThrottleFn } from "@vueuse/core";
|
|
6
3
|
import { useScreen } from "@opendesign-plus/composables";
|
|
7
4
|
import { useI18n } from "../../i18n/index.mjs";
|
|
8
|
-
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, ORow, OCol, OPagination } from "@opensig/opendesign";
|
|
5
|
+
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, OButton, ORow, OCol, OPagination, ODialog } from "@opensig/opendesign";
|
|
9
6
|
import OEmpty from "../empty/OEmpty.vue.mjs";
|
|
10
7
|
import _sfc_main$1 from "./components/OSigItem.vue.mjs";
|
|
11
8
|
import './components/OSigItem.css';
|
|
12
9
|
import IconSearch from "../../_virtual/icon-search.mjs";
|
|
10
|
+
import IconFilter from "../../_virtual/icon-filter.mjs";
|
|
13
11
|
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
14
12
|
const _hoisted_1 = { class: "o-sig-list" };
|
|
15
13
|
const _hoisted_2 = {
|
|
@@ -17,45 +15,50 @@ const _hoisted_2 = {
|
|
|
17
15
|
class: "o-sig-filter-type"
|
|
18
16
|
};
|
|
19
17
|
const _hoisted_3 = { class: "o-sig-filter-title" };
|
|
20
|
-
const _hoisted_4 = {
|
|
21
|
-
|
|
22
|
-
class: "o-sig-filter-input"
|
|
23
|
-
};
|
|
24
|
-
const _hoisted_5 = { class: "o-sig-filter-select-box" };
|
|
25
|
-
const _hoisted_6 = {
|
|
18
|
+
const _hoisted_4 = { class: "o-sig-filter-select-box" };
|
|
19
|
+
const _hoisted_5 = {
|
|
26
20
|
key: 0,
|
|
27
21
|
class: "o-sig-search-data"
|
|
28
22
|
};
|
|
29
|
-
const
|
|
23
|
+
const _hoisted_6 = {
|
|
30
24
|
key: 0,
|
|
31
25
|
class: "o-sig-search-label"
|
|
32
26
|
};
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
27
|
+
const _hoisted_7 = ["onClick"];
|
|
28
|
+
const _hoisted_8 = ["title"];
|
|
29
|
+
const _hoisted_9 = {
|
|
36
30
|
key: 2,
|
|
37
31
|
class: "o-sig-no-result"
|
|
38
32
|
};
|
|
39
|
-
const
|
|
33
|
+
const _hoisted_10 = {
|
|
34
|
+
key: 2,
|
|
35
|
+
class: "o-sig-filter-btn"
|
|
36
|
+
};
|
|
37
|
+
const _hoisted_11 = { class: "o-sig-filter-text" };
|
|
38
|
+
const _hoisted_12 = {
|
|
40
39
|
key: 0,
|
|
41
40
|
class: "o-sig-filter-result-tip"
|
|
42
41
|
};
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
42
|
+
const _hoisted_13 = { key: 0 };
|
|
43
|
+
const _hoisted_14 = { class: "o-sig-num" };
|
|
44
|
+
const _hoisted_15 = {
|
|
46
45
|
key: 0,
|
|
47
46
|
class: "o-sig-num"
|
|
48
47
|
};
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
48
|
+
const _hoisted_16 = { key: 1 };
|
|
49
|
+
const _hoisted_17 = { class: "o-sig-num" };
|
|
50
|
+
const _hoisted_18 = {
|
|
52
51
|
key: 3,
|
|
53
52
|
class: "o-sig-loading"
|
|
54
53
|
};
|
|
55
|
-
const
|
|
54
|
+
const _hoisted_19 = {
|
|
56
55
|
key: 4,
|
|
57
56
|
class: "o-sig-pagination"
|
|
58
57
|
};
|
|
58
|
+
const _hoisted_20 = { class: "o-sig-dialog-title" };
|
|
59
|
+
const _hoisted_21 = { class: "o-sig-dialog-body" };
|
|
60
|
+
const _hoisted_22 = { class: "o-sig-filter-title" };
|
|
61
|
+
const _hoisted_23 = { class: "o-sig-dialog-btn" };
|
|
59
62
|
const PAGE_SIZE_DEFAULT = 10;
|
|
60
63
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
61
64
|
__name: "OSigList",
|
|
@@ -63,14 +66,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
66
|
sigLandscape: { default: () => [] },
|
|
64
67
|
sigList: { default: () => [] },
|
|
65
68
|
searchFn: {},
|
|
66
|
-
|
|
69
|
+
gitBase: { default: "https://atomgit.com/" }
|
|
67
70
|
},
|
|
68
71
|
emits: ["to-sig-detail"],
|
|
69
72
|
setup(__props, { emit: __emit }) {
|
|
70
73
|
const vDompurifyHtml = buildVueDompurifyHTMLDirective();
|
|
71
74
|
const { locale: localeRef, t } = useI18n();
|
|
72
75
|
const locale = computed(() => localeRef.value);
|
|
73
|
-
const { isLaptop, isPadH, lePadV
|
|
76
|
+
const { isLaptop, isPadH, lePadV } = useScreen();
|
|
74
77
|
const COUNT_PER_PAGE = [10, 20, 30];
|
|
75
78
|
const props = __props;
|
|
76
79
|
const emit = __emit;
|
|
@@ -113,13 +116,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
116
|
constructLandscapeMap();
|
|
114
117
|
mergeSigList();
|
|
115
118
|
};
|
|
116
|
-
watch(
|
|
117
|
-
() => [props.sigList, props.sigLandscape],
|
|
118
|
-
() => {
|
|
119
|
-
initData();
|
|
120
|
-
},
|
|
121
|
-
{ immediate: true }
|
|
122
|
-
);
|
|
123
119
|
const searchType = ref("all");
|
|
124
120
|
const placeholderType = ref(t("sig.searchSig"));
|
|
125
121
|
const sigOptions = [
|
|
@@ -221,7 +217,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
221
217
|
const filterSigData = ref([]);
|
|
222
218
|
const filterSearchData = ref([]);
|
|
223
219
|
const filterDataMb = ref([]);
|
|
220
|
+
const filterVisible = ref(false);
|
|
224
221
|
const featureType = ref("all");
|
|
222
|
+
const featureTypeMb = ref("all");
|
|
225
223
|
const matchKw = (text, kw) => !!text && text.toLowerCase().includes(kw);
|
|
226
224
|
watch(
|
|
227
225
|
() => [
|
|
@@ -274,6 +272,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
274
272
|
});
|
|
275
273
|
const clearChecked = (val) => {
|
|
276
274
|
resetSigQuery();
|
|
275
|
+
filterVisible.value = false;
|
|
277
276
|
if (val) {
|
|
278
277
|
nextTick(() => {
|
|
279
278
|
featureType.value = "all";
|
|
@@ -287,6 +286,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
287
286
|
);
|
|
288
287
|
sigQuery.value.page++;
|
|
289
288
|
};
|
|
289
|
+
const resetVersion = () => {
|
|
290
|
+
featureType.value = "all";
|
|
291
|
+
filterVisible.value = false;
|
|
292
|
+
};
|
|
293
|
+
const confirmVersion = () => {
|
|
294
|
+
resetSigQuery();
|
|
295
|
+
filterVisible.value = false;
|
|
296
|
+
featureType.value = featureTypeMb.value;
|
|
297
|
+
};
|
|
290
298
|
const footer = ref(null);
|
|
291
299
|
const listenScroll = () => {
|
|
292
300
|
if (!lePadV.value) return;
|
|
@@ -303,202 +311,284 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
303
311
|
};
|
|
304
312
|
const throttleEvent = useThrottleFn(listenScroll, 300);
|
|
305
313
|
onMounted(() => {
|
|
306
|
-
|
|
314
|
+
initData();
|
|
315
|
+
footer.value = document.querySelector("#app > .footer");
|
|
307
316
|
window.addEventListener("scroll", throttleEvent);
|
|
308
317
|
});
|
|
309
318
|
onUnmounted(() => {
|
|
310
319
|
window.removeEventListener("scroll", throttleEvent);
|
|
311
320
|
});
|
|
312
321
|
return (_ctx, _cache) => {
|
|
313
|
-
return openBlock(), createElementBlock(
|
|
314
|
-
createElementVNode("div",
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
default: withCtx(() => [
|
|
324
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
325
|
-
return openBlock(), createBlock(unref(ORadio), {
|
|
326
|
-
key: option.value,
|
|
327
|
-
value: option.value
|
|
328
|
-
}, {
|
|
329
|
-
radio: withCtx(({ checked }) => [
|
|
330
|
-
createVNode(unref(OToggle), {
|
|
331
|
-
class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
|
|
332
|
-
checked,
|
|
333
|
-
onClick: ($event) => clearChecked(checked)
|
|
334
|
-
}, {
|
|
335
|
-
default: withCtx(() => [
|
|
336
|
-
createTextVNode(toDisplayString(option.label[locale.value]), 1)
|
|
337
|
-
]),
|
|
338
|
-
_: 2
|
|
339
|
-
}, 1032, ["class", "checked", "onClick"])
|
|
340
|
-
]),
|
|
341
|
-
_: 2
|
|
342
|
-
}, 1032, ["value"]);
|
|
343
|
-
}), 128))
|
|
344
|
-
]),
|
|
345
|
-
_: 1
|
|
346
|
-
}, 8, ["modelValue"])
|
|
347
|
-
])) : createCommentVNode("", true),
|
|
348
|
-
unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
349
|
-
createVNode(unref(ElSelect), {
|
|
350
|
-
modelValue: featureType.value,
|
|
351
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => featureType.value = $event),
|
|
352
|
-
filterable: "",
|
|
353
|
-
size: "large",
|
|
354
|
-
placeholder: unref(t)("sig.selectOrSearchCate")
|
|
355
|
-
}, {
|
|
356
|
-
default: withCtx(() => [
|
|
357
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
358
|
-
return openBlock(), createBlock(unref(ElOption), {
|
|
359
|
-
key: option.value,
|
|
360
|
-
label: option.label[locale.value] ?? option.value,
|
|
361
|
-
value: option.value
|
|
362
|
-
}, null, 8, ["label", "value"]);
|
|
363
|
-
}), 128))
|
|
364
|
-
]),
|
|
365
|
-
_: 1
|
|
366
|
-
}, 8, ["modelValue", "placeholder"])
|
|
367
|
-
])) : createCommentVNode("", true),
|
|
368
|
-
createVNode(unref(ODivider), { direction: "h" }),
|
|
369
|
-
createElementVNode("div", _hoisted_5, [
|
|
370
|
-
createElementVNode("div", {
|
|
371
|
-
ref_key: "panelRef",
|
|
372
|
-
ref: panelRef,
|
|
373
|
-
class: normalizeClass(["o-sig-filter-select", { "o-sig-filter-select-focus": showPanel.value }])
|
|
374
|
-
}, [
|
|
375
|
-
createVNode(unref(OSelect), {
|
|
376
|
-
modelValue: searchType.value,
|
|
377
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchType.value = $event),
|
|
378
|
-
size: "large",
|
|
379
|
-
trigger: "click",
|
|
380
|
-
variant: "outline",
|
|
381
|
-
onChange: getSearchType
|
|
322
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
323
|
+
createElementVNode("div", _hoisted_1, [
|
|
324
|
+
createElementVNode("div", {
|
|
325
|
+
class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value}`])
|
|
326
|
+
}, [
|
|
327
|
+
!unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
328
|
+
createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
|
|
329
|
+
createVNode(unref(ORadioGroup), {
|
|
330
|
+
modelValue: featureType.value,
|
|
331
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
|
|
382
332
|
}, {
|
|
383
333
|
default: withCtx(() => [
|
|
384
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
385
|
-
return
|
|
386
|
-
key:
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
334
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
335
|
+
return openBlock(), createBlock(unref(ORadio), {
|
|
336
|
+
key: option.value,
|
|
337
|
+
value: option.value
|
|
338
|
+
}, {
|
|
339
|
+
radio: withCtx(({ checked }) => [
|
|
340
|
+
createVNode(unref(OToggle), {
|
|
341
|
+
class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
|
|
342
|
+
checked,
|
|
343
|
+
onClick: ($event) => clearChecked(checked)
|
|
344
|
+
}, {
|
|
345
|
+
default: withCtx(() => [
|
|
346
|
+
createTextVNode(toDisplayString(option.label[locale.value]), 1)
|
|
347
|
+
]),
|
|
348
|
+
_: 2
|
|
349
|
+
}, 1032, ["class", "checked", "onClick"])
|
|
350
|
+
]),
|
|
351
|
+
_: 2
|
|
352
|
+
}, 1032, ["value"]);
|
|
353
|
+
}), 128))
|
|
391
354
|
]),
|
|
392
355
|
_: 1
|
|
393
|
-
}, 8, ["modelValue"])
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
356
|
+
}, 8, ["modelValue"])
|
|
357
|
+
])) : createCommentVNode("", true),
|
|
358
|
+
!unref(lePadV) ? (openBlock(), createBlock(unref(ODivider), {
|
|
359
|
+
key: 1,
|
|
360
|
+
direction: "h"
|
|
361
|
+
})) : createCommentVNode("", true),
|
|
362
|
+
createElementVNode("div", _hoisted_4, [
|
|
363
|
+
createElementVNode("div", {
|
|
364
|
+
ref_key: "panelRef",
|
|
365
|
+
ref: panelRef,
|
|
366
|
+
class: normalizeClass(["o-sig-filter-select", { "o-sig-filter-select-focus": showPanel.value }])
|
|
367
|
+
}, [
|
|
368
|
+
createVNode(unref(OSelect), {
|
|
369
|
+
modelValue: searchType.value,
|
|
370
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchType.value = $event),
|
|
371
|
+
size: "large",
|
|
372
|
+
trigger: "click",
|
|
373
|
+
variant: "outline",
|
|
374
|
+
onChange: getSearchType
|
|
375
|
+
}, {
|
|
376
|
+
default: withCtx(() => [
|
|
377
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(sigOptions, (item) => {
|
|
378
|
+
return createVNode(unref(OOption), {
|
|
379
|
+
key: item.value,
|
|
380
|
+
label: item.label,
|
|
381
|
+
value: item.value
|
|
382
|
+
}, null, 8, ["label", "value"]);
|
|
383
|
+
}), 64))
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
}, 8, ["modelValue"]),
|
|
387
|
+
createVNode(unref(OInput), {
|
|
388
|
+
modelValue: debounceSig.value,
|
|
389
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => debounceSig.value = $event),
|
|
390
|
+
size: "large",
|
|
391
|
+
clearable: "",
|
|
392
|
+
placeholder: placeholderType.value,
|
|
393
|
+
onFocusCapture: _cache[3] || (_cache[3] = ($event) => showPanel.value = true),
|
|
394
|
+
onPressEnter: changeSearchInput,
|
|
395
|
+
onClear: clearInput
|
|
396
|
+
}, {
|
|
397
|
+
prefix: withCtx(() => [
|
|
398
|
+
createVNode(unref(OIcon), null, {
|
|
399
|
+
default: withCtx(() => [
|
|
400
|
+
createVNode(unref(IconSearch))
|
|
401
|
+
]),
|
|
402
|
+
_: 1
|
|
403
|
+
})
|
|
404
|
+
]),
|
|
405
|
+
_: 1
|
|
406
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
407
|
+
showPanel.value && sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
408
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
|
|
409
|
+
return openBlock(), createElementBlock("div", {
|
|
410
|
+
key: item.id,
|
|
411
|
+
class: "o-sig-search-group"
|
|
412
|
+
}, [
|
|
413
|
+
searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(item.label), 1)) : createCommentVNode("", true),
|
|
414
|
+
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
415
|
+
return openBlock(), createElementBlock("div", {
|
|
416
|
+
key: it.name,
|
|
417
|
+
class: "o-sig-search-item",
|
|
418
|
+
onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
|
|
419
|
+
}, [
|
|
420
|
+
withDirectives(createElementVNode("span", {
|
|
421
|
+
title: stripHtml(it == null ? void 0 : it.name),
|
|
422
|
+
class: "o-sig-search-title"
|
|
423
|
+
}, null, 8, _hoisted_8), [
|
|
424
|
+
[unref(vDompurifyHtml), it == null ? void 0 : it.name]
|
|
425
|
+
])
|
|
426
|
+
], 8, _hoisted_7);
|
|
427
|
+
}), 128)) : (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(unref(t)("sig.noResult")), 1))
|
|
428
|
+
]);
|
|
429
|
+
}), 128))
|
|
430
|
+
])) : createCommentVNode("", true)
|
|
431
|
+
], 2)
|
|
432
|
+
]),
|
|
433
|
+
unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
434
|
+
createVNode(unref(OButton), {
|
|
435
|
+
variant: "text",
|
|
436
|
+
color: "normal",
|
|
437
|
+
class: "o-sig-select-btn",
|
|
438
|
+
onClick: _cache[4] || (_cache[4] = ($event) => filterVisible.value = true)
|
|
403
439
|
}, {
|
|
404
|
-
|
|
440
|
+
default: withCtx(() => [
|
|
405
441
|
createVNode(unref(OIcon), null, {
|
|
406
442
|
default: withCtx(() => [
|
|
407
|
-
createVNode(unref(
|
|
443
|
+
createVNode(unref(IconFilter))
|
|
408
444
|
]),
|
|
409
445
|
_: 1
|
|
410
|
-
})
|
|
446
|
+
}),
|
|
447
|
+
createElementVNode("span", _hoisted_11, toDisplayString(unref(t)("sig.filter")), 1)
|
|
411
448
|
]),
|
|
412
449
|
_: 1
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
gap:
|
|
457
|
-
|
|
458
|
-
|
|
450
|
+
})
|
|
451
|
+
])) : createCommentVNode("", true)
|
|
452
|
+
], 2),
|
|
453
|
+
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
454
|
+
sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
455
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
|
|
456
|
+
createElementVNode("span", _hoisted_14, toDisplayString(filterSearchData.value.length), 1),
|
|
457
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
|
|
458
|
+
locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
|
|
459
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
|
|
460
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
461
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
|
|
462
|
+
createElementVNode("span", _hoisted_17, toDisplayString(filterSearchData.value.length), 1),
|
|
463
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
|
|
464
|
+
]))
|
|
465
|
+
])) : createCommentVNode("", true),
|
|
466
|
+
filterSigData.value.length ? (openBlock(), createBlock(unref(ORow), {
|
|
467
|
+
key: 1,
|
|
468
|
+
gap: gap.value,
|
|
469
|
+
wrap: "wrap",
|
|
470
|
+
class: normalizeClass(["o-sig-card-list", { "o-sig-card-list-tip": featureType.value !== "all" || enterSearchInput.value }])
|
|
471
|
+
}, {
|
|
472
|
+
default: withCtx(() => [
|
|
473
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(filterSigData.value, (sig) => {
|
|
474
|
+
return openBlock(), createBlock(unref(OCol), {
|
|
475
|
+
key: sig.name,
|
|
476
|
+
flex: unref(lePadV) ? "0 0 100%" : "0 0 50%"
|
|
477
|
+
}, {
|
|
478
|
+
default: withCtx(() => [
|
|
479
|
+
createVNode(_sfc_main$1, {
|
|
480
|
+
sig,
|
|
481
|
+
locale: locale.value,
|
|
482
|
+
mobile: unref(lePadV),
|
|
483
|
+
"active-repo": activeRepo.value,
|
|
484
|
+
"git-base": __props.gitBase,
|
|
485
|
+
onToSigDetail: toSigDetail
|
|
486
|
+
}, null, 8, ["sig", "locale", "mobile", "active-repo", "git-base"])
|
|
487
|
+
]),
|
|
488
|
+
_: 2
|
|
489
|
+
}, 1032, ["flex"]);
|
|
490
|
+
}), 128))
|
|
491
|
+
]),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["gap", "class"])) : (openBlock(), createBlock(OEmpty, {
|
|
494
|
+
key: 2,
|
|
495
|
+
style: {
|
|
496
|
+
"margin-top": "40px",
|
|
497
|
+
"--result-image-width": "140px",
|
|
498
|
+
"--result-image-height": "170px"
|
|
499
|
+
}
|
|
500
|
+
})),
|
|
501
|
+
unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", _hoisted_18, toDisplayString(unref(t)("sig.loading")), 1)) : createCommentVNode("", true),
|
|
502
|
+
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
503
|
+
createVNode(unref(OPagination), {
|
|
504
|
+
page: sigQuery.value.page,
|
|
505
|
+
"onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
|
|
506
|
+
"page-size": sigQuery.value.pageSize,
|
|
507
|
+
"onUpdate:pageSize": _cache[6] || (_cache[6] = ($event) => sigQuery.value.pageSize = $event),
|
|
508
|
+
layout: ["total", "pagesize", "pager", "jumper"],
|
|
509
|
+
total: filterSearchData.value.length,
|
|
510
|
+
"page-sizes": COUNT_PER_PAGE,
|
|
511
|
+
"show-more": true
|
|
512
|
+
}, null, 8, ["page", "page-size", "total"])
|
|
513
|
+
])) : createCommentVNode("", true)
|
|
514
|
+
]),
|
|
515
|
+
createVNode(unref(ODialog), {
|
|
516
|
+
visible: filterVisible.value,
|
|
517
|
+
"onUpdate:visible": _cache[8] || (_cache[8] = ($event) => filterVisible.value = $event),
|
|
518
|
+
"phone-half-full": unref(lePadV),
|
|
519
|
+
scrollbar: { showType: "always", size: "small" },
|
|
520
|
+
size: "medium",
|
|
521
|
+
style: { "--dlg-radius": "4px 4px 0 0" },
|
|
522
|
+
class: "o-sig-filter-dialog"
|
|
459
523
|
}, {
|
|
524
|
+
header: withCtx(() => [
|
|
525
|
+
createElementVNode("span", _hoisted_20, toDisplayString(unref(t)("sig.type")), 1)
|
|
526
|
+
]),
|
|
460
527
|
default: withCtx(() => [
|
|
461
|
-
(
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
528
|
+
createElementVNode("div", _hoisted_21, [
|
|
529
|
+
createElementVNode("p", _hoisted_22, toDisplayString(unref(t)("sig.type")), 1),
|
|
530
|
+
createVNode(unref(ORadioGroup), {
|
|
531
|
+
modelValue: featureTypeMb.value,
|
|
532
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => featureTypeMb.value = $event),
|
|
533
|
+
style: { gap: "8px 8px" }
|
|
534
|
+
}, {
|
|
535
|
+
default: withCtx(() => [
|
|
536
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
537
|
+
return openBlock(), createBlock(unref(ORadio), {
|
|
538
|
+
key: option.value,
|
|
539
|
+
value: option.value
|
|
540
|
+
}, {
|
|
541
|
+
radio: withCtx(({ checked }) => [
|
|
542
|
+
createVNode(unref(OToggle), {
|
|
543
|
+
class: normalizeClass({ active: checked }),
|
|
544
|
+
checked,
|
|
545
|
+
style: { "--toggle-size": "28px", "--toggle-padding": "6px 16px", "--toggle-radius": "4px" }
|
|
546
|
+
}, {
|
|
547
|
+
default: withCtx(() => [
|
|
548
|
+
createTextVNode(toDisplayString(option.label[locale.value]), 1)
|
|
549
|
+
]),
|
|
550
|
+
_: 2
|
|
551
|
+
}, 1032, ["class", "checked"])
|
|
552
|
+
]),
|
|
553
|
+
_: 2
|
|
554
|
+
}, 1032, ["value"]);
|
|
555
|
+
}), 128))
|
|
556
|
+
]),
|
|
557
|
+
_: 1
|
|
558
|
+
}, 8, ["modelValue"])
|
|
559
|
+
]),
|
|
560
|
+
createElementVNode("div", _hoisted_23, [
|
|
561
|
+
createVNode(unref(OButton), {
|
|
562
|
+
color: "normal",
|
|
563
|
+
variant: "text",
|
|
564
|
+
size: "large",
|
|
565
|
+
onClick: resetVersion
|
|
465
566
|
}, {
|
|
466
567
|
default: withCtx(() => [
|
|
467
|
-
|
|
468
|
-
sig,
|
|
469
|
-
locale: locale.value,
|
|
470
|
-
mobile: unref(lePadV),
|
|
471
|
-
"active-repo": activeRepo.value,
|
|
472
|
-
onToSigDetail: toSigDetail
|
|
473
|
-
}, null, 8, ["sig", "locale", "mobile", "active-repo"])
|
|
568
|
+
createTextVNode(toDisplayString(unref(t)("common.reset")), 1)
|
|
474
569
|
]),
|
|
475
|
-
_:
|
|
476
|
-
},
|
|
477
|
-
|
|
570
|
+
_: 1
|
|
571
|
+
}),
|
|
572
|
+
createVNode(unref(ODivider), {
|
|
573
|
+
class: "o-sig-dialog-divider",
|
|
574
|
+
direction: "v"
|
|
575
|
+
}),
|
|
576
|
+
createVNode(unref(OButton), {
|
|
577
|
+
color: "normal",
|
|
578
|
+
variant: "text",
|
|
579
|
+
size: "large",
|
|
580
|
+
onClick: confirmVersion
|
|
581
|
+
}, {
|
|
582
|
+
default: withCtx(() => [
|
|
583
|
+
createTextVNode(toDisplayString(unref(t)("common.confirm2")), 1)
|
|
584
|
+
]),
|
|
585
|
+
_: 1
|
|
586
|
+
})
|
|
587
|
+
])
|
|
478
588
|
]),
|
|
479
589
|
_: 1
|
|
480
|
-
}, 8, ["
|
|
481
|
-
|
|
482
|
-
style: {
|
|
483
|
-
"margin-top": "40px",
|
|
484
|
-
"--result-image-width": "140px",
|
|
485
|
-
"--result-image-height": "170px"
|
|
486
|
-
}
|
|
487
|
-
})),
|
|
488
|
-
unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", _hoisted_17, toDisplayString(unref(t)("sig.loading")), 1)) : createCommentVNode("", true),
|
|
489
|
-
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
490
|
-
createVNode(unref(OPagination), {
|
|
491
|
-
page: sigQuery.value.page,
|
|
492
|
-
"onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
|
|
493
|
-
"page-size": sigQuery.value.pageSize,
|
|
494
|
-
"onUpdate:pageSize": _cache[6] || (_cache[6] = ($event) => sigQuery.value.pageSize = $event),
|
|
495
|
-
layout: ["total", "pagesize", "pager", "jumper"],
|
|
496
|
-
total: filterSearchData.value.length,
|
|
497
|
-
"page-sizes": COUNT_PER_PAGE,
|
|
498
|
-
"show-more": true
|
|
499
|
-
}, null, 8, ["page", "page-size", "total"])
|
|
500
|
-
])) : createCommentVNode("", true)
|
|
501
|
-
]);
|
|
590
|
+
}, 8, ["visible", "phone-half-full"])
|
|
591
|
+
], 64);
|
|
502
592
|
};
|
|
503
593
|
}
|
|
504
594
|
});
|