@kaiyinchem/ky-uniui 1.0.29 → 1.0.31

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.
@@ -83,8 +83,7 @@
83
83
  @input="onInput"
84
84
  @focus="$emit('focus')"
85
85
  @blur="$emit('blur')"
86
- >
87
- </textarea>
86
+ ></textarea>
88
87
  </view>
89
88
  </view>
90
89
 
@@ -15,7 +15,7 @@
15
15
  <slot name="loading"></slot>
16
16
  </view>
17
17
 
18
- <view v-if="loadState !== 0 && loadState !== 1" class="ky-fetch-error">
18
+ <view v-if="loadState !== 0 && loadState !== 1" :class="{ isRelative }" class="ky-fetch-error">
19
19
 
20
20
  <view v-if="!$slots.nodata || !$slots.error" class="ky-fetch-error-tip" @click="reload">
21
21
  <template v-if="!noIcon">
@@ -318,6 +318,9 @@
318
318
  justify-content: center;
319
319
  align-items: center;
320
320
  z-index: 0;
321
+ &.ky-fetch-error {
322
+ position: isRelative;
323
+ }
321
324
  .ky-fetch-error-tip {
322
325
  display: flex;
323
326
  align-items: center;
@@ -3,6 +3,7 @@
3
3
  :value="mode === 'selector' ? index : multiIndex"
4
4
  :range="names"
5
5
  :mode="mode"
6
+ :fields="fields"
6
7
  :disabled="disabled"
7
8
  :range-key="mode === 'selector' ? '' : 'name'"
8
9
  @change="bindPickerChange"
@@ -55,6 +56,10 @@
55
56
  type: String,
56
57
  default: 'selector',
57
58
  },
59
+ fields: {
60
+ type: String,
61
+ default: 'day', // 有效值 year、month、day
62
+ },
58
63
  disabled: {
59
64
  type: Boolean,
60
65
  default: false,
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "style"
8
8
  ],
9
9
  "description": "an uniapp ui",
10
- "version": "1.0.29",
10
+ "version": "1.0.31",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"