@jnrs/lingshu-smart 2.2.36 → 2.2.37
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/AGENTS.md +8 -6
- package/README.md +2 -2
- package/dist/assets/data/editor_preset_menu.d.ts +8 -0
- package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupDialog.vue.d.ts +4 -0
- package/dist/components/index.js +4239 -30080
- package/dist/components/preview/index.vue.d.ts +208 -0
- package/dist/composables/useCaseLoading.d.ts +10 -0
- package/dist/index-YxSpi9Af.js +131 -0
- package/dist/index.js +41 -153
- package/dist/playground/ViewPageDemo.vue.d.ts +416 -0
- package/dist/stores/index.js +7 -0
- package/dist/stores/useAppStore.d.ts +660 -36
- package/dist/stores/useDataStore.d.ts +660 -36
- package/dist/types/models/config.types.d.ts +4 -0
- package/dist/types/models/operating.types.d.ts +1 -0
- package/dist/ui/models/Pallet.d.ts +10 -1
- package/dist/useAppStore-DQI1btcH.js +26123 -0
- package/package.json +6 -2
package/AGENTS.md
CHANGED
|
@@ -501,7 +501,7 @@ type ILayerOperating =
|
|
|
501
501
|
| `IRGVOperating` | `RGV` | `light?`, `x?`, `j1?`, `forkXY?`, `forkZ?`, `resource?` | 双状态灯、轨道位移、旋转、货叉 XY/Z、双工位槽 | `Rgv` |
|
|
502
502
|
| `IRailOperating` | `RAIL` | `x?`, `botId?` | 拖链动画(关联 botId 的设备移动时拖链跟随) | `Rail` |
|
|
503
503
|
| `IResourceStoreOperating` | `RESOURCE_STORE` | `light?`, `x?`, `resource?` | 状态灯、轨道位移、托盘/刀具工位槽 | `ResourceStore` |
|
|
504
|
-
| `IPalletOperating` | `PALLET` | `light?`, `x?`, `y?`
|
|
504
|
+
| `IPalletOperating` | `PALLET` | `light?`, `x?`, `y?`, `resource?` | 状态灯、X/Y 位移、托盘/刀具工位槽 | `Pallet` |
|
|
505
505
|
|
|
506
506
|
### 子类型字段详情
|
|
507
507
|
|
|
@@ -611,11 +611,12 @@ type ILayerOperating =
|
|
|
611
611
|
|
|
612
612
|
#### IPalletOperating
|
|
613
613
|
|
|
614
|
-
| 属性
|
|
615
|
-
|
|
|
616
|
-
| `light`
|
|
617
|
-
| `x`
|
|
618
|
-
| `y`
|
|
614
|
+
| 属性 | 类型 | 说明 |
|
|
615
|
+
| ---------- | -------------------- | ----------------------- |
|
|
616
|
+
| `light` | `ILightOperating` | 状态灯 |
|
|
617
|
+
| `x` | `number` | 沿 X 轴移动位置(像素) |
|
|
618
|
+
| `y` | `number` | 沿 Y 轴移动位置(像素) |
|
|
619
|
+
| `resource` | `IResourceOperating` | 托盘/刀具工位槽资源增删 |
|
|
619
620
|
|
|
620
621
|
### 子组件运转类型(IComponentOperating)
|
|
621
622
|
|
|
@@ -636,6 +637,7 @@ type ILayerOperating =
|
|
|
636
637
|
| -------------------------------- | ------------------------------ |
|
|
637
638
|
| `@jnrs/lingshu-smart` | 主模块,包含类型定义和工具函数 |
|
|
638
639
|
| `@jnrs/lingshu-smart/components` | Vue 组件库(编辑器、预览器) |
|
|
640
|
+
| `@jnrs/lingshu-smart/stores` | Pinia stores(data/editor/app/debug) |
|
|
639
641
|
| `@jnrs/lingshu-smart/locales` | 国际化配置 |
|
|
640
642
|
|
|
641
643
|
---
|
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ ws.onmessage = (event) => {
|
|
|
136
136
|
通过 `useDebugStore` 的 `setLocale` 方法切换语言,切换后库内所有组件文本实时更新:
|
|
137
137
|
|
|
138
138
|
```typescript
|
|
139
|
-
import { useDebugStore } from '@jnrs/lingshu-smart/stores
|
|
139
|
+
import { useDebugStore } from '@jnrs/lingshu-smart/stores'
|
|
140
140
|
|
|
141
141
|
const debugStore = useDebugStore()
|
|
142
142
|
|
|
@@ -180,7 +180,7 @@ i18n.global.mergeLocaleMessage('ja', {
|
|
|
180
180
|
```typescript
|
|
181
181
|
// 方案1:监听宿主语言变化,同步到库
|
|
182
182
|
import { watch } from 'vue'
|
|
183
|
-
import { useDebugStore } from '@jnrs/lingshu-smart/stores
|
|
183
|
+
import { useDebugStore } from '@jnrs/lingshu-smart/stores'
|
|
184
184
|
|
|
185
185
|
const debugStore = useDebugStore()
|
|
186
186
|
watch(
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
import { IEquipmentsMenu } from '../../types';
|
|
2
2
|
export declare const EQUIPMENTS_MENU: IEquipmentsMenu[];
|
|
3
|
+
/**
|
|
4
|
+
* 获取设备模型的默认宽高
|
|
5
|
+
* 用于布局面板的"重置"按钮,以及部件配置中"无部件时模型高度不低于默认值"的联动计算
|
|
6
|
+
*/
|
|
7
|
+
export declare function getModelDefaultSize(className?: string): {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
} | undefined;
|
package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupDialog.vue.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ interface Props {
|
|
|
6
6
|
flowOptions?: IFlowConfig;
|
|
7
7
|
stationSlots?: IStationSlotConfig[];
|
|
8
8
|
hideBounds?: boolean;
|
|
9
|
+
visible?: boolean | 0;
|
|
9
10
|
containerWidth?: number;
|
|
10
11
|
containerHeight?: number;
|
|
11
12
|
}
|
|
@@ -15,6 +16,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
15
16
|
flowOptions: IFlowConfig;
|
|
16
17
|
stationSlots: IStationSlotConfig[];
|
|
17
18
|
hideBounds: boolean;
|
|
19
|
+
visible: boolean | 0;
|
|
18
20
|
}) => any;
|
|
19
21
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
20
22
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -22,11 +24,13 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
22
24
|
flowOptions: IFlowConfig;
|
|
23
25
|
stationSlots: IStationSlotConfig[];
|
|
24
26
|
hideBounds: boolean;
|
|
27
|
+
visible: boolean | 0;
|
|
25
28
|
}) => any) | undefined;
|
|
26
29
|
}>, {
|
|
27
30
|
hideBounds: boolean;
|
|
28
31
|
stationSlots: IStationSlotConfig[];
|
|
29
32
|
flowOptions: IFlowConfig;
|
|
33
|
+
visible: boolean | 0;
|
|
30
34
|
containerWidth: number;
|
|
31
35
|
containerHeight: number;
|
|
32
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|