@uxda/appkit 4.0.18 → 4.1.2

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/dist/index.js CHANGED
@@ -311,6 +311,7 @@ function useCrypto(config) {
311
311
  return result;
312
312
  };
313
313
  const resolve = (list, field) => {
314
+ if (list.length === 0) return [];
314
315
  const [first] = list, f = field ? Array.isArray(field) ? field : [field] : Object.entries(first).filter(([_, v]) => /^\{.*\}$/.test(v)).map(([k]) => k);
315
316
  return list.map((item) => {
316
317
  let result = { ...item };
@@ -5718,6 +5719,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
5718
5719
  createElementVNode("div", _hoisted_22, [
5719
5720
  createVNode(_component_nut_button, {
5720
5721
  class: "user-info-ft-btn",
5722
+ style: { "width": "100%" },
5721
5723
  onClick: toLogout,
5722
5724
  plain: "",
5723
5725
  type: "primary"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.0.18",
3
+ "version": "4.1.2",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -48,6 +48,7 @@ export function useCrypto (config?: CryptoConfig) {
48
48
  * @returns
49
49
  */
50
50
  const resolve = (list: any[], field?: string | string[]) => {
51
+ if (list.length === 0) return []
51
52
  const [first] = list,
52
53
  f = field
53
54
  ? Array.isArray(field) ? field : [field]
@@ -110,7 +110,12 @@
110
110
  </div>
111
111
 
112
112
  <div class="user-info-ft">
113
- <nut-button class="user-info-ft-btn" @click="toLogout" plain type="primary"
113
+ <nut-button
114
+ class="user-info-ft-btn"
115
+ style="width: 100%"
116
+ @click="toLogout"
117
+ plain
118
+ type="primary"
114
119
  >退出登录</nut-button
115
120
  >
116
121
  </div>