uni-oaview 1.0.31 → 1.0.32

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.
@@ -50,7 +50,7 @@
50
50
  areaList.value = [{ value: 'area-empty', label: '空' }];
51
51
  const areas = cityList.value?.find(({ value }) => value === city)?.children;
52
52
  if (areas?.length) {
53
- areaList.value = [{ value: 'area-empty', label: '空' }, ...areas];
53
+ areaList.value.push(...areas);
54
54
  }
55
55
  state.value = [provinceList.value.findIndex((item) => item.value === province)];
56
56
  if (city) {
@@ -68,7 +68,7 @@
68
68
  areaList.value = [{ value: 'area-empty', label: '空' }];
69
69
  const areas = cityList.value?.[0]?.children;
70
70
  if (areas?.length) {
71
- areaList.value = [{ value: 'area-empty', label: '空' }, ...areas];
71
+ areaList.value.push(...areas);
72
72
  }
73
73
  }
74
74
  };
@@ -103,9 +103,9 @@
103
103
  const selectedProvince = provinceList.value[state.value[0]]; // 获取当前选中的省数据
104
104
  const selectedCity = selectedProvince?.children?.[state.value[1]]; // 获取当前选中的市数据
105
105
  cityList.value = selectedProvince?.children || [{ value: 'city-empty', label: '空' }]; // 根据新的省数据重新赋值市数据
106
- areaList.value = [{ value: 'city-empty', label: '空' }]; // 根据新的市数据重新赋值区数据
106
+ areaList.value = [{ value: 'area-empty', label: '空' }]; // 根据新的市数据重新赋值区数据
107
107
  if (selectedCity?.children?.length) {
108
- areaList.value = [{ value: 'city-empty', label: '空' }, ...selectedCity?.children]; // 根据新的市数据重新赋值区数据
108
+ areaList.value.push(...selectedCity?.children); // 根据新的市数据重新赋值区数据
109
109
  }
110
110
  }, 200);
111
111
  </script>
@@ -8,17 +8,19 @@
8
8
  <text v-if="innerModelValue?.length">({{ innerModelValue?.length }})</text>
9
9
  </view>
10
10
  </view>
11
- <view class="content-box">
12
- <view @click="clickHandler(item)" class="content-item" v-for="item in options" :key="item[valueKey ?? 'value']">
13
- <uni-icons
14
- class="content-item-icon"
15
- :type="innerModelValue?.includes(item[valueKey ?? 'value']) ? 'checkbox-filled' : 'circle'"
16
- size="25"
17
- :color="innerModelValue?.includes(item[valueKey ?? 'value']) ? '#259af5' : '#c5cace'"
18
- ></uni-icons>
19
- <text class="content-item-text" style="margin-left: 8px">{{ item[labelKey ?? 'label'] }}</text>
11
+ <scroll-view style="height: 300px" :scroll-y="true">
12
+ <view class="content-box">
13
+ <view @click="clickHandler(item)" class="content-item" v-for="item in options" :key="item[valueKey ?? 'value']">
14
+ <uni-icons
15
+ class="content-item-icon"
16
+ :type="innerModelValue?.includes(item[valueKey ?? 'value']) ? 'checkbox-filled' : 'circle'"
17
+ size="25"
18
+ :color="innerModelValue?.includes(item[valueKey ?? 'value']) ? '#259af5' : '#c5cace'"
19
+ ></uni-icons>
20
+ <text class="content-item-text" style="margin-left: 8px">{{ item[labelKey ?? 'label'] }}</text>
21
+ </view>
20
22
  </view>
21
- </view>
23
+ </scroll-view>
22
24
  </oa-popup>
23
25
  </template>
24
26
 
@@ -90,8 +92,7 @@
90
92
  }
91
93
  }
92
94
  .content-box {
93
- height: 300px;
94
- overflow-y: auto;
95
+ height: 100%;
95
96
  & > .content-item {
96
97
  height: 54px;
97
98
  display: flex;
package/dist/index.esm.js CHANGED
@@ -11,6 +11,7 @@ function sendLaunchAppParamsLog(params) {
11
11
  try {
12
12
  var outputData = JSON.parse(JSON.stringify((_a = params === null || params === void 0 ? void 0 : params.referrerInfo) === null || _a === void 0 ? void 0 : _a.extraData));
13
13
  outputData === null || outputData === void 0 ? true : delete outputData.token;
14
+ outputData === null || outputData === void 0 ? true : delete outputData.loginUserInfo;
14
15
  reportLog(outputData, '小程序启动入参');
15
16
  } catch (error) {
16
17
  console.log(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-oaview",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "uniapp小程序组件库",
5
5
  "main": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,6 +10,7 @@ export function sendLaunchAppParamsLog(params: any) {
10
10
  try {
11
11
  const outputData = JSON.parse(JSON.stringify(params?.referrerInfo?.extraData));
12
12
  delete outputData?.token;
13
+ delete outputData?.loginUserInfo;
13
14
  reportLog(outputData, '小程序启动入参');
14
15
  } catch (error) {
15
16
  console.log(error);