orion-design 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- export { a as Modal, i as Space } from '../components-DhjIbmR3.js';
1
+ export { a as Modal, i as Space } from '../components-BTX5S_6V.js';
2
2
  export { Colflex, Flexitem, Rowflex } from './Flex/index.js';
3
3
  export { default as useOModal } from './Modal/useModal.js';
4
4
  import 'vue';
@@ -1,5 +1,5 @@
1
- import { c as components } from '../components-DhjIbmR3.js';
2
- export { a as Modal, i as Space } from '../components-DhjIbmR3.js';
1
+ import { c as components } from '../components-BTX5S_6V.js';
2
+ export { a as Modal, i as Space } from '../components-BTX5S_6V.js';
3
3
  export { Colflex, Flexitem, Rowflex } from './Flex/index.js';
4
4
  export { default as useOModal } from './Modal/useModal.js';
5
5
  import 'vue';
@@ -63,17 +63,17 @@ const Modal = defineComponent({
63
63
  const show = ref(false);
64
64
  const title = ref();
65
65
  const content = shallowRef();
66
- const params = ref();
66
+ const contentProps = ref();
67
67
  const width = ref();
68
68
  const __resolve = ref();
69
69
  const _open = async options => {
70
70
  show.value = true;
71
71
  title.value = options.title;
72
72
  content.value = options.content;
73
- if (options.params) {
74
- params.value = options.params;
73
+ if (options.contentProps) {
74
+ contentProps.value = options.contentProps;
75
75
  } else {
76
- params.value = {};
76
+ contentProps.value = {};
77
77
  }
78
78
  if (options.width) {
79
79
  width.value = options.width;
@@ -91,7 +91,7 @@ const Modal = defineComponent({
91
91
  show.value = false;
92
92
  title.value = undefined;
93
93
  content.value = undefined;
94
- params.value = undefined;
94
+ contentProps.value = undefined;
95
95
  width.value = undefined;
96
96
  __resolve.value = undefined;
97
97
  resolve && resolve(options);
@@ -108,7 +108,7 @@ const Modal = defineComponent({
108
108
  "beforeClose": _close,
109
109
  "draggable": true
110
110
  }, {
111
- default: () => [createVNode(Children, params.value, null)]
111
+ default: () => [createVNode(Children, contentProps.value, null)]
112
112
  }) : createVNode(Fragment, null, null);
113
113
  };
114
114
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ export { default as OrionError } from './error/OrionError.js';
2
2
  export { install } from './components/index.js';
3
3
  export { default as version } from './version/version.js';
4
4
  export { default as useOModal } from './components/Modal/useModal.js';
5
- export { a as Modal, i as Space } from './components-DhjIbmR3.js';
5
+ export { a as Modal, i as Space } from './components-BTX5S_6V.js';
6
6
  export { Colflex, Flexitem, Rowflex } from './components/Flex/index.js';
7
7
  import 'vue';
8
8
  import './components/_util/props-util/index.js';
@@ -1,2 +1,2 @@
1
- declare const _default: "0.1.3";
1
+ declare const _default: "0.1.4";
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
- var version = '0.1.3';
1
+ var version = '0.1.4';
2
2
 
3
3
  export { version as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orion-design",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",