@kigi/components 1.5.10-beta.0 → 1.5.10-beta.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 +1 -1
- package/src/components/mbg-image-upload-crop/image-upload-crop.html +1 -0
- package/src/components/mbg-image-upload-crop/image-upload-crop.scss +4 -2
- package/src/components/mbg-image-upload-crop/modals/upload-image-crop-modal/upload-image-crop-modal.html +3 -3
- package/src/components/mbg-image-upload-crop/modals/upload-image-crop-modal/upload-image-crop-modal.scss +2 -0
- package/src/components/mbg-image-upload-crop/modals/upload-image-crop-modal/upload-image-crop-modal.ts +0 -1
- package/src/index.ts +4 -3
package/package.json
CHANGED
|
@@ -53,17 +53,19 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
|
|
55
55
|
.buttons {
|
|
56
|
-
cursor: pointer;
|
|
57
56
|
width: 100%;
|
|
58
57
|
display: flex;
|
|
59
58
|
justify-content: center;
|
|
59
|
+
|
|
60
|
+
a {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
.remove {
|
|
63
66
|
justify-content: space-around;
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
|
-
|
|
67
69
|
&:hover {
|
|
68
70
|
background: #e4e4e4;
|
|
69
71
|
}
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
<label ng-show="$ctrl.image"
|
|
22
22
|
style="font-weight: 500;">Imagem atual</label>
|
|
23
23
|
<img ng-if="$ctrl.image"
|
|
24
|
-
style="width:
|
|
24
|
+
style="max-height: 200px;max-width: 400px; object-fit: contain;"
|
|
25
25
|
class="m-b-24"
|
|
26
26
|
src="{{$ctrl.image}}"></i>
|
|
27
27
|
|
|
28
|
-
<label ng-show="$ctrl.image">
|
|
29
|
-
<label ng-show="!$ctrl.image">
|
|
28
|
+
<label ng-show="$ctrl.image">Arraste e solte uma imagem ou clique aqui para editar</label>
|
|
29
|
+
<label ng-show="!$ctrl.image">Arraste e solte uma imagem ou clique aqui para adicionar</label>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
32
|
<div class="relative-content"
|
package/src/index.ts
CHANGED
|
@@ -33,12 +33,13 @@ const module = angular.module('demo', ['ngLocale', components]).controller('demo
|
|
|
33
33
|
($scope, $timeout, $http, mbgAlert: MbgAlert) => {
|
|
34
34
|
$scope.imgCrop = 'https://i.pinimg.com/originals/c3/a5/b3/c3a5b332f9716abb1c67da38a12595e8.jpg'
|
|
35
35
|
$scope.configImgCrop = {
|
|
36
|
-
aspectRatio:
|
|
36
|
+
aspectRatio: 16 / 9,
|
|
37
37
|
minCropBoxWidth: 200,
|
|
38
|
-
minCropBoxHeight:
|
|
39
|
-
minCanvasHeight:
|
|
38
|
+
minCropBoxHeight: 100,
|
|
39
|
+
minCanvasHeight: 200,
|
|
40
40
|
minContainerHeight: 100,
|
|
41
41
|
height: '124px',
|
|
42
|
+
// width: '300px',
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
$scope.configDocument = {
|