giime 0.3.5 → 0.3.6
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/index.css +21 -11
- package/es/components/src/plugins/copy/index.d.ts +4 -1
- package/es/components/src/plugins/copy/method.d.ts +4 -1
- package/es/components/src/plugins/copy/method.mjs +3 -3
- package/es/components/src/plugins/copy/method.mjs.map +1 -1
- 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/index.css +21 -11
- package/es/theme-chalk/tailwindConfig.d.ts +77 -0
- package/es/theme-chalk/tailwindConfig.mjs +29 -0
- package/es/theme-chalk/tailwindConfig.mjs.map +1 -0
- package/lib/components/src/plugins/copy/index.d.ts +4 -1
- package/lib/components/src/plugins/copy/method.d.ts +4 -1
- package/lib/components/src/plugins/copy/method.js +3 -3
- package/lib/components/src/plugins/copy/method.js.map +1 -1
- 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/index.css +21 -11
- package/lib/theme-chalk/tailwindConfig.d.ts +77 -0
- package/lib/theme-chalk/tailwindConfig.js +33 -0
- package/lib/theme-chalk/tailwindConfig.js.map +1 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -390,6 +390,10 @@ video {
|
|
|
390
390
|
background-color: var(--el-button-bg-color,var(--el-color-white));
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
:-moz-focusring {
|
|
394
|
+
outline: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
393
397
|
*, ::before, ::after {
|
|
394
398
|
--tw-border-spacing-x: 0;
|
|
395
399
|
--tw-border-spacing-y: 0;
|
|
@@ -489,6 +493,12 @@ video {
|
|
|
489
493
|
--tw-backdrop-saturate: ;
|
|
490
494
|
--tw-backdrop-sepia: ;
|
|
491
495
|
}
|
|
496
|
+
.gm-text-title {
|
|
497
|
+
font-size: var(--gm-text-title);
|
|
498
|
+
line-height: var(--gm-leading-title);
|
|
499
|
+
color: var(--gm-text-color-title);
|
|
500
|
+
font-weight: 700;
|
|
501
|
+
}
|
|
492
502
|
.gm-collapse {
|
|
493
503
|
visibility: collapse;
|
|
494
504
|
}
|
|
@@ -741,6 +751,17 @@ video {
|
|
|
741
751
|
margin: 0;
|
|
742
752
|
}
|
|
743
753
|
|
|
754
|
+
[data-v-75032027] .gmSearchForm .el-form-item {
|
|
755
|
+
margin-right: 0;
|
|
756
|
+
margin-bottom: 4px;
|
|
757
|
+
}
|
|
758
|
+
.gm-flex-center[data-v-6829dac1] {
|
|
759
|
+
align-items: center;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.gm-flex-justify-between[data-v-6829dac1] {
|
|
763
|
+
justify-content: space-between;
|
|
764
|
+
}
|
|
744
765
|
.gm-number-interval-single[data-v-47a13fd0] {
|
|
745
766
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
746
767
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
@@ -759,17 +780,6 @@ video {
|
|
|
759
780
|
.gm-number-interval-single[data-v-47a13fd0]:hover .gm-number-interval-close[data-v-47a13fd0] {
|
|
760
781
|
display: flex;
|
|
761
782
|
}
|
|
762
|
-
[data-v-75032027] .gmSearchForm .el-form-item {
|
|
763
|
-
margin-right: 0;
|
|
764
|
-
margin-bottom: 4px;
|
|
765
|
-
}
|
|
766
|
-
.gm-flex-center[data-v-6829dac1] {
|
|
767
|
-
align-items: center;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
.gm-flex-justify-between[data-v-6829dac1] {
|
|
771
|
-
justify-content: space-between;
|
|
772
|
-
}
|
|
773
783
|
[data-v-80268d10] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
774
784
|
border-right: none;
|
|
775
785
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export declare const GmCopy: import("../../../../utils").SFCInstallWithContext<(str: string
|
|
1
|
+
export declare const GmCopy: import("../../../../utils").SFCInstallWithContext<(str: string, options?: {
|
|
2
|
+
successMessage?: string | undefined;
|
|
3
|
+
errorMessage?: string | undefined;
|
|
4
|
+
} | undefined) => Promise<void>>;
|
|
2
5
|
export default GmCopy;
|
|
@@ -29,14 +29,14 @@ const useClipboard = (opts) => {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
const handleCopy = async (str) => {
|
|
32
|
+
const handleCopy = async (str, options) => {
|
|
33
33
|
const { toClipboard } = useClipboard();
|
|
34
34
|
try {
|
|
35
35
|
await toClipboard(str);
|
|
36
|
-
GmMessage.success("\u590D\u5236\u6210\u529F");
|
|
36
|
+
GmMessage.success(options?.successMessage ?? "\u590D\u5236\u6210\u529F");
|
|
37
37
|
} catch (error) {
|
|
38
38
|
console.error(error);
|
|
39
|
-
GmMessage.error("\u590D\u5236\u5931\u8D25");
|
|
39
|
+
GmMessage.error(options?.errorMessage ?? "\u590D\u5236\u5931\u8D25");
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.mjs","sources":["../../../../../../../packages/components/src/plugins/copy/method.ts"],"sourcesContent":["import Clipboard from 'clipboard';\r\nimport { GmMessage } from '@giime/components/src/plugins/message';\r\ninterface UseClipboardOptions {\r\n /** Fixes IE by appending element to body */\r\n appendToBody: boolean;\r\n}\r\n\r\nconst useClipboard = (opts?: UseClipboardOptions) => {\r\n // default appendToBody true\r\n const appendToBody = opts?.appendToBody === undefined ? true : opts.appendToBody;\r\n return {\r\n toClipboard(text: string, container?: HTMLElement) {\r\n return new Promise((resolve, reject) => {\r\n // make fake element\r\n const fakeEl = document.createElement('button');\r\n // setup a new Clipboard.js\r\n const clipboard = new Clipboard(fakeEl, {\r\n text: () => text,\r\n action: () => 'copy',\r\n container: container !== undefined ? container : document.body,\r\n });\r\n clipboard.on('success', e => {\r\n clipboard.destroy();\r\n resolve(e);\r\n });\r\n clipboard.on('error', e => {\r\n clipboard.destroy();\r\n reject(e);\r\n });\r\n // appendToBody fixes IE\r\n if (appendToBody) document.body.appendChild(fakeEl);\r\n // simulate click\r\n fakeEl.click();\r\n // remove from body if appended\r\n if (appendToBody) document.body.removeChild(fakeEl);\r\n });\r\n },\r\n };\r\n};\r\n\r\nexport const handleCopy = async (str: string) => {\r\n const { toClipboard } = useClipboard();\r\n // const { copy } = useClipboard({ legacy: true });\r\n try {\r\n await toClipboard(str);\r\n GmMessage.success('复制成功');\r\n } catch (error) {\r\n console.error(error);\r\n GmMessage.error('复制失败');\r\n }\r\n};\r\n"],"names":[],"mappings":";;;AAOA,MAAM,YAAA,GAAe,CAAC,IAA+B,KAAA;AAEnD,EAAA,MAAM,YAAe,GAAA,IAAA,EAAM,YAAiB,KAAA,KAAA,CAAA,GAAY,OAAO,IAAK,CAAA,YAAA,CAAA;AACpE,EAAO,OAAA;AAAA,IACL,WAAA,CAAY,MAAc,SAAyB,EAAA;AACjD,MAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAW,KAAA;AAEtC,QAAM,MAAA,MAAA,GAAS,QAAS,CAAA,aAAA,CAAc,QAAQ,CAAA,CAAA;AAE9C,QAAM,MAAA,SAAA,GAAY,IAAI,SAAA,CAAU,MAAQ,EAAA;AAAA,UACtC,MAAM,MAAM,IAAA;AAAA,UACZ,QAAQ,MAAM,MAAA;AAAA,UACd,SAAW,EAAA,SAAA,KAAc,KAAY,CAAA,GAAA,SAAA,GAAY,QAAS,CAAA,IAAA;AAAA,SAC3D,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,WAAW,CAAK,CAAA,KAAA;AAC3B,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,OAAA,CAAQ,CAAC,CAAA,CAAA;AAAA,SACV,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,SAAS,CAAK,CAAA,KAAA;AACzB,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,MAAA,CAAO,CAAC,CAAA,CAAA;AAAA,SACT,CAAA,CAAA;AAED,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAElD,QAAA,MAAA,CAAO,KAAM,EAAA,CAAA;AAEb,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAAA,OACnD,CAAA,CAAA;AAAA,KACH;AAAA,GACF,CAAA;AACF,CAAA,CAAA;AAEa,MAAA,UAAA,GAAa,
|
|
1
|
+
{"version":3,"file":"method.mjs","sources":["../../../../../../../packages/components/src/plugins/copy/method.ts"],"sourcesContent":["import Clipboard from 'clipboard';\r\nimport { GmMessage } from '@giime/components/src/plugins/message';\r\ninterface UseClipboardOptions {\r\n /** Fixes IE by appending element to body */\r\n appendToBody: boolean;\r\n}\r\n\r\nconst useClipboard = (opts?: UseClipboardOptions) => {\r\n // default appendToBody true\r\n const appendToBody = opts?.appendToBody === undefined ? true : opts.appendToBody;\r\n return {\r\n toClipboard(text: string, container?: HTMLElement) {\r\n return new Promise((resolve, reject) => {\r\n // make fake element\r\n const fakeEl = document.createElement('button');\r\n // setup a new Clipboard.js\r\n const clipboard = new Clipboard(fakeEl, {\r\n text: () => text,\r\n action: () => 'copy',\r\n container: container !== undefined ? container : document.body,\r\n });\r\n clipboard.on('success', e => {\r\n clipboard.destroy();\r\n resolve(e);\r\n });\r\n clipboard.on('error', e => {\r\n clipboard.destroy();\r\n reject(e);\r\n });\r\n // appendToBody fixes IE\r\n if (appendToBody) document.body.appendChild(fakeEl);\r\n // simulate click\r\n fakeEl.click();\r\n // remove from body if appended\r\n if (appendToBody) document.body.removeChild(fakeEl);\r\n });\r\n },\r\n };\r\n};\r\n\r\nexport const handleCopy = async (\r\n str: string,\r\n options?: {\r\n successMessage?: string;\r\n errorMessage?: string;\r\n },\r\n) => {\r\n const { toClipboard } = useClipboard();\r\n // const { copy } = useClipboard({ legacy: true });\r\n try {\r\n await toClipboard(str);\r\n GmMessage.success(options?.successMessage ?? '复制成功');\r\n } catch (error) {\r\n console.error(error);\r\n GmMessage.error(options?.errorMessage ?? '复制失败');\r\n }\r\n};\r\n"],"names":[],"mappings":";;;AAOA,MAAM,YAAA,GAAe,CAAC,IAA+B,KAAA;AAEnD,EAAA,MAAM,YAAe,GAAA,IAAA,EAAM,YAAiB,KAAA,KAAA,CAAA,GAAY,OAAO,IAAK,CAAA,YAAA,CAAA;AACpE,EAAO,OAAA;AAAA,IACL,WAAA,CAAY,MAAc,SAAyB,EAAA;AACjD,MAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAW,KAAA;AAEtC,QAAM,MAAA,MAAA,GAAS,QAAS,CAAA,aAAA,CAAc,QAAQ,CAAA,CAAA;AAE9C,QAAM,MAAA,SAAA,GAAY,IAAI,SAAA,CAAU,MAAQ,EAAA;AAAA,UACtC,MAAM,MAAM,IAAA;AAAA,UACZ,QAAQ,MAAM,MAAA;AAAA,UACd,SAAW,EAAA,SAAA,KAAc,KAAY,CAAA,GAAA,SAAA,GAAY,QAAS,CAAA,IAAA;AAAA,SAC3D,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,WAAW,CAAK,CAAA,KAAA;AAC3B,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,OAAA,CAAQ,CAAC,CAAA,CAAA;AAAA,SACV,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,SAAS,CAAK,CAAA,KAAA;AACzB,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,MAAA,CAAO,CAAC,CAAA,CAAA;AAAA,SACT,CAAA,CAAA;AAED,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAElD,QAAA,MAAA,CAAO,KAAM,EAAA,CAAA;AAEb,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAAA,OACnD,CAAA,CAAA;AAAA,KACH;AAAA,GACF,CAAA;AACF,CAAA,CAAA;AAEa,MAAA,UAAA,GAAa,OACxB,GAAA,EACA,OAIG,KAAA;AACH,EAAM,MAAA,EAAE,WAAY,EAAA,GAAI,YAAa,EAAA,CAAA;AAErC,EAAI,IAAA;AACF,IAAA,MAAM,YAAY,GAAG,CAAA,CAAA;AACrB,IAAU,SAAA,CAAA,OAAA,CAAQ,OAAS,EAAA,cAAA,IAAkB,0BAAM,CAAA,CAAA;AAAA,WAC5C,KAAO,EAAA;AACd,IAAA,OAAA,CAAQ,MAAM,KAAK,CAAA,CAAA;AACnB,IAAU,SAAA,CAAA,KAAA,CAAM,OAAS,EAAA,YAAA,IAAgB,0BAAM,CAAA,CAAA;AAAA,GACjD;AACF;;;;"}
|
package/es/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.3.
|
|
1
|
+
export declare const version = "0.3.6";
|
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.3.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.3.6';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
|
package/es/index.css
CHANGED
|
@@ -390,6 +390,10 @@ video {
|
|
|
390
390
|
background-color: var(--el-button-bg-color,var(--el-color-white));
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
:-moz-focusring {
|
|
394
|
+
outline: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
393
397
|
*, ::before, ::after {
|
|
394
398
|
--tw-border-spacing-x: 0;
|
|
395
399
|
--tw-border-spacing-y: 0;
|
|
@@ -489,6 +493,12 @@ video {
|
|
|
489
493
|
--tw-backdrop-saturate: ;
|
|
490
494
|
--tw-backdrop-sepia: ;
|
|
491
495
|
}
|
|
496
|
+
.gm-text-title {
|
|
497
|
+
font-size: var(--gm-text-title);
|
|
498
|
+
line-height: var(--gm-leading-title);
|
|
499
|
+
color: var(--gm-text-color-title);
|
|
500
|
+
font-weight: 700;
|
|
501
|
+
}
|
|
492
502
|
.gm-collapse {
|
|
493
503
|
visibility: collapse;
|
|
494
504
|
}
|
|
@@ -741,6 +751,17 @@ video {
|
|
|
741
751
|
margin: 0;
|
|
742
752
|
}
|
|
743
753
|
|
|
754
|
+
[data-v-75032027] .gmSearchForm .el-form-item {
|
|
755
|
+
margin-right: 0;
|
|
756
|
+
margin-bottom: 4px;
|
|
757
|
+
}
|
|
758
|
+
.gm-flex-center[data-v-6829dac1] {
|
|
759
|
+
align-items: center;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.gm-flex-justify-between[data-v-6829dac1] {
|
|
763
|
+
justify-content: space-between;
|
|
764
|
+
}
|
|
744
765
|
.gm-number-interval-single[data-v-47a13fd0] {
|
|
745
766
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
746
767
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
@@ -759,17 +780,6 @@ video {
|
|
|
759
780
|
.gm-number-interval-single[data-v-47a13fd0]:hover .gm-number-interval-close[data-v-47a13fd0] {
|
|
760
781
|
display: flex;
|
|
761
782
|
}
|
|
762
|
-
[data-v-75032027] .gmSearchForm .el-form-item {
|
|
763
|
-
margin-right: 0;
|
|
764
|
-
margin-bottom: 4px;
|
|
765
|
-
}
|
|
766
|
-
.gm-flex-center[data-v-6829dac1] {
|
|
767
|
-
align-items: center;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
.gm-flex-justify-between[data-v-6829dac1] {
|
|
771
|
-
justify-content: space-between;
|
|
772
|
-
}
|
|
773
783
|
[data-v-80268d10] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
774
784
|
border-right: none;
|
|
775
785
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
content: string[];
|
|
3
|
+
theme: {
|
|
4
|
+
extend: {};
|
|
5
|
+
};
|
|
6
|
+
presets: {
|
|
7
|
+
theme: {
|
|
8
|
+
extend: {
|
|
9
|
+
fontFamily: {
|
|
10
|
+
primary: string;
|
|
11
|
+
};
|
|
12
|
+
lineHeight: {
|
|
13
|
+
title: string;
|
|
14
|
+
model: string;
|
|
15
|
+
primary: string;
|
|
16
|
+
};
|
|
17
|
+
borderWidth: {
|
|
18
|
+
primary: (string | {
|
|
19
|
+
borderColor: string;
|
|
20
|
+
})[];
|
|
21
|
+
secondary: (string | {
|
|
22
|
+
borderColor: string;
|
|
23
|
+
})[];
|
|
24
|
+
tertiary: (string | {
|
|
25
|
+
borderColor: string;
|
|
26
|
+
})[];
|
|
27
|
+
};
|
|
28
|
+
borderRadius: {
|
|
29
|
+
small: string;
|
|
30
|
+
large: string;
|
|
31
|
+
};
|
|
32
|
+
boxShadow: {
|
|
33
|
+
primary: string;
|
|
34
|
+
dark: string;
|
|
35
|
+
light: string;
|
|
36
|
+
'input-focus': string;
|
|
37
|
+
dialog: string;
|
|
38
|
+
};
|
|
39
|
+
colors: {
|
|
40
|
+
'btn-primary': string;
|
|
41
|
+
'btn-primary-light-3': string;
|
|
42
|
+
'btn-success': string;
|
|
43
|
+
'btn-warning': string;
|
|
44
|
+
'btn-error': string;
|
|
45
|
+
'content-title': string;
|
|
46
|
+
'content-primary': string;
|
|
47
|
+
'content-secondary': string;
|
|
48
|
+
'content-decs': string;
|
|
49
|
+
background: string;
|
|
50
|
+
'border-color-primary': string;
|
|
51
|
+
'border-color-secondary': string;
|
|
52
|
+
'border-color-tertiary': string;
|
|
53
|
+
'data-crimson': string;
|
|
54
|
+
'data-sky-blue': string;
|
|
55
|
+
'data-lavender': string;
|
|
56
|
+
'data-fresh-green': string;
|
|
57
|
+
'data-soft-pink': string;
|
|
58
|
+
'data-golden-tangerine': string;
|
|
59
|
+
'data-breeze-blue': string;
|
|
60
|
+
'data-slate-gray': string;
|
|
61
|
+
'data-teal-blue': string;
|
|
62
|
+
'data-sunset-yellow': string;
|
|
63
|
+
'data-ocean-blue': string;
|
|
64
|
+
'data-spring-green': string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}[];
|
|
69
|
+
corePlugins: {
|
|
70
|
+
preflight: boolean;
|
|
71
|
+
};
|
|
72
|
+
plugins: ({
|
|
73
|
+
handler: import("tailwindcss/types/config").PluginCreator;
|
|
74
|
+
config?: Partial<import("tailwindcss/types/config").Config> | undefined;
|
|
75
|
+
} | (({ addBase }: any) => void))[];
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import tailwindPreset from './tailwindPreset.mjs';
|
|
2
|
+
import tailwindPlugin from './tailwindPlugin.mjs';
|
|
3
|
+
|
|
4
|
+
var tailwindConfig = {
|
|
5
|
+
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
|
|
6
|
+
theme: {
|
|
7
|
+
extend: {}
|
|
8
|
+
},
|
|
9
|
+
presets: [tailwindPreset],
|
|
10
|
+
corePlugins: {
|
|
11
|
+
preflight: false
|
|
12
|
+
},
|
|
13
|
+
plugins: [
|
|
14
|
+
tailwindPlugin,
|
|
15
|
+
function({ addBase }) {
|
|
16
|
+
addBase({
|
|
17
|
+
".el-button": {
|
|
18
|
+
"background-color": "var(--el-button-bg-color,var(--el-color-white))"
|
|
19
|
+
},
|
|
20
|
+
":-moz-focusring": {
|
|
21
|
+
outline: "none"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { tailwindConfig as default };
|
|
29
|
+
//# sourceMappingURL=tailwindConfig.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwindConfig.mjs","sources":["../../../../packages/theme-chalk/tailwindConfig.ts"],"sourcesContent":["import tailwindPreset from './tailwindPreset';\r\nimport tailwindPlugin from './tailwindPlugin';\r\nexport default {\r\n content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],\r\n theme: {\r\n extend: {},\r\n },\r\n presets: [tailwindPreset],\r\n corePlugins: {\r\n preflight: false,\r\n },\r\n plugins: [\r\n tailwindPlugin,\r\n function ({ addBase }: any) {\r\n addBase({\r\n '.el-button': {\r\n 'background-color': 'var(--el-button-bg-color,var(--el-color-white))',\r\n },\r\n ':-moz-focusring': {\r\n outline: 'none',\r\n },\r\n });\r\n },\r\n ],\r\n};\r\n"],"names":[],"mappings":";;;AAEA,qBAAe;AAAA,EACb,OAAA,EAAS,CAAC,cAAA,EAAgB,gCAAgC,CAAA;AAAA,EAC1D,KAAO,EAAA;AAAA,IACL,QAAQ,EAAC;AAAA,GACX;AAAA,EACA,OAAA,EAAS,CAAC,cAAc,CAAA;AAAA,EACxB,WAAa,EAAA;AAAA,IACX,SAAW,EAAA,KAAA;AAAA,GACb;AAAA,EACA,OAAS,EAAA;AAAA,IACP,cAAA;AAAA,IACA,SAAU,EAAE,OAAA,EAAgB,EAAA;AAC1B,MAAQ,OAAA,CAAA;AAAA,QACN,YAAc,EAAA;AAAA,UACZ,kBAAoB,EAAA,iDAAA;AAAA,SACtB;AAAA,QACA,iBAAmB,EAAA;AAAA,UACjB,OAAS,EAAA,MAAA;AAAA,SACX;AAAA,OACD,CAAA,CAAA;AAAA,KACH;AAAA,GACF;AACF,CAAA;;;;"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export declare const GmCopy: import("../../../../utils").SFCInstallWithContext<(str: string
|
|
1
|
+
export declare const GmCopy: import("../../../../utils").SFCInstallWithContext<(str: string, options?: {
|
|
2
|
+
successMessage?: string | undefined;
|
|
3
|
+
errorMessage?: string | undefined;
|
|
4
|
+
} | undefined) => Promise<void>>;
|
|
2
5
|
export default GmCopy;
|
|
@@ -31,14 +31,14 @@ const useClipboard = (opts) => {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
const handleCopy = async (str) => {
|
|
34
|
+
const handleCopy = async (str, options) => {
|
|
35
35
|
const { toClipboard } = useClipboard();
|
|
36
36
|
try {
|
|
37
37
|
await toClipboard(str);
|
|
38
|
-
index.GmMessage.success("\u590D\u5236\u6210\u529F");
|
|
38
|
+
index.GmMessage.success(options?.successMessage ?? "\u590D\u5236\u6210\u529F");
|
|
39
39
|
} catch (error) {
|
|
40
40
|
console.error(error);
|
|
41
|
-
index.GmMessage.error("\u590D\u5236\u5931\u8D25");
|
|
41
|
+
index.GmMessage.error(options?.errorMessage ?? "\u590D\u5236\u5931\u8D25");
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.js","sources":["../../../../../../../packages/components/src/plugins/copy/method.ts"],"sourcesContent":["import Clipboard from 'clipboard';\r\nimport { GmMessage } from '@giime/components/src/plugins/message';\r\ninterface UseClipboardOptions {\r\n /** Fixes IE by appending element to body */\r\n appendToBody: boolean;\r\n}\r\n\r\nconst useClipboard = (opts?: UseClipboardOptions) => {\r\n // default appendToBody true\r\n const appendToBody = opts?.appendToBody === undefined ? true : opts.appendToBody;\r\n return {\r\n toClipboard(text: string, container?: HTMLElement) {\r\n return new Promise((resolve, reject) => {\r\n // make fake element\r\n const fakeEl = document.createElement('button');\r\n // setup a new Clipboard.js\r\n const clipboard = new Clipboard(fakeEl, {\r\n text: () => text,\r\n action: () => 'copy',\r\n container: container !== undefined ? container : document.body,\r\n });\r\n clipboard.on('success', e => {\r\n clipboard.destroy();\r\n resolve(e);\r\n });\r\n clipboard.on('error', e => {\r\n clipboard.destroy();\r\n reject(e);\r\n });\r\n // appendToBody fixes IE\r\n if (appendToBody) document.body.appendChild(fakeEl);\r\n // simulate click\r\n fakeEl.click();\r\n // remove from body if appended\r\n if (appendToBody) document.body.removeChild(fakeEl);\r\n });\r\n },\r\n };\r\n};\r\n\r\nexport const handleCopy = async (str: string) => {\r\n const { toClipboard } = useClipboard();\r\n // const { copy } = useClipboard({ legacy: true });\r\n try {\r\n await toClipboard(str);\r\n GmMessage.success('复制成功');\r\n } catch (error) {\r\n console.error(error);\r\n GmMessage.error('复制失败');\r\n }\r\n};\r\n"],"names":["GmMessage"],"mappings":";;;;;AAOA,MAAM,YAAA,GAAe,CAAC,IAA+B,KAAA;AAEnD,EAAA,MAAM,YAAe,GAAA,IAAA,EAAM,YAAiB,KAAA,KAAA,CAAA,GAAY,OAAO,IAAK,CAAA,YAAA,CAAA;AACpE,EAAO,OAAA;AAAA,IACL,WAAA,CAAY,MAAc,SAAyB,EAAA;AACjD,MAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAW,KAAA;AAEtC,QAAM,MAAA,MAAA,GAAS,QAAS,CAAA,aAAA,CAAc,QAAQ,CAAA,CAAA;AAE9C,QAAM,MAAA,SAAA,GAAY,IAAI,SAAA,CAAU,MAAQ,EAAA;AAAA,UACtC,MAAM,MAAM,IAAA;AAAA,UACZ,QAAQ,MAAM,MAAA;AAAA,UACd,SAAW,EAAA,SAAA,KAAc,KAAY,CAAA,GAAA,SAAA,GAAY,QAAS,CAAA,IAAA;AAAA,SAC3D,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,WAAW,CAAK,CAAA,KAAA;AAC3B,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,OAAA,CAAQ,CAAC,CAAA,CAAA;AAAA,SACV,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,SAAS,CAAK,CAAA,KAAA;AACzB,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,MAAA,CAAO,CAAC,CAAA,CAAA;AAAA,SACT,CAAA,CAAA;AAED,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAElD,QAAA,MAAA,CAAO,KAAM,EAAA,CAAA;AAEb,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAAA,OACnD,CAAA,CAAA;AAAA,KACH;AAAA,GACF,CAAA;AACF,CAAA,CAAA;AAEa,MAAA,UAAA,GAAa,
|
|
1
|
+
{"version":3,"file":"method.js","sources":["../../../../../../../packages/components/src/plugins/copy/method.ts"],"sourcesContent":["import Clipboard from 'clipboard';\r\nimport { GmMessage } from '@giime/components/src/plugins/message';\r\ninterface UseClipboardOptions {\r\n /** Fixes IE by appending element to body */\r\n appendToBody: boolean;\r\n}\r\n\r\nconst useClipboard = (opts?: UseClipboardOptions) => {\r\n // default appendToBody true\r\n const appendToBody = opts?.appendToBody === undefined ? true : opts.appendToBody;\r\n return {\r\n toClipboard(text: string, container?: HTMLElement) {\r\n return new Promise((resolve, reject) => {\r\n // make fake element\r\n const fakeEl = document.createElement('button');\r\n // setup a new Clipboard.js\r\n const clipboard = new Clipboard(fakeEl, {\r\n text: () => text,\r\n action: () => 'copy',\r\n container: container !== undefined ? container : document.body,\r\n });\r\n clipboard.on('success', e => {\r\n clipboard.destroy();\r\n resolve(e);\r\n });\r\n clipboard.on('error', e => {\r\n clipboard.destroy();\r\n reject(e);\r\n });\r\n // appendToBody fixes IE\r\n if (appendToBody) document.body.appendChild(fakeEl);\r\n // simulate click\r\n fakeEl.click();\r\n // remove from body if appended\r\n if (appendToBody) document.body.removeChild(fakeEl);\r\n });\r\n },\r\n };\r\n};\r\n\r\nexport const handleCopy = async (\r\n str: string,\r\n options?: {\r\n successMessage?: string;\r\n errorMessage?: string;\r\n },\r\n) => {\r\n const { toClipboard } = useClipboard();\r\n // const { copy } = useClipboard({ legacy: true });\r\n try {\r\n await toClipboard(str);\r\n GmMessage.success(options?.successMessage ?? '复制成功');\r\n } catch (error) {\r\n console.error(error);\r\n GmMessage.error(options?.errorMessage ?? '复制失败');\r\n }\r\n};\r\n"],"names":["GmMessage"],"mappings":";;;;;AAOA,MAAM,YAAA,GAAe,CAAC,IAA+B,KAAA;AAEnD,EAAA,MAAM,YAAe,GAAA,IAAA,EAAM,YAAiB,KAAA,KAAA,CAAA,GAAY,OAAO,IAAK,CAAA,YAAA,CAAA;AACpE,EAAO,OAAA;AAAA,IACL,WAAA,CAAY,MAAc,SAAyB,EAAA;AACjD,MAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAW,KAAA;AAEtC,QAAM,MAAA,MAAA,GAAS,QAAS,CAAA,aAAA,CAAc,QAAQ,CAAA,CAAA;AAE9C,QAAM,MAAA,SAAA,GAAY,IAAI,SAAA,CAAU,MAAQ,EAAA;AAAA,UACtC,MAAM,MAAM,IAAA;AAAA,UACZ,QAAQ,MAAM,MAAA;AAAA,UACd,SAAW,EAAA,SAAA,KAAc,KAAY,CAAA,GAAA,SAAA,GAAY,QAAS,CAAA,IAAA;AAAA,SAC3D,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,WAAW,CAAK,CAAA,KAAA;AAC3B,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,OAAA,CAAQ,CAAC,CAAA,CAAA;AAAA,SACV,CAAA,CAAA;AACD,QAAU,SAAA,CAAA,EAAA,CAAG,SAAS,CAAK,CAAA,KAAA;AACzB,UAAA,SAAA,CAAU,OAAQ,EAAA,CAAA;AAClB,UAAA,MAAA,CAAO,CAAC,CAAA,CAAA;AAAA,SACT,CAAA,CAAA;AAED,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAElD,QAAA,MAAA,CAAO,KAAM,EAAA,CAAA;AAEb,QAAI,IAAA,YAAA;AAAc,UAAS,QAAA,CAAA,IAAA,CAAK,YAAY,MAAM,CAAA,CAAA;AAAA,OACnD,CAAA,CAAA;AAAA,KACH;AAAA,GACF,CAAA;AACF,CAAA,CAAA;AAEa,MAAA,UAAA,GAAa,OACxB,GAAA,EACA,OAIG,KAAA;AACH,EAAM,MAAA,EAAE,WAAY,EAAA,GAAI,YAAa,EAAA,CAAA;AAErC,EAAI,IAAA;AACF,IAAA,MAAM,YAAY,GAAG,CAAA,CAAA;AACrB,IAAUA,eAAA,CAAA,OAAA,CAAQ,OAAS,EAAA,cAAA,IAAkB,0BAAM,CAAA,CAAA;AAAA,WAC5C,KAAO,EAAA;AACd,IAAA,OAAA,CAAQ,MAAM,KAAK,CAAA,CAAA;AACnB,IAAUA,eAAA,CAAA,KAAA,CAAM,OAAS,EAAA,YAAA,IAAgB,0BAAM,CAAA,CAAA;AAAA,GACjD;AACF;;;;"}
|
package/lib/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.3.
|
|
1
|
+
export declare const version = "0.3.6";
|
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.3.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.3.6';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
|
package/lib/index.css
CHANGED
|
@@ -390,6 +390,10 @@ video {
|
|
|
390
390
|
background-color: var(--el-button-bg-color,var(--el-color-white));
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
:-moz-focusring {
|
|
394
|
+
outline: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
393
397
|
*, ::before, ::after {
|
|
394
398
|
--tw-border-spacing-x: 0;
|
|
395
399
|
--tw-border-spacing-y: 0;
|
|
@@ -489,6 +493,12 @@ video {
|
|
|
489
493
|
--tw-backdrop-saturate: ;
|
|
490
494
|
--tw-backdrop-sepia: ;
|
|
491
495
|
}
|
|
496
|
+
.gm-text-title {
|
|
497
|
+
font-size: var(--gm-text-title);
|
|
498
|
+
line-height: var(--gm-leading-title);
|
|
499
|
+
color: var(--gm-text-color-title);
|
|
500
|
+
font-weight: 700;
|
|
501
|
+
}
|
|
492
502
|
.gm-collapse {
|
|
493
503
|
visibility: collapse;
|
|
494
504
|
}
|
|
@@ -741,6 +751,17 @@ video {
|
|
|
741
751
|
margin: 0;
|
|
742
752
|
}
|
|
743
753
|
|
|
754
|
+
[data-v-75032027] .gmSearchForm .el-form-item {
|
|
755
|
+
margin-right: 0;
|
|
756
|
+
margin-bottom: 4px;
|
|
757
|
+
}
|
|
758
|
+
.gm-flex-center[data-v-6829dac1] {
|
|
759
|
+
align-items: center;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.gm-flex-justify-between[data-v-6829dac1] {
|
|
763
|
+
justify-content: space-between;
|
|
764
|
+
}
|
|
744
765
|
.gm-number-interval-single[data-v-47a13fd0] {
|
|
745
766
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
746
767
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
@@ -759,17 +780,6 @@ video {
|
|
|
759
780
|
.gm-number-interval-single[data-v-47a13fd0]:hover .gm-number-interval-close[data-v-47a13fd0] {
|
|
760
781
|
display: flex;
|
|
761
782
|
}
|
|
762
|
-
[data-v-75032027] .gmSearchForm .el-form-item {
|
|
763
|
-
margin-right: 0;
|
|
764
|
-
margin-bottom: 4px;
|
|
765
|
-
}
|
|
766
|
-
.gm-flex-center[data-v-6829dac1] {
|
|
767
|
-
align-items: center;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
.gm-flex-justify-between[data-v-6829dac1] {
|
|
771
|
-
justify-content: space-between;
|
|
772
|
-
}
|
|
773
783
|
[data-v-80268d10] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
774
784
|
border-right: none;
|
|
775
785
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
content: string[];
|
|
3
|
+
theme: {
|
|
4
|
+
extend: {};
|
|
5
|
+
};
|
|
6
|
+
presets: {
|
|
7
|
+
theme: {
|
|
8
|
+
extend: {
|
|
9
|
+
fontFamily: {
|
|
10
|
+
primary: string;
|
|
11
|
+
};
|
|
12
|
+
lineHeight: {
|
|
13
|
+
title: string;
|
|
14
|
+
model: string;
|
|
15
|
+
primary: string;
|
|
16
|
+
};
|
|
17
|
+
borderWidth: {
|
|
18
|
+
primary: (string | {
|
|
19
|
+
borderColor: string;
|
|
20
|
+
})[];
|
|
21
|
+
secondary: (string | {
|
|
22
|
+
borderColor: string;
|
|
23
|
+
})[];
|
|
24
|
+
tertiary: (string | {
|
|
25
|
+
borderColor: string;
|
|
26
|
+
})[];
|
|
27
|
+
};
|
|
28
|
+
borderRadius: {
|
|
29
|
+
small: string;
|
|
30
|
+
large: string;
|
|
31
|
+
};
|
|
32
|
+
boxShadow: {
|
|
33
|
+
primary: string;
|
|
34
|
+
dark: string;
|
|
35
|
+
light: string;
|
|
36
|
+
'input-focus': string;
|
|
37
|
+
dialog: string;
|
|
38
|
+
};
|
|
39
|
+
colors: {
|
|
40
|
+
'btn-primary': string;
|
|
41
|
+
'btn-primary-light-3': string;
|
|
42
|
+
'btn-success': string;
|
|
43
|
+
'btn-warning': string;
|
|
44
|
+
'btn-error': string;
|
|
45
|
+
'content-title': string;
|
|
46
|
+
'content-primary': string;
|
|
47
|
+
'content-secondary': string;
|
|
48
|
+
'content-decs': string;
|
|
49
|
+
background: string;
|
|
50
|
+
'border-color-primary': string;
|
|
51
|
+
'border-color-secondary': string;
|
|
52
|
+
'border-color-tertiary': string;
|
|
53
|
+
'data-crimson': string;
|
|
54
|
+
'data-sky-blue': string;
|
|
55
|
+
'data-lavender': string;
|
|
56
|
+
'data-fresh-green': string;
|
|
57
|
+
'data-soft-pink': string;
|
|
58
|
+
'data-golden-tangerine': string;
|
|
59
|
+
'data-breeze-blue': string;
|
|
60
|
+
'data-slate-gray': string;
|
|
61
|
+
'data-teal-blue': string;
|
|
62
|
+
'data-sunset-yellow': string;
|
|
63
|
+
'data-ocean-blue': string;
|
|
64
|
+
'data-spring-green': string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}[];
|
|
69
|
+
corePlugins: {
|
|
70
|
+
preflight: boolean;
|
|
71
|
+
};
|
|
72
|
+
plugins: ({
|
|
73
|
+
handler: import("tailwindcss/types/config").PluginCreator;
|
|
74
|
+
config?: Partial<import("tailwindcss/types/config").Config> | undefined;
|
|
75
|
+
} | (({ addBase }: any) => void))[];
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tailwindPreset = require('./tailwindPreset.js');
|
|
6
|
+
var tailwindPlugin = require('./tailwindPlugin.js');
|
|
7
|
+
|
|
8
|
+
var tailwindConfig = {
|
|
9
|
+
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
|
|
10
|
+
theme: {
|
|
11
|
+
extend: {}
|
|
12
|
+
},
|
|
13
|
+
presets: [tailwindPreset.default],
|
|
14
|
+
corePlugins: {
|
|
15
|
+
preflight: false
|
|
16
|
+
},
|
|
17
|
+
plugins: [
|
|
18
|
+
tailwindPlugin.default,
|
|
19
|
+
function({ addBase }) {
|
|
20
|
+
addBase({
|
|
21
|
+
".el-button": {
|
|
22
|
+
"background-color": "var(--el-button-bg-color,var(--el-color-white))"
|
|
23
|
+
},
|
|
24
|
+
":-moz-focusring": {
|
|
25
|
+
outline: "none"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.default = tailwindConfig;
|
|
33
|
+
//# sourceMappingURL=tailwindConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwindConfig.js","sources":["../../../../packages/theme-chalk/tailwindConfig.ts"],"sourcesContent":["import tailwindPreset from './tailwindPreset';\r\nimport tailwindPlugin from './tailwindPlugin';\r\nexport default {\r\n content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],\r\n theme: {\r\n extend: {},\r\n },\r\n presets: [tailwindPreset],\r\n corePlugins: {\r\n preflight: false,\r\n },\r\n plugins: [\r\n tailwindPlugin,\r\n function ({ addBase }: any) {\r\n addBase({\r\n '.el-button': {\r\n 'background-color': 'var(--el-button-bg-color,var(--el-color-white))',\r\n },\r\n ':-moz-focusring': {\r\n outline: 'none',\r\n },\r\n });\r\n },\r\n ],\r\n};\r\n"],"names":["tailwindPreset","tailwindPlugin"],"mappings":";;;;;;;AAEA,qBAAe;AAAA,EACb,OAAA,EAAS,CAAC,cAAA,EAAgB,gCAAgC,CAAA;AAAA,EAC1D,KAAO,EAAA;AAAA,IACL,QAAQ,EAAC;AAAA,GACX;AAAA,EACA,OAAA,EAAS,CAACA,sBAAc,CAAA;AAAA,EACxB,WAAa,EAAA;AAAA,IACX,SAAW,EAAA,KAAA;AAAA,GACb;AAAA,EACA,OAAS,EAAA;AAAA,IACPC,sBAAA;AAAA,IACA,SAAU,EAAE,OAAA,EAAgB,EAAA;AAC1B,MAAQ,OAAA,CAAA;AAAA,QACN,YAAc,EAAA;AAAA,UACZ,kBAAoB,EAAA,iDAAA;AAAA,SACtB;AAAA,QACA,iBAAmB,EAAA;AAAA,UACjB,OAAS,EAAA,MAAA;AAAA,SACX;AAAA,OACD,CAAA,CAAA;AAAA,KACH;AAAA,GACF;AACF,CAAA;;;;"}
|