giime 0.0.0-beta.3 → 0.0.0-beta.5
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/es/components/src/base/descriptions/Descriptions.vue.d.ts +4 -0
- package/es/components/src/base/descriptions/Descriptions.vue2.mjs +23 -10
- package/es/components/src/base/descriptions/Descriptions.vue2.mjs.map +1 -1
- package/es/components/src/base/descriptions/index.d.ts +4 -0
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/hooks/store/useLangList/index.d.ts +5 -27
- package/es/hooks/store/useLangList/index.mjs +29 -33
- package/es/hooks/store/useLangList/index.mjs.map +1 -1
- package/es/hooks/store/useLogin/index.d.ts +1 -0
- package/lib/components/src/base/descriptions/Descriptions.vue.d.ts +4 -0
- package/lib/components/src/base/descriptions/Descriptions.vue2.js +22 -9
- package/lib/components/src/base/descriptions/Descriptions.vue2.js.map +1 -1
- package/lib/components/src/base/descriptions/index.d.ts +4 -0
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/hooks/store/useLangList/index.d.ts +5 -27
- package/lib/hooks/store/useLangList/index.js +28 -32
- package/lib/hooks/store/useLangList/index.js.map +1 -1
- package/lib/hooks/store/useLogin/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -36,8 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
36
|
extra: string;
|
|
37
37
|
}, {}>, Readonly<{
|
|
38
38
|
default?(): DescriptionItemVNode[];
|
|
39
|
+
title?(): any;
|
|
40
|
+
extra?(): any;
|
|
39
41
|
}> & {
|
|
40
42
|
default?(): DescriptionItemVNode[];
|
|
43
|
+
title?(): any;
|
|
44
|
+
extra?(): any;
|
|
41
45
|
}>;
|
|
42
46
|
export default _default;
|
|
43
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, unref, createElementBlock, Fragment, renderList,
|
|
1
|
+
import { defineComponent, useSlots, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, unref, createElementBlock, Fragment, renderList, createCommentVNode, createVNode, renderSlot } from 'vue';
|
|
2
2
|
import VNodeRenderer from '../../common/VNodeRenderer.mjs';
|
|
3
3
|
import { descriptionsProps } from './descriptions.mjs';
|
|
4
4
|
|
|
@@ -21,7 +21,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
return openBlock(), createBlock(
|
|
22
22
|
_component_el_descriptions,
|
|
23
23
|
mergeProps({ ref: "elRef" }, props),
|
|
24
|
-
{
|
|
24
|
+
createSlots({
|
|
25
25
|
default: withCtx(() => [
|
|
26
26
|
unref(slots).default ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
27
27
|
(openBlock(true), createElementBlock(
|
|
@@ -58,15 +58,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
128
|
|
59
59
|
/* KEYED_FRAGMENT */
|
|
60
60
|
))
|
|
61
|
-
])) : createCommentVNode("v-if", true)
|
|
62
|
-
createCommentVNode(" slot \u53EF\u4EE5\u5220\u9664\u6389 "),
|
|
63
|
-
renderSlot(_ctx.$slots, "default")
|
|
61
|
+
])) : createCommentVNode("v-if", true)
|
|
64
62
|
]),
|
|
65
|
-
_:
|
|
66
|
-
/*
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
_: 2
|
|
64
|
+
/* DYNAMIC */
|
|
65
|
+
}, [
|
|
66
|
+
unref(slots).title ? {
|
|
67
|
+
name: "title",
|
|
68
|
+
fn: withCtx(() => [
|
|
69
|
+
renderSlot(_ctx.$slots, "title")
|
|
70
|
+
]),
|
|
71
|
+
key: "0"
|
|
72
|
+
} : void 0,
|
|
73
|
+
unref(slots).extra ? {
|
|
74
|
+
name: "extra",
|
|
75
|
+
fn: withCtx(() => [
|
|
76
|
+
renderSlot(_ctx.$slots, "extra")
|
|
77
|
+
]),
|
|
78
|
+
key: "1"
|
|
79
|
+
} : void 0
|
|
80
|
+
]),
|
|
81
|
+
1040
|
|
82
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
70
83
|
);
|
|
71
84
|
};
|
|
72
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Descriptions.vue2.mjs","sources":["../../../../../../../packages/components/src/base/descriptions/Descriptions.vue"],"sourcesContent":["<template>\n <el-descriptions ref=\"elRef\" v-bind=\"props\">\n <template v-if=\"slots.default\">\n <div>\n <el-descriptions-item v-for=\"(item, index) in gmDescriptionsItemList\" :key=\"index\" v-bind=\"item.props\">\n <template v-if=\"item.children\">\n <VNodeRenderer :vnode=\"item.children.default()\" />\n </template>\n <template v-if=\"item.children?.label\" #label>\n <VNodeRenderer :vnode=\"item.children.label()\" />\n </template>\n </el-descriptions-item>\n </div>\n </template>\n
|
|
1
|
+
{"version":3,"file":"Descriptions.vue2.mjs","sources":["../../../../../../../packages/components/src/base/descriptions/Descriptions.vue"],"sourcesContent":["<template>\n <el-descriptions ref=\"elRef\" v-bind=\"props\">\n <template v-if=\"slots.default\">\n <div>\n <el-descriptions-item v-for=\"(item, index) in gmDescriptionsItemList\" :key=\"index\" v-bind=\"item.props\">\n <template v-if=\"item.children\">\n <VNodeRenderer :vnode=\"item.children.default()\" />\n </template>\n <template v-if=\"item.children?.label\" #label>\n <VNodeRenderer :vnode=\"item.children.label()\" />\n </template>\n </el-descriptions-item>\n </div>\n </template>\n <template v-if=\"slots.title\" #title>\n <slot name=\"title\" />\n </template>\n <template v-if=\"slots.extra\" #extra>\n <slot name=\"extra\" />\n </template>\n </el-descriptions>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue';\nimport VNodeRenderer from '../../common/VNodeRenderer';\n// import { getGmEvent } from '@giime/utils';\n// import { descriptionsEmits as elDescriptionsEmits } from 'element-plus';\nimport { descriptionsProps } from './descriptions';\nimport type { Slot, VNode } from 'vue';\n// import type { DescriptionInstance } from 'element-plus';\n\ndefineOptions({\n name: 'GmDescriptions',\n});\ntype DescriptionItemVNode = VNode & {\n children: { [name: string]: Slot } | null;\n};\nconst slots = defineSlots<{\n default?(): DescriptionItemVNode[];\n title?(): any;\n extra?(): any;\n}>();\n// const slots = useSlots();\nconst props = defineProps(descriptionsProps);\nconst gmDescriptionsItemList = computed(() => {\n return slots.default?.().filter((node: any) => node?.type?.name === 'GmDescriptionsItem') ?? [];\n});\n\n// const elRef = ref<DescriptionInstance>();\n\n// defineExpose({\n// elRef,\n// });\n</script>\n"],"names":["_useSlots"],"mappings":";;;;;;;;;;;;AAqCA,IAAA,MAAM,QAAQA;AAMd,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAM,MAAA,sBAAA,GAAyB,SAAS,MAAM;AAC5C,MAAO,OAAA,KAAA,CAAM,OAAU,IAAA,CAAE,MAAO,CAAA,CAAC,IAAc,KAAA,IAAA,EAAM,IAAM,EAAA,IAAA,KAAS,oBAAoB,CAAA,IAAK,EAAC,CAAA;AAAA,KAC/F,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -86,6 +86,8 @@ export declare const GmDescriptions: import("../../../../utils").SFCWithInstall<
|
|
|
86
86
|
[name: string]: import("vue").Slot;
|
|
87
87
|
} | null;
|
|
88
88
|
})[];
|
|
89
|
+
title?(): any;
|
|
90
|
+
extra?(): any;
|
|
89
91
|
}> & {
|
|
90
92
|
default?(): (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
93
|
[key: string]: any;
|
|
@@ -94,6 +96,8 @@ export declare const GmDescriptions: import("../../../../utils").SFCWithInstall<
|
|
|
94
96
|
[name: string]: import("vue").Slot;
|
|
95
97
|
} | null;
|
|
96
98
|
})[];
|
|
99
|
+
title?(): any;
|
|
100
|
+
extra?(): any;
|
|
97
101
|
};
|
|
98
102
|
})> & Record<string, any>;
|
|
99
103
|
export type DescriptionsInstance = InstanceType<typeof Descriptions>;
|
package/es/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.0-beta.
|
|
1
|
+
export declare const version = "0.0.0-beta.5";
|
package/es/giime/version.mjs
CHANGED
package/es/giime/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.0-beta.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.0-beta.5'\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -1,38 +1,16 @@
|
|
|
1
|
+
/// <reference types="@vueuse/shared" />
|
|
2
|
+
import type { GetV1BasicGetLangListResultData } from '../../../api';
|
|
1
3
|
/**语种列表 */
|
|
2
4
|
export declare const useLangListStore: import("pinia").StoreDefinition<"gmLangList", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
-
langList: import("
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
code: string;
|
|
7
|
-
icon: string;
|
|
8
|
-
create_time: string;
|
|
9
|
-
update_time: string;
|
|
10
|
-
trans_code_bd: string;
|
|
11
|
-
}[]>;
|
|
5
|
+
langList: import("@vueuse/shared").RemovableRef<GetV1BasicGetLangListResultData[]>;
|
|
12
6
|
getLangListLoading: import("vue").Ref<boolean>;
|
|
13
7
|
getLangList: () => Promise<void>;
|
|
14
8
|
}, "langList" | "getLangListLoading">>, Pick<{
|
|
15
|
-
langList: import("
|
|
16
|
-
id: number;
|
|
17
|
-
name: string;
|
|
18
|
-
code: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
create_time: string;
|
|
21
|
-
update_time: string;
|
|
22
|
-
trans_code_bd: string;
|
|
23
|
-
}[]>;
|
|
9
|
+
langList: import("@vueuse/shared").RemovableRef<GetV1BasicGetLangListResultData[]>;
|
|
24
10
|
getLangListLoading: import("vue").Ref<boolean>;
|
|
25
11
|
getLangList: () => Promise<void>;
|
|
26
12
|
}, never>, Pick<{
|
|
27
|
-
langList: import("
|
|
28
|
-
id: number;
|
|
29
|
-
name: string;
|
|
30
|
-
code: string;
|
|
31
|
-
icon: string;
|
|
32
|
-
create_time: string;
|
|
33
|
-
update_time: string;
|
|
34
|
-
trans_code_bd: string;
|
|
35
|
-
}[]>;
|
|
13
|
+
langList: import("@vueuse/shared").RemovableRef<GetV1BasicGetLangListResultData[]>;
|
|
36
14
|
getLangListLoading: import("vue").Ref<boolean>;
|
|
37
15
|
getLangList: () => Promise<void>;
|
|
38
16
|
}, "getLangList">>;
|
|
@@ -1,43 +1,39 @@
|
|
|
1
|
-
import { ref } from 'vue';
|
|
1
|
+
import { ref, onMounted } from 'vue';
|
|
2
2
|
import { defineStore } from 'pinia';
|
|
3
3
|
import '../../../api/index.mjs';
|
|
4
|
+
import { useSessionStorage } from '@vueuse/core';
|
|
4
5
|
import { getV1BasicGetLangList } from '../../../api/gstore/controller/JiChuXinXi/getV1BasicGetLangList.mjs';
|
|
5
6
|
|
|
6
|
-
const useLangListStore = defineStore(
|
|
7
|
-
"gmLangList",
|
|
8
|
-
()
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const useLangListStore = defineStore("gmLangList", () => {
|
|
8
|
+
const langList = useSessionStorage("gmLangList", [], { listenToStorageChanges: false });
|
|
9
|
+
const getLangListLoading = ref(false);
|
|
10
|
+
const getLangList = async () => {
|
|
11
|
+
if (langList.value.length !== 0) {
|
|
12
|
+
getLangListLoading.value = false;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
getLangListLoading.value = true;
|
|
17
|
+
const { data } = await getV1BasicGetLangList();
|
|
18
|
+
getLangListLoading.value = false;
|
|
19
|
+
if (data.code !== 200) {
|
|
13
20
|
return;
|
|
14
21
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (data.code !== 200) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
langList.value = data.data;
|
|
23
|
-
} catch (e) {
|
|
24
|
-
console.error(e);
|
|
25
|
-
getLangListLoading.value = false;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
getLangList();
|
|
29
|
-
return {
|
|
30
|
-
langList,
|
|
31
|
-
getLangListLoading,
|
|
32
|
-
getLangList
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
persist: {
|
|
37
|
-
// storage: window.sessionStorage,
|
|
22
|
+
langList.value = data.data;
|
|
23
|
+
} catch (e) {
|
|
24
|
+
console.error(e);
|
|
25
|
+
getLangListLoading.value = false;
|
|
38
26
|
}
|
|
39
|
-
}
|
|
40
|
-
)
|
|
27
|
+
};
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
getLangList();
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
langList,
|
|
33
|
+
getLangListLoading,
|
|
34
|
+
getLangList
|
|
35
|
+
};
|
|
36
|
+
});
|
|
41
37
|
|
|
42
38
|
export { useLangListStore };
|
|
43
39
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/store/useLangList/index.ts"],"sourcesContent":["import { ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { getV1BasicGetLangList } from '@giime/api';\r\nimport type { GetV1BasicGetLangListResultData } from '@giime/api';\r\n// import type { GetV1BasicGetLangListResultData } from '@/api/gstore/controller';\r\n// import { getV1BasicGetLangList } from '@/api/gstore/controller';\r\n\r\n/**语种列表 */\r\nexport const useLangListStore = defineStore(
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/hooks/store/useLangList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { getV1BasicGetLangList } from '@giime/api';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport type { GetV1BasicGetLangListResultData } from '@giime/api';\r\n// import type { GetV1BasicGetLangListResultData } from '@/api/gstore/controller';\r\n// import { getV1BasicGetLangList } from '@/api/gstore/controller';\r\n\r\n/**语种列表 */\r\nexport const useLangListStore = defineStore('gmLangList', () => {\r\n // const langList = ref<GetV1BasicGetLangListResultData[]>([]);\r\n const langList = useSessionStorage<GetV1BasicGetLangListResultData[]>('gmLangList', [], { listenToStorageChanges: false });\r\n\r\n const getLangListLoading = ref(false);\r\n const getLangList = async () => {\r\n if (langList.value.length !== 0) {\r\n getLangListLoading.value = false;\r\n return;\r\n }\r\n try {\r\n getLangListLoading.value = true;\r\n const { data } = await getV1BasicGetLangList();\r\n getLangListLoading.value = false;\r\n if (data.code !== 200) {\r\n return;\r\n }\r\n langList.value = data.data;\r\n } catch (e) {\r\n console.error(e);\r\n getLangListLoading.value = false;\r\n }\r\n };\r\n onMounted(() => {\r\n getLangList();\r\n });\r\n return {\r\n langList,\r\n getLangListLoading,\r\n getLangList,\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AASa,MAAA,gBAAA,GAAmB,WAAY,CAAA,YAAA,EAAc,MAAM;AAE9D,EAAM,MAAA,QAAA,GAAW,kBAAqD,YAAc,EAAA,IAAI,EAAE,sBAAA,EAAwB,OAAO,CAAA,CAAA;AAEzH,EAAM,MAAA,kBAAA,GAAqB,IAAI,KAAK,CAAA,CAAA;AACpC,EAAA,MAAM,cAAc,YAAY;AAC9B,IAAI,IAAA,QAAA,CAAS,KAAM,CAAA,MAAA,KAAW,CAAG,EAAA;AAC/B,MAAA,kBAAA,CAAmB,KAAQ,GAAA,KAAA,CAAA;AAC3B,MAAA,OAAA;AAAA,KACF;AACA,IAAI,IAAA;AACF,MAAA,kBAAA,CAAmB,KAAQ,GAAA,IAAA,CAAA;AAC3B,MAAA,MAAM,EAAE,IAAA,EAAS,GAAA,MAAM,qBAAsB,EAAA,CAAA;AAC7C,MAAA,kBAAA,CAAmB,KAAQ,GAAA,KAAA,CAAA;AAC3B,MAAI,IAAA,IAAA,CAAK,SAAS,GAAK,EAAA;AACrB,QAAA,OAAA;AAAA,OACF;AACA,MAAA,QAAA,CAAS,QAAQ,IAAK,CAAA,IAAA,CAAA;AAAA,aACf,CAAG,EAAA;AACV,MAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,MAAA,kBAAA,CAAmB,KAAQ,GAAA,KAAA,CAAA;AAAA,KAC7B;AAAA,GACF,CAAA;AACA,EAAA,SAAA,CAAU,MAAM;AACd,IAAY,WAAA,EAAA,CAAA;AAAA,GACb,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,QAAA;AAAA,IACA,kBAAA;AAAA,IACA,WAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
|
@@ -36,8 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
36
|
extra: string;
|
|
37
37
|
}, {}>, Readonly<{
|
|
38
38
|
default?(): DescriptionItemVNode[];
|
|
39
|
+
title?(): any;
|
|
40
|
+
extra?(): any;
|
|
39
41
|
}> & {
|
|
40
42
|
default?(): DescriptionItemVNode[];
|
|
43
|
+
title?(): any;
|
|
44
|
+
extra?(): any;
|
|
41
45
|
}>;
|
|
42
46
|
export default _default;
|
|
43
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -25,7 +25,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
25
25
|
return vue.openBlock(), vue.createBlock(
|
|
26
26
|
_component_el_descriptions,
|
|
27
27
|
vue.mergeProps({ ref: "elRef" }, props),
|
|
28
|
-
{
|
|
28
|
+
vue.createSlots({
|
|
29
29
|
default: vue.withCtx(() => [
|
|
30
30
|
vue.unref(slots).default ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
31
31
|
(vue.openBlock(true), vue.createElementBlock(
|
|
@@ -62,15 +62,28 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
62
|
128
|
|
63
63
|
/* KEYED_FRAGMENT */
|
|
64
64
|
))
|
|
65
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
66
|
-
vue.createCommentVNode(" slot \u53EF\u4EE5\u5220\u9664\u6389 "),
|
|
67
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
65
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
68
66
|
]),
|
|
69
|
-
_:
|
|
70
|
-
/*
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
_: 2
|
|
68
|
+
/* DYNAMIC */
|
|
69
|
+
}, [
|
|
70
|
+
vue.unref(slots).title ? {
|
|
71
|
+
name: "title",
|
|
72
|
+
fn: vue.withCtx(() => [
|
|
73
|
+
vue.renderSlot(_ctx.$slots, "title")
|
|
74
|
+
]),
|
|
75
|
+
key: "0"
|
|
76
|
+
} : void 0,
|
|
77
|
+
vue.unref(slots).extra ? {
|
|
78
|
+
name: "extra",
|
|
79
|
+
fn: vue.withCtx(() => [
|
|
80
|
+
vue.renderSlot(_ctx.$slots, "extra")
|
|
81
|
+
]),
|
|
82
|
+
key: "1"
|
|
83
|
+
} : void 0
|
|
84
|
+
]),
|
|
85
|
+
1040
|
|
86
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
74
87
|
);
|
|
75
88
|
};
|
|
76
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Descriptions.vue2.js","sources":["../../../../../../../packages/components/src/base/descriptions/Descriptions.vue"],"sourcesContent":["<template>\n <el-descriptions ref=\"elRef\" v-bind=\"props\">\n <template v-if=\"slots.default\">\n <div>\n <el-descriptions-item v-for=\"(item, index) in gmDescriptionsItemList\" :key=\"index\" v-bind=\"item.props\">\n <template v-if=\"item.children\">\n <VNodeRenderer :vnode=\"item.children.default()\" />\n </template>\n <template v-if=\"item.children?.label\" #label>\n <VNodeRenderer :vnode=\"item.children.label()\" />\n </template>\n </el-descriptions-item>\n </div>\n </template>\n
|
|
1
|
+
{"version":3,"file":"Descriptions.vue2.js","sources":["../../../../../../../packages/components/src/base/descriptions/Descriptions.vue"],"sourcesContent":["<template>\n <el-descriptions ref=\"elRef\" v-bind=\"props\">\n <template v-if=\"slots.default\">\n <div>\n <el-descriptions-item v-for=\"(item, index) in gmDescriptionsItemList\" :key=\"index\" v-bind=\"item.props\">\n <template v-if=\"item.children\">\n <VNodeRenderer :vnode=\"item.children.default()\" />\n </template>\n <template v-if=\"item.children?.label\" #label>\n <VNodeRenderer :vnode=\"item.children.label()\" />\n </template>\n </el-descriptions-item>\n </div>\n </template>\n <template v-if=\"slots.title\" #title>\n <slot name=\"title\" />\n </template>\n <template v-if=\"slots.extra\" #extra>\n <slot name=\"extra\" />\n </template>\n </el-descriptions>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue';\nimport VNodeRenderer from '../../common/VNodeRenderer';\n// import { getGmEvent } from '@giime/utils';\n// import { descriptionsEmits as elDescriptionsEmits } from 'element-plus';\nimport { descriptionsProps } from './descriptions';\nimport type { Slot, VNode } from 'vue';\n// import type { DescriptionInstance } from 'element-plus';\n\ndefineOptions({\n name: 'GmDescriptions',\n});\ntype DescriptionItemVNode = VNode & {\n children: { [name: string]: Slot } | null;\n};\nconst slots = defineSlots<{\n default?(): DescriptionItemVNode[];\n title?(): any;\n extra?(): any;\n}>();\n// const slots = useSlots();\nconst props = defineProps(descriptionsProps);\nconst gmDescriptionsItemList = computed(() => {\n return slots.default?.().filter((node: any) => node?.type?.name === 'GmDescriptionsItem') ?? [];\n});\n\n// const elRef = ref<DescriptionInstance>();\n\n// defineExpose({\n// elRef,\n// });\n</script>\n"],"names":["_useSlots","computed"],"mappings":";;;;;;;;;;;;;;;;AAqCA,IAAA,MAAM,QAAQA;AAMd,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAM,MAAA,sBAAA,GAAyBC,aAAS,MAAM;AAC5C,MAAO,OAAA,KAAA,CAAM,OAAU,IAAA,CAAE,MAAO,CAAA,CAAC,IAAc,KAAA,IAAA,EAAM,IAAM,EAAA,IAAA,KAAS,oBAAoB,CAAA,IAAK,EAAC,CAAA;AAAA,KAC/F,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -86,6 +86,8 @@ export declare const GmDescriptions: import("../../../../utils").SFCWithInstall<
|
|
|
86
86
|
[name: string]: import("vue").Slot;
|
|
87
87
|
} | null;
|
|
88
88
|
})[];
|
|
89
|
+
title?(): any;
|
|
90
|
+
extra?(): any;
|
|
89
91
|
}> & {
|
|
90
92
|
default?(): (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
93
|
[key: string]: any;
|
|
@@ -94,6 +96,8 @@ export declare const GmDescriptions: import("../../../../utils").SFCWithInstall<
|
|
|
94
96
|
[name: string]: import("vue").Slot;
|
|
95
97
|
} | null;
|
|
96
98
|
})[];
|
|
99
|
+
title?(): any;
|
|
100
|
+
extra?(): any;
|
|
97
101
|
};
|
|
98
102
|
})> & Record<string, any>;
|
|
99
103
|
export type DescriptionsInstance = InstanceType<typeof Descriptions>;
|
package/lib/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.0-beta.
|
|
1
|
+
export declare const version = "0.0.0-beta.5";
|
package/lib/giime/version.js
CHANGED
package/lib/giime/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.0-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.0-beta.5'\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -1,38 +1,16 @@
|
|
|
1
|
+
/// <reference types="@vueuse/shared" />
|
|
2
|
+
import type { GetV1BasicGetLangListResultData } from '../../../api';
|
|
1
3
|
/**语种列表 */
|
|
2
4
|
export declare const useLangListStore: import("pinia").StoreDefinition<"gmLangList", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
-
langList: import("
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
code: string;
|
|
7
|
-
icon: string;
|
|
8
|
-
create_time: string;
|
|
9
|
-
update_time: string;
|
|
10
|
-
trans_code_bd: string;
|
|
11
|
-
}[]>;
|
|
5
|
+
langList: import("@vueuse/shared").RemovableRef<GetV1BasicGetLangListResultData[]>;
|
|
12
6
|
getLangListLoading: import("vue").Ref<boolean>;
|
|
13
7
|
getLangList: () => Promise<void>;
|
|
14
8
|
}, "langList" | "getLangListLoading">>, Pick<{
|
|
15
|
-
langList: import("
|
|
16
|
-
id: number;
|
|
17
|
-
name: string;
|
|
18
|
-
code: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
create_time: string;
|
|
21
|
-
update_time: string;
|
|
22
|
-
trans_code_bd: string;
|
|
23
|
-
}[]>;
|
|
9
|
+
langList: import("@vueuse/shared").RemovableRef<GetV1BasicGetLangListResultData[]>;
|
|
24
10
|
getLangListLoading: import("vue").Ref<boolean>;
|
|
25
11
|
getLangList: () => Promise<void>;
|
|
26
12
|
}, never>, Pick<{
|
|
27
|
-
langList: import("
|
|
28
|
-
id: number;
|
|
29
|
-
name: string;
|
|
30
|
-
code: string;
|
|
31
|
-
icon: string;
|
|
32
|
-
create_time: string;
|
|
33
|
-
update_time: string;
|
|
34
|
-
trans_code_bd: string;
|
|
35
|
-
}[]>;
|
|
13
|
+
langList: import("@vueuse/shared").RemovableRef<GetV1BasicGetLangListResultData[]>;
|
|
36
14
|
getLangListLoading: import("vue").Ref<boolean>;
|
|
37
15
|
getLangList: () => Promise<void>;
|
|
38
16
|
}, "getLangList">>;
|
|
@@ -3,43 +3,39 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var pinia = require('pinia');
|
|
5
5
|
require('../../../api/index.js');
|
|
6
|
+
var core = require('@vueuse/core');
|
|
6
7
|
var getV1BasicGetLangList = require('../../../api/gstore/controller/JiChuXinXi/getV1BasicGetLangList.js');
|
|
7
8
|
|
|
8
|
-
const useLangListStore = pinia.defineStore(
|
|
9
|
-
"gmLangList",
|
|
10
|
-
()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const useLangListStore = pinia.defineStore("gmLangList", () => {
|
|
10
|
+
const langList = core.useSessionStorage("gmLangList", [], { listenToStorageChanges: false });
|
|
11
|
+
const getLangListLoading = vue.ref(false);
|
|
12
|
+
const getLangList = async () => {
|
|
13
|
+
if (langList.value.length !== 0) {
|
|
14
|
+
getLangListLoading.value = false;
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
getLangListLoading.value = true;
|
|
19
|
+
const { data } = await getV1BasicGetLangList.getV1BasicGetLangList();
|
|
20
|
+
getLangListLoading.value = false;
|
|
21
|
+
if (data.code !== 200) {
|
|
15
22
|
return;
|
|
16
23
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if (data.code !== 200) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
langList.value = data.data;
|
|
25
|
-
} catch (e) {
|
|
26
|
-
console.error(e);
|
|
27
|
-
getLangListLoading.value = false;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
getLangList();
|
|
31
|
-
return {
|
|
32
|
-
langList,
|
|
33
|
-
getLangListLoading,
|
|
34
|
-
getLangList
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
persist: {
|
|
39
|
-
// storage: window.sessionStorage,
|
|
24
|
+
langList.value = data.data;
|
|
25
|
+
} catch (e) {
|
|
26
|
+
console.error(e);
|
|
27
|
+
getLangListLoading.value = false;
|
|
40
28
|
}
|
|
41
|
-
}
|
|
42
|
-
)
|
|
29
|
+
};
|
|
30
|
+
vue.onMounted(() => {
|
|
31
|
+
getLangList();
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
langList,
|
|
35
|
+
getLangListLoading,
|
|
36
|
+
getLangList
|
|
37
|
+
};
|
|
38
|
+
});
|
|
43
39
|
|
|
44
40
|
exports.useLangListStore = useLangListStore;
|
|
45
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/hooks/store/useLangList/index.ts"],"sourcesContent":["import { ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { getV1BasicGetLangList } from '@giime/api';\r\nimport type { GetV1BasicGetLangListResultData } from '@giime/api';\r\n// import type { GetV1BasicGetLangListResultData } from '@/api/gstore/controller';\r\n// import { getV1BasicGetLangList } from '@/api/gstore/controller';\r\n\r\n/**语种列表 */\r\nexport const useLangListStore = defineStore(
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../packages/hooks/store/useLangList/index.ts"],"sourcesContent":["import { onMounted, ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { getV1BasicGetLangList } from '@giime/api';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport type { GetV1BasicGetLangListResultData } from '@giime/api';\r\n// import type { GetV1BasicGetLangListResultData } from '@/api/gstore/controller';\r\n// import { getV1BasicGetLangList } from '@/api/gstore/controller';\r\n\r\n/**语种列表 */\r\nexport const useLangListStore = defineStore('gmLangList', () => {\r\n // const langList = ref<GetV1BasicGetLangListResultData[]>([]);\r\n const langList = useSessionStorage<GetV1BasicGetLangListResultData[]>('gmLangList', [], { listenToStorageChanges: false });\r\n\r\n const getLangListLoading = ref(false);\r\n const getLangList = async () => {\r\n if (langList.value.length !== 0) {\r\n getLangListLoading.value = false;\r\n return;\r\n }\r\n try {\r\n getLangListLoading.value = true;\r\n const { data } = await getV1BasicGetLangList();\r\n getLangListLoading.value = false;\r\n if (data.code !== 200) {\r\n return;\r\n }\r\n langList.value = data.data;\r\n } catch (e) {\r\n console.error(e);\r\n getLangListLoading.value = false;\r\n }\r\n };\r\n onMounted(() => {\r\n getLangList();\r\n });\r\n return {\r\n langList,\r\n getLangListLoading,\r\n getLangList,\r\n };\r\n});\r\n"],"names":["defineStore","useSessionStorage","ref","getV1BasicGetLangList","onMounted"],"mappings":";;;;;;;;AASa,MAAA,gBAAA,GAAmBA,iBAAY,CAAA,YAAA,EAAc,MAAM;AAE9D,EAAM,MAAA,QAAA,GAAWC,uBAAqD,YAAc,EAAA,IAAI,EAAE,sBAAA,EAAwB,OAAO,CAAA,CAAA;AAEzH,EAAM,MAAA,kBAAA,GAAqBC,QAAI,KAAK,CAAA,CAAA;AACpC,EAAA,MAAM,cAAc,YAAY;AAC9B,IAAI,IAAA,QAAA,CAAS,KAAM,CAAA,MAAA,KAAW,CAAG,EAAA;AAC/B,MAAA,kBAAA,CAAmB,KAAQ,GAAA,KAAA,CAAA;AAC3B,MAAA,OAAA;AAAA,KACF;AACA,IAAI,IAAA;AACF,MAAA,kBAAA,CAAmB,KAAQ,GAAA,IAAA,CAAA;AAC3B,MAAA,MAAM,EAAE,IAAA,EAAS,GAAA,MAAMC,2CAAsB,EAAA,CAAA;AAC7C,MAAA,kBAAA,CAAmB,KAAQ,GAAA,KAAA,CAAA;AAC3B,MAAI,IAAA,IAAA,CAAK,SAAS,GAAK,EAAA;AACrB,QAAA,OAAA;AAAA,OACF;AACA,MAAA,QAAA,CAAS,QAAQ,IAAK,CAAA,IAAA,CAAA;AAAA,aACf,CAAG,EAAA;AACV,MAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,MAAA,kBAAA,CAAmB,KAAQ,GAAA,KAAA,CAAA;AAAA,KAC7B;AAAA,GACF,CAAA;AACA,EAAAC,aAAA,CAAU,MAAM;AACd,IAAY,WAAA,EAAA,CAAA;AAAA,GACb,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,QAAA;AAAA,IACA,kBAAA;AAAA,IACA,WAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|