orion-design 0.1.3 → 0.1.4
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.
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            export { a as Modal, i as Space } from '../components- | 
| 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';
         | 
    
        package/dist/components/index.js
    CHANGED
    
    | @@ -1,5 +1,5 @@ | |
| 1 | 
            -
            import { c as components } from '../components- | 
| 2 | 
            -
            export { a as Modal, i as Space } from '../components- | 
| 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  | 
| 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. | 
| 74 | 
            -
                     | 
| 73 | 
            +
                  if (options.contentProps) {
         | 
| 74 | 
            +
                    contentProps.value = options.contentProps;
         | 
| 75 75 | 
             
                  } else {
         | 
| 76 | 
            -
                     | 
| 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 | 
            -
                   | 
| 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,  | 
| 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- | 
| 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. | 
| 1 | 
            +
            declare const _default: "0.1.4";
         | 
| 2 2 | 
             
            export default _default;
         | 
    
        package/dist/version/version.js
    CHANGED