@mythpe/quasar-ui-qui 0.2.18 → 0.2.20

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -233,7 +233,7 @@ defineOptions({
233
233
  >
234
234
  <MColumn :class="contentClass">
235
235
  <slot name="top" />
236
- <MTransition>
236
+ <MTransitionGroup>
237
237
  <div
238
238
  v-if="label !== undefined"
239
239
  key="label"
@@ -362,7 +362,7 @@ defineOptions({
362
362
  @click="openWindow(url)"
363
363
  />
364
364
  </div>
365
- </MTransition>
365
+ </MTransitionGroup>
366
366
  <slot name="caption">
367
367
  <div
368
368
  v-if="!!caption"
@@ -160,7 +160,7 @@ watch(url, (url) => {
160
160
  name="top-input"
161
161
  v-bind="scopes"
162
162
  />
163
- <MTransition>
163
+ <MTransitionGroup>
164
164
  <div
165
165
  key="top"
166
166
  class="row justify-between items-center q-mb-lg"
@@ -285,7 +285,7 @@ watch(url, (url) => {
285
285
  </MColumn>
286
286
  </MTransition>
287
287
  </div>
288
- </MTransition>
288
+ </MTransitionGroup>
289
289
  <slot
290
290
  :confirmed="confirmed"
291
291
  name="bottom-input"
@@ -6,15 +6,19 @@
6
6
  * Github: https://github.com/mythpe
7
7
  */
8
8
 
9
- import { useMyth } from '../../composable'
10
-
11
9
  export function useTransition (props: any) {
12
- const { theme } = useMyth()
13
10
  const getClasses = (mode: 'in' | 'out') => {
14
- const classes: string[] = ['animated']
15
- const defMode = mode === 'in' ? theme.value.inTransition : theme.value.outTransition
16
- const activeClass = mode === 'in' ? (props.enterActiveClass || props.in) : (props.leaveActiveClass || props.out)
17
- classes.push(activeClass || defMode)
11
+ if (mode === 'in' && props.enterActiveClass) {
12
+ return `animated ${props.enterActiveClass}`
13
+ }
14
+ if (mode === 'out' && props.leaveActiveClass) {
15
+ return `animated ${props.leaveActiveClass}`
16
+ }
17
+ const activeClass = props[mode]
18
+ if (!activeClass) {
19
+ return undefined
20
+ }
21
+ const classes: string[] = ['animated', activeClass]
18
22
  const keys = [
19
23
  `${mode}Slower`,
20
24
  `${mode}Slow`,
@@ -109,14 +109,14 @@ export type TransitionDelay = boolean | string | number;
109
109
  export type TransitionRepeat = boolean | string | number;
110
110
 
111
111
  interface BaseTransitionProps {
112
- in?: TransitionClass;
112
+ in?: TransitionClass | null;
113
113
  inSlower?: boolean;
114
114
  inSlow?: boolean;
115
115
  inFast?: boolean;
116
116
  inFaster?: boolean;
117
117
  inDelay?: TransitionDelay;
118
118
  inRepeat?: TransitionRepeat;
119
- out?: TransitionClass;
119
+ out?: TransitionClass | null;
120
120
  outSlower?: boolean;
121
121
  outSlow?: boolean;
122
122
  outFast?: boolean;