@mixd-id/web-scaffold 0.1.230406240 → 0.1.230406241
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
|
@@ -110,7 +110,7 @@ export default{
|
|
|
110
110
|
|
|
111
111
|
emits: [ 'complete' ],
|
|
112
112
|
|
|
113
|
-
inject: [ '
|
|
113
|
+
inject: [ 'alert', 'socketEmit', 'socket' ],
|
|
114
114
|
|
|
115
115
|
props: {
|
|
116
116
|
|
|
@@ -195,7 +195,7 @@ export default{
|
|
|
195
195
|
})
|
|
196
196
|
})
|
|
197
197
|
.catch((e) => {
|
|
198
|
-
this.
|
|
198
|
+
this.alert(e.response.data)
|
|
199
199
|
})
|
|
200
200
|
.finally(() => {
|
|
201
201
|
this.isLoading = false
|
|
@@ -233,7 +233,7 @@ export default{
|
|
|
233
233
|
this.step = 3
|
|
234
234
|
})
|
|
235
235
|
.catch((e) => {
|
|
236
|
-
this.
|
|
236
|
+
this.alert(e.response.data)
|
|
237
237
|
})
|
|
238
238
|
.finally(() => {
|
|
239
239
|
this.isLoading = false
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div v-else :class="$style.toolbar">
|
|
7
7
|
<div class="flex-1 flex flex-row gap-6">
|
|
8
8
|
<button type="button" ref="presetSelectorBtn"
|
|
9
|
-
class="flex-1 md:flex-none flex flex-col text-left
|
|
9
|
+
class="flex-1 md:flex-none flex flex-col text-left leading-tight"
|
|
10
10
|
@click="$refs.presetSelector.toggle($refs.presetSelectorBtn)">
|
|
11
11
|
<small v-if="title" class="text-text-400 text-xs">{{ title }}</small>
|
|
12
12
|
<div class="flex flex-row items-center">
|
|
@@ -911,7 +911,7 @@ export default{
|
|
|
911
911
|
|
|
912
912
|
config: {
|
|
913
913
|
deep: true,
|
|
914
|
-
handler(
|
|
914
|
+
handler(){
|
|
915
915
|
this.saveConfig()
|
|
916
916
|
}
|
|
917
917
|
}
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
<div v-if="state === 3" ref="spinner" class="flex-1 flex items-center justify-center p-8">
|
|
4
4
|
<svg class="animate-spin aspect-square w-[32px] h-[32px] text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>
|
|
5
5
|
</div>
|
|
6
|
-
<div v-else
|
|
6
|
+
<div v-else-if="Array.isArray(items)"
|
|
7
|
+
ref="scroller"
|
|
8
|
+
:class="$style.scroller"
|
|
9
|
+
:style="scrollerStyle">
|
|
7
10
|
<div v-if="visibleItems && visibleItems.length > 0" :class="$style.spacer" ref="spacer" :style="spacerStyle">
|
|
8
11
|
<div v-for="(item, index) in visibleItems" :key="item" :data-id="item.id"
|
|
9
12
|
@click="select(item, index)"
|
|
@@ -11,11 +14,13 @@
|
|
|
11
14
|
<slot name="item" :item="item" :index="index"></slot>
|
|
12
15
|
</div>
|
|
13
16
|
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
<div v-else
|
|
18
|
+
class="p-8 justify-center items-center">
|
|
19
|
+
<slot v-if="$slots['empty']" name="empty"></slot>
|
|
20
|
+
<div v-else>No data</div>
|
|
21
|
+
</div>
|
|
18
22
|
</div>
|
|
23
|
+
|
|
19
24
|
<div v-if="state === 2" ref="spinner" class="h-[44px] relative">
|
|
20
25
|
<div class="absolute top-0 left-0 w-screen h-[44px] flex items-center justify-center">
|
|
21
26
|
<svg class="animate-spin aspect-square w-[16px] h-[16px] text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>
|
|
@@ -228,7 +233,7 @@ export default{
|
|
|
228
233
|
<style module>
|
|
229
234
|
|
|
230
235
|
.comp{
|
|
231
|
-
@apply relative overflow-y-auto overflow-x-hidden max-h-[100vh];
|
|
236
|
+
@apply relative overflow-y-auto overflow-x-hidden max-h-[100vh] flex;
|
|
232
237
|
}
|
|
233
238
|
|
|
234
239
|
.scroller{
|