renusify 1.0.4 → 1.0.5

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.
Files changed (41) hide show
  1. package/components/app/index.vue +14 -14
  2. package/components/{notify → app/notify}/index.vue +1 -1
  3. package/components/{notify → app/notify}/notification.vue +0 -0
  4. package/components/{notify → app/notify}/notify.js +0 -0
  5. package/components/app/style.scss +0 -1
  6. package/components/{toast → app/toast}/index.vue +0 -0
  7. package/components/{toast → app/toast}/style.scss +1 -1
  8. package/components/{toast → app/toast}/toast.js +0 -0
  9. package/components/{toast → app/toast}/toast.vue +0 -0
  10. package/components/breadcrumb/bredcrumbItem.vue +11 -11
  11. package/components/breadcrumb/index.vue +6 -5
  12. package/components/chart/chart.vue +3 -0
  13. package/components/chat/chatInput.vue +139 -135
  14. package/components/codeEditor/index.vue +412 -443
  15. package/components/codeEditor/run.vue +76 -80
  16. package/components/content/style.scss +0 -1
  17. package/components/form/address.vue +109 -109
  18. package/components/form/address_ir.vue +106 -0
  19. package/components/form/colorPicker/Alpha.vue +3 -0
  20. package/components/form/colorPicker/Preview.vue +3 -0
  21. package/components/form/group-input.vue +2 -1
  22. package/components/form/number.vue +1 -1
  23. package/components/iframe/index.vue +1 -1
  24. package/components/index.js +178 -88
  25. package/components/infinite/index.vue +0 -2
  26. package/components/menu/index.vue +159 -127
  27. package/components/modal/index.vue +85 -90
  28. package/components/modal/style.scss +0 -1
  29. package/components/table/crud/index.vue +12 -13
  30. package/directive/clickOutSide/index.js +2 -3
  31. package/directive/drag/index.js +1 -2
  32. package/directive/intersect/index.js +3 -3
  33. package/directive/resize/index.js +3 -4
  34. package/directive/ripple/index.js +4 -6
  35. package/directive/scroll/index.js +3 -4
  36. package/directive/sortable/index.js +1 -2
  37. package/directive/title/index.js +2 -3
  38. package/directive/touch/index.js +1 -2
  39. package/index.js +3 -4
  40. package/package.json +1 -1
  41. package/plugins/trans/Translate.js +9 -14
@@ -53,6 +53,9 @@ export default {
53
53
  },
54
54
  methods: {
55
55
  renderColor() {
56
+ if (!this.ctx) {
57
+ return
58
+ }
56
59
  const canvasSquare = this.createAlphaSquare(this.alphaSize)
57
60
  this.ctx.fillStyle = this.ctx.createPattern(canvasSquare, 'repeat')
58
61
  this.ctx.fillRect(0, 0, this.width, this.height)
@@ -37,6 +37,9 @@ export default {
37
37
  },
38
38
  methods: {
39
39
  renderColor() {
40
+ if (!this.ctx) {
41
+ return
42
+ }
40
43
  const canvasSquare = this.createAlphaSquare(this.alphaSize)
41
44
 
42
45
  this.ctx.fillStyle = this.ctx.createPattern(canvasSquare, 'repeat')
@@ -75,13 +75,14 @@ export default {
75
75
  if (this.show_add) {
76
76
  let a = this.modelValue || []
77
77
  a.push(this.$helper.clearProxy(this.template))
78
+ this.$emit('add', true)
78
79
  this.$emit('update:model-value', a)
79
80
  }
80
-
81
81
  },
82
82
  del(i) {
83
83
  let a = this.modelValue || []
84
84
  a.splice(i, 1)
85
+ this.$emit('delete', i)
85
86
  this.$emit('update:model-value', a)
86
87
  },
87
88
  up(i) {
@@ -9,7 +9,7 @@
9
9
  <r-icon v-html="$r.icons.minus"></r-icon>
10
10
  </r-btn>
11
11
  <input @input="emit"
12
- class="text-center"
12
+ class="text-center ltr"
13
13
  @focusin="active=true"
14
14
  @focusout="active=false"
15
15
  ref="input"
@@ -14,7 +14,7 @@ export default {
14
14
  prefix: "sm-",
15
15
  lang: "en",
16
16
  package: 'renusify',
17
- directives: ["title", "scroll"]
17
+ directives: []
18
18
  }
19
19
  }
20
20
  }
@@ -1,110 +1,200 @@
1
1
  const list = {
2
- 'r-app': {'p': 'app/index.vue', 'c': [], 'd': []},
3
- 'r-content': {'p': 'content/index.vue', 'c': [], 'd': []},
4
- 'r-meta': {'p': 'meta/index.js', 'c': [], 'd': []},
2
+ 'r-app': {'p': 'app/index.vue', 'c': ['r-btn', 'r-icon', 'r-spacer'], 'd': []},
3
+ 'r-avatar': {'p': 'avatar/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
4
+ 'r-toolbar': {
5
+ 'p': 'bar/toolbar/index.vue',
6
+ 'c': ['r-container', 'r-spacer', 'r-search-box', 'r-img', 'r-icon', 'r-btn', 'r-divider'],
7
+ 'd': []
8
+ },
9
+ 'r-bottom-navigation': {'p': 'bar/bottomNav.vue', 'c': [], 'd': []},
10
+ 'r-bottom-navigation-circle': {'p': 'bar/bottomNavigationCircle.vue', 'c': ['r-icon'], 'd': []},
11
+ 'r-breadcrumbs': {'p': 'breadcrumb/index.vue', 'c': ['r-icon'], 'd': []},
12
+ 'r-btn': {'p': 'button/index.vue', 'c': ['r-progress-circular'], 'd': ['ripple']},
13
+ 'r-btn-group': {
14
+ 'p': 'button/buttonGroup.vue',
15
+ 'c': ['r-btn', 'r-icon', 'r-card', 'r-list'],
16
+ 'd': ['click-outside']
17
+ },
18
+ 'r-calendar': {
19
+ 'p': 'calendar/index.vue',
20
+ 'c': ['r-container', 'r-row', 'r-col', 'r-btn', 'r-icon', 'r-modal', 'r-card'],
21
+ 'd': []
22
+ },
23
+ 'r-card': {'p': 'card/index.vue', 'c': [], 'd': ['ripple']},
24
+ 'r-chart': {'p': 'chart/chart.vue', 'c': [], 'd': []},
25
+ 'r-chat': {
26
+ 'p': 'chat/index.vue',
27
+ 'c': ['r-btn', 'r-icon', 'r-progress-circular', 'r-img'],
28
+ 'd': ['intersect', 'scroll']
29
+ },
30
+ 'r-chip': {'p': 'chip/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
31
+ 'r-code-editor': {'p': 'codeEditor/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
32
+ 'r-confirm': {
33
+ 'p': 'confirm/index.vue',
34
+ 'c': ['r-modal', 'r-card', 'r-container', 'r-row', 'r-col', 'r-divider', 'r-form', 'r-text-input', 'r-btn'],
35
+ 'd': []
36
+ },
5
37
  'r-container': {'p': 'container/index.vue', 'c': [], 'd': []},
6
38
  'r-row': {'p': 'container/row.vue', 'c': [], 'd': []},
7
39
  'r-col': {'p': 'container/col.vue', 'c': [], 'd': []},
8
40
  'r-spacer': {'p': 'container/spacer.vue', 'c': [], 'd': []},
9
41
  'r-divider': {'p': 'container/divider.vue', 'c': [], 'd': []},
10
- 'r-btn': {'p': 'button/index.vue', 'c': [], 'd': ['ripple']},
11
- 'r-icon': {'p': 'icon/index.vue', 'c': [], 'd': []},
12
- 'r-form-creator': {'p': 'formCreator/index.vue', 'c': [], 'd': []},
13
- 'r-card': {'p': 'card/index.vue', 'c': [], 'd': ['ripple']},
14
- 'r-modal': {'p': 'modal/index.vue', 'c': [], 'd': []},
42
+ 'r-content': {'p': 'content/index.vue', 'c': [], 'd': []},
43
+ 'r-count-down': {'p': 'countdown/index.vue', 'c': [], 'd': []},
44
+ 'r-float': {'p': 'float/index.vue', 'c': [], 'd': []},
15
45
  'r-form': {'p': 'form/form.vue', 'c': [], 'd': []},
16
- 'r-input': {'p': 'form/input.vue', 'c': [], 'd': []},
17
- 'r-text-input': {'p': 'form/text-input.vue', 'c': [], 'd': []},
18
- 'r-unit-input': {'p': 'form/unit-input.vue', 'c': [], 'd': []},
19
- 'r-tel': {'p': 'form/inputTel/index.vue', 'c': [], 'd': []},
20
- 'r-switch': {'p': 'form/switch.vue', 'c': [], 'd': []},
21
- 'r-checkbox': {'p': 'form/checkbox.vue', 'c': [], 'd': []},
22
- 'r-radio-input': {'p': 'form/radioInput.vue', 'c': [], 'd': []},
23
- 'r-chip': {'p': 'chip/index.vue', 'c': [], 'd': []},
24
- 'r-list': {'p': 'list/index.vue', 'c': [], 'd': ['ripple']},
25
- 'r-table': {'p': 'table/index.vue', 'c': [], 'd': ['sortable']},
26
- 'r-table-crud': {'p': 'table/crud/index.vue', 'c': [], 'd': []},
27
- 'r-message': {'p': 'message/index.vue', 'c': [], 'd': []},
28
- 'r-time-ago': {'p': 'timeAgo/index.vue', 'c': [], 'd': []},
29
- 'r-confirm': {'p': 'confirm/index.vue', 'c': [], 'd': []},
30
- 'r-mask-input': {'p': 'form/mask-input.vue', 'c': [], 'd': ['mask']},
46
+ 'r-color-picker': {
47
+ 'p': 'form/colorPicker/index.vue',
48
+ 'c': ['r-input', 'r-modal', 'r-btn', 'r-icon'],
49
+ 'd': ['touch']
50
+ },
51
+ 'r-date-picker': {
52
+ 'p': 'form/datePicker/index.vue',
53
+ 'c': ['r-input', 'r-modal', 'r-container', 'r-row', 'r-col', 'r-btn', 'r-icon'],
54
+ 'd': []
55
+ },
56
+ 'r-file-uploader': {
57
+ 'p': 'form/fileUploader/index.vue',
58
+ 'c': ['r-input', 'r-row', 'r-btn', 'r-icon', 'r-progress-circular', 'r-text-input'],
59
+ 'd': []
60
+ },
61
+ 'r-tel': {
62
+ 'p': 'form/inputTel/index.vue',
63
+ 'c': ['r-modal', 'r-card', 'r-text-input', 'r-list', 'r-spacer', 'r-btn'],
64
+ 'd': []
65
+ },
66
+ 'r-json': {
67
+ 'p': 'form/json/index.vue',
68
+ 'c': ['r-btn', 'r-icon', 'r-text-input', 'r-select', 'r-number', 'r-switch'],
69
+ 'd': []
70
+ },
71
+ 'r-text-editor': {
72
+ 'p': 'form/text-editor/index.vue',
73
+ 'c': ['r-container', 'r-row', 'r-col', 'r-btn-group', 'r-btn',
74
+ 'r-icon', 'r-select', 'r-input', 'r-img', 'r-modal',
75
+ 'r-form', 'r-file-uploader', 'r-text-input', 'r-switch', 'r-number'],
76
+ 'd': []
77
+ },
78
+ 'r-text-editor-preview': {'p': 'form/text-editor/preview.vue', 'c': [], 'd': []},
79
+ 'r-time-picker': {'p': 'form/timepicker/index.vue', 'c': ['r-input', 'r-modal', 'r-card', 'r-btn'], 'd': []},
80
+ 'r-unique-feild': {'p': 'form/uniqueFeild/index.vue', 'c': ['r-text-input'], 'd': []},
81
+ 'r-address': {'p': 'form/address.vue', 'c': ['r-select', 'r-text-area', 'r-text-input'], 'd': []},
82
+ 'r-cam-input': {'p': 'form/camInput', 'c': ['r-input', 'r-btn', 'r-icon'], 'd': []},
83
+ 'r-check-input': {'p': 'form/check-input.vue', 'c': ['r-input', 'r-btn', 'r-icon'], 'd': []},
84
+ 'r-checkbox': {'p': 'form/checkbox.vue', 'c': ['r-input', 'r-icon'], 'd': []},
85
+ 'r-group-input': {
86
+ 'p': 'form/group-input.vue',
87
+ 'c': ['r-text-input', 'r-number', 'r-switch', 'r-btn', 'r-icon'],
88
+ 'd': []
89
+ },
90
+ 'r-input': {'p': 'form/input.vue', 'c': ['r-icon'], 'd': []},
91
+ 'r-mask-input': {'p': 'form/mask-input.vue', 'c': ['r-input'], 'd': ['mask']},
92
+ 'r-number': {'p': 'form/number.vue', 'c': ['r-input', 'r-btn', 'r-icon'], 'd': []},
93
+ 'r-password': {'p': 'form/password.vue', 'c': ['r-input', 'r-icon'], 'd': []},
94
+ 'r-radio-input': {'p': 'form/radioInput.vue', 'c': ['r-input', 'r-icon'], 'd': []},
95
+ 'r-range': {'p': 'form/range.vue', 'c': ['r-input'], 'd': ['touch']},
96
+ 'r-rating': {'p': 'form/rating.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
97
+ 'r-select': {
98
+ 'p': 'form/select.vue',
99
+ 'c': ['r-input', 'r-chip', 'r-progress-liner', 'r-card', 'r-list', 'r-icon'],
100
+ 'd': ['click-outside']
101
+ },
102
+ 'r-switch': {'p': 'form/switch.vue', 'c': ['r-input'], 'd': []},
103
+ 'r-text-area': {'p': 'form/text-area.vue', 'c': ['r-input'], 'd': []},
104
+ 'r-text-input': {'p': 'form/text-input.vue', 'c': ['r-input'], 'd': []},
105
+ 'r-unit-input': {'p': 'form/unit-input.vue', 'c': ['r-input', 'r-select'], 'd': []},
106
+ 'r-form-creator': {
107
+ 'p': 'formCreator/index.vue',
108
+ 'c': ['r-card', 'r-container', 'r-message', 'r-form', 'r-row', 'r-col', 'r-btn'],
109
+ 'd': []
110
+ },
111
+ 'r-html2pdf': {'p': 'html2pdf/index.vue', 'c': ['r-btn', 'r-icon', 'r-html2pdf-page-break'], 'd': []},
112
+ 'r-html2pdf-page-break': {'p': 'html2pdf/pageBreak.vue', 'c': [], 'd': []},
113
+ 'r-icon': {'p': 'icon/index.vue', 'c': [], 'd': []},
114
+ 'r-img': {'p': 'img/index.vue', 'c': [], 'd': []},
115
+ 'r-infinite-div': {
116
+ 'p': 'infinite/div.vue',
117
+ 'c': ['r-container', 'r-row', 'r-col', 'r-progress-liner'],
118
+ 'd': ['scroll']
119
+ },
120
+ 'r-infinite-page': {'p': 'infinite/page.vue', 'c': ['r-progress-liner'], 'd': ['scroll']},
121
+ 'r-infinite-box': {
122
+ 'p': 'infinite/index.vue',
123
+ 'c': ['r-card', 'r-container', 'r-row', 'r-col', 'r-switch', 'r-infinite-div'],
124
+ 'd': []
125
+ },
126
+ 'r-list': {'p': 'list/index.vue', 'c': ['r-icon'], 'd': ['ripple']},
127
+ 'r-map': {'p': 'map/index.vue', 'c': ['r-search-box', 'r-btn', 'r-icon', 'r-confirm'], 'd': []},
128
+ 'r-map-select': {'p': 'map/select.vue', 'c': ['r-map'], 'd': []},
129
+ 'r-map-route': {
130
+ 'p': 'map/route.vue',
131
+ 'c': ['r-container', 'r-row', 'r-col', 'r-map', 'r-divider', 'r-spacer', 'r-btn', 'r-icon'],
132
+ 'd': []
133
+ },
134
+ 'r-menu': {'p': 'menu/index.vue', 'c': ['r-btn', 'r-icon', 'r-card'], 'd': ['click-outside']},
135
+ 'r-message': {'p': 'message/index.vue', 'c': ['r-container', 'r-row', 'r-col'], 'd': []},
136
+ 'r-meta': {'p': 'meta/index.js', 'c': [], 'd': []},
137
+ 'r-modal': {'p': 'modal/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
31
138
  'r-progress-circular': {'p': 'progress/circular.vue', 'c': [], 'd': []},
32
139
  'r-progress-liner': {'p': 'progress/liner.vue', 'c': [], 'd': []},
33
- 'r-img': {'p': 'img/index.vue', 'c': [], 'd': []},
34
- 'r-chart': {'p': 'chart/chart.vue', 'c': [], 'd': []},
35
- 'r-date-picker': {'p': 'form/datePicker/index.vue', 'c': [], 'd': []},
36
- 'r-btn-group': {'p': 'button/buttonGroup.vue', 'c': [], 'd': ['click-outside']},
37
- 'r-group-input': {'p': 'form/group-input.vue', 'c': [], 'd': []},
38
- 'r-text-area': {'p': 'form/text-area.vue', 'c': [], 'd': []},
39
- 'r-address': {'p': 'form/address.vue', 'c': [], 'd': []},
40
- 'r-check-input': {'p': 'form/check-input.vue', 'c': [], 'd': []},
41
- 'r-unique-feild': {'p': 'form/uniqueFeild/index.vue', 'c': [], 'd': []},
42
- 'r-file-uploader': {'p': 'form/fileUploader/index.vue', 'c': [], 'd': []},
43
- 'r-select': {'p': 'form/select.vue', 'c': [], 'd': ['click-outside']},
44
- 'r-range': {'p': 'form/range.vue', 'c': [], 'd': ['touch']},
45
- 'r-number': {'p': 'form/number.vue', 'c': [], 'd': []},
46
- 'r-rating': {'p': 'form/rating.vue', 'c': [], 'd': []},
47
- 'r-text-editor': {'p': 'form/text-editor/index.vue', 'c': [], 'd': []},
48
- 'r-text-editor-preview': {'p': 'form/text-editor/preview.vue', 'c': [], 'd': []},
49
- 'r-avatar': {'p': 'avatar/index.vue', 'c': [], 'd': []},
50
- 'r-toolbar': {'p': 'bar/toolbar/index.vue', 'c': [], 'd': []},
51
- 'r-bottom-navigation': {'p': 'bar/bottomNav.vue', 'c': [], 'd': []},
52
- 'r-bottom-navigation-circle': {'p': 'bar/bottomNavigationCircle.vue', 'c': [], 'd': []},
53
- 'r-breadcrumbs': {'p': 'breadcrumb/index.vue', 'c': [], 'd': []},
54
- 'r-breadcrumbs-item': {'p': 'breadcrumb/bredcrumbItem.vue', 'c': [], 'd': []},
55
- 'r-count-down': {'p': 'countdown/index.vue', 'c': [], 'd': []},
56
- 'r-slider': {'p': 'slider/index.vue', 'c': [], 'd': ['touch']},
140
+ 'r-search-box': {
141
+ 'p': 'searchBox/index.vue',
142
+ 'c': ['r-input', 'r-progress-liner', 'r-card', 'r-list', 'r-btn', 'r-icon'],
143
+ 'd': ['click-outside']
144
+ },
145
+ 'r-slider': {'p': 'slider/index.vue', 'c': ['r-progress-liner', 'r-btn', 'r-icon'], 'd': ['touch']},
57
146
  'r-swiper': {'p': 'swiper/index.vue', 'c': [], 'd': ['touch']},
58
- 'r-tabs': {'p': 'tabs/index.vue', 'c': [], 'd': []},
59
- 'r-infinite-div': {'p': 'infinite/div.vue', 'c': [], 'd': ['scroll']},
60
- 'r-infinite-page': {'p': 'infinite/page.vue', 'c': [], 'd': ['scroll']},
61
- 'r-infinite-box': {'p': 'infinite/index.vue', 'c': [], 'd': []},
62
- 'r-iframe': {'p': 'iframe/index.vue', 'c': [], 'd': []},
63
- 'r-menu': {'p': 'menu/index.vue', 'c': [], 'd': ['click-outside']},
64
- 'r-tree': {'p': 'tree/index.vue', 'c': [], 'd': []},
65
- 'r-tree-element': {'p': 'tree/tree-element.vue', 'c': [], 'd': []},
66
- 'r-float': {'p': 'float/index.vue', 'c': [], 'd': []},
67
- 'r-timeline': {'p': 'timeline/index.vue', 'c': [], 'd': []},
68
- 'r-password': {'p': 'form/password.vue', 'c': [], 'd': []},
69
- 'r-color-picker': {'p': 'form/colorPicker/index.vue', 'c': [], 'd': ['touch']},
70
- 'r-html2pdf': {'p': 'html2pdf/index.vue', 'c': [], 'd': []},
71
- 'r-html2pdf-page-break': {'p': 'html2pdf/pageBreak.vue', 'c': [], 'd': []},
72
- 'r-code-editor': {'p': 'codeEditor/index.vue', 'c': [], 'd': []},
73
- 'r-map': {'p': 'map/index.vue', 'c': [], 'd': []},
74
- 'r-map-select': {'p': 'map/select.vue', 'c': [], 'd': []},
75
- 'r-map-route': {'p': 'map/route.vue', 'c': [], 'd': []},
76
- 'r-tour': {'p': 'tour/index.vue', 'c': [], 'd': []},
77
- 'r-chat': {'p': 'chat/index.vue', 'c': [], 'd': ['intersect', 'scroll']},
78
- 'r-time-picker': {'p': 'form/timepicker/index.vue', 'c': [], 'd': []},
79
- 'r-cam-input': {'p': 'form/camInput', 'c': [], 'd': []},
80
- 'r-json': {'p': 'form/json/index.vue', 'c': [], 'd': []},
81
- 'r-calendar': {'p': 'calendar/index.vue', 'c': [], 'd': []},
82
- 'r-search-box': {'p': 'searchBox/index.vue', 'c': [], 'd': ['click-outside']},
147
+ 'r-table': {
148
+ 'p': 'table/index.vue',
149
+ 'c': ['r-btn', 'r-icon', 'r-switch', 'r-progress-liner', 'r-modal', 'r-card', 'r-container', 'r-row', 'r-col'],
150
+ 'd': ['sortable']
151
+ },
152
+ 'r-table-crud': {
153
+ 'p': 'table/crud/index.vue',
154
+ 'c': ['r-card', 'r-modal', 'r-form-creator', 'r-json', 'r-divider', 'r-number', 'r-btn', 'r-table', 'r-icon',
155
+ 'r-time-ago', 'r-switch', 'r-confirm', 'r-container', 'r-row', 'r-col', 'r-text-input', 'r-select', 'r-date-picker',
156
+ 'r-progress-liner'],
157
+ 'd': []
158
+ },
159
+ 'r-tabs': {'p': 'tabs/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
160
+ 'r-time-ago': {'p': 'timeAgo/index.vue', 'c': [], 'd': []},
161
+ 'r-timeline': {'p': 'timeline/index.vue', 'c': ['r-container', 'r-row', 'r-col'], 'd': []},
162
+ 'r-tour': {'p': 'tour/index.vue', 'c': ['r-container', 'r-spacer', 'r-btn'], 'd': []},
163
+
164
+ 'r-tree': {
165
+ 'p': 'tree/index.vue',
166
+ 'c': ['r-container', 'r-row', 'r-col', 'r-select', 'r-float', 'r-tree-element'],
167
+ 'd': []
168
+ },
169
+ 'r-tree-element': {'p': 'tree/tree-element.vue', 'c': ['r-container', 'r-row', 'r-col', 'r-btn', 'r-icon'], 'd': []}
83
170
  }
84
171
 
85
172
  export const register = (app, components) => {
86
173
  let d = {}
87
- if (components.length === 0) {
88
- for (let c in list) {
89
- if (list.hasOwnProperty(c)) {
90
- app.component(c, require('./' + list[c]['p']).default)
91
- list[c]['d'].forEach((i) => {
92
- d[i] = true
93
- })
94
- }
95
- }
96
- } else {
97
- components.forEach((c) => {
174
+ let s = {}
175
+ const setup = (ls) => {
176
+ ls.forEach((c) => {
98
177
  try {
99
- app.component(c, require('./' + list[c]['p']).default)
100
- list[c]['d'].forEach((i) => {
101
- d[i] = true
102
- })
178
+ if (!s[c]) {
179
+ app.component(c, require('./' + list[c]['p']).default)
180
+ list[c]['d'].forEach((i) => {
181
+ d[i] = true
182
+ })
183
+ setup(list[c]['c'])
184
+ s[c] = true
185
+ }
103
186
  } catch (e) {
104
187
  console.error('component not found', c, e)
105
188
  }
106
-
107
189
  })
108
190
  }
191
+ if (components.length === 0) {
192
+ setup(Object.keys(list))
193
+ } else {
194
+ if (!components.includes('r-app')) {
195
+ setup(['r-app'])
196
+ }
197
+ setup(components)
198
+ }
109
199
  return Object.keys(d)
110
200
  }
@@ -30,11 +30,9 @@
30
30
  </template>
31
31
 
32
32
  <script>
33
- import RInfiniteDiv from "./div";
34
33
 
35
34
  export default {
36
35
  name: 'r-infinite-box',
37
- components: {RInfiniteDiv},
38
36
  props: {
39
37
  color:{
40
38
  type:String,