@qynpm/ui 1.0.46 → 1.1.0
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/CHANGELOG.md +27 -0
- package/README.md +3 -1
- package/dist/index.cjs +26 -26
- package/dist/index.mjs +241 -241
- package/dist/qy-action-bar/index.cjs +2 -2
- package/dist/qy-action-bar/index.mjs +2 -2
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +3 -3
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +4 -4
- package/dist/qy-dialog/index.cjs +2 -2
- package/dist/qy-dialog/index.mjs +4 -4
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +2 -2
- package/dist/qy-form-section/index.mjs +2 -2
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +2 -2
- package/dist/qy-icon-picker/index.mjs +5 -5
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +2 -2
- package/dist/qy-image-upload/index.mjs +4 -4
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +2 -2
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +134 -123
- package/dist/qy-legacy-selection-dialog/index.cjs +7 -7
- package/dist/qy-legacy-selection-dialog/index.mjs +7 -7
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +4 -4
- package/dist/qy-pagination/index.cjs +1 -1
- package/dist/qy-pagination/index.mjs +1 -1
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +3 -3
- package/dist/qy-record-quote-search/index.mjs +3 -3
- package/dist/qy-remark-image/index.cjs +2 -2
- package/dist/qy-remark-image/index.mjs +3 -3
- package/dist/qy-remote-select/index.cjs +2 -2
- package/dist/qy-remote-select/index.mjs +4 -4
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +2 -2
- package/dist/qy-search-input/index.mjs +2 -2
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +6 -6
- package/dist/qy-selection-dialog/index.mjs +6 -6
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +4 -4
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +4 -4
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/index-0PQfX5FF.cjs +1 -0
- package/dist/shared/index-0rmLB9X5.mjs +153 -0
- package/dist/shared/index-2Mjm9QSY.cjs +1 -0
- package/dist/shared/index-4Yl91Bw1.cjs +1 -0
- package/dist/shared/{index-DNMRIYkm.mjs → index-4f74z6ej.mjs} +1 -1
- package/dist/shared/index-5gzkbh5i.mjs +155 -0
- package/dist/shared/index-8hd7J6aU.mjs +387 -0
- package/dist/shared/index-8yOtcFvL.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-9ONwSw5w.mjs} +13 -12
- package/dist/shared/index-9uvmS4AG.mjs +269 -0
- package/dist/shared/index-AanbrbHj.mjs +341 -0
- package/dist/shared/index-AlGD5i9H.mjs +69 -0
- package/dist/shared/index-B5QHWuu6.mjs +77 -0
- package/dist/shared/index-B61qMsVc.cjs +1 -0
- package/dist/shared/index-B7uUS7TF.cjs +1 -0
- package/dist/shared/index-BD_xspQz.mjs +48 -0
- package/dist/shared/index-BE5027ro.mjs +93 -0
- package/dist/shared/index-BEBpuiBd.mjs +88 -0
- package/dist/shared/index-BEkygL14.mjs +53 -0
- package/dist/shared/index-BEtTFM5x.cjs +1 -0
- package/dist/shared/index-BHwo-QWj.cjs +1 -0
- package/dist/shared/index-BNFOINBq.cjs +1 -0
- package/dist/shared/index-BO98Eu6o.mjs +177 -0
- package/dist/shared/index-BQhmieVL.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-BQsEFX28.mjs} +24 -23
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs → index-BToXN_2w.mjs} +18 -17
- package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-BVb2RMjG.mjs} +12 -11
- package/dist/shared/index-BZWCuG8R.cjs +1 -0
- package/dist/shared/index-BZ_NcHA_.mjs +53 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DIKHRo0o.mjs → index-BZqyVU0P.mjs} +22 -21
- package/dist/shared/index-B_SR7dGJ.cjs +1 -0
- package/dist/shared/index-BerXbfTu.mjs +253 -0
- package/dist/shared/index-BflaWNs2.cjs +1 -0
- package/dist/shared/index-BhgJxAHO.cjs +1 -0
- package/dist/shared/index-BiKe-5ke.cjs +1 -0
- package/dist/shared/index-BikJ___N.cjs +1 -0
- package/dist/shared/index-BjZlBHhd.mjs +129 -0
- package/dist/shared/index-Bk0SVo_S.cjs +1 -0
- package/dist/shared/index-BlC4k76M.cjs +1 -0
- package/dist/shared/index-BlRFiIMi.cjs +1 -0
- package/dist/shared/index-BlkrT9Gw.cjs +1 -0
- package/dist/shared/index-BmK0RFXS.cjs +1 -0
- package/dist/shared/index-BwHeigcB.cjs +1 -0
- package/dist/shared/index-BzVbwomQ.mjs +365 -0
- package/dist/shared/index-C0vnuFhn.cjs +1 -0
- package/dist/shared/index-C1__R9-C.mjs +371 -0
- package/dist/shared/index-C1fkmo0S.cjs +1 -0
- package/dist/shared/index-C9AEjhcH.mjs +160 -0
- package/dist/shared/index-C9Lf2bX3.mjs +295 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-C9n9zVss.mjs} +4 -3
- package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-CBbKlfPG.mjs} +10 -9
- package/dist/shared/index-CC5n_6uk.mjs +205 -0
- package/dist/shared/index-CDczgvbL.cjs +1 -0
- package/dist/shared/index-CESgJwIg.mjs +328 -0
- package/dist/shared/index-CEt5qI00.mjs +857 -0
- package/dist/shared/index-CFBWO7n0.mjs +78 -0
- package/dist/shared/index-CFJz6vrN.mjs +47 -0
- package/dist/shared/{index-CXnL-0Kp.cjs → index-CGFTY4Fp.cjs} +1 -1
- package/dist/shared/index-CHkcP5-q.cjs +1 -0
- package/dist/shared/index-CIUWz2Hp.cjs +1 -0
- package/dist/shared/index-COAR6xjP.mjs +402 -0
- package/dist/shared/index-CP3-7cLC.mjs +105 -0
- package/dist/shared/index-CP7N-9VV.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CQRVbO-K.mjs} +20 -19
- package/dist/shared/{index.vue_vue_type_script_lang-D7nzeBUR.mjs → index-CTGLKLFg.mjs} +6 -5
- package/dist/shared/index-CWkXHOq7.cjs +1 -0
- package/dist/shared/index-CX-7EN8r.mjs +79 -0
- package/dist/shared/index-CXOF1C3t.mjs +84 -0
- package/dist/shared/index-CXeVLEcE.cjs +1 -0
- package/dist/shared/index-CXzBoO6N.cjs +1 -0
- package/dist/shared/index-C_vMHW_7.cjs +1 -0
- package/dist/shared/index-CcGYgKVf.mjs +446 -0
- package/dist/shared/index-CdqAvLtW.cjs +1 -0
- package/dist/shared/index-CfKXtmed.cjs +1 -0
- package/dist/shared/index-CfxDI3TR.mjs +284 -0
- package/dist/shared/index-Cgt_jiO8.cjs +1 -0
- package/dist/shared/index-CialZcU3.mjs +74 -0
- package/dist/shared/index-CjoH6lLx.cjs +1 -0
- package/dist/shared/index-CkXEXmTX.cjs +1 -0
- package/dist/shared/index-Cq0QWpNp.cjs +1 -0
- package/dist/shared/index-CtQ7TLzl.mjs +138 -0
- package/dist/shared/index-Ctcu-6T-.mjs +104 -0
- package/dist/shared/index-CvFL8RVZ.cjs +1 -0
- package/dist/shared/index-D-KJitUI.mjs +234 -0
- package/dist/shared/index-D-Se1DH6.cjs +1 -0
- package/dist/shared/index-D1SCfWlF.cjs +1 -0
- package/dist/shared/index-D2djzg5O.mjs +170 -0
- package/dist/shared/index-D6lq2cXm.cjs +1 -0
- package/dist/shared/index-DGGBR9IQ.cjs +1 -0
- package/dist/shared/index-DI5Xx4zU.mjs +740 -0
- package/dist/shared/index-DMfiLqWm.cjs +1 -0
- package/dist/shared/index-DN3FSxUk.cjs +1 -0
- package/dist/shared/index-DN5Y8eHV.mjs +197 -0
- package/dist/shared/index-DNkrf-d7.cjs +1 -0
- package/dist/shared/index-DREOpf4w.cjs +1 -0
- package/dist/shared/index-DWxTBo0t.cjs +1 -0
- package/dist/shared/index-DYRxgeIB.mjs +311 -0
- package/dist/shared/index-DYhS_2hH.cjs +1 -0
- package/dist/shared/index-DZ9ixuhw.cjs +1 -0
- package/dist/shared/index-DZfZB8LS.mjs +146 -0
- package/dist/shared/index-DalbvZMR.mjs +132 -0
- package/dist/shared/index-DbpA63pp.mjs +51 -0
- package/dist/shared/index-Dd3rOEzY.mjs +136 -0
- package/dist/shared/index-DdOHKkWW.mjs +52 -0
- package/dist/shared/index-DhN2XKVc.cjs +1 -0
- package/dist/shared/index-DiZtu6-f.mjs +239 -0
- package/dist/shared/index-DkObuzo1.cjs +1 -0
- package/dist/shared/index-DkXIyXp3.mjs +27 -0
- package/dist/shared/index-DmlIk2mW.cjs +1 -0
- package/dist/shared/index-Dv56njXo.cjs +1 -0
- package/dist/shared/index-DvLP2-p4.mjs +53 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-DxJnYlq4.mjs} +12 -11
- package/dist/shared/index-FSg27SoE.cjs +1 -0
- package/dist/shared/index-H0zceO6D.cjs +1 -0
- package/dist/shared/index-KFGhsuz_.mjs +63 -0
- package/dist/shared/index-KRMhlM-i.mjs +73 -0
- package/dist/shared/index-KvPH1usv.cjs +1 -0
- package/dist/shared/index-MaJdwWFj.cjs +1 -0
- package/dist/shared/index-NVs2UMip.cjs +1 -0
- package/dist/shared/index-OtL-aoXO.cjs +1 -0
- package/dist/shared/index-QHgVgpQU.mjs +67 -0
- package/dist/shared/index-R_lpFv9P.cjs +1 -0
- package/dist/shared/index-UyFdOJwl.mjs +157 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C9X0V5AK.mjs → index-ZaBOgUd8.mjs} +17 -16
- package/dist/shared/index-_aPlj867.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-_llXjfm8.mjs} +4 -3
- package/dist/shared/index-aIBPfUAm.mjs +213 -0
- package/dist/shared/index-bR6Q3uaD.mjs +407 -0
- package/dist/shared/index-dM8FfZ_X.cjs +1 -0
- package/dist/shared/index-eIplwAX7.cjs +1 -0
- package/dist/shared/index-fEmIlZsO.cjs +1 -0
- package/dist/shared/index-frOfvcCH.mjs +307 -0
- package/dist/shared/index-iDsQyjN1.mjs +548 -0
- package/dist/shared/index-iGKTM26-.mjs +63 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs → index-iqem06ey.mjs} +12 -11
- package/dist/shared/index-mO9UiIQW.cjs +1 -0
- package/dist/shared/index-nYilZJM6.cjs +1 -0
- package/dist/shared/index-oZEfxmBH.cjs +1 -0
- package/dist/shared/index-oeKD9ezb.mjs +208 -0
- package/dist/shared/index-rPOiDeUU.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-tQgB7Kvd.mjs} +16 -15
- package/dist/shared/index-xCLpvAQ0.cjs +1 -0
- package/index.d.ts +1 -0
- package/package.json +3 -2
- package/qy-dialog/index.d.ts +6 -3
- package/dist/shared/index-5UAiwqdT.cjs +0 -1
- package/dist/shared/index-AvNvmJe5.cjs +0 -1
- package/dist/shared/index-B0CTzdRW.mjs +0 -149
- package/dist/shared/index-B1J7PQMl.mjs +0 -79
- package/dist/shared/index-B1gnVI8Y.mjs +0 -161
- package/dist/shared/index-B7j9BtSm.mjs +0 -233
- package/dist/shared/index-BAOV5iYx.mjs +0 -385
- package/dist/shared/index-BKdw4jD_.mjs +0 -142
- package/dist/shared/index-BN4A-O6P.mjs +0 -727
- package/dist/shared/index-BR7tIt2k.mjs +0 -211
- package/dist/shared/index-BVaIvVMi.mjs +0 -71
- package/dist/shared/index-BaRw7pWi.mjs +0 -156
- package/dist/shared/index-Bdlzmh8A.cjs +0 -1
- package/dist/shared/index-BgAP_K2E.cjs +0 -1
- package/dist/shared/index-Blgz8PJc.cjs +0 -1
- package/dist/shared/index-BqzKToOL.cjs +0 -1
- package/dist/shared/index-BsNtvE6i.cjs +0 -1
- package/dist/shared/index-BuVrLl5B.mjs +0 -90
- package/dist/shared/index-Bv1DrJ32.mjs +0 -71
- package/dist/shared/index-Bz9WjKdL.cjs +0 -1
- package/dist/shared/index-Bzr2RHi5.mjs +0 -293
- package/dist/shared/index-C50jpQ11.mjs +0 -295
- package/dist/shared/index-C6G9eVku.cjs +0 -1
- package/dist/shared/index-CB0v25oB.cjs +0 -1
- package/dist/shared/index-CGH2ROZV.mjs +0 -54
- package/dist/shared/index-CIXJwYI-.cjs +0 -1
- package/dist/shared/index-CKkanVur.cjs +0 -1
- package/dist/shared/index-CLvL8LAM.cjs +0 -1
- package/dist/shared/index-CN2mgT5V.cjs +0 -1
- package/dist/shared/index-CW4s627w.mjs +0 -107
- package/dist/shared/index-CXOCZlps.mjs +0 -222
- package/dist/shared/index-CZs0V4ze.cjs +0 -1
- package/dist/shared/index-Cqr-L0yd.mjs +0 -285
- package/dist/shared/index-Cu6yAwdj.mjs +0 -124
- package/dist/shared/index-CxTyKMEH.cjs +0 -1
- package/dist/shared/index-D5HS8M1P.cjs +0 -1
- package/dist/shared/index-D6QwZtYV.mjs +0 -56
- package/dist/shared/index-DCsun70c.cjs +0 -1
- package/dist/shared/index-DEzFHeJL.cjs +0 -1
- package/dist/shared/index-DY2IXvwl.cjs +0 -1
- package/dist/shared/index-DdGlwebp.mjs +0 -347
- package/dist/shared/index-DiN5vXXD.cjs +0 -1
- package/dist/shared/index-Duq5XZ5w.cjs +0 -1
- package/dist/shared/index-DvXzDAmi.mjs +0 -285
- package/dist/shared/index-DwHM9eYc.cjs +0 -1
- package/dist/shared/index-FZ5gl2au.cjs +0 -1
- package/dist/shared/index-O6K0DO_k.cjs +0 -1
- package/dist/shared/index-PM5yNugz.mjs +0 -573
- package/dist/shared/index-QN7-6GpS.mjs +0 -127
- package/dist/shared/index-VtM0GmfU.mjs +0 -361
- package/dist/shared/index-_Bagw0Pj.cjs +0 -1
- package/dist/shared/index-ykI9hKtc.mjs +0 -88
- package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
- package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +0 -40
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs +0 -199
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs +0 -108
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs +0 -331
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +0 -133
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +0 -238
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +0 -63
- package/dist/shared/index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs +0 -98
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +0 -413
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +0 -142
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs +0 -67
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs +0 -148
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs +0 -317
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +0 -219
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +0 -176
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs +0 -298
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs +0 -168
- package/dist/shared/index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs +0 -74
- package/dist/shared/index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-yci929so.cjs +0 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { defineComponent as fe, useAttrs as me, ref as c, computed as h, getCurrentInstance as pe, watch as x, onMounted as ve, onBeforeUnmount as ge, nextTick as ye, openBlock as j, createElementBlock as te, mergeProps as he, createVNode as H, withCtx as B, createElementVNode as C, normalizeClass as we, renderSlot as K, createBlock as _e, resolveDynamicComponent as be, createCommentVNode as Ee, createTextVNode as Q, toDisplayString as U } from "vue";
|
|
2
|
+
import { CircleCloseFilled as Le, InfoFilled as ke, WarningFilled as Ce } from "@element-plus/icons-vue";
|
|
3
|
+
import { ElPopover as qe, ElButton as Pe } from "element-plus";
|
|
4
|
+
import { a as Te, c as Ae } from "./overlay-stack-eI-yzYU6.mjs";
|
|
5
|
+
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
const w = [], xe = /* @__PURE__ */ fe({
|
|
7
|
+
name: "QyPopconfirm",
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
title: { type: String, required: !0 },
|
|
12
|
+
open: { type: Boolean, default: void 0 },
|
|
13
|
+
disabled: { type: Boolean, default: !1 },
|
|
14
|
+
placement: { type: String, default: "bottom" },
|
|
15
|
+
width: { type: [Number, String], default: 220 },
|
|
16
|
+
confirmText: { type: String, default: "确认" },
|
|
17
|
+
cancelText: { type: String, default: "取消" },
|
|
18
|
+
variant: { type: String, default: "warning" },
|
|
19
|
+
confirmType: { type: String, default: "primary" },
|
|
20
|
+
showIcon: { type: Boolean, default: !0 },
|
|
21
|
+
confirmLoading: { type: Boolean, default: !1 },
|
|
22
|
+
closeOnConfirm: { type: Boolean, default: !0 }
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:open", "open-change", "confirm", "cancel", "close"],
|
|
25
|
+
setup(_, { expose: G, emit: o }) {
|
|
26
|
+
G();
|
|
27
|
+
const n = _, r = o, D = me(), q = c(null), R = c(null), I = h(() => n.open !== void 0), P = n.open === !0 && !n.disabled, T = c(P), f = c(P), a = c(P), i = c(null), m = c(!1), b = c(null), E = {}, J = `qy-popconfirm-${pe().uid}`, A = /* @__PURE__ */ new WeakSet();
|
|
28
|
+
let s = !1, d, p, v = !1, g = null;
|
|
29
|
+
const y = h(() => n.disabled ? !1 : I.value ? n.open === !0 : T.value), oe = h(() => {
|
|
30
|
+
const e = {};
|
|
31
|
+
for (const [t, k] of Object.entries(D))
|
|
32
|
+
(t === "class" || t === "style" || t === "id" || t === "title" || t === "tabindex" || t === "role" || t.startsWith("data-") || t.startsWith("aria-") || /^onKey(?:down|up|press)/i.test(t)) && (e[t] = k);
|
|
33
|
+
return e;
|
|
34
|
+
}), X = h(
|
|
35
|
+
() => typeof n.width == "number" ? `${n.width}px` : n.width
|
|
36
|
+
), ie = h(() => ({
|
|
37
|
+
"--qy-popconfirm-width": X.value,
|
|
38
|
+
"--qy-popconfirm-mobile-gutter": "24px"
|
|
39
|
+
})), re = h(() => n.variant === "danger" ? Le : n.variant === "info" ? ke : Ce);
|
|
40
|
+
function S() {
|
|
41
|
+
return w[w.length - 1] === E;
|
|
42
|
+
}
|
|
43
|
+
function N() {
|
|
44
|
+
w.includes(E) || w.push(E);
|
|
45
|
+
}
|
|
46
|
+
function W() {
|
|
47
|
+
const e = w.indexOf(E);
|
|
48
|
+
e >= 0 && w.splice(e, 1);
|
|
49
|
+
}
|
|
50
|
+
function F(e) {
|
|
51
|
+
var ee, ne;
|
|
52
|
+
const t = document.activeElement;
|
|
53
|
+
if (t instanceof HTMLElement && ((ee = q.value) != null && ee.contains(t))) {
|
|
54
|
+
b.value = t;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const k = e == null ? void 0 : e.target;
|
|
58
|
+
k instanceof HTMLElement && ((ne = R.value) != null && ne.contains(k)) && (b.value = k);
|
|
59
|
+
}
|
|
60
|
+
function Y() {
|
|
61
|
+
const e = b.value;
|
|
62
|
+
b.value = null, e != null && e.isConnected && e.focus();
|
|
63
|
+
}
|
|
64
|
+
function u() {
|
|
65
|
+
if (s) return;
|
|
66
|
+
const e = y.value;
|
|
67
|
+
f.value !== e && (s = !0, d = e, p = e ? void 0 : i.value ?? (n.disabled ? "disabled" : "external"), f.value = e);
|
|
68
|
+
}
|
|
69
|
+
function l(e, t) {
|
|
70
|
+
e && n.disabled || (!e && t && i.value === null && (i.value = t), I.value ? n.open !== e && r("update:open", e) : T.value !== e && (T.value = e, r("update:open", e)), u());
|
|
71
|
+
}
|
|
72
|
+
function Z() {
|
|
73
|
+
var e;
|
|
74
|
+
return i.value ? i.value : g instanceof Node && ((e = q.value) != null && e.contains(g)) ? "trigger" : "outside";
|
|
75
|
+
}
|
|
76
|
+
function ae(e) {
|
|
77
|
+
if (e) {
|
|
78
|
+
F(), l(!0);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (n.confirmLoading) return;
|
|
82
|
+
const t = Z();
|
|
83
|
+
!S() && t !== "external" && t !== "disabled" || l(!1, t);
|
|
84
|
+
}
|
|
85
|
+
function le(e) {
|
|
86
|
+
var t;
|
|
87
|
+
!(e.target instanceof Node) || !((t = R.value) != null && t.contains(e.target)) || n.confirmLoading || (a.value || f.value ? (i.value = "trigger", l(!1, "trigger")) : (F(e), l(!0)));
|
|
88
|
+
}
|
|
89
|
+
function se() {
|
|
90
|
+
!y.value || n.disabled || n.confirmLoading || m.value || (m.value = !0, r("confirm"), n.closeOnConfirm && l(!1, "confirm"), ye(() => {
|
|
91
|
+
y.value && !n.confirmLoading && (m.value = !1);
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
function ce() {
|
|
95
|
+
n.disabled || n.confirmLoading || (r("cancel"), l(!1, "cancel"));
|
|
96
|
+
}
|
|
97
|
+
function O(e) {
|
|
98
|
+
e.key !== "Escape" && e.code !== "Escape" || e.defaultPrevented || !a.value || !S() || Te(document.querySelector(`.${J}`)) && (Ae(e), A.add(e));
|
|
99
|
+
}
|
|
100
|
+
function L(e) {
|
|
101
|
+
A.has(e) && (A.delete(e), e.stopPropagation(), !e.defaultPrevented && (e.preventDefault(), e.stopImmediatePropagation(), !n.confirmLoading && l(!1, "escape")));
|
|
102
|
+
}
|
|
103
|
+
function V(e) {
|
|
104
|
+
g = e.target;
|
|
105
|
+
}
|
|
106
|
+
function z(e) {
|
|
107
|
+
g = e.target;
|
|
108
|
+
}
|
|
109
|
+
function M(e) {
|
|
110
|
+
var t;
|
|
111
|
+
n.confirmLoading || !a.value || !S() || e.target instanceof Node && ((t = q.value) != null && t.contains(e.target) || e.target instanceof Element && e.target.closest(".qy-popconfirm-popper") || l(!1, "outside"));
|
|
112
|
+
}
|
|
113
|
+
function de() {
|
|
114
|
+
!s || d !== !0 || (s = !1, d = void 0, a.value = !0, N(), i.value = null, p = void 0, r("open-change", !0), u());
|
|
115
|
+
}
|
|
116
|
+
function ue() {
|
|
117
|
+
!s || d !== !1 || (s = !1, d = void 0, a.value = !1, W(), r("open-change", !1), r("close", p ?? i.value ?? "external"), i.value = null, p = void 0, m.value = !1, v = !1, Y(), u());
|
|
118
|
+
}
|
|
119
|
+
x(y, () => u()), x(
|
|
120
|
+
() => n.open,
|
|
121
|
+
(e, t) => {
|
|
122
|
+
e !== t && (e === !1 && (a.value || f.value) && i.value === null && (i.value = "external"), u());
|
|
123
|
+
}
|
|
124
|
+
), x(
|
|
125
|
+
() => n.disabled,
|
|
126
|
+
(e) => {
|
|
127
|
+
e && (a.value || f.value) && (i.value = "disabled"), u();
|
|
128
|
+
}
|
|
129
|
+
), x(
|
|
130
|
+
() => n.confirmLoading,
|
|
131
|
+
(e) => {
|
|
132
|
+
e ? v = !0 : v && (v = !1, y.value && (m.value = !1));
|
|
133
|
+
}
|
|
134
|
+
), ve(() => {
|
|
135
|
+
a.value && N(), window.addEventListener("keydown", O, !0), document.body.addEventListener("keydown", L), window.addEventListener("keydown", L), document.addEventListener("pointerdown", V, !0), document.addEventListener("mousedown", z, !0), document.addEventListener("click", M);
|
|
136
|
+
}), ge(() => {
|
|
137
|
+
W(), window.removeEventListener("keydown", O, !0), document.body.removeEventListener("keydown", L), window.removeEventListener("keydown", L), document.removeEventListener("pointerdown", V, !0), document.removeEventListener("mousedown", z, !0), document.removeEventListener("click", M);
|
|
138
|
+
});
|
|
139
|
+
const $ = { props: n, emit: r, attrs: D, rootRef: q, referenceRef: R, isControlled: I, initialVisible: P, requestedDesired: T, renderedDesired: f, actualVisible: a, pendingCloseReason: i, confirmLocked: m, focusTarget: b, token: E, popperId: J, ownedEscapeEvents: A, get transitionActive() {
|
|
140
|
+
return s;
|
|
141
|
+
}, set transitionActive(e) {
|
|
142
|
+
s = e;
|
|
143
|
+
}, get transitionDirection() {
|
|
144
|
+
return d;
|
|
145
|
+
}, set transitionDirection(e) {
|
|
146
|
+
d = e;
|
|
147
|
+
}, get transitionReason() {
|
|
148
|
+
return p;
|
|
149
|
+
}, set transitionReason(e) {
|
|
150
|
+
p = e;
|
|
151
|
+
}, get loadingWasActive() {
|
|
152
|
+
return v;
|
|
153
|
+
}, set loadingWasActive(e) {
|
|
154
|
+
v = e;
|
|
155
|
+
}, get lastPointerTarget() {
|
|
156
|
+
return g;
|
|
157
|
+
}, set lastPointerTarget(e) {
|
|
158
|
+
g = e;
|
|
159
|
+
}, targetDesired: y, rootAttrs: oe, normalizedWidth: X, popperStyle: ie, iconComponent: re, isTopmost: S, registerVisible: N, unregisterVisible: W, rememberFocus: F, restoreFocus: Y, pumpTransition: u, requestIntent: l, closeReasonFromInteraction: Z, handleElementVisibility: ae, handleRootClick: le, handleConfirm: se, handleCancel: ce, captureEscapeOwner: O, handleKeydown: L, handlePointerDown: V, handleMouseDown: z, handleDocumentClick: M, handleAfterEnter: de, handleAfterLeave: ue, get ElButton() {
|
|
160
|
+
return Pe;
|
|
161
|
+
}, get ElPopover() {
|
|
162
|
+
return qe;
|
|
163
|
+
} };
|
|
164
|
+
return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
|
|
165
|
+
}
|
|
166
|
+
}), Be = {
|
|
167
|
+
ref: "referenceRef",
|
|
168
|
+
"data-qy-popconfirm-reference": ""
|
|
169
|
+
}, De = { class: "qy-popconfirm__message" }, Re = {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: "qy-popconfirm__icon",
|
|
172
|
+
"aria-hidden": "true"
|
|
173
|
+
}, Ie = {
|
|
174
|
+
"data-testid": "qy-popconfirm-title",
|
|
175
|
+
class: "qy-popconfirm__title"
|
|
176
|
+
}, Ne = { class: "qy-popconfirm__actions" };
|
|
177
|
+
function We(_, G, o, n, r, D) {
|
|
178
|
+
return j(), te(
|
|
179
|
+
"span",
|
|
180
|
+
he({
|
|
181
|
+
ref: "rootRef",
|
|
182
|
+
class: "qy-popconfirm"
|
|
183
|
+
}, n.rootAttrs, { onClickCapture: n.handleRootClick }),
|
|
184
|
+
[
|
|
185
|
+
H(n.ElPopover, {
|
|
186
|
+
visible: n.renderedDesired,
|
|
187
|
+
trigger: "click",
|
|
188
|
+
placement: o.placement,
|
|
189
|
+
width: o.width,
|
|
190
|
+
disabled: o.disabled,
|
|
191
|
+
"popper-style": n.popperStyle,
|
|
192
|
+
"popper-class": `qy-popconfirm-popper ${n.popperId}`,
|
|
193
|
+
"onUpdate:visible": n.handleElementVisibility,
|
|
194
|
+
onAfterEnter: n.handleAfterEnter,
|
|
195
|
+
onAfterLeave: n.handleAfterLeave
|
|
196
|
+
}, {
|
|
197
|
+
reference: B(() => [
|
|
198
|
+
C(
|
|
199
|
+
"span",
|
|
200
|
+
Be,
|
|
201
|
+
[
|
|
202
|
+
K(_.$slots, "reference")
|
|
203
|
+
],
|
|
204
|
+
512
|
|
205
|
+
/* NEED_PATCH */
|
|
206
|
+
)
|
|
207
|
+
]),
|
|
208
|
+
default: B(() => [
|
|
209
|
+
C(
|
|
210
|
+
"div",
|
|
211
|
+
{
|
|
212
|
+
class: we(["qy-popconfirm__content", `is-${o.variant}`]),
|
|
213
|
+
"data-qy-popconfirm-content": ""
|
|
214
|
+
},
|
|
215
|
+
[
|
|
216
|
+
C("div", De, [
|
|
217
|
+
o.showIcon ? (j(), te("span", Re, [
|
|
218
|
+
K(_.$slots, "icon", {}, () => [
|
|
219
|
+
(j(), _e(be(n.iconComponent)))
|
|
220
|
+
])
|
|
221
|
+
])) : Ee("v-if", !0),
|
|
222
|
+
C("span", Ie, [
|
|
223
|
+
K(_.$slots, "title", {}, () => [
|
|
224
|
+
Q(
|
|
225
|
+
U(o.title),
|
|
226
|
+
1
|
|
227
|
+
/* TEXT */
|
|
228
|
+
)
|
|
229
|
+
])
|
|
230
|
+
])
|
|
231
|
+
]),
|
|
232
|
+
C("div", Ne, [
|
|
233
|
+
H(n.ElButton, {
|
|
234
|
+
"data-testid": "qy-popconfirm-cancel",
|
|
235
|
+
size: "small",
|
|
236
|
+
disabled: o.disabled || o.confirmLoading,
|
|
237
|
+
onClick: n.handleCancel
|
|
238
|
+
}, {
|
|
239
|
+
default: B(() => [
|
|
240
|
+
Q(
|
|
241
|
+
U(o.cancelText),
|
|
242
|
+
1
|
|
243
|
+
/* TEXT */
|
|
244
|
+
)
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
/* STABLE */
|
|
248
|
+
}, 8, ["disabled"]),
|
|
249
|
+
H(n.ElButton, {
|
|
250
|
+
"data-testid": "qy-popconfirm-confirm",
|
|
251
|
+
size: "small",
|
|
252
|
+
type: o.confirmType,
|
|
253
|
+
loading: o.confirmLoading,
|
|
254
|
+
disabled: o.disabled || o.confirmLoading || n.confirmLocked,
|
|
255
|
+
onClick: n.handleConfirm
|
|
256
|
+
}, {
|
|
257
|
+
default: B(() => [
|
|
258
|
+
Q(
|
|
259
|
+
U(o.confirmText),
|
|
260
|
+
1
|
|
261
|
+
/* TEXT */
|
|
262
|
+
)
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
/* STABLE */
|
|
266
|
+
}, 8, ["type", "loading", "disabled"])
|
|
267
|
+
])
|
|
268
|
+
],
|
|
269
|
+
2
|
|
270
|
+
/* CLASS */
|
|
271
|
+
)
|
|
272
|
+
]),
|
|
273
|
+
_: 3
|
|
274
|
+
/* FORWARDED */
|
|
275
|
+
}, 8, ["visible", "placement", "width", "disabled", "popper-style", "popper-class"])
|
|
276
|
+
],
|
|
277
|
+
16
|
|
278
|
+
/* FULL_PROPS */
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
const je = /* @__PURE__ */ Se(xe, [["render", We], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-popconfirm/index.vue"]]);
|
|
282
|
+
export {
|
|
283
|
+
je as P
|
|
284
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),u=require("element-plus"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y=t.defineComponent({name:"QyTabs",inheritAttrs:!1,props:{modelValue:{type:[String,Number],required:!1},defaultValue:{type:[String,Number],required:!1},type:{type:String,default:""},tabPosition:{type:String,default:"top"},stretch:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},beforeLeave:{type:Function,required:!1},tabindex:{type:[String,Number],default:0}},emits:["update:modelValue","tab-change","tab-click","tab-remove","tab-add","edit"],setup(n,{attrs:b,emit:l,slots:o}){const i=t.computed(()=>Object.fromEntries(Object.entries(b).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),d=t.computed(()=>({...i.value,class:["qy-tabs",i.value.class]}));function f(e){const a=t.unref(e.paneName),r=e.props??{};return Object.freeze({name:a??r.name,label:r.label??"",disabled:r.disabled??!1,closable:t.unref(e.isClosable)??r.closable??!1,lazy:r.lazy??!1,active:t.unref(e.active)??!1,index:t.unref(e.index)})}function c(e){return typeof e.type=="object"&&e.type!==null&&e.type.name==="QyTabPane"}function m(e){return Object.fromEntries(Object.entries(e??{}).filter(([a])=>a==="label"||a==="name"||a==="closable"||a==="disabled"||a==="lazy"||a==="class"||a==="style"||a==="id"||a==="role"||a==="title"||a.startsWith("data-")||a.startsWith("aria-")))}function s(e){return e.map(a=>t.isVNode(a)?c(a)?t.h(u.ElTabPane,{...m(a.props),key:a.key??void 0},a.children):a.type===t.Fragment&&Array.isArray(a.children)?t.h(t.Fragment,{key:a.key??void 0},s(a.children)):a:a)}return()=>t.h(u.ElTabs,{...d.value,modelValue:n.modelValue,defaultValue:n.defaultValue,type:n.type,tabPosition:n.tabPosition,stretch:n.stretch,closable:n.closable,addable:n.addable,editable:n.editable,beforeLeave:n.beforeLeave,tabindex:n.tabindex,"onUpdate:modelValue":e=>l("update:modelValue",e),onTabChange:e=>l("tab-change",e),onTabClick:(e,a)=>l("tab-click",f(e),a),onTabRemove:e=>l("tab-remove",e),onTabAdd:()=>l("tab-add"),onEdit:(e,a)=>l("edit",e,a)},{default:()=>{var e;return s(((e=o.default)==null?void 0:e.call(o))??[])},"add-icon":o["add-icon"]})}}),v=p._export_sfc(y,[["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-tabs/index.vue"]]);exports.Tabs=v;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as g, useAttrs as x, ref as m, computed as _, watch as b, nextTick as A, openBlock as v, createBlock as q, mergeProps as y, withCtx as N, renderSlot as S } from "vue";
|
|
2
|
+
import { ElCollapse as E } from "element-plus";
|
|
3
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const P = /* @__PURE__ */ g({
|
|
5
|
+
name: "QyCollapse",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: [String, Number, Array], required: !1, default: () => [] },
|
|
10
|
+
accordion: { type: Boolean, required: !1, default: !1 },
|
|
11
|
+
expandIconPosition: { type: String, required: !1, default: "right" },
|
|
12
|
+
beforeCollapse: { type: Function, required: !1 }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue", "change"],
|
|
15
|
+
setup(r, { expose: i, emit: t }) {
|
|
16
|
+
const o = r, l = t, s = x(), d = m(), n = m(o.modelValue), h = _(
|
|
17
|
+
() => Object.fromEntries(
|
|
18
|
+
Object.entries(s).filter(
|
|
19
|
+
([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
20
|
+
)
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
function c(e) {
|
|
24
|
+
const a = Array.isArray(e) ? e : [e];
|
|
25
|
+
return o.accordion ? a.slice(0, 1) : a;
|
|
26
|
+
}
|
|
27
|
+
b(
|
|
28
|
+
() => o.modelValue,
|
|
29
|
+
(e) => {
|
|
30
|
+
n.value = e;
|
|
31
|
+
},
|
|
32
|
+
{ deep: !0 }
|
|
33
|
+
);
|
|
34
|
+
const u = _(() => c(o.modelValue));
|
|
35
|
+
function C(e) {
|
|
36
|
+
n.value = e, l("update:modelValue", e), A(() => {
|
|
37
|
+
n.value = o.modelValue;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function V(e) {
|
|
41
|
+
l("change", e);
|
|
42
|
+
}
|
|
43
|
+
function p(e) {
|
|
44
|
+
var a;
|
|
45
|
+
(a = d.value) == null || a.setActiveNames(c(e));
|
|
46
|
+
}
|
|
47
|
+
i({ activeNames: u, setActiveNames: p });
|
|
48
|
+
const f = { props: o, emit: l, attrs: s, collapseRef: d, renderedModelValue: n, safeAttrs: h, normalizeActiveNames: c, activeNames: u, handleUpdateModelValue: C, handleChange: V, setActiveNames: p, get ElCollapse() {
|
|
49
|
+
return E;
|
|
50
|
+
} };
|
|
51
|
+
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
function j(r, i, t, o, l, s) {
|
|
55
|
+
return v(), q(o.ElCollapse, y({ ref: "collapseRef" }, o.safeAttrs, {
|
|
56
|
+
class: "qy-collapse",
|
|
57
|
+
"model-value": o.renderedModelValue,
|
|
58
|
+
accordion: t.accordion,
|
|
59
|
+
"expand-icon-position": t.expandIconPosition,
|
|
60
|
+
"before-collapse": t.beforeCollapse,
|
|
61
|
+
"onUpdate:modelValue": o.handleUpdateModelValue,
|
|
62
|
+
onChange: o.handleChange
|
|
63
|
+
}), {
|
|
64
|
+
default: N(() => [
|
|
65
|
+
S(r.$slots, "default")
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
/* FORWARDED */
|
|
69
|
+
}, 16, ["model-value", "accordion", "expand-icon-position", "before-collapse"]);
|
|
70
|
+
}
|
|
71
|
+
const U = /* @__PURE__ */ M(P, [["render", j], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-collapse/index.vue"]]);
|
|
72
|
+
export {
|
|
73
|
+
U as C
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),h=require("element-plus"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=e=>e==="class"||e==="style"||e==="id"||e==="role"||e.startsWith("data-")||e.startsWith("aria-"),S=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,b=t.defineComponent({name:"QyStatistic",inheritAttrs:!1,props:{value:{type:Number,default:0},precision:{type:Number,default:0},decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},formatter:Function,valueStyle:[String,Object,Array,Boolean],title:String,prefix:String,suffix:String,animated:Boolean,duration:{type:Number,default:1e3},startValue:{type:Number,default:0}},setup(e,{attrs:x,slots:u}){const n=t.ref(e.animated&&e.duration>0&&!S()?e.startValue:e.value),y=t.computed(()=>Object.fromEntries(Object.entries(x).filter(([i])=>w(i))));let r=!1,a,o=0;const c=()=>{o+=1,a!==void 0&&(cancelAnimationFrame(a),a=void 0)},f=i=>{if(c(),!r||!e.animated||e.duration<=0||S()){n.value=i;return}const l=n.value;if(l===i)return;const g=o;let d;const s=m=>{if(!r||g!==o)return;d??(d=m);const v=Math.min(1,(m-d)/e.duration);n.value=l+(i-l)*v,v<1?a=requestAnimationFrame(s):a=void 0};a=requestAnimationFrame(s)};return t.onMounted(()=>{r=!0,f(e.value)}),t.watch(()=>[e.value,e.animated,e.duration],()=>f(e.value)),t.onBeforeUnmount(()=>{r=!1,c()}),()=>t.h(h.ElStatistic,{...y.value,value:n.value,precision:e.precision,decimalSeparator:e.decimalSeparator,groupSeparator:e.groupSeparator,formatter:e.formatter,valueStyle:e.valueStyle,title:e.title,prefix:e.prefix,suffix:e.suffix},{title:u.title,prefix:u.prefix,suffix:u.suffix})}}),q=A._export_sfc(b,[["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-statistic/index.vue"]]);exports.Statistic=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Q=require("./install-c8il9DQv.cjs"),t=require("vue"),F=require("element-plus"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T=t.defineComponent({name:"QyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{type:null,required:!1,default:""},removeSpace:{type:Boolean,required:!1,default:!1},trimMode:{type:String,required:!1,default:"none"}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(u,{expose:m,emit:h}){const l=u,a=h,v=t.useAttrs(),i=t.ref(null),o=t.ref(s(l.modelValue)),c=t.ref(s(l.modelValue)),r=t.ref("none"),C=t.computed(()=>s(l.modelValue));t.watch(()=>l.modelValue,e=>{const n=s(e);o.value=n,c.value=n,r.value="none"});function s(e){return e==null?"":String(e)}function V(e){return l.removeSpace?e.replace(/\s+/g,""):e}function p(e,n){return l.trimMode!==n?e:e.trim()}function f(e){return V(s(e))}function d(e){o.value=e,c.value=e,a("update:modelValue",e)}function w(e){const n=f(e);d(n),r.value=n===""?"updated":"none"}function b(e){const n=f(e);o.value=n,a("input",n)}function k(e){const n=p(f(e),"change");if(o.value=n,n===""&&r.value==="updated"){r.value="changed",a("change",n);return}n!==c.value&&d(n),r.value=n===""?"changed":"none",a("change",n)}function B(e){a("focus",e)}function z(e){const n=p(o.value,"blur");o.value=n,n!==c.value&&d(n),a("blur",e)}function E(){r.value==="none"?(d(""),a("change","")):r.value==="updated"&&(r.value="changed",a("change","")),r.value="cleared",a("clear")}function M(e){a("enter",e)}function y(){var e,n;(n=(e=i.value)==null?void 0:e.focus)==null||n.call(e)}function g(){var e,n;(n=(e=i.value)==null?void 0:e.blur)==null||n.call(e)}function x(){var e,n;(n=(e=i.value)==null?void 0:e.select)==null||n.call(e)}function I(){var e,n;(n=(e=i.value)==null?void 0:e.clear)==null||n.call(e)}function S(){var e,n;(n=(e=i.value)==null?void 0:e.resizeTextarea)==null||n.call(e)}m({focus:y,blur:g,select:x,clear:I,resizeTextarea:S});const _={props:l,emit:a,attrs:v,inputRef:i,innerValue:o,committedValue:c,clearSequence:r,displayValue:C,stringifyValue:s,sanitizeSpaces:V,sanitizeTrim:p,sanitizeImmediate:f,emitModelValue:d,handleUpdateModelValue:w,handleInput:b,handleChange:k,handleFocus:B,handleBlur:z,handleClear:E,handleEnter:M,focus:y,blur:g,select:x,clear:I,resizeTextarea:S,get ElInput(){return F.ElInput}};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}});function U(u,m,h,l,a,v){return t.openBlock(),t.createBlock(l.ElInput,t.mergeProps({ref:"inputRef",class:"qy-input"},l.attrs,{"model-value":l.displayValue,"onUpdate:modelValue":l.handleUpdateModelValue,onInput:l.handleInput,onChange:l.handleChange,onFocus:l.handleFocus,onBlur:l.handleBlur,onClear:l.handleClear,onKeydown:t.withKeys(l.handleEnter,["enter"])}),t.createSlots({_:2},[u.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(u.$slots,"prefix")]),key:"0"}:void 0,u.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(u.$slots,"suffix")]),key:"1"}:void 0,u.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(u.$slots,"prepend")]),key:"2"}:void 0,u.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(u.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"])}const q=P._export_sfc(T,[["render",U],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-input/index.vue"]]),A=Q.withInstall(q,"QyInput");exports.Input=q;exports.QyInput=A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),F=require("./index-CXeVLEcE.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),P=t.defineComponent({name:"QyRecordQuoteSearch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,null],required:!1,default:""},loading:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:void 0},placeholder:{type:String,required:!1,default:"请输入报价单号"},buttonText:{type:String,required:!1,default:"查询报价单"},autoNormalize:{type:Boolean,required:!1,default:!0},showStatus:{type:Boolean,required:!1,default:!0},status:{type:String,required:!1,default:"default"},statusText:{type:String,required:!1,default:""},suggestions:{type:Array,required:!1,default:()=>[]},fetchSuggestions:{type:[Function,null],required:!1,default:null},fetchSuggestionsMethod:{type:[Function,null],required:!1,default:null},debounce:{type:Number,required:!1,default:300},minLength:{type:Number,required:!1,default:1},searchOnSelect:{type:Boolean,required:!1,default:!0},searchMethod:{type:[Function,null],required:!1,default:null},extractMethod:{type:[Function,null],required:!1,default:null},normalizeMethod:{type:[Function,null],required:!1,default:null},label:{type:String,required:!1,default:"报价单号"},description:{type:String,required:!1,default:""},trimMode:{type:String,required:!1,default:"blur"}},emits:["update:modelValue","search","clear","normalize","enter","select","error","success"],setup(a,{expose:q,emit:o}){const n=a,l=o,v=t.useAttrs(),d=t.ref(null),c=t.ref(!1);let s=0;function h(){s++,c.value=!1}t.onBeforeUnmount(h);const M=t.computed(()=>n.statusText||""),z=t.computed(()=>n.loading||c.value);function i(e){return e==null?"":String(e)}function b(e){const r=i(e).trim(),u=m(r),f=u.match(/BJ\d{8}[A-Z0-9]{4}/i);return f?f[0]:u}function m(e){return i(e).replace(/\s+/g,"").trim().toUpperCase()}function g(e){return n.extractMethod?n.extractMethod(e):b(e)}function y(e){return n.normalizeMethod?n.normalizeMethod(e):m(e)}function S(e,r){const u=i(e),f=g(u),B=n.autoNormalize?y(f):f;return l("normalize",{rawValue:u,code:B}),{rawValue:u,code:B,item:r}}function E(e){l("update:modelValue",e)}async function p(e){const r=++s;if(l("search",e),!(!n.searchMethod||r!==s)){c.value=!0;try{const u=await n.searchMethod(e);r===s&&l("success",u)}catch(u){r===s&&l("error",u)}finally{r===s&&(c.value=!1)}}}function N(e){const r=S(e);r.code!==i(n.modelValue)&&l("update:modelValue",r.code),p(r)}function w(){h(),l("clear")}function T(e){l("enter",e)}function Q(e){if(l("select",e),!n.searchOnSelect)return;const r=S(e.value,e);r.code!==i(n.modelValue)&&l("update:modelValue",r.code),p(r)}function O(e){l("error",e)}function _(){var e,r;(r=(e=d.value)==null?void 0:e.focus)==null||r.call(e)}function x(){var e,r;(r=(e=d.value)==null?void 0:e.blur)==null||r.call(e)}function V(){var e,r;(r=(e=d.value)==null?void 0:e.select)==null||r.call(e)}function C(){var e,r;(r=(e=d.value)==null?void 0:e.clear)==null||r.call(e)}q({focus:_,blur:x,select:V,clear:C,extractQuoteOrderCode:g,normalizeQuoteOrderCode:y});const k={props:n,emit:l,attrs:v,searchRef:d,internalLoading:c,get searchVersion(){return s},set searchVersion(e){s=e},invalidateSearch:h,currentStatusText:M,mergedLoading:z,stringifyValue:i,defaultExtractQuoteOrderCode:b,defaultNormalizeQuoteOrderCode:m,extractQuoteOrderCode:g,normalizeQuoteOrderCode:y,buildSearchPayload:S,handleUpdateModelValue:E,dispatchSearch:p,handleSearch:N,handleClear:w,handleEnter:T,handleSelect:Q,handleError:O,focus:_,blur:x,select:V,clear:C,QySearchInput:F.Component};return Object.defineProperty(k,"__isScriptSetup",{enumerable:!1,value:!0}),k}}),U={class:"qy-record-quote-search"},A={key:0,class:"qy-record-quote-search__header"},R={key:0,class:"qy-record-quote-search__label"},D={key:1,class:"qy-record-quote-search__description"};function I(a,q,o,n,l,v){return t.openBlock(),t.createElementBlock("div",U,[t.renderSlot(a.$slots,"label",{},()=>[o.label||o.description?(t.openBlock(),t.createElementBlock("div",A,[o.label?(t.openBlock(),t.createElementBlock("div",R,t.toDisplayString(o.label),1)):t.createCommentVNode("v-if",!0),o.description?(t.openBlock(),t.createElementBlock("div",D,t.toDisplayString(o.description),1)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)],!0),t.createVNode(n.QySearchInput,t.mergeProps({ref:"searchRef"},n.attrs,{"model-value":o.modelValue,loading:n.mergedLoading,disabled:o.disabled,placeholder:o.placeholder,"remove-space":!0,"trim-mode":o.trimMode,"button-text":o.buttonText,suggestions:o.suggestions,"fetch-suggestions":o.fetchSuggestions,"fetch-suggestions-method":o.fetchSuggestionsMethod,debounce:o.debounce,"min-length":o.minLength,"search-on-select":!1,"onUpdate:modelValue":n.handleUpdateModelValue,onSearch:n.handleSearch,onClear:n.handleClear,onEnter:n.handleEnter,onSelect:n.handleSelect,onError:n.handleError}),t.createSlots({_:2},[a.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(a.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,a.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(a.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,a.$slots.item?{name:"item",fn:t.withCtx(d=>[t.renderSlot(a.$slots,"item",t.normalizeProps(t.guardReactiveProps(d)),void 0,!0)]),key:"2"}:void 0,a.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(a.$slots,"empty",{},void 0,!0)]),key:"3"}:void 0,a.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(a.$slots,"loading",{},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","loading","disabled","placeholder","trim-mode","button-text","suggestions","fetch-suggestions","fetch-suggestions-method","debounce","min-length"]),o.showStatus&&n.currentStatusText?t.renderSlot(a.$slots,"status",{status:o.status,statusText:n.currentStatusText},()=>[t.createElementVNode("div",{class:t.normalizeClass(["qy-record-quote-search__status",`is-${o.status}`])},t.toDisplayString(n.currentStatusText),3)],!0,0):t.createCommentVNode("v-if",!0)])}const j=L._export_sfc(P,[["render",I],["__scopeId","data-v-b95ce153"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-record-quote-search/index.vue"]]);exports.Component=j;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { defineComponent as A, useAttrs as E, useSlots as N, computed as o, watchEffect as V, markRaw as Q, toRaw as R, openBlock as s, createElementBlock as r, mergeProps as j, createElementVNode as L, renderSlot as c, createBlock as _, resolveDynamicComponent as m, createCommentVNode as q } from "vue";
|
|
2
|
+
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const G = /* @__PURE__ */ A({
|
|
4
|
+
name: "QyButton",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
type: { type: String, required: !1 },
|
|
9
|
+
variant: { type: String, required: !1 },
|
|
10
|
+
size: { type: String, required: !1, default: "md" },
|
|
11
|
+
disabled: { type: Boolean, required: !1, default: !1 },
|
|
12
|
+
loading: { type: Boolean, required: !1, default: !1 },
|
|
13
|
+
active: { type: Boolean, required: !1, default: !1 },
|
|
14
|
+
block: { type: Boolean, required: !1, default: !1 },
|
|
15
|
+
round: { type: Boolean, required: !1, default: !1 },
|
|
16
|
+
nativeType: { type: String, required: !1, default: "button" },
|
|
17
|
+
prefixIcon: { type: null, required: !1 },
|
|
18
|
+
suffixIcon: { type: null, required: !1 },
|
|
19
|
+
iconOnly: { type: Boolean, required: !1, default: !1 }
|
|
20
|
+
},
|
|
21
|
+
emits: ["click"],
|
|
22
|
+
setup(a, { expose: l, emit: i }) {
|
|
23
|
+
l();
|
|
24
|
+
const n = [
|
|
25
|
+
"default",
|
|
26
|
+
"primary",
|
|
27
|
+
"success",
|
|
28
|
+
"warning",
|
|
29
|
+
"danger",
|
|
30
|
+
"text",
|
|
31
|
+
"ghost",
|
|
32
|
+
"link"
|
|
33
|
+
], d = ["sm", "md", "lg"], f = ["button", "submit", "reset"], t = a, v = i, u = E(), y = N(), x = o(() => {
|
|
34
|
+
const e = t.variant || t.type || "default";
|
|
35
|
+
return n.includes(e) ? e : "default";
|
|
36
|
+
}), h = o(
|
|
37
|
+
() => d.includes(t.size) ? t.size : "md"
|
|
38
|
+
), S = o(
|
|
39
|
+
() => f.includes(t.nativeType) ? t.nativeType : "button"
|
|
40
|
+
), g = o(() => t.disabled || t.loading), k = o(() => b(t.prefixIcon)), I = o(() => b(t.suffixIcon)), T = o(() => !!(k.value || y.prefix)), O = o(() => !!(I.value || y.suffix)), B = o(() => {
|
|
41
|
+
const e = u["aria-label"], D = u.title;
|
|
42
|
+
return p(e) || p(D);
|
|
43
|
+
}), P = o(() => {
|
|
44
|
+
const e = u["aria-pressed"];
|
|
45
|
+
return e ?? (t.active ? "true" : void 0);
|
|
46
|
+
}), w = o(() => [
|
|
47
|
+
`qy-button--${x.value}`,
|
|
48
|
+
`qy-button--${h.value}`,
|
|
49
|
+
{
|
|
50
|
+
"is-disabled": t.disabled,
|
|
51
|
+
"is-loading": t.loading,
|
|
52
|
+
"is-active": t.active,
|
|
53
|
+
"is-block": t.block,
|
|
54
|
+
"is-round": t.round,
|
|
55
|
+
"is-icon-only": t.iconOnly
|
|
56
|
+
}
|
|
57
|
+
]);
|
|
58
|
+
V(() => {
|
|
59
|
+
t.iconOnly && !B.value && console.warn("QyButton icon-only requires aria-label or title.");
|
|
60
|
+
});
|
|
61
|
+
function p(e) {
|
|
62
|
+
return typeof e == "string" ? e.trim().length > 0 : e != null && e !== !1;
|
|
63
|
+
}
|
|
64
|
+
function b(e) {
|
|
65
|
+
if (!(!e || typeof e == "string"))
|
|
66
|
+
return Q(R(e));
|
|
67
|
+
}
|
|
68
|
+
function z(e) {
|
|
69
|
+
if (g.value) {
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
v("click", e);
|
|
74
|
+
}
|
|
75
|
+
const C = { buttonTypes: n, buttonSizes: d, nativeTypes: f, props: t, emit: v, attrs: u, slots: y, buttonType: x, buttonSize: h, nativeType: S, isDisabled: g, prefixIconComponent: k, suffixIconComponent: I, hasPrefixIcon: T, hasSuffixIcon: O, hasAccessibleName: B, ariaPressed: P, buttonClasses: w, hasTextValue: p, normalizeIcon: b, handleClick: z };
|
|
76
|
+
return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
|
|
77
|
+
}
|
|
78
|
+
}), H = ["type", "disabled", "aria-busy", "aria-disabled", "aria-pressed"], J = {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "qy-button__icon qy-button__icon--loading",
|
|
81
|
+
"aria-hidden": "true"
|
|
82
|
+
}, K = {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "qy-button__icon qy-button__icon--prefix",
|
|
85
|
+
"aria-hidden": "true"
|
|
86
|
+
}, M = {
|
|
87
|
+
key: 2,
|
|
88
|
+
class: "qy-button__content"
|
|
89
|
+
}, U = {
|
|
90
|
+
key: 3,
|
|
91
|
+
class: "qy-button__icon qy-button__icon--suffix",
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}, W = {
|
|
94
|
+
key: 4,
|
|
95
|
+
class: "qy-button__icon qy-button__icon--suffix",
|
|
96
|
+
"aria-hidden": "true"
|
|
97
|
+
};
|
|
98
|
+
function X(a, l, i, n, d, f) {
|
|
99
|
+
return s(), r("button", j(n.attrs, {
|
|
100
|
+
class: ["qy-button", n.buttonClasses],
|
|
101
|
+
type: n.nativeType,
|
|
102
|
+
disabled: n.isDisabled,
|
|
103
|
+
"aria-busy": i.loading ? "true" : void 0,
|
|
104
|
+
"aria-disabled": n.isDisabled ? "true" : void 0,
|
|
105
|
+
"aria-pressed": n.ariaPressed,
|
|
106
|
+
onClick: n.handleClick
|
|
107
|
+
}), [
|
|
108
|
+
i.loading ? (s(), r("span", J, [...l[0] || (l[0] = [
|
|
109
|
+
L(
|
|
110
|
+
"span",
|
|
111
|
+
{ class: "qy-button__spinner" },
|
|
112
|
+
null,
|
|
113
|
+
-1
|
|
114
|
+
/* CACHED */
|
|
115
|
+
)
|
|
116
|
+
])])) : n.hasPrefixIcon ? (s(), r("span", K, [
|
|
117
|
+
c(a.$slots, "prefix", {}, () => [
|
|
118
|
+
(s(), _(m(n.prefixIconComponent)))
|
|
119
|
+
], !0)
|
|
120
|
+
])) : q("v-if", !0),
|
|
121
|
+
i.iconOnly ? q("v-if", !0) : (s(), r("span", M, [
|
|
122
|
+
c(a.$slots, "default", {}, void 0, !0)
|
|
123
|
+
])),
|
|
124
|
+
!i.loading && !i.iconOnly && n.hasSuffixIcon ? (s(), r("span", U, [
|
|
125
|
+
c(a.$slots, "suffix", {}, () => [
|
|
126
|
+
(s(), _(m(n.suffixIconComponent)))
|
|
127
|
+
], !0)
|
|
128
|
+
])) : !i.loading && i.iconOnly && !n.hasPrefixIcon && n.hasSuffixIcon ? (s(), r("span", W, [
|
|
129
|
+
c(a.$slots, "suffix", {}, () => [
|
|
130
|
+
(s(), _(m(n.suffixIconComponent)))
|
|
131
|
+
], !0)
|
|
132
|
+
])) : q("v-if", !0)
|
|
133
|
+
], 16, H);
|
|
134
|
+
}
|
|
135
|
+
const $ = /* @__PURE__ */ F(G, [["render", X], ["__scopeId", "data-v-ef627eea"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-button/index.vue"]]);
|
|
136
|
+
export {
|
|
137
|
+
$ as B
|
|
138
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent as q, useAttrs as S, computed as s, ref as V, onMounted as x, onBeforeUnmount as B, openBlock as C, createBlock as N, mergeProps as R, withCtx as E, renderSlot as w, createTextVNode as M, toDisplayString as U } from "vue";
|
|
2
|
+
import { ElRadio as k } from "element-plus";
|
|
3
|
+
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const A = /* @__PURE__ */ q({
|
|
5
|
+
name: "QyRadio",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: [String, Number, Boolean], required: !1 },
|
|
10
|
+
value: { type: [String, Number, Boolean], required: !1, default: !0 },
|
|
11
|
+
label: { type: String, required: !1 },
|
|
12
|
+
disabled: { type: Boolean, required: !1, default: void 0 },
|
|
13
|
+
size: { type: String, required: !1, default: void 0 },
|
|
14
|
+
name: { type: String, required: !1 },
|
|
15
|
+
border: { type: Boolean, required: !1, default: !1 },
|
|
16
|
+
id: { type: String, required: !1 },
|
|
17
|
+
tabindex: { type: [String, Number], required: !1 },
|
|
18
|
+
ariaLabel: { type: String, required: !1 },
|
|
19
|
+
ariaControls: { type: String, required: !1 }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
22
|
+
setup(n, { expose: f, emit: c }) {
|
|
23
|
+
f();
|
|
24
|
+
const e = n, t = c, i = S(), b = s(
|
|
25
|
+
() => Object.fromEntries(
|
|
26
|
+
Object.entries(i).filter(
|
|
27
|
+
([r]) => r === "class" || r === "style" || r === "role" || r === "title" || r.startsWith("data-") || r.startsWith("aria-")
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
), l = s(() => e.value), p = V(null);
|
|
31
|
+
let a = null;
|
|
32
|
+
const _ = s(() => e.modelValue !== void 0 ? e.modelValue : l.value === !0 ? !1 : l.value === !1 ? !0 : typeof l.value == "string" ? `__qy-radio-unselected__${l.value}` : Number.NaN);
|
|
33
|
+
x(() => {
|
|
34
|
+
var r;
|
|
35
|
+
a = ((r = p.value) == null ? void 0 : r.$el.querySelector("input.el-radio__original")) ?? null, a == null || a.addEventListener("keydown", u);
|
|
36
|
+
}), B(() => {
|
|
37
|
+
a == null || a.removeEventListener("keydown", u);
|
|
38
|
+
});
|
|
39
|
+
function d() {
|
|
40
|
+
return !e.disabled && e.modelValue !== l.value;
|
|
41
|
+
}
|
|
42
|
+
function g() {
|
|
43
|
+
d() && t("update:modelValue", l.value);
|
|
44
|
+
}
|
|
45
|
+
function v() {
|
|
46
|
+
d() && t("change", l.value);
|
|
47
|
+
}
|
|
48
|
+
function u(r) {
|
|
49
|
+
if (r.key !== " " && r.code !== "Space") return;
|
|
50
|
+
const o = r.target;
|
|
51
|
+
!o || o.tagName !== "INPUT" || o.type !== "radio" || o.disabled || o.checked || (r.preventDefault(), o.click());
|
|
52
|
+
}
|
|
53
|
+
function y(r) {
|
|
54
|
+
t("focus", r);
|
|
55
|
+
}
|
|
56
|
+
function h(r) {
|
|
57
|
+
t("blur", r);
|
|
58
|
+
}
|
|
59
|
+
const m = { props: e, emit: t, attrs: i, safeAttrs: b, resolvedValue: l, radioRef: p, get radioInput() {
|
|
60
|
+
return a;
|
|
61
|
+
}, set radioInput(r) {
|
|
62
|
+
a = r;
|
|
63
|
+
}, internalModelValue: _, canSelect: d, handleUpdateModelValue: g, handleChange: v, handleKeydown: u, handleFocus: y, handleBlur: h, get ElRadio() {
|
|
64
|
+
return k;
|
|
65
|
+
} };
|
|
66
|
+
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
function L(n, f, c, e, t, i) {
|
|
70
|
+
return C(), N(e.ElRadio, R({ ref: "radioRef" }, e.safeAttrs, {
|
|
71
|
+
class: "qy-radio",
|
|
72
|
+
"model-value": e.internalModelValue,
|
|
73
|
+
value: e.resolvedValue,
|
|
74
|
+
label: e.props.label,
|
|
75
|
+
disabled: e.props.disabled,
|
|
76
|
+
size: e.props.size,
|
|
77
|
+
name: e.props.name,
|
|
78
|
+
border: e.props.border,
|
|
79
|
+
id: e.props.id,
|
|
80
|
+
tabindex: e.props.tabindex,
|
|
81
|
+
"aria-label": e.props.ariaLabel,
|
|
82
|
+
"aria-controls": e.props.ariaControls,
|
|
83
|
+
"onUpdate:modelValue": e.handleUpdateModelValue,
|
|
84
|
+
onChange: e.handleChange,
|
|
85
|
+
onFocusCapture: e.handleFocus,
|
|
86
|
+
onBlurCapture: e.handleBlur
|
|
87
|
+
}), {
|
|
88
|
+
default: E(() => [
|
|
89
|
+
w(n.$slots, "default", {}, () => [
|
|
90
|
+
M(
|
|
91
|
+
U(e.props.label),
|
|
92
|
+
1
|
|
93
|
+
/* TEXT */
|
|
94
|
+
)
|
|
95
|
+
], !0)
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
/* FORWARDED */
|
|
99
|
+
}, 16, ["model-value", "value", "label", "disabled", "size", "name", "border", "id", "tabindex", "aria-label", "aria-controls"]);
|
|
100
|
+
}
|
|
101
|
+
const P = /* @__PURE__ */ z(A, [["render", L], ["__scopeId", "data-v-4c863d1f"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-radio/index.vue"]]);
|
|
102
|
+
export {
|
|
103
|
+
P as R
|
|
104
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),a=require("element-plus"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),l=t.defineComponent({name:"QyMainElementPlusRenderer",inheritAttrs:!1,__name:"element-plus",setup(e,{expose:r}){r();const n={get ElMain(){return a.ElMain}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function u(e,r,n,s,i,f){return t.openBlock(),t.createBlock(s.ElMain,t.normalizeProps(t.guardReactiveProps(e.$attrs)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const c=o._export_sfc(l,[["render",u],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-main/renderer/element-plus.vue"]]),p=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"),_=t.defineComponent({name:"QyMain",inheritAttrs:!1,setup(e,{attrs:r,slots:n}){const s=t.computed(()=>Object.fromEntries(Object.entries(r).filter(([i])=>p(i))));return()=>t.h(c,s.value,n.default?{default:n.default}:void 0)}}),m=o._export_sfc(_,[["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-main/index.vue"]]);exports.Main=m;
|