renusify 1.1.4 → 1.2.0
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/components/app/notify/notification.vue +2 -1
- package/components/app/toast/index.vue +7 -2
- package/components/app/toast/toast.vue +2 -0
- package/components/avatar/index.vue +29 -23
- package/components/bar/bottomNavigationCircle.vue +8 -3
- package/components/bar/scss/bottomNav.scss +1 -1
- package/components/bar/toolbar/laptop.vue +4 -4
- package/components/bar/toolbar/mixin.js +1 -2
- package/components/bar/toolbar/mobile.vue +5 -4
- package/components/breadcrumb/index.vue +1 -0
- package/components/button/buttonConfirm.vue +1 -1
- package/components/button/buttonGroup.vue +1 -0
- package/components/button/style.scss +1 -0
- package/components/calendar/index.vue +1 -0
- package/components/calendar/month.vue +1 -0
- package/components/calendar/year.vue +1 -0
- package/components/chat/chatInput.vue +1 -0
- package/components/chat/chatMsg.vue +1 -0
- package/components/chat/index.vue +1 -0
- package/components/chip/index.vue +1 -0
- package/components/codeEditor/index.vue +0 -2
- package/components/confirm/index.vue +1 -0
- package/components/countdown/index.vue +1 -0
- package/components/float/index.vue +1 -0
- package/components/form/address.vue +6 -2
- package/components/form/camInput.vue +10 -3
- package/components/form/check-input.vue +95 -94
- package/components/form/checkbox.vue +1 -1
- package/components/form/colorPicker/index.vue +1 -0
- package/components/form/colorPicker/picker.vue +1 -0
- package/components/form/datePicker/index.vue +349 -348
- package/components/form/datePicker/month.vue +1 -0
- package/components/form/datePicker/year.vue +1 -0
- package/components/form/fileUploader/file.js +21 -3
- package/components/form/fileUploader/index.vue +13 -2
- package/components/form/fileUploader/single.vue +4 -2
- package/components/form/form.vue +1 -0
- package/components/form/group-input.vue +42 -38
- package/components/form/input.vue +253 -1
- package/components/form/inputTel/index.vue +22 -12
- package/components/form/json/JsonView.vue +95 -94
- package/components/form/json/index.vue +2 -0
- package/components/form/mask-input.vue +1 -0
- package/components/form/number.vue +25 -12
- package/components/form/password.vue +121 -121
- package/components/form/radioInput.vue +1 -0
- package/components/form/range.vue +26 -1
- package/components/form/rating.vue +13 -1
- package/components/form/select.vue +67 -4
- package/components/form/switch.vue +64 -2
- package/components/form/text-area.vue +1 -1
- package/components/form/text-editor/index.vue +18 -11
- package/components/form/text-input.vue +1 -1
- package/components/form/timepicker/index.vue +2 -1
- package/components/form/timepicker/range.vue +2 -1
- package/components/form/timepicker/timepicker.vue +2 -1
- package/components/form/unique/index.vue +3 -1
- package/components/form/unit-input.vue +2 -1
- package/components/formCreator/index.vue +8 -6
- package/components/html2pdf/index.vue +1 -0
- package/components/img/index.vue +12 -2
- package/components/img/svgImg.vue +43 -0
- package/components/infinite/div.vue +2 -1
- package/components/infinite/page.vue +24 -23
- package/components/list/index.vue +35 -32
- package/components/map/index.vue +324 -306
- package/components/map/route.vue +1 -0
- package/components/map/select.vue +1 -0
- package/components/menu/index.vue +1 -0
- package/components/modal/index.vue +1 -0
- package/components/searchBox/index.vue +5 -3
- package/components/slider/index.vue +1 -0
- package/components/table/crud/footer.vue +1 -1
- package/components/table/crud/header.vue +10 -4
- package/components/table/crud/index.vue +463 -458
- package/components/tabs/index.vue +1 -0
- package/components/tree/index.vue +15 -13
- package/components/tree/tree-element.vue +8 -4
- package/package.json +1 -1
- package/style/colors.scss +1 -1
- package/components/form/scss/input.scss +0 -249
- package/components/form/scss/rating.scss +0 -9
- package/components/form/scss/select.scss +0 -55
- package/components/form/scss/switch.scss +0 -68
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}">
|
|
18
18
|
<slot
|
|
19
19
|
:parent-node="nodeParent"
|
|
20
|
-
@update:model-value="$emit('update:
|
|
20
|
+
@update:model-value="$emit('update:modelValue',$event)"
|
|
21
21
|
:model-value="node"
|
|
22
22
|
:link="link"
|
|
23
23
|
@select-node="handleSelect"
|
|
@@ -43,18 +43,20 @@
|
|
|
43
43
|
link: String,
|
|
44
44
|
searchLink: String,
|
|
45
45
|
gen: String,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
selected: String,
|
|
47
|
+
rotate: Boolean,
|
|
48
|
+
expand: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
childsName: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: 'childs'
|
|
55
|
+
},
|
|
56
|
+
openAll: Boolean,
|
|
57
|
+
headers: Object
|
|
57
58
|
},
|
|
59
|
+
emits:['update:modelValue','select-node'],
|
|
58
60
|
data() {
|
|
59
61
|
return {
|
|
60
62
|
show: false,
|
|
@@ -91,7 +93,7 @@
|
|
|
91
93
|
}
|
|
92
94
|
},
|
|
93
95
|
get() {
|
|
94
|
-
|
|
96
|
+
this.$axios.get(this.link + this.nodeParent, {headers: this.headers})
|
|
95
97
|
.then(({data}) => {
|
|
96
98
|
this.node = data
|
|
97
99
|
this.show = true
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<r-col class="text-center">
|
|
5
5
|
<div class="d-flex h-center mb-1 node-info">
|
|
6
6
|
<component :is="componentName" :node="node[nodeKey]"
|
|
7
|
+
@fire="$emit('fire',$event)"
|
|
7
8
|
@click.prevent="$emit('select',{key:nodeKey,item:node[nodeKey]})"
|
|
8
9
|
></component>
|
|
9
10
|
</div>
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
:expand="expand"
|
|
33
34
|
:openAll="openAll"
|
|
34
35
|
:component-name="componentName"
|
|
36
|
+
@fire="$emit('fire',$event)"
|
|
35
37
|
@select="$emit('select',$event)"
|
|
36
38
|
>
|
|
37
39
|
</r-tree-element>
|
|
@@ -60,8 +62,10 @@ export default {
|
|
|
60
62
|
default: 'childs'
|
|
61
63
|
},
|
|
62
64
|
openAll: Boolean,
|
|
63
|
-
componentName: Object
|
|
65
|
+
componentName: Object,
|
|
66
|
+
headers: Object
|
|
64
67
|
},
|
|
68
|
+
emits:['update:modelValue','fire','select','expand'],
|
|
65
69
|
data() {
|
|
66
70
|
return {
|
|
67
71
|
back: false,
|
|
@@ -126,15 +130,15 @@ export default {
|
|
|
126
130
|
updateNode(e, key) {
|
|
127
131
|
let res = Object.assign({}, this.modelValue)
|
|
128
132
|
res[this.nodeKey][this.childsName][key] = e[key]
|
|
129
|
-
this.$emit('update:
|
|
133
|
+
this.$emit('update:modelValue', this.modelValue)
|
|
130
134
|
},
|
|
131
135
|
handleExpand(e, current) {
|
|
132
136
|
if (current) {
|
|
133
137
|
if (this.link && this.size === 0) {
|
|
134
138
|
this.loading = true
|
|
135
|
-
this.$axios.get(this.link + e)
|
|
139
|
+
this.$axios.get(this.link + e, {headers: this.headers})
|
|
136
140
|
.then(({data}) => {
|
|
137
|
-
this.$emit('update:
|
|
141
|
+
this.$emit('update:modelValue', data)
|
|
138
142
|
this.open = !this.open
|
|
139
143
|
setTimeout(() => {
|
|
140
144
|
this.$emit('expand', [this.open, this.$refs.tree.$el])
|
package/package.json
CHANGED
package/style/colors.scss
CHANGED
|
@@ -73,7 +73,7 @@ $colorsList: (
|
|
|
73
73
|
@each $color_name, $color_value in $colorMain {
|
|
74
74
|
.color-#{$color_name} {
|
|
75
75
|
@include background-color(var(--color-#{$color_name}), true);
|
|
76
|
-
@include text-color(var(--color-#{$color_name}-text));
|
|
76
|
+
@include text-color(var(--color-#{$color_name}-text),true);
|
|
77
77
|
}
|
|
78
78
|
.color-#{$color_name}-text {
|
|
79
79
|
@include text-color(var(--color-#{$color_name}), true);
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
@import '../../../style/include';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
.#{$prefix}input-container {
|
|
5
|
-
position: relative;
|
|
6
|
-
align-items: flex-start;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex: 1 1 auto;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
line-height: 24px;
|
|
11
|
-
font-size: 1rem;
|
|
12
|
-
letter-spacing: normal;
|
|
13
|
-
margin-top: 20px;
|
|
14
|
-
|
|
15
|
-
&.input-ltr {
|
|
16
|
-
input {
|
|
17
|
-
direction: ltr;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:not(.input-disabled) {
|
|
22
|
-
input,
|
|
23
|
-
textarea, .label, .#{$prefix}icon, .#{$prefix}btn {
|
|
24
|
-
color: var(--color-text-primary)
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
input::placeholder,
|
|
29
|
-
textarea::placeholder {
|
|
30
|
-
color: var(--color-text-disabled)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.input-disabled {
|
|
34
|
-
* {
|
|
35
|
-
color: var(--color-text-disabled)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.input-control {
|
|
40
|
-
border: solid 1px var(--color-border)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.input-disabled {
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
input {
|
|
48
|
-
max-height: 32px
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
input,
|
|
52
|
-
textarea {
|
|
53
|
-
flex: 1 1 auto;
|
|
54
|
-
line-height: 20px;
|
|
55
|
-
padding: 8px 0 8px;
|
|
56
|
-
max-width: 100%;
|
|
57
|
-
min-width: 0px;
|
|
58
|
-
width: 100%;
|
|
59
|
-
outline: none;
|
|
60
|
-
position: relative;
|
|
61
|
-
|
|
62
|
-
&[type=text ]::-ms-clear {
|
|
63
|
-
display: none
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:invalid {
|
|
67
|
-
box-shadow: none
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:focus,
|
|
71
|
-
&:active {
|
|
72
|
-
outline: none
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.input-control {
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-direction: column;
|
|
79
|
-
height: 40px;
|
|
80
|
-
flex-grow: 1;
|
|
81
|
-
flex-wrap: wrap;
|
|
82
|
-
width: 100%;
|
|
83
|
-
align-items: flex-start;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
position: relative;
|
|
86
|
-
.after-icon {
|
|
87
|
-
position: absolute;
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
@include ltr() {
|
|
90
|
-
right: 5px;
|
|
91
|
-
}
|
|
92
|
-
@include rtl() {
|
|
93
|
-
left: 5px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
.pre-icon {
|
|
98
|
-
position: absolute;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
@include ltr() {
|
|
101
|
-
left: 5px;
|
|
102
|
-
}
|
|
103
|
-
@include rtl() {
|
|
104
|
-
right: 5px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:not(.input-tile) {
|
|
110
|
-
padding: 0 16px;
|
|
111
|
-
border-radius: 20px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&.input-tile {
|
|
115
|
-
padding: 0 8px;
|
|
116
|
-
border-radius: 4px;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&.hide-detail {
|
|
121
|
-
|
|
122
|
-
> .input-control {
|
|
123
|
-
border: unset !important;
|
|
124
|
-
height: auto;
|
|
125
|
-
padding: 0;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.label {
|
|
130
|
-
white-space: nowrap;
|
|
131
|
-
position: absolute;
|
|
132
|
-
z-index: 0;
|
|
133
|
-
top: 8px;
|
|
134
|
-
transition: $primary-transition;
|
|
135
|
-
|
|
136
|
-
@include ltr() {
|
|
137
|
-
left: 15px;
|
|
138
|
-
transform-origin: top left;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@include rtl() {
|
|
142
|
-
right: 15px;
|
|
143
|
-
transform-origin: top right;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:not(.input-tile) {
|
|
148
|
-
.label-active {
|
|
149
|
-
@include ltr() {
|
|
150
|
-
transform: translateY(-27px) translateX(5px) scale(.9);
|
|
151
|
-
}
|
|
152
|
-
@include rtl() {
|
|
153
|
-
transform: translateY(-27px) translateX(-5px) scale(.9);
|
|
154
|
-
}
|
|
155
|
-
transition: $primary-transition
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.label-fixed {
|
|
160
|
-
transform: none !important;
|
|
161
|
-
top: -20px !important;
|
|
162
|
-
@include ltr() {
|
|
163
|
-
left: 0 !important;
|
|
164
|
-
}
|
|
165
|
-
@include rtl() {
|
|
166
|
-
right: 0 !important;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.input-tile {
|
|
171
|
-
.label-active {
|
|
172
|
-
@include ltr() {
|
|
173
|
-
transform: translateY(-27px) translateX(-8px) scale(.9);
|
|
174
|
-
}
|
|
175
|
-
@include rtl() {
|
|
176
|
-
transform: translateY(-27px) translateX(8px) scale(.9);
|
|
177
|
-
}
|
|
178
|
-
transition: $primary-transition
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&.input-focused {
|
|
183
|
-
.input-control {
|
|
184
|
-
border: solid 1px currentColor;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.#{$prefix}icon, .#{$prefix}btn {
|
|
188
|
-
color: currentColor !important;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:not(.input-tile) {
|
|
192
|
-
.label {
|
|
193
|
-
color: currentColor !important;
|
|
194
|
-
@include ltr() {
|
|
195
|
-
transform: translateY(-27px) translateX(5px) scale(.9);
|
|
196
|
-
}
|
|
197
|
-
@include rtl() {
|
|
198
|
-
transform: translateY(-27px) translateX(-5px) scale(.9);
|
|
199
|
-
}
|
|
200
|
-
transition: $primary-transition
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.input-tile {
|
|
205
|
-
.label {
|
|
206
|
-
color: currentColor !important;
|
|
207
|
-
@include ltr() {
|
|
208
|
-
transform: translateY(-27px) translateX(-8px) scale(.9);
|
|
209
|
-
}
|
|
210
|
-
@include rtl() {
|
|
211
|
-
transform: translateY(-27px) translateX(8px) scale(.9);
|
|
212
|
-
}
|
|
213
|
-
transition: $primary-transition
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.massage {
|
|
219
|
-
display: none;
|
|
220
|
-
margin-left: 10px;
|
|
221
|
-
|
|
222
|
-
&-active {
|
|
223
|
-
display: block;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
&.color-error-text {
|
|
229
|
-
.label {
|
|
230
|
-
color: currentColor;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.input-control {
|
|
234
|
-
border: solid 1px currentColor;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
&.text-area {
|
|
239
|
-
.input-control {
|
|
240
|
-
height: auto;
|
|
241
|
-
|
|
242
|
-
&:not(.input-tile) {
|
|
243
|
-
border-radius: 15px;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@import "../../../style/include";
|
|
2
|
-
$min-height:40px;
|
|
3
|
-
.#{$prefix}select-container {
|
|
4
|
-
position: relative;
|
|
5
|
-
.input-control {
|
|
6
|
-
min-height: $min-height;
|
|
7
|
-
height: auto;
|
|
8
|
-
flex-direction: row;
|
|
9
|
-
align-items: center;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex: 1 1;
|
|
12
|
-
flex-wrap: wrap;
|
|
13
|
-
line-height: 24px;
|
|
14
|
-
max-width: 100%;
|
|
15
|
-
min-width: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.select-wrap {
|
|
19
|
-
max-width: 100%;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex: 1 1 auto;
|
|
22
|
-
flex-wrap: wrap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
input {
|
|
26
|
-
flex: 1 1;
|
|
27
|
-
margin-top: 0;
|
|
28
|
-
min-width: 140px;
|
|
29
|
-
position: relative;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.#{$prefix}chip {
|
|
33
|
-
flex: 0 1 auto;
|
|
34
|
-
margin: 4px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.card-select {
|
|
38
|
-
max-height: 0;
|
|
39
|
-
overflow: auto;
|
|
40
|
-
opacity: .5;
|
|
41
|
-
transition: all .3s $primary-transition;
|
|
42
|
-
position: absolute;
|
|
43
|
-
left: 0;
|
|
44
|
-
z-index: map_get($z-index, 'default');
|
|
45
|
-
}
|
|
46
|
-
.to-top{
|
|
47
|
-
bottom: $min-height+2px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.card-select-active {
|
|
51
|
-
transition: all 0.3s $primary-transition;
|
|
52
|
-
max-height: 300px;
|
|
53
|
-
opacity: 1;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@import "renusify/style/_include.scss";
|
|
2
|
-
|
|
3
|
-
.#{$prefix}switch {
|
|
4
|
-
|
|
5
|
-
.switch-container {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: row;
|
|
8
|
-
align-items: center;
|
|
9
|
-
height: 30px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.switch-holder {
|
|
13
|
-
width: 45px;
|
|
14
|
-
height: 13px;
|
|
15
|
-
position: relative;
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
align-items: center;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.switch-line {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
border-radius: 10px;
|
|
26
|
-
background-color: var(--color-disabled);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.switch-dot {
|
|
30
|
-
position: absolute;
|
|
31
|
-
width: 20px;
|
|
32
|
-
height: 20px;
|
|
33
|
-
border-radius: 50%;
|
|
34
|
-
background-color: #cdcbcb;
|
|
35
|
-
transition: .3s map_get($transition,'fast-in-fast-out');
|
|
36
|
-
@include rtl() {
|
|
37
|
-
right: 0;
|
|
38
|
-
}
|
|
39
|
-
@include ltr() {
|
|
40
|
-
left: 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.switch-active {
|
|
45
|
-
.switch-line {
|
|
46
|
-
background-color: currentColor;
|
|
47
|
-
opacity: 0.5;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.switch-dot {
|
|
51
|
-
background-color: currentColor;
|
|
52
|
-
@include rtl() {
|
|
53
|
-
right: 25px;
|
|
54
|
-
}
|
|
55
|
-
@include ltr() {
|
|
56
|
-
left: 25px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|