giime 0.1.5 → 0.1.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.
Files changed (40) hide show
  1. package/dist/index.css +13 -12
  2. package/es/components/index.mjs +1 -0
  3. package/es/components/index.mjs.map +1 -1
  4. package/es/components/src/plugins/confirmBox/index.d.ts +3 -0
  5. package/es/components/src/plugins/confirmBox/index.mjs +8 -0
  6. package/es/components/src/plugins/confirmBox/index.mjs.map +1 -0
  7. package/es/components/src/plugins/confirmBox/method.d.ts +5 -0
  8. package/es/components/src/plugins/confirmBox/method.mjs +26 -0
  9. package/es/components/src/plugins/confirmBox/method.mjs.map +1 -0
  10. package/es/components/src/plugins/index.d.ts +1 -0
  11. package/es/components/src/plugins/index.mjs +1 -0
  12. package/es/components/src/plugins/index.mjs.map +1 -1
  13. package/es/giime/index.mjs +1 -0
  14. package/es/giime/index.mjs.map +1 -1
  15. package/es/giime/plugin.mjs +2 -1
  16. package/es/giime/plugin.mjs.map +1 -1
  17. package/es/giime/version.d.ts +1 -1
  18. package/es/giime/version.mjs +1 -1
  19. package/es/giime/version.mjs.map +1 -1
  20. package/es/index.css +13 -12
  21. package/lib/components/index.js +2 -0
  22. package/lib/components/index.js.map +1 -1
  23. package/lib/components/src/plugins/confirmBox/index.d.ts +3 -0
  24. package/lib/components/src/plugins/confirmBox/index.js +13 -0
  25. package/lib/components/src/plugins/confirmBox/index.js.map +1 -0
  26. package/lib/components/src/plugins/confirmBox/method.d.ts +5 -0
  27. package/lib/components/src/plugins/confirmBox/method.js +28 -0
  28. package/lib/components/src/plugins/confirmBox/method.js.map +1 -0
  29. package/lib/components/src/plugins/index.d.ts +1 -0
  30. package/lib/components/src/plugins/index.js +2 -0
  31. package/lib/components/src/plugins/index.js.map +1 -1
  32. package/lib/giime/index.js +30 -28
  33. package/lib/giime/index.js.map +1 -1
  34. package/lib/giime/plugin.js +2 -1
  35. package/lib/giime/plugin.js.map +1 -1
  36. package/lib/giime/version.d.ts +1 -1
  37. package/lib/giime/version.js +1 -1
  38. package/lib/giime/version.js.map +1 -1
  39. package/lib/index.css +13 -12
  40. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -5,6 +5,10 @@
5
5
  .gm-flex-justify-between[data-v-d1c6dac0] {
6
6
  justify-content: space-between;
7
7
  }
8
+ [data-v-512cf874] .gmSearchForm .el-form-item {
9
+ margin-right: 8px;
10
+ margin-bottom: 8px;
11
+ }
8
12
  [data-v-e38c9d81] .gmTableNoBorder .el-table__body .el-table__cell {
9
13
  border-right: none;
10
14
  }
@@ -28,10 +32,15 @@
28
32
  [data-v-e38c9d81] .gmTableNoBorder .el-table__border-left-patch {
29
33
  height: 0;
30
34
  }
31
- [data-v-512cf874] .gmSearchForm .el-form-item {
32
- margin-right: 8px;
33
- margin-bottom: 8px;
35
+
36
+ .pagination-container[data-v-8a95ba6d] {
37
+ background: #fff;
38
+ padding: 32px 16px;
34
39
  }
40
+ .pagination-container.hidden[data-v-8a95ba6d] {
41
+ display: none;
42
+ }
43
+
35
44
  /*
36
45
  ! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
37
46
  *//*
@@ -720,12 +729,4 @@ video {
720
729
  }
721
730
  .gm-group:hover .group-hover\:gm-block {
722
731
  display: block;
723
- }
724
-
725
- .pagination-container[data-v-8a95ba6d] {
726
- background: #fff;
727
- padding: 32px 16px;
728
- }
729
- .pagination-container.hidden[data-v-8a95ba6d] {
730
- display: none;
731
- }
732
+ }
@@ -258,4 +258,5 @@ export { GmLoading } from './src/plugins/loading/index.mjs';
258
258
  export { GmMessageBox } from './src/plugins/messageBox/index.mjs';
259
259
  export { GmNotification } from './src/plugins/notification/index.mjs';
260
260
  export { GmCopy } from './src/plugins/copy/index.mjs';
261
+ export { GmConfirmBox } from './src/plugins/confirmBox/index.mjs';
261
262
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export declare const GmConfirmBox: import("../../../../utils").SFCInstallWithContext<(options: import("./method").ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>>;
2
+ export { type ConfirmBoxOptions } from './method';
3
+ export default GmConfirmBox;
@@ -0,0 +1,8 @@
1
+ import '../../../../utils/index.mjs';
2
+ import { confirmBox } from './method.mjs';
3
+ import { withInstallFunction } from '../../../../utils/src/vue/install.mjs';
4
+
5
+ const GmConfirmBox = withInstallFunction(confirmBox, "$confirmBox");
6
+
7
+ export { GmConfirmBox, GmConfirmBox as default };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../packages/components/src/plugins/confirmBox/index.ts"],"sourcesContent":["import { withInstallFunction } from '@giime/utils';\r\nimport { confirmBox } from './method';\r\nexport const GmConfirmBox = withInstallFunction(confirmBox, '$confirmBox');\r\nexport { type ConfirmBoxOptions } from './method';\r\nexport default GmConfirmBox;\r\n"],"names":[],"mappings":";;;;AAEa,MAAA,YAAA,GAAe,mBAAoB,CAAA,UAAA,EAAY,aAAa;;;;"}
@@ -0,0 +1,5 @@
1
+ export interface ConfirmBoxOptions {
2
+ message: string;
3
+ title?: string;
4
+ }
5
+ export declare const confirmBox: (options: ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>;
@@ -0,0 +1,26 @@
1
+ import { GmMessageBox } from '../messageBox/index.mjs';
2
+
3
+ const confirmBox = async (options, handle) => {
4
+ await GmMessageBox.confirm(options.message, options.title || "\u7CFB\u7EDF\u63D0\u793A", {
5
+ confirmButtonText: "\u786E\u5B9A",
6
+ cancelButtonText: "\u53D6\u6D88",
7
+ type: "warning",
8
+ beforeClose: async (action, instance, done) => {
9
+ if (action === "confirm") {
10
+ instance.confirmButtonLoading = true;
11
+ try {
12
+ await handle();
13
+ done();
14
+ } catch (e) {
15
+ console.error(e);
16
+ instance.confirmButtonLoading = false;
17
+ }
18
+ } else {
19
+ done();
20
+ }
21
+ }
22
+ });
23
+ };
24
+
25
+ export { confirmBox };
26
+ //# sourceMappingURL=method.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.mjs","sources":["../../../../../../../packages/components/src/plugins/confirmBox/method.ts"],"sourcesContent":["import { GmMessageBox } from '@giime/components/src/plugins/messageBox';\r\nexport interface ConfirmBoxOptions {\r\n message: string;\r\n title?: string;\r\n}\r\n\r\nexport const confirmBox = async (options: ConfirmBoxOptions, handle: () => Promise<any>) => {\r\n await GmMessageBox.confirm(options.message, options.title || '系统提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning',\r\n beforeClose: async (action, instance, done) => {\r\n if (action === 'confirm') {\r\n instance.confirmButtonLoading = true;\r\n try {\r\n await handle();\r\n done();\r\n } catch (e) {\r\n console.error(e);\r\n instance.confirmButtonLoading = false;\r\n }\r\n } else {\r\n done();\r\n }\r\n },\r\n });\r\n};\r\n"],"names":[],"mappings":";;AAMa,MAAA,UAAA,GAAa,OAAO,OAAA,EAA4B,MAA+B,KAAA;AAC1F,EAAA,MAAM,aAAa,OAAQ,CAAA,OAAA,CAAQ,OAAS,EAAA,OAAA,CAAQ,SAAS,0BAAQ,EAAA;AAAA,IACnE,iBAAmB,EAAA,cAAA;AAAA,IACnB,gBAAkB,EAAA,cAAA;AAAA,IAClB,IAAM,EAAA,SAAA;AAAA,IACN,WAAa,EAAA,OAAO,MAAQ,EAAA,QAAA,EAAU,IAAS,KAAA;AAC7C,MAAA,IAAI,WAAW,SAAW,EAAA;AACxB,QAAA,QAAA,CAAS,oBAAuB,GAAA,IAAA,CAAA;AAChC,QAAI,IAAA;AACF,UAAA,MAAM,MAAO,EAAA,CAAA;AACb,UAAK,IAAA,EAAA,CAAA;AAAA,iBACE,CAAG,EAAA;AACV,UAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,UAAA,QAAA,CAAS,oBAAuB,GAAA,KAAA,CAAA;AAAA,SAClC;AAAA,OACK,MAAA;AACL,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,KACF;AAAA,GACD,CAAA,CAAA;AACH;;;;"}
@@ -3,3 +3,4 @@ export * from './loading';
3
3
  export * from './messageBox';
4
4
  export * from './notification';
5
5
  export * from './copy';
6
+ export * from './confirmBox';
@@ -3,4 +3,5 @@ export { GmLoading } from './loading/index.mjs';
3
3
  export { GmMessageBox } from './messageBox/index.mjs';
4
4
  export { GmNotification } from './notification/index.mjs';
5
5
  export { GmCopy } from './copy/index.mjs';
6
+ export { GmConfirmBox } from './confirmBox/index.mjs';
6
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -270,6 +270,7 @@ export { GmLoading } from '../components/src/plugins/loading/index.mjs';
270
270
  export { GmMessageBox } from '../components/src/plugins/messageBox/index.mjs';
271
271
  export { GmNotification } from '../components/src/plugins/notification/index.mjs';
272
272
  export { GmCopy } from '../components/src/plugins/copy/index.mjs';
273
+ export { GmConfirmBox } from '../components/src/plugins/confirmBox/index.mjs';
273
274
  export { useCheckAll } from '../hooks/base/useCheckAll/index.mjs';
274
275
  export { useIDBKeyval } from '../hooks/base/useIDBKeyval/index.mjs';
275
276
  export { useDownload } from '../hooks/base/useDownload/index.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAU,SAAU,CAAA,QAAA;AAC1B,MAAM,UAAU,SAAU,CAAA;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAU,SAAU,CAAA,QAAA;AAC1B,MAAM,UAAU,SAAU,CAAA;;;;"}
@@ -4,8 +4,9 @@ import { GmLoading } from '../components/src/plugins/loading/index.mjs';
4
4
  import { GmMessageBox } from '../components/src/plugins/messageBox/index.mjs';
5
5
  import { GmNotification } from '../components/src/plugins/notification/index.mjs';
6
6
  import { GmCopy } from '../components/src/plugins/copy/index.mjs';
7
+ import { GmConfirmBox } from '../components/src/plugins/confirmBox/index.mjs';
7
8
 
8
- var Plugins = [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy];
9
+ var Plugins = [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy, GmConfirmBox];
9
10
 
10
11
  export { Plugins as default };
11
12
  //# sourceMappingURL=plugin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy] as Plugin[];\r\n"],"names":[],"mappings":";;;;;;;AAIA,cAAe,CAAC,SAAA,EAAW,SAAW,EAAA,YAAA,EAAc,gBAAgB,MAAM,CAAA;;;;"}
1
+ {"version":3,"file":"plugin.mjs","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmConfirmBox, GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy, GmConfirmBox] as Plugin[];\r\n"],"names":[],"mappings":";;;;;;;;AAIA,cAAe,CAAC,SAAW,EAAA,SAAA,EAAW,YAAc,EAAA,cAAA,EAAgB,QAAQ,YAAY,CAAA;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.1.5";
1
+ export declare const version = "0.1.6";
@@ -1,4 +1,4 @@
1
- const version = "0.1.4";
1
+ const version = "0.1.5";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.1.4';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.1.5';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
package/es/index.css CHANGED
@@ -5,6 +5,10 @@
5
5
  .gm-flex-justify-between[data-v-d1c6dac0] {
6
6
  justify-content: space-between;
7
7
  }
8
+ [data-v-512cf874] .gmSearchForm .el-form-item {
9
+ margin-right: 8px;
10
+ margin-bottom: 8px;
11
+ }
8
12
  [data-v-e38c9d81] .gmTableNoBorder .el-table__body .el-table__cell {
9
13
  border-right: none;
10
14
  }
@@ -28,10 +32,15 @@
28
32
  [data-v-e38c9d81] .gmTableNoBorder .el-table__border-left-patch {
29
33
  height: 0;
30
34
  }
31
- [data-v-512cf874] .gmSearchForm .el-form-item {
32
- margin-right: 8px;
33
- margin-bottom: 8px;
35
+
36
+ .pagination-container[data-v-8a95ba6d] {
37
+ background: #fff;
38
+ padding: 32px 16px;
34
39
  }
40
+ .pagination-container.hidden[data-v-8a95ba6d] {
41
+ display: none;
42
+ }
43
+
35
44
  /*
36
45
  ! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
37
46
  *//*
@@ -720,12 +729,4 @@ video {
720
729
  }
721
730
  .gm-group:hover .group-hover\:gm-block {
722
731
  display: block;
723
- }
724
-
725
- .pagination-container[data-v-8a95ba6d] {
726
- background: #fff;
727
- padding: 32px 16px;
728
- }
729
- .pagination-container.hidden[data-v-8a95ba6d] {
730
- display: none;
731
- }
732
+ }
@@ -260,6 +260,7 @@ var index$1$ = require('./src/plugins/loading/index.js');
260
260
  var index$20 = require('./src/plugins/messageBox/index.js');
261
261
  var index$21 = require('./src/plugins/notification/index.js');
262
262
  var index$22 = require('./src/plugins/copy/index.js');
263
+ var index$23 = require('./src/plugins/confirmBox/index.js');
263
264
 
264
265
 
265
266
 
@@ -632,4 +633,5 @@ exports.GmLoading = index$1$.GmLoading;
632
633
  exports.GmMessageBox = index$20.GmMessageBox;
633
634
  exports.GmNotification = index$21.GmNotification;
634
635
  exports.GmCopy = index$22.GmCopy;
636
+ exports.GmConfirmBox = index$23.GmConfirmBox;
635
637
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export declare const GmConfirmBox: import("../../../../utils").SFCInstallWithContext<(options: import("./method").ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>>;
2
+ export { type ConfirmBoxOptions } from './method';
3
+ export default GmConfirmBox;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../../../utils/index.js');
6
+ var method = require('./method.js');
7
+ var install = require('../../../../utils/src/vue/install.js');
8
+
9
+ const GmConfirmBox = install.withInstallFunction(method.confirmBox, "$confirmBox");
10
+
11
+ exports.GmConfirmBox = GmConfirmBox;
12
+ exports.default = GmConfirmBox;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../packages/components/src/plugins/confirmBox/index.ts"],"sourcesContent":["import { withInstallFunction } from '@giime/utils';\r\nimport { confirmBox } from './method';\r\nexport const GmConfirmBox = withInstallFunction(confirmBox, '$confirmBox');\r\nexport { type ConfirmBoxOptions } from './method';\r\nexport default GmConfirmBox;\r\n"],"names":["withInstallFunction","confirmBox"],"mappings":";;;;;;;;AAEa,MAAA,YAAA,GAAeA,2BAAoB,CAAAC,iBAAA,EAAY,aAAa;;;;;"}
@@ -0,0 +1,5 @@
1
+ export interface ConfirmBoxOptions {
2
+ message: string;
3
+ title?: string;
4
+ }
5
+ export declare const confirmBox: (options: ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>;
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var index = require('../messageBox/index.js');
4
+
5
+ const confirmBox = async (options, handle) => {
6
+ await index.GmMessageBox.confirm(options.message, options.title || "\u7CFB\u7EDF\u63D0\u793A", {
7
+ confirmButtonText: "\u786E\u5B9A",
8
+ cancelButtonText: "\u53D6\u6D88",
9
+ type: "warning",
10
+ beforeClose: async (action, instance, done) => {
11
+ if (action === "confirm") {
12
+ instance.confirmButtonLoading = true;
13
+ try {
14
+ await handle();
15
+ done();
16
+ } catch (e) {
17
+ console.error(e);
18
+ instance.confirmButtonLoading = false;
19
+ }
20
+ } else {
21
+ done();
22
+ }
23
+ }
24
+ });
25
+ };
26
+
27
+ exports.confirmBox = confirmBox;
28
+ //# sourceMappingURL=method.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.js","sources":["../../../../../../../packages/components/src/plugins/confirmBox/method.ts"],"sourcesContent":["import { GmMessageBox } from '@giime/components/src/plugins/messageBox';\r\nexport interface ConfirmBoxOptions {\r\n message: string;\r\n title?: string;\r\n}\r\n\r\nexport const confirmBox = async (options: ConfirmBoxOptions, handle: () => Promise<any>) => {\r\n await GmMessageBox.confirm(options.message, options.title || '系统提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning',\r\n beforeClose: async (action, instance, done) => {\r\n if (action === 'confirm') {\r\n instance.confirmButtonLoading = true;\r\n try {\r\n await handle();\r\n done();\r\n } catch (e) {\r\n console.error(e);\r\n instance.confirmButtonLoading = false;\r\n }\r\n } else {\r\n done();\r\n }\r\n },\r\n });\r\n};\r\n"],"names":["GmMessageBox"],"mappings":";;;;AAMa,MAAA,UAAA,GAAa,OAAO,OAAA,EAA4B,MAA+B,KAAA;AAC1F,EAAA,MAAMA,mBAAa,OAAQ,CAAA,OAAA,CAAQ,OAAS,EAAA,OAAA,CAAQ,SAAS,0BAAQ,EAAA;AAAA,IACnE,iBAAmB,EAAA,cAAA;AAAA,IACnB,gBAAkB,EAAA,cAAA;AAAA,IAClB,IAAM,EAAA,SAAA;AAAA,IACN,WAAa,EAAA,OAAO,MAAQ,EAAA,QAAA,EAAU,IAAS,KAAA;AAC7C,MAAA,IAAI,WAAW,SAAW,EAAA;AACxB,QAAA,QAAA,CAAS,oBAAuB,GAAA,IAAA,CAAA;AAChC,QAAI,IAAA;AACF,UAAA,MAAM,MAAO,EAAA,CAAA;AACb,UAAK,IAAA,EAAA,CAAA;AAAA,iBACE,CAAG,EAAA;AACV,UAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,UAAA,QAAA,CAAS,oBAAuB,GAAA,KAAA,CAAA;AAAA,SAClC;AAAA,OACK,MAAA;AACL,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,KACF;AAAA,GACD,CAAA,CAAA;AACH;;;;"}
@@ -3,3 +3,4 @@ export * from './loading';
3
3
  export * from './messageBox';
4
4
  export * from './notification';
5
5
  export * from './copy';
6
+ export * from './confirmBox';
@@ -5,6 +5,7 @@ var index$1 = require('./loading/index.js');
5
5
  var index$2 = require('./messageBox/index.js');
6
6
  var index$3 = require('./notification/index.js');
7
7
  var index$4 = require('./copy/index.js');
8
+ var index$5 = require('./confirmBox/index.js');
8
9
 
9
10
 
10
11
 
@@ -13,4 +14,5 @@ exports.GmLoading = index$1.GmLoading;
13
14
  exports.GmMessageBox = index$2.GmMessageBox;
14
15
  exports.GmNotification = index$3.GmNotification;
15
16
  exports.GmCopy = index$4.GmCopy;
17
+ exports.GmConfirmBox = index$5.GmConfirmBox;
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -274,20 +274,21 @@ var index$1$ = require('../components/src/plugins/loading/index.js');
274
274
  var index$20 = require('../components/src/plugins/messageBox/index.js');
275
275
  var index$21 = require('../components/src/plugins/notification/index.js');
276
276
  var index$22 = require('../components/src/plugins/copy/index.js');
277
- var index$23 = require('../hooks/base/useCheckAll/index.js');
278
- var index$24 = require('../hooks/base/useIDBKeyval/index.js');
279
- var index$25 = require('../hooks/base/useDownload/index.js');
280
- var index$26 = require('../hooks/store/useLangList/index.js');
281
- var index$27 = require('../hooks/store/useLogin/index.js');
282
- var index$28 = require('../hooks/store/useCustomSettings/index.js');
283
- var index$29 = require('../hooks/store/useCurrencyList/index.js');
284
- var index$2a = require('../hooks/store/useLineList/index.js');
285
- var index$2b = require('../hooks/store/usePlatformLineList/index.js');
286
- var index$2c = require('../hooks/store/useOrgUserList/index.js');
287
- var index$2d = require('../hooks/store/useAliCategoryList/index.js');
288
- var index$2e = require('../hooks/store/useCompanyCategoryList/index.js');
289
- var index$2f = require('../hooks/store/useRepiteFilter/index.js');
290
- var index$2g = require('../hooks/store/usePlatformList/index.js');
277
+ var index$23 = require('../components/src/plugins/confirmBox/index.js');
278
+ var index$24 = require('../hooks/base/useCheckAll/index.js');
279
+ var index$25 = require('../hooks/base/useIDBKeyval/index.js');
280
+ var index$26 = require('../hooks/base/useDownload/index.js');
281
+ var index$27 = require('../hooks/store/useLangList/index.js');
282
+ var index$28 = require('../hooks/store/useLogin/index.js');
283
+ var index$29 = require('../hooks/store/useCustomSettings/index.js');
284
+ var index$2a = require('../hooks/store/useCurrencyList/index.js');
285
+ var index$2b = require('../hooks/store/useLineList/index.js');
286
+ var index$2c = require('../hooks/store/usePlatformLineList/index.js');
287
+ var index$2d = require('../hooks/store/useOrgUserList/index.js');
288
+ var index$2e = require('../hooks/store/useAliCategoryList/index.js');
289
+ var index$2f = require('../hooks/store/useCompanyCategoryList/index.js');
290
+ var index$2g = require('../hooks/store/useRepiteFilter/index.js');
291
+ var index$2h = require('../hooks/store/usePlatformList/index.js');
291
292
 
292
293
  const install = defaults.default.install;
293
294
  const version = defaults.default.version;
@@ -697,20 +698,21 @@ exports.GmLoading = index$1$.GmLoading;
697
698
  exports.GmMessageBox = index$20.GmMessageBox;
698
699
  exports.GmNotification = index$21.GmNotification;
699
700
  exports.GmCopy = index$22.GmCopy;
700
- exports.useCheckAll = index$23.useCheckAll;
701
- exports.useIDBKeyval = index$24.useIDBKeyval;
702
- exports.useDownload = index$25.useDownload;
703
- exports.useLangListStore = index$26.useLangListStore;
704
- exports.useLoginStore = index$27.useLoginStore;
705
- exports.useCustomSettingsStore = index$28.useCustomSettingsStore;
706
- exports.useCurrencyListStore = index$29.useCurrencyListStore;
707
- exports.useLineListStore = index$2a.useLineListStore;
708
- exports.usePlatformLineListStore = index$2b.usePlatformLineListStore;
709
- exports.useOrgUserListStore = index$2c.useOrgUserListStore;
710
- exports.useAliCategoryListStore = index$2d.useAliCategoryListStore;
711
- exports.useCompanyCategoryListStore = index$2e.useCompanyCategoryListStore;
712
- exports.useRepiteFilterStore = index$2f.useRepiteFilterStore;
713
- exports.usePlatformListStore = index$2g.usePlatformListStore;
701
+ exports.GmConfirmBox = index$23.GmConfirmBox;
702
+ exports.useCheckAll = index$24.useCheckAll;
703
+ exports.useIDBKeyval = index$25.useIDBKeyval;
704
+ exports.useDownload = index$26.useDownload;
705
+ exports.useLangListStore = index$27.useLangListStore;
706
+ exports.useLoginStore = index$28.useLoginStore;
707
+ exports.useCustomSettingsStore = index$29.useCustomSettingsStore;
708
+ exports.useCurrencyListStore = index$2a.useCurrencyListStore;
709
+ exports.useLineListStore = index$2b.useLineListStore;
710
+ exports.usePlatformLineListStore = index$2c.usePlatformLineListStore;
711
+ exports.useOrgUserListStore = index$2d.useOrgUserListStore;
712
+ exports.useAliCategoryListStore = index$2e.useAliCategoryListStore;
713
+ exports.useCompanyCategoryListStore = index$2f.useCompanyCategoryListStore;
714
+ exports.useRepiteFilterStore = index$2g.useRepiteFilterStore;
715
+ exports.usePlatformListStore = index$2h.usePlatformListStore;
714
716
  exports.install = install;
715
717
  exports.version = version;
716
718
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -8,8 +8,9 @@ var index$1 = require('../components/src/plugins/loading/index.js');
8
8
  var index$2 = require('../components/src/plugins/messageBox/index.js');
9
9
  var index$3 = require('../components/src/plugins/notification/index.js');
10
10
  var index$4 = require('../components/src/plugins/copy/index.js');
11
+ var index$5 = require('../components/src/plugins/confirmBox/index.js');
11
12
 
12
- var Plugins = [index.GmMessage, index$1.GmLoading, index$2.GmMessageBox, index$3.GmNotification, index$4.GmCopy];
13
+ var Plugins = [index.GmMessage, index$1.GmLoading, index$2.GmMessageBox, index$3.GmNotification, index$4.GmCopy, index$5.GmConfirmBox];
13
14
 
14
15
  exports.default = Plugins;
15
16
  //# sourceMappingURL=plugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy] as Plugin[];\r\n"],"names":["GmMessage","GmLoading","GmMessageBox","GmNotification","GmCopy"],"mappings":";;;;;;;;;;;AAIA,cAAe,CAACA,eAAA,EAAWC,iBAAW,EAAAC,oBAAA,EAAcC,wBAAgBC,cAAM,CAAA;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmConfirmBox, GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy, GmConfirmBox] as Plugin[];\r\n"],"names":["GmMessage","GmLoading","GmMessageBox","GmNotification","GmCopy","GmConfirmBox"],"mappings":";;;;;;;;;;;;AAIA,cAAe,CAACA,eAAW,EAAAC,iBAAA,EAAWC,oBAAc,EAAAC,sBAAA,EAAgBC,gBAAQC,oBAAY,CAAA;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.1.5";
1
+ export declare const version = "0.1.6";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.1.4";
3
+ const version = "0.1.5";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.1.4';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.1.5';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
package/lib/index.css CHANGED
@@ -5,6 +5,10 @@
5
5
  .gm-flex-justify-between[data-v-d1c6dac0] {
6
6
  justify-content: space-between;
7
7
  }
8
+ [data-v-512cf874] .gmSearchForm .el-form-item {
9
+ margin-right: 8px;
10
+ margin-bottom: 8px;
11
+ }
8
12
  [data-v-e38c9d81] .gmTableNoBorder .el-table__body .el-table__cell {
9
13
  border-right: none;
10
14
  }
@@ -28,10 +32,15 @@
28
32
  [data-v-e38c9d81] .gmTableNoBorder .el-table__border-left-patch {
29
33
  height: 0;
30
34
  }
31
- [data-v-512cf874] .gmSearchForm .el-form-item {
32
- margin-right: 8px;
33
- margin-bottom: 8px;
35
+
36
+ .pagination-container[data-v-8a95ba6d] {
37
+ background: #fff;
38
+ padding: 32px 16px;
34
39
  }
40
+ .pagination-container.hidden[data-v-8a95ba6d] {
41
+ display: none;
42
+ }
43
+
35
44
  /*
36
45
  ! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
37
46
  *//*
@@ -720,12 +729,4 @@ video {
720
729
  }
721
730
  .gm-group:hover .group-hover\:gm-block {
722
731
  display: block;
723
- }
724
-
725
- .pagination-container[data-v-8a95ba6d] {
726
- background: #fff;
727
- padding: 32px 16px;
728
- }
729
- .pagination-container.hidden[data-v-8a95ba6d] {
730
- display: none;
731
- }
732
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giime",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "giime",