@kaiyinchem/ky-uniui 1.1.14 → 1.1.17

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.
@@ -365,9 +365,10 @@
365
365
  right: 0;
366
366
  display: flex;
367
367
  align-items: center;
368
- justify-content: space-between;
368
+ justify-content: center;
369
369
  &.hasLeft {
370
370
  height: 90rpx;
371
+ justify-content: space-between;
371
372
  .btn-main {
372
373
  width: 200rpx;
373
374
  margin: 0;
@@ -36,7 +36,7 @@
36
36
  </template>
37
37
 
38
38
  <script>
39
- const isDark = uni.getAppBaseInfo().theme
39
+ const isDark = uni.getAppBaseInfo().theme !== 'light'
40
40
  const windowInfo = uni.getWindowInfo()
41
41
 
42
42
  export default {
@@ -96,9 +96,9 @@
96
96
  const currVal = this.list[index]
97
97
  this.checked = this.ids[index]
98
98
  const valProps = this.setVal(this.value)
99
- if (valProps === this.checked) {
100
- return
101
- }
99
+ // if (valProps === this.checked) {
100
+ // return
101
+ // }
102
102
  this.index = index
103
103
  currVal.index = index
104
104
  this.$emit('update:value', this.checked)
@@ -118,6 +118,9 @@
118
118
  }
119
119
  },
120
120
  computed: {
121
+ hasIcon() {
122
+ return this.menu.find(e => e.icon)
123
+ },
121
124
  $safeBottom() {
122
125
  return uni.getSystemInfoSync().safeAreaInsets.bottom
123
126
  }
@@ -127,7 +130,6 @@
127
130
  },
128
131
  methods: {
129
132
  onTabClick(index) {
130
- console.log('当前索引:', index)
131
133
  if (this.disabled) {
132
134
  return
133
135
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "locale"
10
10
  ],
11
11
  "description": "an uniapp ui",
12
- "version": "1.1.14",
12
+ "version": "1.1.17",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/yezipi/ky-uniui.git"