@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.
package/components/ky-cell.vue
CHANGED
package/components/ky-fetch.vue
CHANGED
|
@@ -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;
|
package/components/ky-picker.vue
CHANGED
|
@@ -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,
|