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.
@@ -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 register = (app, components) => {
85
+ export const _register = (app, components) => {
86
86
  let d = {}
87
87
  let s = {}
88
88
  const setup = (ls) => {
@@ -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 registers = (app, directives) => {
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 {register} from './components';
12
- import {registers} from './directive';
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 = register(app, options['components'] || []);
126
+ let required_directive = _register(app, options['components'] || {});
127
127
  if (options['directives']) {
128
- options['directives'].forEach((i) => {
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
- registers(app, required_directive);
131
+ _registers(app, required_directive);
136
132
 
137
133
 
138
134
  // renusify breakpoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",