geekin-devtoys 0.3.5 → 0.3.7

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.
@@ -1114,17 +1114,17 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
1114
1114
  /** 获取当前归一化后的已选项 */
1115
1115
  getSelectedItems: () => SelectedItem[];
1116
1116
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1117
- "update:modelValue": (value: any[]) => any;
1118
- add: (item: SelectedItem) => any;
1119
1117
  change: (value: any[], items: SelectedItem[]) => any;
1118
+ add: (item: SelectedItem) => any;
1119
+ "update:modelValue": (value: any[]) => any;
1120
1120
  remove: (item: SelectedItem, index: number) => any;
1121
1121
  "node-click": (node: any) => any;
1122
1122
  duplicate: (item: SelectedItem) => any;
1123
1123
  "not-found": (keyword: string) => any;
1124
1124
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
1125
- "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
1126
- onAdd?: ((item: SelectedItem) => any) | undefined;
1127
1125
  onChange?: ((value: any[], items: SelectedItem[]) => any) | undefined;
1126
+ onAdd?: ((item: SelectedItem) => any) | undefined;
1127
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
1128
1128
  onRemove?: ((item: SelectedItem, index: number) => any) | undefined;
1129
1129
  "onNode-click"?: ((node: any) => any) | undefined;
1130
1130
  onDuplicate?: ((item: SelectedItem) => any) | undefined;
@@ -0,0 +1,43 @@
1
+ type StepStatus = 'wait' | 'process' | 'finish' | 'success' | 'error';
2
+ export interface StepItem {
3
+ title: string;
4
+ /** 副标题,显示在标题下方 */
5
+ description?: string;
6
+ }
7
+ type __VLS_Props = {
8
+ active: number;
9
+ /** 步骤数组,支持纯标题字符串或 { title, description } 对象 */
10
+ steps: (string | StepItem)[];
11
+ /** 失败步骤下标(显示红叉),无失败时不传 */
12
+ errorAt?: number;
13
+ /** 是否允许点击切换步骤 */
14
+ clickable?: boolean;
15
+ /** 进行中节点的状态 @default 'process' */
16
+ processStatus?: StepStatus;
17
+ /** 已完成节点的状态 @default 'success' */
18
+ finishStatus?: StepStatus;
19
+ };
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ icon?(_: {
24
+ index: number;
25
+ status: StepStatus;
26
+ }): any;
27
+ };
28
+ refs: {};
29
+ rootEl: any;
30
+ };
31
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
32
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
33
+ "step-click": (index: number) => any;
34
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ "onStep-click"?: ((index: number) => any) | undefined;
36
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../GCount/index.js"),l=require("../GDialog/index.js"),a=require("../GTable/index.js"),o=require("../GVideo/index.js"),n=require("../GBubble/index.js"),d=require("../GProgress/index.js"),G=require("../GScreen/index.js"),i=require("../GPluginVideo/index.js"),s=require("../GPie3D/index.js"),c=require("../GRing/index.js"),f=require("../GInputTreeTag/index.js"),g=require("../GFuzzyText/index.js"),e=require("../GCard/index.js"),T=require("../GScroller/index.js"),q=require("../GShinyText/index.js"),u={GCount:r.default,GDialog:l.default,GTable:a.default,GVideo:o.default,GBubble:n.default,GProgress:d.default,GScreen:G.default,GPluginVideo:i.default,GPie3D:s.default,GRing:c.default,GInputTreeTag:f.default,GFuzzyText:g.default,GCard:e.default,GScroller:T.default,GShinyText:q.default},S=b=>{Object.keys(u).forEach(P=>{const t=u[P];b.component(t.name,t)})},y={install:S};exports.GCount=r.default;exports.GDialog=l.default;exports.GTable=a.default;exports.GVideo=o.default;exports.GBubble=n.default;exports.GProgress=d.default;exports.GScreen=G.default;exports.GPluginVideo=i.default;exports.GPie3D=s.default;exports.GRing=c.default;exports.GInputTreeTag=f.default;exports.GFuzzyText=g.default;exports.GCard=e.default;exports.cardPresets=e.cardPresets;exports.GScroller=T.default;exports.GShinyText=q.default;exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../GCount/index.js"),l=require("../GDialog/index.js"),a=require("../GTable/index.js"),o=require("../GVideo/index.js"),n=require("../GBubble/index.js"),d=require("../GProgress/index.js"),G=require("../GScreen/index.js"),i=require("../GPluginVideo/index.js"),s=require("../GPie3D/index.js"),c=require("../GRing/index.js"),f=require("../GInputTreeTag/index.js"),g=require("../GFuzzyText/index.js"),e=require("../GCard/index.js"),q=require("../GScroller/index.js"),T=require("../GShinyText/index.js"),S=require("../GSteps/index.js"),u={GCount:r.default,GDialog:l.default,GTable:a.default,GVideo:o.default,GBubble:n.default,GProgress:d.default,GScreen:G.default,GPluginVideo:i.default,GPie3D:s.default,GRing:c.default,GInputTreeTag:f.default,GFuzzyText:g.default,GCard:e.default,GScroller:q.default,GShinyText:T.default,GSteps:S.default},p=b=>{Object.keys(u).forEach(P=>{const t=u[P];b.component(t.name,t)})},y={install:p};exports.GCount=r.default;exports.GDialog=l.default;exports.GTable=a.default;exports.GVideo=o.default;exports.GBubble=n.default;exports.GProgress=d.default;exports.GScreen=G.default;exports.GPluginVideo=i.default;exports.GPie3D=s.default;exports.GRing=c.default;exports.GInputTreeTag=f.default;exports.GFuzzyText=g.default;exports.GCard=e.default;exports.cardPresets=e.cardPresets;exports.GScroller=q.default;exports.GShinyText=T.default;exports.GSteps=S.default;exports.default=y;
@@ -2,56 +2,59 @@ import i from "../GCount/index.mjs";
2
2
  import e from "../GDialog/index.mjs";
3
3
  import n from "../GTable/index.mjs";
4
4
  import f from "../GVideo/index.mjs";
5
- import s from "../GBubble/index.mjs";
6
- import p from "../GProgress/index.mjs";
7
- import a from "../GScreen/index.mjs";
8
- import G from "../GPluginVideo/index.mjs";
5
+ import p from "../GBubble/index.mjs";
6
+ import s from "../GProgress/index.mjs";
7
+ import G from "../GScreen/index.mjs";
8
+ import a from "../GPluginVideo/index.mjs";
9
9
  import c from "../GPie3D/index.mjs";
10
10
  import l from "../GRing/index.mjs";
11
11
  import _ from "../GInputTreeTag/index.mjs";
12
12
  import u from "../GFuzzyText/index.mjs";
13
13
  import d from "../GCard/index.mjs";
14
- import { cardPresets as q } from "../GCard/index.mjs";
14
+ import { cardPresets as w } from "../GCard/index.mjs";
15
15
  import x from "../GScroller/index.mjs";
16
16
  import T from "../GShinyText/index.mjs";
17
+ import g from "../GSteps/index.mjs";
17
18
  const r = {
18
19
  GCount: i,
19
20
  GDialog: e,
20
21
  GTable: n,
21
22
  GVideo: f,
22
- GBubble: s,
23
- GProgress: p,
24
- GScreen: a,
25
- GPluginVideo: G,
23
+ GBubble: p,
24
+ GProgress: s,
25
+ GScreen: G,
26
+ GPluginVideo: a,
26
27
  GPie3D: c,
27
28
  GRing: l,
28
29
  GInputTreeTag: _,
29
30
  GFuzzyText: u,
30
31
  GCard: d,
31
32
  GScroller: x,
32
- GShinyText: T
33
- }, g = (m) => {
33
+ GShinyText: T,
34
+ GSteps: g
35
+ }, S = (m) => {
34
36
  Object.keys(r).forEach((t) => {
35
37
  const o = r[t];
36
38
  m.component(o.name, o);
37
39
  });
38
- }, I = { install: g };
40
+ }, R = { install: S };
39
41
  export {
40
- s as GBubble,
42
+ p as GBubble,
41
43
  d as GCard,
42
44
  i as GCount,
43
45
  e as GDialog,
44
46
  u as GFuzzyText,
45
47
  _ as GInputTreeTag,
46
48
  c as GPie3D,
47
- G as GPluginVideo,
48
- p as GProgress,
49
+ a as GPluginVideo,
50
+ s as GProgress,
49
51
  l as GRing,
50
- a as GScreen,
52
+ G as GScreen,
51
53
  x as GScroller,
52
54
  T as GShinyText,
55
+ g as GSteps,
53
56
  n as GTable,
54
57
  f as GVideo,
55
- q as cardPresets,
56
- I as default
58
+ w as cardPresets,
59
+ R as default
57
60
  };
package/lib/index.d.ts CHANGED
@@ -13,9 +13,10 @@ import { GFuzzyText } from './components/GFuzzyText';
13
13
  import { GCard, cardPresets, CardPreset } from './components/GCard';
14
14
  import { GScroller } from './components/GScroller';
15
15
  import { GShinyText } from './components/GShinyText';
16
+ import { GSteps } from './components/GSteps';
16
17
  declare const _default: {
17
18
  install: (app: any) => void;
18
19
  };
19
20
  export default _default;
20
- export { GCount, GDialog, GTable, GVideo, GBubble, GProgress, GScreen, GPluginVideo, GPie3D, GRing, GInputTreeTag, GFuzzyText, GCard, cardPresets, GScroller, GShinyText };
21
+ export { GCount, GDialog, GTable, GVideo, GBubble, GProgress, GScreen, GPluginVideo, GPie3D, GRing, GInputTreeTag, GFuzzyText, GCard, cardPresets, GScroller, GShinyText, GSteps };
21
22
  export type { CardPreset };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geekin-devtoys",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "author": "leon",
5
5
  "license": "MIT",
6
6
  "description": "geekin-devtoys组件库",
@@ -170,6 +170,14 @@
170
170
  "import": "./lib/GShinyText/style.css",
171
171
  "require": "./lib/GShinyText/style.css"
172
172
  },
173
+ "./GSteps": {
174
+ "import": "./lib/GSteps/index.mjs",
175
+ "require": "./lib/GSteps/index.js"
176
+ },
177
+ "./GSteps/style": {
178
+ "import": "./lib/GSteps/style.css",
179
+ "require": "./lib/GSteps/style.css"
180
+ },
173
181
  "./GTable": {
174
182
  "import": "./lib/GTable/index.mjs",
175
183
  "require": "./lib/GTable/index.js"
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue");var o=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(a,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),n=o,l=e.defineComponent({name:"ChatDotRound",__name:"chat-dot-round",setup(t){return(a,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),c=l,_=e.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(a,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),e.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),m=_,p=e.defineComponent({name:"Operation",__name:"operation",setup(t){return(a,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),d=p,s=e.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(a,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),u=s,h=e.defineComponent({name:"Remove",__name:"remove",setup(t){return(a,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),v=h;exports.arrow_down_default=n;exports.chat_dot_round_default=c;exports.circle_check_default=m;exports.operation_default=d;exports.refresh_default=u;exports.remove_default=v;
@@ -1,106 +0,0 @@
1
- import { defineComponent as e, createElementBlock as r, openBlock as t, createElementVNode as a } from "vue";
2
- var c = /* @__PURE__ */ e({
3
- name: "ArrowDown",
4
- __name: "arrow-down",
5
- setup(o) {
6
- return (_, n) => (t(), r("svg", {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- viewBox: "0 0 1024 1024"
9
- }, [
10
- a("path", {
11
- fill: "currentColor",
12
- d: "M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"
13
- })
14
- ]));
15
- }
16
- }), h = c, l = /* @__PURE__ */ e({
17
- name: "ChatDotRound",
18
- __name: "chat-dot-round",
19
- setup(o) {
20
- return (_, n) => (t(), r("svg", {
21
- xmlns: "http://www.w3.org/2000/svg",
22
- viewBox: "0 0 1024 1024"
23
- }, [
24
- a("path", {
25
- fill: "currentColor",
26
- d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"
27
- }),
28
- a("path", {
29
- fill: "currentColor",
30
- d: "M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"
31
- })
32
- ]));
33
- }
34
- }), u = l, s = /* @__PURE__ */ e({
35
- name: "CircleCheck",
36
- __name: "circle-check",
37
- setup(o) {
38
- return (_, n) => (t(), r("svg", {
39
- xmlns: "http://www.w3.org/2000/svg",
40
- viewBox: "0 0 1024 1024"
41
- }, [
42
- a("path", {
43
- fill: "currentColor",
44
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
45
- }),
46
- a("path", {
47
- fill: "currentColor",
48
- d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"
49
- })
50
- ]));
51
- }
52
- }), i = s, m = /* @__PURE__ */ e({
53
- name: "Operation",
54
- __name: "operation",
55
- setup(o) {
56
- return (_, n) => (t(), r("svg", {
57
- xmlns: "http://www.w3.org/2000/svg",
58
- viewBox: "0 0 1024 1024"
59
- }, [
60
- a("path", {
61
- fill: "currentColor",
62
- d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
63
- })
64
- ]));
65
- }
66
- }), f = m, p = /* @__PURE__ */ e({
67
- name: "Refresh",
68
- __name: "refresh",
69
- setup(o) {
70
- return (_, n) => (t(), r("svg", {
71
- xmlns: "http://www.w3.org/2000/svg",
72
- viewBox: "0 0 1024 1024"
73
- }, [
74
- a("path", {
75
- fill: "currentColor",
76
- d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
77
- })
78
- ]));
79
- }
80
- }), d = p, v = /* @__PURE__ */ e({
81
- name: "Remove",
82
- __name: "remove",
83
- setup(o) {
84
- return (_, n) => (t(), r("svg", {
85
- xmlns: "http://www.w3.org/2000/svg",
86
- viewBox: "0 0 1024 1024"
87
- }, [
88
- a("path", {
89
- fill: "currentColor",
90
- d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
91
- }),
92
- a("path", {
93
- fill: "currentColor",
94
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
95
- })
96
- ]));
97
- }
98
- }), x = v;
99
- export {
100
- d as a,
101
- i as b,
102
- u as c,
103
- h as d,
104
- f as o,
105
- x as r
106
- };