renusify 2.1.0 → 2.1.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/components/index.js +1 -1
- package/directive/index.js +1 -1
- package/index.js +5 -9
- package/package.json +1 -1
package/components/index.js
CHANGED
|
@@ -82,7 +82,7 @@ export * as rTimeline from './timeline/index.js'
|
|
|
82
82
|
export * as rTour from './tour/index.js'
|
|
83
83
|
export * as rTree from './tree/index.js'
|
|
84
84
|
|
|
85
|
-
export const
|
|
85
|
+
export const _register = (app, components) => {
|
|
86
86
|
let d = {}
|
|
87
87
|
let s = {}
|
|
88
88
|
const setup = (ls) => {
|
package/directive/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export * as touch from './touch/index'
|
|
|
12
12
|
export * as title from './title/index'
|
|
13
13
|
export * as skeleton from './skeleton/index'
|
|
14
14
|
|
|
15
|
-
export const
|
|
15
|
+
export const _registers = (app, directives) => {
|
|
16
16
|
for (const arrayKey in directives) {
|
|
17
17
|
app.directive(arrayKey,directives[arrayKey].default)
|
|
18
18
|
}
|
package/index.js
CHANGED
|
@@ -8,8 +8,8 @@ import Notify from './components/notify/notify.js';
|
|
|
8
8
|
import valid from './plugins/validation/Validate';
|
|
9
9
|
import Toast from './components/app/toast/toast.js';
|
|
10
10
|
import event from './plugins/event';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import {_register} from './components';
|
|
12
|
+
import {_registers} from './directive';
|
|
13
13
|
import {Icons} from "./tools/icons";
|
|
14
14
|
|
|
15
15
|
window.renusifyBus = event;
|
|
@@ -123,16 +123,12 @@ export default {
|
|
|
123
123
|
app.config.globalProperties.$v = (names) => v.checkType(names)
|
|
124
124
|
|
|
125
125
|
// install components
|
|
126
|
-
let required_directive =
|
|
126
|
+
let required_directive = _register(app, options['components'] || {});
|
|
127
127
|
if (options['directives']) {
|
|
128
|
-
options['directives']
|
|
129
|
-
if (!required_directive.includes(i)) {
|
|
130
|
-
required_directive.push(i)
|
|
131
|
-
}
|
|
132
|
-
})
|
|
128
|
+
Object.assign(required_directive,options['directives'])
|
|
133
129
|
}
|
|
134
130
|
// install directives
|
|
135
|
-
|
|
131
|
+
_registers(app, required_directive);
|
|
136
132
|
|
|
137
133
|
|
|
138
134
|
// renusify breakpoint
|