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
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="classes">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
<div
|
|
4
|
+
class="list-item h-space-between"
|
|
5
|
+
:class="{'list-item-active color-one-text':$helper.searchArray(list,text,item_value[text])!==false}"
|
|
6
|
+
:key="item_key"
|
|
7
|
+
@click.prevent="handle(item_value)"
|
|
8
|
+
v-for="(item_value,item_key) in genItems"
|
|
9
|
+
v-ripple
|
|
10
|
+
>
|
|
11
|
+
<slot :item="item_value">
|
|
12
|
+
<div class="list-title">{{ item_value[text] }}</div>
|
|
13
|
+
<transition name="fade">
|
|
14
|
+
<r-icon class="pe-1"
|
|
15
|
+
exact
|
|
14
16
|
v-html="$r.icons.check"
|
|
15
17
|
v-if="(checked&&$helper.searchArray(list,text,item_value[text])!==false)"
|
|
16
18
|
></r-icon>
|
|
@@ -21,30 +23,30 @@
|
|
|
21
23
|
</template>
|
|
22
24
|
|
|
23
25
|
<script>
|
|
24
|
-
|
|
26
|
+
import './style.scss'
|
|
27
|
+
import Ripple from '../../directive/ripple/index'
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
29
|
+
export default {
|
|
30
|
+
name: 'r-list',
|
|
31
|
+
directives: {ripple: Ripple},
|
|
32
|
+
props: {
|
|
33
|
+
disabled: Boolean,
|
|
34
|
+
multiple: Boolean,
|
|
35
|
+
min: {type: Number, default: 0},
|
|
36
|
+
text: {type: String, default: 'name'},
|
|
37
|
+
value: {type: String, default: 'value'},
|
|
38
|
+
flat: Boolean,
|
|
39
|
+
rounded: Boolean,
|
|
40
|
+
subheader: Boolean,
|
|
41
|
+
checked: Boolean,
|
|
42
|
+
filter: String,
|
|
43
|
+
items: Array,
|
|
44
|
+
modelValue: {type: [Array, Object]}
|
|
45
|
+
},
|
|
46
|
+
emits:['update:modelValue'],
|
|
42
47
|
computed: {
|
|
43
48
|
list() {
|
|
44
49
|
if (this.modelValue) {
|
|
45
|
-
if (!this.multiple&&this.modelValue[0]) {
|
|
46
|
-
return [this.modelValue[0]]
|
|
47
|
-
}
|
|
48
50
|
return this.modelValue
|
|
49
51
|
}
|
|
50
52
|
return []
|
|
@@ -96,6 +98,7 @@
|
|
|
96
98
|
return
|
|
97
99
|
}
|
|
98
100
|
let val = this.list
|
|
101
|
+
|
|
99
102
|
const index = this.$helper.searchArray(val, this.text, item[this.text])
|
|
100
103
|
|
|
101
104
|
if (index !== false) {
|
|
@@ -110,7 +113,7 @@
|
|
|
110
113
|
val.push(item)
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
this.$emit('update:
|
|
116
|
+
this.$emit('update:modelValue', this.multiple?val:val[0])
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
|