@neatui/nuxt 1.2.0 → 1.2.1

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": "@neatui/nuxt",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "NeatUI component library for Nuxt 3",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -93,7 +93,7 @@
93
93
  }
94
94
  };
95
95
 
96
- if (import.meta.client) {
96
+ if (import?.meta?.client) {
97
97
  provide('onlist', evs('list', 'item'));
98
98
  provide('onitem', evs('item', 'list'));
99
99
  watch(() => route.query[props.queryName], a);
@@ -103,7 +103,6 @@
103
103
  // 取消
104
104
  const cancel = () => {
105
105
  const _query = { ...route.query };
106
- // eslint-disable-next-line @typescript-eslint/no-dynamic-delete
107
106
  delete _query[props.queryName];
108
107
  router.push({ path: route.path, query: _query });
109
108
  };
@@ -177,27 +176,27 @@
177
176
  }
178
177
  }
179
178
  &[am-view='list'] {
180
- [am-view-item~='list'] {
179
+ & > [am-view-item~='list'] {
181
180
  flex-direction: column;
182
181
  display: flex;
183
182
  animation: am-show-default 0.35s ease both;
184
183
  }
185
184
  }
186
185
  &[am-view='listing'] {
187
- [am-view-item~='item'] {
186
+ & > [am-view-item~='item'] {
188
187
  flex-direction: column;
189
188
  display: flex;
190
189
  animation: am-hide-default 0.3s ease-in-out both;
191
190
  }
192
191
  }
193
192
  &[am-view='item'] {
194
- [am-view-item~='item'] {
193
+ & > [am-view-item~='item'] {
195
194
  display: flex;
196
195
  animation: am-show-default 0.35s ease both;
197
196
  }
198
197
  }
199
198
  &[am-view='iteming'] {
200
- [am-view-item~='list'] {
199
+ & > [am-view-item~='list'] {
201
200
  display: flex;
202
201
  animation: am-hide-default 0.3s ease-in-out both;
203
202
  }
@@ -247,9 +246,6 @@
247
246
  flex-direction: row !important;
248
247
  }
249
248
 
250
- &[am-view-item~='list'] {
251
- display: flex;
252
- }
253
249
  &[am-view-item~='item'] {
254
250
  position: absolute;
255
251
  top: 0;
@@ -264,14 +260,14 @@
264
260
  }
265
261
  &[am-view='list'],
266
262
  &[am-view='listing'] {
267
- [am-view-item~='item'] {
263
+ & > [am-view-item~='item'] {
268
264
  display: flex;
269
265
  animation: am-hide-preview 0.5s ease-in-out both;
270
266
  }
271
267
  }
272
268
  &[am-view='item'],
273
269
  &[am-view='iteming'] {
274
- [am-view-item~='item'] {
270
+ & > [am-view-item~='item'] {
275
271
  display: flex;
276
272
  animation: am-show-preview 0.5s ease both;
277
273
  }
@@ -358,7 +354,7 @@
358
354
  }
359
355
  &[am-view='list'],
360
356
  &[am-view='listing'] {
361
- [am-view-item~='item'] {
357
+ & > [am-view-item~='item'] {
362
358
  display: flex;
363
359
  opacity: 0;
364
360
  & > * {
@@ -368,7 +364,7 @@
368
364
  }
369
365
  &[am-view='item'],
370
366
  &[am-view='iteming'] {
371
- [am-view-item~='item'] {
367
+ & > [am-view-item~='item'] {
372
368
  display: flex;
373
369
  opacity: 1;
374
370
  & > * {