@uxda/appkit 4.1.26 → 4.1.40

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/appkit.css CHANGED
@@ -72,10 +72,6 @@
72
72
  .app-drawer.open {
73
73
  height: 100vh;
74
74
  }
75
- .app-drawer .page-header {
76
- flex-grow: 0;
77
- background-color: #fff;
78
- }
79
75
  .app-drawer .drawer-body {
80
76
  flex-grow: 1;
81
77
  overflow: scroll;
@@ -112,7 +108,7 @@
112
108
  }
113
109
  .app-verify .form .nut-cell-group__wrap .form-btn {
114
110
  margin-left: 12px;
115
- width: 90px;
111
+ width: 105px;
116
112
  }
117
113
  .app-verify .buttons .ns-button {
118
114
  width: 104px;
@@ -439,9 +435,6 @@ page {
439
435
  --text-color: #333;
440
436
  --text-color-dark-mode: #eee;
441
437
  }
442
- .number {
443
- font-family: 'DIN alternate', 'Barlow Condensed', 'Roboto Condensed', sans-serif-condensed-light;
444
- }
445
438
  .account-card .card {
446
439
  background: #2f2f2f;
447
440
  border-radius: 10px;
@@ -965,9 +958,11 @@ page {
965
958
  }
966
959
  .operation-box .operation-list .operation-scroll {
967
960
  height: calc(100vh - 130px);
968
- padding: 0 15px;
969
961
  box-sizing: border-box;
970
962
  }
963
+ .operation-box .operation-list .box {
964
+ padding: 0 10px;
965
+ }
971
966
  .operation-box .operation-list .box-detail .title {
972
967
  line-height: 22px;
973
968
  font-weight: 700;
package/dist/index.js CHANGED
@@ -626,7 +626,6 @@ var script$F = /* @__PURE__ */ defineComponent({
626
626
  createElementVNode("div", _hoisted_6$5, [
627
627
  createVNode(unref(NsButton), {
628
628
  class: "cancel-btn",
629
- round: "",
630
629
  onClick: _cache[2] || (_cache[2] = ($event) => emits("cancel"))
631
630
  }, {
632
631
  default: withCtx(() => _cache[3] || (_cache[3] = [
@@ -636,7 +635,6 @@ var script$F = /* @__PURE__ */ defineComponent({
636
635
  /* STABLE */
637
636
  }),
638
637
  createVNode(unref(NsButton), {
639
- round: "",
640
638
  gradient: "#FFEBC1,#FFD7A7,#FFB875/90",
641
639
  onClick: onOk
642
640
  }, {
@@ -2370,10 +2368,12 @@ var script$t = /* @__PURE__ */ defineComponent({
2370
2368
  const minDate = ref();
2371
2369
  const maxDate = ref(/* @__PURE__ */ new Date());
2372
2370
  const datePickerOpen = ref(false);
2373
- state.beforeClose = () => {
2374
- datePickerOpen.value = false;
2375
- return true;
2376
- };
2371
+ if (state) {
2372
+ state.beforeClose = () => {
2373
+ datePickerOpen.value = false;
2374
+ return true;
2375
+ };
2376
+ }
2377
2377
  function reset() {
2378
2378
  emit("reset");
2379
2379
  }
@@ -2746,6 +2746,7 @@ var script$p = /* @__PURE__ */ defineComponent({
2746
2746
  } else {
2747
2747
  reachedLastPage.value = false;
2748
2748
  }
2749
+ }).finally(() => {
2749
2750
  Taro.hideLoading();
2750
2751
  });
2751
2752
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.1.26",
3
+ "version": "4.1.40",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -300,6 +300,7 @@ async function loadConsumptions(append: boolean = false) {
300
300
  } else {
301
301
  reachedLastPage.value = false
302
302
  }
303
+ }).finally(() => {
303
304
  Taro.hideLoading()
304
305
  })
305
306
  }
@@ -611,10 +612,10 @@ onMounted(() => {
611
612
  width: 100%;
612
613
  .operation-scroll {
613
614
  height: calc(100vh - 130px);
614
- padding: 0 15px;
615
615
  box-sizing: border-box;
616
616
  }
617
617
  .box {
618
+ padding: 0 10px;
618
619
  &-detail {
619
620
  .title {
620
621
  line-height: 22px;
@@ -75,9 +75,11 @@ const minDate = ref<any>()
75
75
  const maxDate = ref<Date>(new Date())
76
76
  const datePickerOpen = ref<boolean>(false)
77
77
 
78
- state.beforeClose = () => {
79
- datePickerOpen.value = false
80
- return true
78
+ if (state) {
79
+ state.beforeClose = () => {
80
+ datePickerOpen.value = false
81
+ return true
82
+ }
81
83
  }
82
84
 
83
85
  /**
@@ -47,10 +47,6 @@ const onPageHeaderClose = () => {
47
47
  &.open {
48
48
  height: 100vh;
49
49
  }
50
- .page-header {
51
- flex-grow: 0;
52
- background-color: #fff;
53
- }
54
50
  .drawer-body {
55
51
  flex-grow: 1;
56
52
  overflow: scroll;
@@ -31,12 +31,8 @@
31
31
  </div>
32
32
  </ns-form>
33
33
  <div class="row buttons">
34
- <ns-button class="cancel-btn" round @click="emits('cancel')"
35
- >取消</ns-button
36
- >
37
- <ns-button round gradient="#FFEBC1,#FFD7A7,#FFB875/90" @click="onOk"
38
- >确认</ns-button
39
- >
34
+ <ns-button class="cancel-btn" @click="emits('cancel')">取消</ns-button>
35
+ <ns-button gradient="#FFEBC1,#FFD7A7,#FFB875/90" @click="onOk">确认</ns-button>
40
36
  </div>
41
37
  </div>
42
38
  </template>
@@ -86,6 +82,7 @@ const props = defineProps<AppVerifyProps>();
86
82
  <style lang="scss">
87
83
  .app-verify {
88
84
  padding: var(--ns-spacing);
85
+
89
86
  h2 {
90
87
  font-size: 16px;
91
88
  font-weight: bold;
@@ -114,7 +111,7 @@ const props = defineProps<AppVerifyProps>();
114
111
  }
115
112
  .form-btn {
116
113
  margin-left: 12px;
117
- width: 90px;
114
+ width: 105px;
118
115
  }
119
116
  }
120
117
  .buttons {
@@ -1,3 +0,0 @@
1
- .number {
2
- font-family: 'DIN alternate', 'Barlow Condensed', 'Roboto Condensed', sans-serif-condensed-light;
3
- }