File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
components/ConfigProvider/style Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const expandComponentsStyle = (prefix: string) => {
2828 cursor : 'move' ,
2929 userSelect : 'none' ,
3030 } ) ,
31- c ( '.l-modal-title' , {
31+ c ( '.l-modal-title-no-drag ' , {
3232 height : '100%' ,
3333 display : 'flex' ,
3434 alignItems : 'center' ,
Original file line number Diff line number Diff line change 99 LModalForm ,
1010 installUseModal ,
1111 LSignature ,
12+ type HookModalProps ,
1213} from './components' ;
1314
1415export { version } from './version' ;
@@ -24,13 +25,12 @@ const components = [
2425 LSignature ,
2526] ;
2627
27- function install ( app : App ) {
28+ function install ( app : App , options ?: HookModalProps ) {
2829 components . forEach ( ( component ) => {
2930 app . use ( component ) ;
3031 } ) ;
3132 installUseModal ( app , {
32- clsPrefix : 'ant' ,
33- drag : true ,
33+ ...options ,
3434 } ) ;
3535}
3636
Original file line number Diff line number Diff line change @@ -6,13 +6,15 @@ import router from './router';
66import Antd from 'ant-design-vue' ;
77import 'ant-design-vue/dist/reset.css' ;
88// 引入@ssuperlilei/ui
9- import ll_libUI from '@ssuperlilei/ui' ;
9+ import ll_libUI from '~ @ssuperlilei/ui' ;
1010import '@ssuperlilei/ui/style.css' ;
1111// import { globalRegister } from '@ssuperlilei/directives';
1212
1313const app = createApp ( App ) ;
1414app . use ( Antd ) ; // 全局引入antdv组件
15- app . use ( ll_libUI ) ; // 全局引入@ssuperlilei/ui组件
15+ app . use ( ll_libUI , {
16+ drag : false ,
17+ } ) ; // 全局引入@ssuperlilei/ui组件
1618// globalRegister(app); // 全局引入@ssuperlilei/directives指令
1719app . use ( router ) ;
1820app . mount ( '#app' ) ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const openHooksModal = () => {
6363 ModalRender .show ({
6464 title: ' 我是hook纯函数式模态框' ,
6565 content: ' hello' ,
66- drag: true ,
66+ // drag: true,
6767 formProps ,
6868 wrapClassName: ' modalSizeMedium' ,
6969 submit ,
You can’t perform that action at this time.
0 commit comments