@kengic/uni 0.7.13 → 0.7.14-beta.0

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.
@@ -27,7 +27,7 @@ log(`当前目录 | ${process.cwd()}`);
27
27
  /**
28
28
  * 要排除的包名列表.
29
29
  */
30
- const EXCLUDE_PACKAGE_LIST = ['commander', 'chalk', '@kengic/core.core'];
30
+ const EXCLUDE_PACKAGE_LIST = ['commander', 'chalk'];
31
31
 
32
32
  let json01 = null;
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.7.13",
3
+ "version": "0.7.14-beta.0",
4
4
  "scripts": {
5
5
  "postinstall": "node bin/postinstall.mjs"
6
6
  },
package/page/KgPageMy.vue CHANGED
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <view class="my">
3
3
  <UniList class="uni-list-setting">
4
- <UniListItem link title="语言" :right-text="stationRightText$$" @click="openKgStation" />
5
- <UniListItem link title="仓库" :right-text="kgWarehouse.warehouse.value?.whDsc ?? kgWarehouse.warehouse.value?.whId ?? ''" @click="openKgWarehouse" />
4
+ <UniListItem link title="语言" :right-text="localeRightText$$" @click="$LocalePopup$open" />
5
+ <UniListItem link title="仓库" :right-text="warehouseRightText$$" @click="openKgWarehouse" />
6
6
  <UniListItem link title="工作站 - 工作区" :right-text="stationRightText$$" @click="openKgStation" />
7
7
  <UniListItem link title="后端服务地址" :right-text="apiUrl" />
8
8
 
@@ -14,8 +14,21 @@
14
14
  <UniListItem class="list-item-logout" clickable title="退出系统" @click="logout" />
15
15
  </UniList>
16
16
  </view>
17
- <KgWarehouse ref="kgWarehouseRef"></KgWarehouse>
18
- <KgStation ref="kgStationRef"></KgStation>
17
+
18
+ <UniPopup ref="localePopupRef$" :type="'bottom'">
19
+ <UniCard :isFull="true" :title="'语言'">
20
+ <view>
21
+ <view class="login-config-form"> TODO </view>
22
+ <view class="buttons">
23
+ <button class="btn btn-cancel" @tap.stop="$LocalePopup$cancel()">取消</button>
24
+ <button :type="'primary' as any" class="btn btn-ok" @tap.stop="$LocalePopup$ok">确认</button>
25
+ </view>
26
+ </view>
27
+ </UniCard>
28
+ </UniPopup>
29
+
30
+ <KgWarehouse ref="kgWarehouseRef$"></KgWarehouse>
31
+ <KgStation ref="kgStationRef$"></KgStation>
19
32
  <!--#ifdef APP-PLUS-->
20
33
  <KgUpdatePopup />
21
34
  <!--#endif-->
@@ -26,20 +39,31 @@
26
39
  import { computed, ref } from 'vue';
27
40
  import { useAppStore } from '../store/app.store';
28
41
  import { KgStation, KgTabBar, KgUpdatePopup, KgWarehouse, useKgStation, useKgWarehouse } from '../component';
29
- import { UniList, UniListItem } from '../uni-ui';
42
+ import { UniCard, UniList, UniListItem, UniPopup } from '../uni-ui';
30
43
  import { KgUtil } from '../util';
31
44
 
32
45
  const appStore = useAppStore();
33
46
  const kgWarehouse = useKgWarehouse();
34
47
  const kgStation = useKgStation();
35
48
 
36
- const kgWarehouseRef = ref<any>(null);
37
- const kgStationRef = ref<any>(null);
38
-
39
49
  //region DATA
40
50
  // ----------------------------------------------------------------------------------------------------
51
+ const kgWarehouseRef$ = ref<any>(null);
52
+ const kgStationRef$ = ref<any>(null);
53
+ const localePopupRef$ = ref<any>(null);
54
+
55
+ /**
56
+ * 语言的右侧文本.
57
+ */
58
+ const localeRightText$$ = computed<string>(() => 'TODO');
59
+
41
60
  /**
42
- * 工作站的右侧文本.
61
+ * 仓库的右侧文本.
62
+ */
63
+ const warehouseRightText$$ = computed<string>(() => kgWarehouse.warehouse.value?.whDsc ?? kgWarehouse.warehouse.value?.whId ?? '');
64
+
65
+ /**
66
+ * 工作站工作区的右侧文本.
43
67
  */
44
68
  const stationRightText$$ = computed<string>(() => {
45
69
  let text = kgStation.station.value?.devcodDsc ?? kgStation.station.value?.devcod ?? '';
@@ -70,18 +94,39 @@
70
94
  });
71
95
  }
72
96
 
97
+ /**
98
+ * 语言选择弹窗--打开.
99
+ */
100
+ function $LocalePopup$open() {
101
+ localePopupRef$.value?.open();
102
+ }
103
+
104
+ /**
105
+ * 语言选择弹窗--取消.
106
+ */
107
+ function $LocalePopup$cancel() {
108
+ localePopupRef$.value?.close();
109
+ }
110
+
111
+ /**
112
+ * 语言选择弹窗--确定.
113
+ */
114
+ function $LocalePopup$ok() {
115
+ localePopupRef$.value?.close();
116
+ }
117
+
73
118
  /**
74
119
  * 打开仓库选择弹窗.
75
120
  */
76
121
  function openKgWarehouse() {
77
- kgWarehouseRef.value?.open();
122
+ kgWarehouseRef$.value?.open();
78
123
  }
79
124
 
80
125
  /**
81
126
  * 打开工作站选择弹窗.
82
127
  */
83
128
  function openKgStation() {
84
- kgStationRef.value?.open();
129
+ kgStationRef$.value?.open();
85
130
  }
86
131
 
87
132
  const apiUrl = computed<string>(() => appStore.getApiUrl ?? '');