@nixweb/nixloc-ui 0.0.260 → 0.0.261
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,17 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="c-div-button">
|
|
2
|
+
<div class="c-div-button" v-b-tooltip.hover :title="tooltip">
|
|
3
3
|
<button :style="'background-color:' + backGroundColor + ';color:' + color" class="button" :class="{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
small: size === 'small',
|
|
5
|
+
medium: size === 'medium',
|
|
6
|
+
large: size === 'large',
|
|
7
|
+
primary: type === 'primary',
|
|
8
|
+
success: type === 'success',
|
|
9
|
+
warning: type === 'warning',
|
|
10
|
+
info: type === 'info',
|
|
11
|
+
edit: type === 'edit',
|
|
12
|
+
danger: type === 'danger',
|
|
13
|
+
disabled: disabled,
|
|
14
|
+
}" :disabled="disabled" @click="execute()">
|
|
15
15
|
<i class="title" :class="classIcon" v-if="!isLoading(this._key) && classIcon"></i>
|
|
16
16
|
<span v-if="!isLoading(this._key)">{{ title }}</span>
|
|
17
17
|
<vue-loading v-if="isLoading(this._key)" type="bubbles" color="#fff"
|
|
@@ -28,6 +28,7 @@ export default {
|
|
|
28
28
|
props: {
|
|
29
29
|
_key: String,
|
|
30
30
|
title: String,
|
|
31
|
+
tooltip: String,
|
|
31
32
|
type: String,
|
|
32
33
|
size: String,
|
|
33
34
|
color: String,
|
|
@@ -52,6 +53,7 @@ export default {
|
|
|
52
53
|
});
|
|
53
54
|
this.addLoading(this._key);
|
|
54
55
|
if (this.clicked) this.clicked(this.params);
|
|
56
|
+
this.tooltip = "";
|
|
55
57
|
},
|
|
56
58
|
},
|
|
57
59
|
};
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
:precision="precision" field="discount" :required="required" :formName="formName" _style="color:red;"
|
|
5
5
|
:disabled="disabled" v-model="discount.discount">
|
|
6
6
|
<div class="glyphicon margin-button">
|
|
7
|
-
<Button _key="btnDiscount"
|
|
8
|
-
:disabled="disabled" :clicked="change" />
|
|
7
|
+
<Button _key="btnDiscount" backGroundColor="#F36944" color="white" classIcon="fa-solid fa-brazilian-real-sign"
|
|
8
|
+
size="small" :disabled="disabled" :clicked="change" />
|
|
9
9
|
</div>
|
|
10
10
|
</InputDecimal>
|
|
11
11
|
<InputNumber v-if="discount.discountByPercentage" :markFormDirty="markFormDirty" :title="title" field="discount"
|
|
12
12
|
:formName="formName" :required="false" :disabled="disabled" _style="color:red;" :maxLength="5" type="float"
|
|
13
13
|
v-model="discount.discount">
|
|
14
14
|
<div class="glyphicon margin-button">
|
|
15
|
-
<Button _key="btnDiscount"
|
|
16
|
-
size="small" :clicked="change" />
|
|
15
|
+
<Button _key="btnDiscount" backGroundColor="#F36944" color="white" :disabled="disabled"
|
|
16
|
+
classIcon="fa-solid fa-percent" size="small" :clicked="change" />
|
|
17
17
|
</div>
|
|
18
18
|
</InputNumber>
|
|
19
19
|
</div>
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
<slot></slot>
|
|
6
6
|
</div>
|
|
7
7
|
</transition>
|
|
8
|
-
|
|
9
8
|
</div>
|
|
10
9
|
</template>
|
|
11
10
|
<script>
|
|
@@ -30,13 +29,11 @@ export default {
|
|
|
30
29
|
},
|
|
31
30
|
methods: {
|
|
32
31
|
checkPosition() {
|
|
33
|
-
|
|
34
32
|
if (this.distance == 0) {
|
|
35
33
|
return true;
|
|
36
34
|
}
|
|
37
35
|
else {
|
|
38
36
|
const currentPosition = window.scrollY;
|
|
39
|
-
|
|
40
37
|
if (currentPosition > this.distance) {
|
|
41
38
|
this.showFloating = true;
|
|
42
39
|
} else {
|
|
@@ -50,7 +47,7 @@ export default {
|
|
|
50
47
|
<style scoped>
|
|
51
48
|
.div-fixed {
|
|
52
49
|
position: fixed;
|
|
53
|
-
top:
|
|
50
|
+
top: 90%;
|
|
54
51
|
left: 57%;
|
|
55
52
|
transform: translate(-50%, -50%);
|
|
56
53
|
width: 75%;
|