Przeglądaj źródła

Set "cover" option to false as default.

NaotoshiFujita 5 lat temu
rodzic
commit
9670a17e4d

Plik diff jest za duży
+ 1 - 1
dist/js/splide.min.js


BIN
dist/js/splide.min.js.gz


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@splidejs/splide",
-  "version": "1.0.18",
+  "version": "1.0.19",
   "description": "Splide is a lightweight and powerful slider without any dependencies.",
   "author": "Naotoshi Fujita",
   "license": "MIT",

+ 2 - 2
src/js/constants/defaults.js

@@ -251,12 +251,12 @@ export const DEFAULTS = {
 
 	/**
 	 * Set img src to background-image of its parent element.
-	 * Images with various sizes can be displayed as same dimension without cropping step.
+	 * Images with various sizes can be displayed as same dimension without cropping work.
 	 * fixedHeight or heightRatio is required.
 	 *
 	 * @type {boolean}
 	 */
-	cover: true,
+	cover: false,
 
 	/**
 	 * Whether to enable accessibility(aria and screen reader texts) or not.

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików