@neatui/vue 2.8.6 → 2.9.0
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/package.json
CHANGED
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
modelValue: 0,
|
|
56
56
|
pos: 'bl',
|
|
57
57
|
event: 'click',
|
|
58
|
-
btnClass: '',
|
|
58
|
+
btnClass: 'dib',
|
|
59
59
|
btnStyle: '',
|
|
60
60
|
tipClass: '',
|
|
61
61
|
tipStyle: '',
|
|
62
62
|
tipBoxClass: '',
|
|
63
63
|
tipBoxStyle: '',
|
|
64
64
|
arrow: {},
|
|
65
|
-
clickTipHide: false
|
|
65
|
+
clickTipHide: false,
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
const dom: any = ref(null);
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
show: 0,
|
|
74
74
|
pos: props.pos,
|
|
75
75
|
hover: 0,
|
|
76
|
-
tipdom: false
|
|
76
|
+
tipdom: false,
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
const showTimer: any = ref(null);
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
state.show = 0;
|
|
93
93
|
}, 100);
|
|
94
94
|
}
|
|
95
|
-
}
|
|
95
|
+
},
|
|
96
96
|
);
|
|
97
97
|
|
|
98
98
|
// 开关
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
emits('update:modelValue', state.show);
|
|
114
114
|
},
|
|
115
|
-
{ deep: true }
|
|
115
|
+
{ deep: true },
|
|
116
116
|
);
|
|
117
117
|
|
|
118
118
|
const hovershow = () => {
|
|
@@ -208,13 +208,13 @@
|
|
|
208
208
|
ex.value.remove();
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
}
|
|
211
|
+
},
|
|
212
212
|
);
|
|
213
213
|
|
|
214
214
|
defineExpose({
|
|
215
215
|
toggle,
|
|
216
216
|
show,
|
|
217
217
|
hide,
|
|
218
|
-
cancel
|
|
218
|
+
cancel,
|
|
219
219
|
});
|
|
220
220
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="fekit-ipull-scroll" :ui-scroll="`:y ${stable ? 'stable' : ''}`" ref="root">
|
|
3
3
|
<div>
|
|
4
4
|
<div class="fs-xs co-text o-mm" fekit-pullload-head="" v-if="pull">
|
|
5
5
|
<div v-show="demo.store.pull < 2" ui-flex="row cm">
|
|
@@ -36,12 +36,16 @@
|
|
|
36
36
|
const props: any = defineProps({
|
|
37
37
|
pull: {
|
|
38
38
|
type: Boolean,
|
|
39
|
-
default: false
|
|
39
|
+
default: false,
|
|
40
40
|
},
|
|
41
41
|
load: {
|
|
42
42
|
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
}
|
|
43
|
+
default: false,
|
|
44
|
+
},
|
|
45
|
+
stable: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false,
|
|
48
|
+
},
|
|
45
49
|
});
|
|
46
50
|
const root: any = ref(null);
|
|
47
51
|
const demo: any = ref(null);
|
|
@@ -54,16 +58,16 @@
|
|
|
54
58
|
? {
|
|
55
59
|
onpull: async () => {
|
|
56
60
|
emits('onpull', demo.value);
|
|
57
|
-
}
|
|
61
|
+
},
|
|
58
62
|
}
|
|
59
63
|
: {}),
|
|
60
64
|
...(props.pull
|
|
61
65
|
? {
|
|
62
66
|
onload: async () => {
|
|
63
67
|
emits('onload', demo.value);
|
|
64
|
-
}
|
|
68
|
+
},
|
|
65
69
|
}
|
|
66
|
-
: {})
|
|
70
|
+
: {}),
|
|
67
71
|
});
|
|
68
72
|
|
|
69
73
|
onMounted(() => {
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
verify: false,
|
|
114
114
|
prefix: () => [],
|
|
115
115
|
suffix: () => [],
|
|
116
|
-
interacted: false
|
|
116
|
+
interacted: false,
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
const state: any = reactive({
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
// 值
|
|
123
123
|
value: props.modelValue,
|
|
124
124
|
// 错误
|
|
125
|
-
error: {}
|
|
125
|
+
error: {},
|
|
126
126
|
});
|
|
127
127
|
// 外部传入交互标识,主要用于外部没有输入但点击了提交
|
|
128
128
|
watch(
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
state.interacted = interacted;
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
|
-
{ deep: true, immediate: true }
|
|
135
|
+
{ deep: true, immediate: true },
|
|
136
136
|
);
|
|
137
137
|
|
|
138
138
|
// 监听外部数据
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
state.error = { tips: props.tips, ontips: props.tips ? 'show' : '', verify: '', co: '' };
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
-
{ deep: true, immediate: true }
|
|
210
|
+
{ deep: true, immediate: true },
|
|
211
211
|
);
|
|
212
212
|
|
|
213
213
|
// 清空
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span class="pr full" ui-flex="row cm">
|
|
3
|
+
<span :ui-order="`@b ${status}`" :style="{ width: size + '%', height: size + '%' }">
|
|
4
|
+
<i></i>
|
|
5
|
+
<b></b>
|
|
6
|
+
<u></u>
|
|
7
|
+
</span>
|
|
8
|
+
</span>
|
|
9
|
+
</template>
|
|
10
|
+
<script setup lang="ts">
|
|
11
|
+
// 类型
|
|
12
|
+
interface Props {
|
|
13
|
+
status?: number;
|
|
14
|
+
size?: number;
|
|
15
|
+
}
|
|
16
|
+
withDefaults(defineProps<Props>(), {
|
|
17
|
+
status: 0,
|
|
18
|
+
size: 100,
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
21
|
+
<style lang="scss">
|
|
22
|
+
[ui-order~='@b'] {
|
|
23
|
+
position: relative;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
|
|
27
|
+
i,
|
|
28
|
+
b,
|
|
29
|
+
u {
|
|
30
|
+
position: absolute;
|
|
31
|
+
display: block;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
left: 0;
|
|
35
|
+
top: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
i {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
|
|
41
|
+
&::before,
|
|
42
|
+
&::after {
|
|
43
|
+
display: block;
|
|
44
|
+
content: '';
|
|
45
|
+
position: absolute;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
left: 0;
|
|
49
|
+
top: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::before {
|
|
53
|
+
background:
|
|
54
|
+
linear-gradient(45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.7% 95% / 30% 35%,
|
|
55
|
+
linear-gradient(-45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 95% / 30% 35%;
|
|
56
|
+
transform: translateY(-50%);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::after {
|
|
60
|
+
background:
|
|
61
|
+
linear-gradient(135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.5% 10% / 30% 35%,
|
|
62
|
+
linear-gradient(-135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 10% / 30% 35%;
|
|
63
|
+
transform: translateY(50%);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
b {
|
|
68
|
+
background:
|
|
69
|
+
linear-gradient(45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.7% 95% / 30% 35%,
|
|
70
|
+
linear-gradient(-45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 95% / 30% 35%,
|
|
71
|
+
linear-gradient(90deg, transparent 35%, currentColor 40%, currentColor 60%, transparent 65%) no-repeat 50% 45% / 33% 70%;
|
|
72
|
+
transform: translateY(-110%);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
u {
|
|
76
|
+
background:
|
|
77
|
+
linear-gradient(135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.5% 10% / 30% 35%,
|
|
78
|
+
linear-gradient(-135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 10% / 30% 35%,
|
|
79
|
+
linear-gradient(90deg, transparent 35%, currentColor 40%, currentColor 60%, transparent 65%) no-repeat 50% 45% / 33% 70%;
|
|
80
|
+
transform: translateY(110%);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&[ui-order~='0'] i {
|
|
84
|
+
opacity: 0.3;
|
|
85
|
+
|
|
86
|
+
&::before {
|
|
87
|
+
background:
|
|
88
|
+
linear-gradient(45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.7% 95% / 30% 35%,
|
|
89
|
+
linear-gradient(-45deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 95% / 30% 35%;
|
|
90
|
+
transform: translateY(0%);
|
|
91
|
+
transition: all 0.2s cubic-bezier(0.65, 0, 0.35, 1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&::after {
|
|
95
|
+
background:
|
|
96
|
+
linear-gradient(135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 28.5% 15% / 30% 35%,
|
|
97
|
+
linear-gradient(-135deg, transparent 48%, currentColor 53%, currentColor 67%, transparent 72%) no-repeat 71.3% 15% / 30% 35%;
|
|
98
|
+
transform: translateY(0%);
|
|
99
|
+
transition: all 0.2s cubic-bezier(0.65, 0, 0.35, 1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&[ui-order~='1'] u {
|
|
104
|
+
transform: translateY(5%);
|
|
105
|
+
transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&[ui-order~='2'] b {
|
|
109
|
+
transform: translateY(0%);
|
|
110
|
+
transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
</style>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div v-bind="col.thead">
|
|
14
14
|
<span class="ux-none" ui-flex="row rm" v-if="col.order === 0 || col.order === 1 || col.order === 2" @click="fSetOrder(col)">
|
|
15
15
|
<span>{{ col.label }}</span>
|
|
16
|
-
<span ui-btn="@a none xs :square" :ui-order="col.__order"></span>
|
|
16
|
+
<span ui-btn="@a none xs :square" :ui-order="`@a ${col.__order}`"></span>
|
|
17
17
|
</span>
|
|
18
18
|
<span v-else>{{ col.label }}</span>
|
|
19
19
|
<!-- 设置 -->
|
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
import { itable } from '@fekit/itable';
|
|
154
154
|
import TableRender from './TableRender.vue';
|
|
155
155
|
import { isFunction, isObject, hasOwnProp, deepcopy } from '@fekit/utils';
|
|
156
|
+
|
|
156
157
|
const route = useRoute();
|
|
157
158
|
const router = useRouter();
|
|
158
159
|
// 外部插槽
|