@neatui/vue 4.2.2 → 4.2.5

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/vue",
3
- "version": "4.2.2",
3
+ "version": "4.2.5",
4
4
  "description": "basic component ui",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "@fekit/scrollto": "^3.0.3",
35
35
  "@fekit/toast": "^2.7.2",
36
36
  "@fekit/utils": "^6.0.0",
37
- "@neatui/css": "^4.2.2",
37
+ "@neatui/css": "^4.2.5",
38
38
  "@rollup/plugin-commonjs": "^26.0.1",
39
39
  "@rollup/plugin-node-resolve": "^15.2.3",
40
40
  "@vue/compiler-sfc": "^3.4.30",
@@ -7,8 +7,8 @@
7
7
  :alt="alt"
8
8
  :loading="lazy ? 'lazy' : 'eager'"
9
9
  :decoding="decoding"
10
+ :ui-fit="fit || undefined"
10
11
  :class="{ 'is-loaded': isLoaded }"
11
- :style="`object-fit: ${fit}`"
12
12
  @click.stop="showPreview"
13
13
  />
14
14
  <div v-if="tools" class="mc-img-tools">
@@ -42,7 +42,7 @@
42
42
  type: Array as () => any[],
43
43
  default: () => [],
44
44
  },
45
- // 图片如何适应容器框,同原生object-fit
45
+ // 图片如何适应容器框(ui-fit mode:cover|contain|fill|none|down)
46
46
  fit: {
47
47
  type: String,
48
48
  default: 'contain',