@jnrs/lingshu-smart 2.2.6 → 2.2.8

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 (174) hide show
  1. package/dist/App.vue.d.ts +2 -1
  2. package/dist/App.vue.js +30 -0
  3. package/dist/assets/data/editor_default.d.ts +8 -1
  4. package/dist/assets/data/editor_default.js +59 -0
  5. package/dist/assets/data/editor_default_setting.d.ts +16 -0
  6. package/dist/assets/data/editor_default_setting.js +58 -0
  7. package/dist/assets/data/editor_preset.d.ts +8 -1
  8. package/dist/assets/data/editor_preset.js +51 -0
  9. package/dist/assets/data/editor_preset_menu.d.ts +9 -0
  10. package/dist/assets/data/editor_preset_menu.js +290 -0
  11. package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +3 -15
  12. package/dist/components/editor/ControlBar/CaseManger.vue.js +465 -0
  13. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +2 -411
  14. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +108 -0
  15. package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +3 -2
  16. package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +280 -0
  17. package/dist/components/editor/ControlBar/MainButton.vue.d.ts +3 -2
  18. package/dist/components/editor/ControlBar/MainButton.vue.js +183 -0
  19. package/dist/components/editor/ControlBar/StepButton.vue.d.ts +2 -1
  20. package/dist/components/editor/ControlBar/StepButton.vue.js +147 -0
  21. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +2 -1
  22. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +98 -0
  23. package/dist/components/editor/DrawingBoard.vue.d.ts +2 -1
  24. package/dist/components/editor/DrawingBoard.vue.js +31 -0
  25. package/dist/components/editor/MenuCard/Equipments.vue.d.ts +2 -1
  26. package/dist/components/editor/MenuCard/Equipments.vue.js +129 -0
  27. package/dist/components/editor/MenuCard/Layers.vue.d.ts +2 -1
  28. package/dist/components/editor/MenuCard/Layers.vue.js +201 -0
  29. package/dist/components/editor/MenuCard/index.vue.d.ts +2 -1
  30. package/dist/components/editor/MenuCard/index.vue.js +84 -0
  31. package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +2 -1
  32. package/dist/components/editor/OptionCard/Equipment/Base.vue.js +96 -0
  33. package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +3 -0
  34. package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +443 -0
  35. package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +3 -0
  36. package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +81 -0
  37. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +2 -1
  38. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +304 -0
  39. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +3 -0
  40. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +597 -0
  41. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +2 -1
  42. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +287 -0
  43. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +3 -0
  44. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +440 -0
  45. package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +2 -1
  46. package/dist/components/editor/OptionCard/Equipment/Position.vue.js +436 -0
  47. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +2 -1
  48. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +1131 -0
  49. package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +3 -0
  50. package/dist/components/editor/OptionCard/Equipment/Store.vue.js +453 -0
  51. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +3 -0
  52. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +1109 -0
  53. package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +2 -1
  54. package/dist/components/editor/OptionCard/Equipment/index.vue.js +100 -0
  55. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +3 -0
  56. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +99 -0
  57. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +3 -0
  58. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +225 -0
  59. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +3 -0
  60. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +99 -0
  61. package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +2 -1
  62. package/dist/components/editor/OptionCard/Scene/Background.vue.js +543 -0
  63. package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +2 -1
  64. package/dist/components/editor/OptionCard/Scene/index.vue.js +200 -0
  65. package/dist/components/editor/OptionCard/index.vue.d.ts +2 -1
  66. package/dist/components/editor/OptionCard/index.vue.js +73 -0
  67. package/dist/components/editor/index.vue.d.ts +4 -13
  68. package/dist/components/editor/index.vue.js +156 -0
  69. package/dist/components/index.d.ts +2 -2
  70. package/dist/components/index.js +4 -25440
  71. package/dist/components/preview/index.vue.d.ts +6 -5
  72. package/dist/components/preview/index.vue.js +104 -0
  73. package/dist/composables/useStepRecord.d.ts +12 -4
  74. package/dist/composables/useStepRecord.js +135 -0
  75. package/dist/constants/options.d.ts +8 -1
  76. package/dist/constants/options.js +55 -0
  77. package/dist/controller/AppController.d.ts +10 -3
  78. package/dist/controller/AppController.js +168 -0
  79. package/dist/controller/EditorController.d.ts +9 -2
  80. package/dist/controller/EditorController.js +173 -0
  81. package/dist/index.js +1 -1
  82. package/dist/locales/en.js +5 -0
  83. package/dist/locales/i18next.d.ts +1 -1
  84. package/dist/locales/i18next.js +6 -0
  85. package/dist/locales/index.d.ts +2 -2
  86. package/dist/locales/index.js +3 -13
  87. package/dist/locales/zhCn.js +5 -0
  88. package/dist/main.d.ts +3 -0
  89. package/dist/main.js +13 -0
  90. package/dist/playground/EditPageDemo.vue.d.ts +2 -1
  91. package/dist/playground/EditPageDemo.vue.js +57 -0
  92. package/dist/playground/ViewPageDemo.vue.d.ts +2 -27
  93. package/dist/playground/ViewPageDemo.vue.js +277 -0
  94. package/dist/stores/index.js +3 -0
  95. package/dist/stores/useAppStore.d.ts +13 -6
  96. package/dist/stores/useAppStore.js +78 -0
  97. package/dist/stores/useDataStore.d.ts +18 -11
  98. package/dist/stores/useDataStore.js +116 -0
  99. package/dist/stores/useEditorStore.d.ts +27 -20
  100. package/dist/stores/useEditorStore.js +263 -0
  101. package/dist/types/app.types.d.ts +1 -1
  102. package/dist/types/app.types.js +2 -0
  103. package/dist/types/base.types.d.ts +4 -2
  104. package/dist/types/base.types.js +1 -0
  105. package/dist/types/components/config.types.d.ts +11 -3
  106. package/dist/types/components/config.types.js +1 -0
  107. package/dist/types/components/operating.types.d.ts +1 -1
  108. package/dist/types/components/operating.types.js +1 -0
  109. package/dist/types/enums.d.ts +5 -2
  110. package/dist/types/enums.js +46 -0
  111. package/dist/types/guards.d.ts +12 -2
  112. package/dist/types/guards.js +28 -0
  113. package/dist/types/index.d.ts +2 -2
  114. package/dist/types/index.js +8 -0
  115. package/dist/types/models/config.types.d.ts +74 -29
  116. package/dist/types/models/config.types.js +1 -0
  117. package/dist/types/models/operating.types.d.ts +83 -17
  118. package/dist/types/models/operating.types.js +1 -0
  119. package/dist/ui/abstract/ComponentAbs.d.ts +9 -2
  120. package/dist/ui/abstract/ComponentAbs.js +64 -0
  121. package/dist/ui/abstract/ModelAbs.d.ts +12 -2
  122. package/dist/ui/abstract/ModelAbs.js +119 -0
  123. package/dist/ui/components/Entrance.d.ts +8 -1
  124. package/dist/ui/components/Entrance.js +83 -0
  125. package/dist/ui/components/Light.d.ts +26 -3
  126. package/dist/ui/components/Light.js +167 -0
  127. package/dist/ui/components/Progress.d.ts +8 -1
  128. package/dist/ui/components/Progress.js +84 -0
  129. package/dist/ui/components/Resource.d.ts +8 -1
  130. package/dist/ui/components/Resource.js +70 -0
  131. package/dist/ui/components/StationSlot.d.ts +24 -2
  132. package/dist/ui/components/StationSlot.js +207 -0
  133. package/dist/ui/components/StationSlotGroup.d.ts +8 -1
  134. package/dist/ui/components/StationSlotGroup.js +110 -0
  135. package/dist/ui/factories/createGlass.d.ts +9 -1
  136. package/dist/ui/factories/createGlass.js +51 -0
  137. package/dist/ui/factories/createModel.d.ts +9 -2
  138. package/dist/ui/factories/createModel.js +35 -0
  139. package/dist/ui/factories/createShadow.d.ts +12 -4
  140. package/dist/ui/factories/createShadow.js +52 -0
  141. package/dist/ui/factories/createText.d.ts +7 -0
  142. package/dist/ui/factories/createText.js +46 -0
  143. package/dist/ui/models/CleaningMachine.d.ts +14 -0
  144. package/dist/ui/models/CleaningMachine.js +141 -0
  145. package/dist/ui/models/DoubleJointRobot.d.ts +23 -0
  146. package/dist/ui/models/DoubleJointRobot.js +545 -0
  147. package/dist/ui/models/LoadingStation.d.ts +16 -0
  148. package/dist/ui/models/LoadingStation.js +167 -0
  149. package/dist/ui/models/MachineTool.d.ts +5 -4
  150. package/dist/ui/models/MachineTool.js +184 -0
  151. package/dist/ui/models/MarkingMachine.d.ts +16 -0
  152. package/dist/ui/models/MarkingMachine.js +148 -0
  153. package/dist/ui/models/Rail.d.ts +15 -0
  154. package/dist/ui/models/Rail.js +117 -0
  155. package/dist/ui/models/ResourceStore.d.ts +12 -0
  156. package/dist/ui/models/ResourceStore.js +101 -0
  157. package/dist/ui/models/SingleBot.d.ts +20 -0
  158. package/dist/ui/models/SingleBot.js +202 -0
  159. package/dist/ui/models/SingleGripperRobot.d.ts +19 -0
  160. package/dist/ui/models/SingleGripperRobot.js +272 -0
  161. package/dist/ui/models/SingleJointRobot.d.ts +22 -0
  162. package/dist/ui/models/SingleJointRobot.js +346 -0
  163. package/dist/ui/shapes/NamePlate.d.ts +10 -1
  164. package/dist/ui/shapes/NamePlate.js +85 -0
  165. package/dist/ui/shapes/ScrewHole.d.ts +8 -1
  166. package/dist/ui/shapes/ScrewHole.js +57 -0
  167. package/dist/ui/shapes/Texture.d.ts +12 -3
  168. package/dist/ui/shapes/Texture.js +51 -0
  169. package/dist/ui/utils/attr.d.ts +10 -3
  170. package/dist/ui/utils/attr.js +50 -0
  171. package/dist/utils/index.js +92 -0
  172. package/dist/utils/type-guards.d.ts +1 -1
  173. package/dist/utils/type-guards.js +105 -0
  174. package/package.json +2 -2
@@ -1,412 +1,3 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
2
- caseInputRef: ({
3
- $: import('vue').ComponentInternalInstance;
4
- $data: {};
5
- $props: Partial<{
6
- disabled: boolean;
7
- tabindex: string | number;
8
- type: import('element-plus').InputType;
9
- modelValue: string | number | null;
10
- modelModifiers: import('element-plus').InputModelModifiers;
11
- autocomplete: string;
12
- clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
13
- wordLimitPosition: "inside" | "outside";
14
- validateEvent: boolean;
15
- inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
16
- rows: number;
17
- }> & Omit<{
18
- readonly type: import('element-plus').InputType;
19
- readonly modelValue: string | number | null;
20
- readonly validateEvent: boolean;
21
- readonly autocomplete: string;
22
- readonly tabindex: string | number;
23
- readonly inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
24
- readonly modelModifiers: import('element-plus').InputModelModifiers;
25
- readonly wordLimitPosition: "inside" | "outside";
26
- readonly rows: number;
27
- readonly name?: string | undefined;
28
- readonly disabled?: boolean | undefined;
29
- readonly id?: string | undefined;
30
- readonly size?: import('element-plus').ComponentSize | undefined;
31
- readonly form?: string | undefined;
32
- readonly placeholder?: string | undefined;
33
- readonly readonly?: boolean | undefined;
34
- readonly ariaLabel?: string | undefined;
35
- readonly inputmode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
36
- readonly clearable?: boolean | undefined;
37
- readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
38
- readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
39
- readonly autofocus?: boolean | undefined;
40
- readonly maxlength?: string | number | undefined;
41
- readonly minlength?: string | number | undefined;
42
- readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
43
- readonly autosize?: import('element-plus').InputAutoSize | undefined;
44
- readonly formatter?: ((value: string) => string) | undefined;
45
- readonly parser?: ((value: string) => string) | undefined;
46
- readonly showPassword?: boolean | undefined;
47
- readonly showWordLimit?: boolean | undefined;
48
- readonly prefixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
49
- readonly containerRole?: string | undefined;
50
- "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
51
- onInput?: ((value: string) => any) | undefined | undefined;
52
- onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
53
- onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
54
- onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
55
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
56
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
57
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
58
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
59
- onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
60
- onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
61
- onClear?: (() => any) | undefined | undefined;
62
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "modelValue" | "validateEvent" | "autocomplete" | "clearIcon" | "tabindex" | "inputStyle" | "modelModifiers" | "wordLimitPosition" | "rows">;
63
- $attrs: {
64
- [x: string]: unknown;
65
- };
66
- $refs: {
67
- [x: string]: unknown;
68
- };
69
- $slots: Readonly<{
70
- [name: string]: import('vue').Slot<any> | undefined;
71
- }>;
72
- $root: import('vue').ComponentPublicInstance | null;
73
- $parent: import('vue').ComponentPublicInstance | null;
74
- $host: Element | null;
75
- $emit: ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
76
- $el: any;
77
- $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
78
- name: {
79
- type: import('vue').PropType<string>;
80
- };
81
- disabled: {
82
- type: import('vue').PropType<boolean>;
83
- default: undefined;
84
- };
85
- type: {
86
- type: import('vue').PropType<import('element-plus').InputType>;
87
- default: import('element-plus').InputType;
88
- };
89
- id: {
90
- type: import('vue').PropType<string>;
91
- };
92
- size: {
93
- type: import('vue').PropType<"" | "small" | "default" | "large">;
94
- };
95
- form: {
96
- type: import('vue').PropType<string>;
97
- };
98
- placeholder: {
99
- type: import('vue').PropType<string>;
100
- };
101
- modelValue: {
102
- type: import('vue').PropType<string | number | null>;
103
- default: "";
104
- };
105
- readonly: {
106
- type: import('vue').PropType<boolean>;
107
- };
108
- validateEvent: {
109
- type: import('vue').PropType<boolean>;
110
- default: true;
111
- };
112
- ariaLabel: {
113
- type: import('vue').PropType<string>;
114
- };
115
- inputmode: {
116
- type: import('vue').PropType<"search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal">;
117
- };
118
- autocomplete: {
119
- type: import('vue').PropType<string>;
120
- default: "off";
121
- };
122
- clearable: {
123
- type: import('vue').PropType<boolean>;
124
- };
125
- clearIcon: {
126
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
127
- default: any;
128
- };
129
- suffixIcon: {
130
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
131
- };
132
- tabindex: {
133
- type: import('vue').PropType<string | number>;
134
- default: 0;
135
- };
136
- inputStyle: {
137
- type: import('vue').PropType<string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null>;
138
- default: () => {};
139
- };
140
- autofocus: {
141
- type: import('vue').PropType<boolean>;
142
- };
143
- modelModifiers: {
144
- type: import('vue').PropType<import('element-plus').InputModelModifiers>;
145
- default: () => {};
146
- };
147
- maxlength: {
148
- type: import('vue').PropType<string | number>;
149
- };
150
- minlength: {
151
- type: import('vue').PropType<string | number>;
152
- };
153
- resize: {
154
- type: import('vue').PropType<"none" | "both" | "horizontal" | "vertical">;
155
- };
156
- autosize: {
157
- type: import('vue').PropType<import('element-plus').InputAutoSize>;
158
- };
159
- formatter: {
160
- type: import('vue').PropType<(value: string) => string>;
161
- };
162
- parser: {
163
- type: import('vue').PropType<(value: string) => string>;
164
- };
165
- showPassword: {
166
- type: import('vue').PropType<boolean>;
167
- };
168
- showWordLimit: {
169
- type: import('vue').PropType<boolean>;
170
- };
171
- wordLimitPosition: {
172
- type: import('vue').PropType<"inside" | "outside">;
173
- default: "inside";
174
- };
175
- prefixIcon: {
176
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
177
- };
178
- containerRole: {
179
- type: import('vue').PropType<string>;
180
- };
181
- rows: {
182
- type: import('vue').PropType<number>;
183
- default: 2;
184
- };
185
- }>> & {
186
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
187
- onInput?: ((value: string) => any) | undefined;
188
- onFocus?: ((evt: FocusEvent) => any) | undefined;
189
- onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
190
- onBlur?: ((evt: FocusEvent) => any) | undefined;
191
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
192
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
193
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
194
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
195
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
196
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
197
- onClear?: (() => any) | undefined;
198
- }, {
199
- input: import('vue').ShallowRef<HTMLInputElement | undefined>;
200
- textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
201
- ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
202
- textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
203
- autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined>;
204
- isComposing: import('vue').Ref<boolean>;
205
- focus: () => void | undefined;
206
- blur: () => void | undefined;
207
- select: () => void;
208
- clear: () => void;
209
- resizeTextarea: () => void;
210
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
211
- input: (value: string) => void;
212
- focus: (evt: FocusEvent) => void;
213
- "update:modelValue": (value: string) => void;
214
- change: (value: string, evt?: Event | undefined) => void;
215
- clear: () => void;
216
- blur: (evt: FocusEvent) => void;
217
- compositionend: (evt: CompositionEvent) => void;
218
- compositionstart: (evt: CompositionEvent) => void;
219
- compositionupdate: (evt: CompositionEvent) => void;
220
- keydown: (evt: Event | KeyboardEvent) => void;
221
- mouseenter: (evt: MouseEvent) => void;
222
- mouseleave: (evt: MouseEvent) => void;
223
- }, string, {
224
- disabled: boolean;
225
- tabindex: string | number;
226
- type: import('element-plus').InputType;
227
- modelValue: string | number | null;
228
- modelModifiers: import('element-plus').InputModelModifiers;
229
- autocomplete: string;
230
- clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
231
- wordLimitPosition: "inside" | "outside";
232
- validateEvent: boolean;
233
- inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
234
- rows: number;
235
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
236
- beforeCreate?: (() => void) | (() => void)[];
237
- created?: (() => void) | (() => void)[];
238
- beforeMount?: (() => void) | (() => void)[];
239
- mounted?: (() => void) | (() => void)[];
240
- beforeUpdate?: (() => void) | (() => void)[];
241
- updated?: (() => void) | (() => void)[];
242
- activated?: (() => void) | (() => void)[];
243
- deactivated?: (() => void) | (() => void)[];
244
- beforeDestroy?: (() => void) | (() => void)[];
245
- beforeUnmount?: (() => void) | (() => void)[];
246
- destroyed?: (() => void) | (() => void)[];
247
- unmounted?: (() => void) | (() => void)[];
248
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
249
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
250
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
251
- };
252
- $forceUpdate: () => void;
253
- $nextTick: typeof import('vue').nextTick;
254
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
255
- } & Readonly<{
256
- disabled: boolean;
257
- tabindex: string | number;
258
- type: import('element-plus').InputType;
259
- modelValue: string | number | null;
260
- modelModifiers: import('element-plus').InputModelModifiers;
261
- autocomplete: string;
262
- clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
263
- wordLimitPosition: "inside" | "outside";
264
- validateEvent: boolean;
265
- inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
266
- rows: number;
267
- }> & Omit<Readonly<import('vue').ExtractPropTypes<{
268
- name: {
269
- type: import('vue').PropType<string>;
270
- };
271
- disabled: {
272
- type: import('vue').PropType<boolean>;
273
- default: undefined;
274
- };
275
- type: {
276
- type: import('vue').PropType<import('element-plus').InputType>;
277
- default: import('element-plus').InputType;
278
- };
279
- id: {
280
- type: import('vue').PropType<string>;
281
- };
282
- size: {
283
- type: import('vue').PropType<"" | "small" | "default" | "large">;
284
- };
285
- form: {
286
- type: import('vue').PropType<string>;
287
- };
288
- placeholder: {
289
- type: import('vue').PropType<string>;
290
- };
291
- modelValue: {
292
- type: import('vue').PropType<string | number | null>;
293
- default: "";
294
- };
295
- readonly: {
296
- type: import('vue').PropType<boolean>;
297
- };
298
- validateEvent: {
299
- type: import('vue').PropType<boolean>;
300
- default: true;
301
- };
302
- ariaLabel: {
303
- type: import('vue').PropType<string>;
304
- };
305
- inputmode: {
306
- type: import('vue').PropType<"search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal">;
307
- };
308
- autocomplete: {
309
- type: import('vue').PropType<string>;
310
- default: "off";
311
- };
312
- clearable: {
313
- type: import('vue').PropType<boolean>;
314
- };
315
- clearIcon: {
316
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
317
- default: any;
318
- };
319
- suffixIcon: {
320
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
321
- };
322
- tabindex: {
323
- type: import('vue').PropType<string | number>;
324
- default: 0;
325
- };
326
- inputStyle: {
327
- type: import('vue').PropType<string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null>;
328
- default: () => {};
329
- };
330
- autofocus: {
331
- type: import('vue').PropType<boolean>;
332
- };
333
- modelModifiers: {
334
- type: import('vue').PropType<import('element-plus').InputModelModifiers>;
335
- default: () => {};
336
- };
337
- maxlength: {
338
- type: import('vue').PropType<string | number>;
339
- };
340
- minlength: {
341
- type: import('vue').PropType<string | number>;
342
- };
343
- resize: {
344
- type: import('vue').PropType<"none" | "both" | "horizontal" | "vertical">;
345
- };
346
- autosize: {
347
- type: import('vue').PropType<import('element-plus').InputAutoSize>;
348
- };
349
- formatter: {
350
- type: import('vue').PropType<(value: string) => string>;
351
- };
352
- parser: {
353
- type: import('vue').PropType<(value: string) => string>;
354
- };
355
- showPassword: {
356
- type: import('vue').PropType<boolean>;
357
- };
358
- showWordLimit: {
359
- type: import('vue').PropType<boolean>;
360
- };
361
- wordLimitPosition: {
362
- type: import('vue').PropType<"inside" | "outside">;
363
- default: "inside";
364
- };
365
- prefixIcon: {
366
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
367
- };
368
- containerRole: {
369
- type: import('vue').PropType<string>;
370
- };
371
- rows: {
372
- type: import('vue').PropType<number>;
373
- default: 2;
374
- };
375
- }>> & {
376
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
377
- onInput?: ((value: string) => any) | undefined;
378
- onFocus?: ((evt: FocusEvent) => any) | undefined;
379
- onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
380
- onBlur?: ((evt: FocusEvent) => any) | undefined;
381
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
382
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
383
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
384
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
385
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
386
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
387
- onClear?: (() => any) | undefined;
388
- }, "disabled" | "type" | "blur" | "clear" | "input" | "select" | "textarea" | "ref" | "modelValue" | "validateEvent" | "focus" | "autocomplete" | "clearIcon" | "tabindex" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
389
- input: import('vue').ShallowRef<HTMLInputElement | undefined>;
390
- textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
391
- ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
392
- textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
393
- autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined>;
394
- isComposing: import('vue').Ref<boolean>;
395
- focus: () => void | undefined;
396
- blur: () => void | undefined;
397
- select: () => void;
398
- clear: () => void;
399
- resizeTextarea: () => void;
400
- }> & {} & import('vue').ComponentCustomProperties & {} & {
401
- $slots: {
402
- prepend?: (props: {}) => any;
403
- } & {
404
- prefix?: (props: {}) => any;
405
- } & {
406
- suffix?: (props: {}) => any;
407
- } & {
408
- append?: (props: {}) => any;
409
- };
410
- }) | null;
411
- }, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
412
3
  export default _default;
@@ -0,0 +1,108 @@
1
+ import { ref } from 'vue';
2
+ import { storeToRefs } from 'pinia';
3
+ import { useEditorStore } from '@/stores';
4
+ import { ElButton, ElInput } from 'element-plus';
5
+ import { Select } from '@element-plus/icons-vue';
6
+ const editorStore = useEditorStore();
7
+ const { currentCase } = storeToRefs(editorStore);
8
+ const caseInputRef = ref();
9
+ const focusTitle = ref(false);
10
+ const handleTitleEdit = () => {
11
+ focusTitle.value = true;
12
+ requestAnimationFrame(() => {
13
+ caseInputRef.value.focus();
14
+ });
15
+ };
16
+ const handleTitleChange = () => {
17
+ focusTitle.value = false;
18
+ };
19
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
20
+ const __VLS_ctx = {
21
+ ...{},
22
+ ...{},
23
+ };
24
+ let __VLS_components;
25
+ let __VLS_directives;
26
+ if (__VLS_ctx.currentCase && __VLS_ctx.focusTitle) {
27
+ // @ts-ignore
28
+ [currentCase, focusTitle,];
29
+ const __VLS_0 = {}.ElInput;
30
+ /** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
31
+ // @ts-ignore
32
+ ElInput;
33
+ // @ts-ignore
34
+ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
35
+ ...{ 'onBlur': {} },
36
+ ref: "caseInputRef",
37
+ modelValue: (__VLS_ctx.currentCase.title),
38
+ maxlength: "20",
39
+ placeholder: "请输入方案名称",
40
+ showWordLimit: true,
41
+ type: "text",
42
+ size: "default",
43
+ ...{ style: "width: 300px" },
44
+ }));
45
+ const __VLS_2 = __VLS_1({
46
+ ...{ 'onBlur': {} },
47
+ ref: "caseInputRef",
48
+ modelValue: (__VLS_ctx.currentCase.title),
49
+ maxlength: "20",
50
+ placeholder: "请输入方案名称",
51
+ showWordLimit: true,
52
+ type: "text",
53
+ size: "default",
54
+ ...{ style: "width: 300px" },
55
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
56
+ let __VLS_5;
57
+ const __VLS_6 = ({ blur: {} },
58
+ { onBlur: (__VLS_ctx.handleTitleChange) });
59
+ /** @type {typeof __VLS_ctx.caseInputRef} */ ;
60
+ var __VLS_7 = {};
61
+ const { default: __VLS_9 } = __VLS_3.slots;
62
+ // @ts-ignore
63
+ [currentCase, handleTitleChange, caseInputRef,];
64
+ {
65
+ const { append: __VLS_10 } = __VLS_3.slots;
66
+ const __VLS_11 = {}.ElButton;
67
+ /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
68
+ // @ts-ignore
69
+ ElButton;
70
+ // @ts-ignore
71
+ const __VLS_12 = __VLS_asFunctionalComponent(__VLS_11, new __VLS_11({
72
+ icon: (__VLS_ctx.Select),
73
+ }));
74
+ const __VLS_13 = __VLS_12({
75
+ icon: (__VLS_ctx.Select),
76
+ }, ...__VLS_functionalComponentArgsRest(__VLS_12));
77
+ // @ts-ignore
78
+ [Select,];
79
+ }
80
+ var __VLS_3;
81
+ var __VLS_4;
82
+ }
83
+ else {
84
+ if (__VLS_ctx.currentCase) {
85
+ // @ts-ignore
86
+ [currentCase,];
87
+ __VLS_asFunctionalElement(__VLS_intrinsics.h1, __VLS_intrinsics.h1)({
88
+ ...{ onClick: (__VLS_ctx.handleTitleEdit) },
89
+ ...{ class: "case_title" },
90
+ });
91
+ // @ts-ignore
92
+ [handleTitleEdit,];
93
+ (__VLS_ctx.currentCase.title);
94
+ // @ts-ignore
95
+ [currentCase,];
96
+ }
97
+ else {
98
+ __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
99
+ ...{ class: "noData" },
100
+ });
101
+ }
102
+ }
103
+ /** @type {__VLS_StyleScopedClasses['case_title']} */ ;
104
+ /** @type {__VLS_StyleScopedClasses['noData']} */ ;
105
+ // @ts-ignore
106
+ var __VLS_8 = __VLS_7;
107
+ const __VLS_export = (await import('vue')).defineComponent({});
108
+ export default {};
@@ -1,4 +1,5 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {
2
2
  showVisible: () => void;
3
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
3
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ declare const _default: typeof __VLS_export;
4
5
  export default _default;