@qynpm/ui 1.0.47 → 1.2.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 +20 -1
- 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-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-BSHA0cGJ.mjs +160 -0
- 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-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-BoyiE_59.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-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-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-DF3BUyOu.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-DSc98P0J.mjs +957 -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-DlyaXZXS.mjs +129 -0
- package/dist/shared/index-DmlIk2mW.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-rP44D5Dd.cjs +1 -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 +2 -2
- package/qy-dialog/index.d.ts +6 -3
- package/qy-upload/index.d.ts +2 -1
- 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-BJZjXeoT.cjs +0 -1
- 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-BxGP8OkE.cjs +0 -1
- 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-CbSGTE1S.mjs +0 -578
- 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-DAU1WtID.mjs +0 -361
- 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-FZ5gl2au.cjs +0 -1
- package/dist/shared/index-O6K0DO_k.cjs +0 -1
- package/dist/shared/index-QN7-6GpS.mjs +0 -127
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElRow as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as n, computed as o, h as s } from "vue";
|
|
2
|
+
import { ElRow as f } from "element-plus";
|
|
3
|
+
import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const l = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), m = n({
|
|
4
5
|
name: "QyRow",
|
|
5
6
|
inheritAttrs: !1,
|
|
6
7
|
props: {
|
|
@@ -12,14 +13,14 @@ const l = (t) => t === "class" || t === "style" || t === "id" || t === "role" ||
|
|
|
12
13
|
},
|
|
13
14
|
align: String
|
|
14
15
|
},
|
|
15
|
-
setup(t, { attrs:
|
|
16
|
-
const
|
|
17
|
-
() => Object.fromEntries(Object.entries(
|
|
16
|
+
setup(t, { attrs: r, slots: e }) {
|
|
17
|
+
const a = o(
|
|
18
|
+
() => Object.fromEntries(Object.entries(r).filter(([i]) => l(i)))
|
|
18
19
|
);
|
|
19
|
-
return () =>
|
|
20
|
-
|
|
20
|
+
return () => s(
|
|
21
|
+
f,
|
|
21
22
|
{
|
|
22
|
-
...
|
|
23
|
+
...a.value,
|
|
23
24
|
tag: t.tag,
|
|
24
25
|
gutter: t.gutter,
|
|
25
26
|
justify: t.justify,
|
|
@@ -28,7 +29,7 @@ const l = (t) => t === "class" || t === "style" || t === "id" || t === "role" ||
|
|
|
28
29
|
e.default ? { default: e.default } : void 0
|
|
29
30
|
);
|
|
30
31
|
}
|
|
31
|
-
});
|
|
32
|
+
}), p = /* @__PURE__ */ u(m, [["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-row/index.vue"]]);
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
p as R
|
|
34
35
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),w=require("element-plus"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E=n.defineComponent({name:"QyInputNumber",inheritAttrs:!1,__name:"index",props:{id:{type:String,required:!1},step:{type:Number,required:!1,default:1},stepStrictly:{type:Boolean,required:!1,default:!1},max:{type:Number,required:!1,default:void 0},min:{type:Number,required:!1,default:void 0},modelValue:{type:null,required:!1,default:void 0},readonly:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:void 0},controls:{type:Boolean,required:!1,default:!0},controlsPosition:{type:String,required:!1,default:""},valueOnClear:{type:[String,Number,null],required:!1,default:null},name:{type:String,required:!1},placeholder:{type:String,required:!1,default:"请输入数字"},precision:{type:Number,required:!1,default:void 0},validateEvent:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1}},emits:["update:modelValue","input","change","focus","blur"],setup(r,{expose:p,emit:t}){const l=r,u=t,f=n.useAttrs(),q=n.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="title"||e==="role"||e.startsWith("data-")||e.startsWith("aria-")))),d=n.ref(null),i=n.ref(!1),c=n.ref(l.modelValue);function v(){return l.valueOnClear==="min"?l.min:l.valueOnClear==="max"?l.max:l.valueOnClear}function o(e=!1){var s,g;if(!i.value)return;i.value=!1;const a=v();u("update:modelValue",a),u("change",a,c.value),e&&((g=(s=d.value)==null?void 0:s.blur)==null||g.call(s))}function C(e){e===null&&l.valueOnClear!==null&&(i.value=!0,c.value=l.modelValue),u("update:modelValue",e)}function S(e){u("input",e)}function x(e,a){if(i.value&&e===null){o();return}i.value=!1,u("change",e,a)}function N(e){u("focus",e)}function V(e){i.value&&e.target instanceof HTMLInputElement&&e.target.value===""&&o(),u("blur",e)}function _(e){i.value&&e.key==="Tab"&&e.target instanceof HTMLInputElement&&e.target.value===""&&o(!0)}function m(e){const a=e.target;i.value&&a instanceof Element&&!a.closest(".qy-input-number")&&o(!0)}function y(){var e,a;(a=(e=d.value)==null?void 0:e.focus)==null||a.call(e)}function b(){var e,a;(a=(e=d.value)==null?void 0:e.blur)==null||a.call(e)}p({focus:y,blur:b}),n.onMounted(()=>{document.addEventListener("pointerdown",m,!0)}),n.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",m,!0)});const h={props:l,emit:u,attrs:f,adapterAttrs:q,inputNumberRef:d,pendingClear:i,pendingClearOldValue:c,resolveValueOnClear:v,commitPendingClear:o,handleUpdateModelValue:C,handleInput:S,handleChange:x,handleFocus:N,handleBlur:V,handleKeydown:_,handleDocumentPointerdown:m,focus:y,blur:b,get ElInputNumber(){return w.ElInputNumber}};return Object.defineProperty(h,"__isScriptSetup",{enumerable:!1,value:!0}),h}});function I(r,p,t,l,u,f){return n.openBlock(),n.createBlock(l.ElInputNumber,n.mergeProps({ref:"inputNumberRef"},l.adapterAttrs,{class:"qy-input-number","model-value":t.modelValue,min:t.min,max:t.max,step:t.step,"step-strictly":t.stepStrictly,precision:t.precision,controls:t.controls,"controls-position":t.controlsPosition,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,size:t.size,"value-on-clear":t.valueOnClear,"validate-event":t.validateEvent,id:t.id,name:t.name,"aria-label":t.ariaLabel,"onUpdate:modelValue":l.handleUpdateModelValue,onInput:l.handleInput,onChange:l.handleChange,onFocus:l.handleFocus,onBlur:l.handleBlur,onKeydownCapture:l.handleKeydown}),n.createSlots({_:2},[r.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(r.$slots,"prefix")]),key:"0"}:void 0,r.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(r.$slots,"suffix")]),key:"1"}:void 0,r.$slots["increase-icon"]?{name:"increase-icon",fn:n.withCtx(()=>[n.renderSlot(r.$slots,"increase-icon")]),key:"2"}:void 0,r.$slots["decrease-icon"]?{name:"decrease-icon",fn:n.withCtx(()=>[n.renderSlot(r.$slots,"decrease-icon")]),key:"3"}:void 0]),1040,["model-value","min","max","step","step-strictly","precision","controls","controls-position","placeholder","disabled","readonly","size","value-on-clear","validate-event","id","name","aria-label"])}const O=B._export_sfc(E,[["render",I],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-input-number/index.vue"]]);exports.InputNumber=O;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),a=require("element-plus"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c=t.defineComponent({name:"QyContainerElementPlusRenderer",inheritAttrs:!1,__name:"element-plus",props:{direction:{type:String,required:!0}},setup(e,{expose:r}){r();const n={get ElContainer(){return a.ElContainer}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function l(e,r,n,o,i,f){return t.openBlock(),t.createBlock(o.ElContainer,t.mergeProps(e.$attrs,{direction:n.direction}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["direction"])}const u=s._export_sfc(c,[["render",l],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-container/renderer/element-plus.vue"]]),p=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"),d=t.defineComponent({name:"QyContainer",inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"}},setup(e,{attrs:r,slots:n}){const o=t.computed(()=>Object.fromEntries(Object.entries(r).filter(([i])=>p(i))));return()=>t.h(u,{...o.value,direction:e.direction},n.default?{default:n.default}:void 0)}}),_=s._export_sfc(d,[["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-container/index.vue"]]);exports.Container=_;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as b, useAttrs as g, computed as s, openBlock as y, createBlock as q, mergeProps as h, withCtx as _, renderSlot as C } from "vue";
|
|
2
|
+
import { ElTag as S } from "element-plus";
|
|
3
|
+
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const p = /* @__PURE__ */ b({
|
|
5
|
+
name: "QyTag",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
tone: { type: String, required: !1, default: "neutral" },
|
|
10
|
+
size: { type: String, required: !1, default: "md" },
|
|
11
|
+
effect: { type: String, required: !1, default: "light" },
|
|
12
|
+
closable: { type: Boolean, required: !1, default: !1 },
|
|
13
|
+
round: { type: Boolean, required: !1, default: !1 },
|
|
14
|
+
disabled: { type: Boolean, required: !1, default: !1 }
|
|
15
|
+
},
|
|
16
|
+
emits: ["click", "close"],
|
|
17
|
+
setup(t, { expose: i, emit: a }) {
|
|
18
|
+
i();
|
|
19
|
+
const e = a, r = g(), o = s(() => {
|
|
20
|
+
const l = Object.fromEntries(
|
|
21
|
+
Object.entries(r).filter(
|
|
22
|
+
([n]) => n === "class" || n === "style" || n === "title" || n === "role" || n.startsWith("data-") || n.startsWith("aria-")
|
|
23
|
+
)
|
|
24
|
+
);
|
|
25
|
+
return t.disabled && (l["aria-disabled"] = "true"), l;
|
|
26
|
+
}), c = s(() => t.tone === "neutral" ? "info" : t.tone), f = s(() => ({ sm: "small", md: "default", lg: "large" })[t.size]);
|
|
27
|
+
function u(l) {
|
|
28
|
+
t.disabled || e("click", l);
|
|
29
|
+
}
|
|
30
|
+
function m(l) {
|
|
31
|
+
t.disabled || e("close", l);
|
|
32
|
+
}
|
|
33
|
+
const d = { emit: e, attrs: r, safeAttrs: o, elementType: c, elementSize: f, handleClick: u, handleClose: m, get ElTag() {
|
|
34
|
+
return S;
|
|
35
|
+
} };
|
|
36
|
+
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
function x(t, i, a, e, r, o) {
|
|
40
|
+
return y(), q(e.ElTag, h(e.safeAttrs, {
|
|
41
|
+
class: ["qy-tag", [
|
|
42
|
+
`qy-tag--${a.tone}`,
|
|
43
|
+
{ "qy-tag--disabled": a.disabled }
|
|
44
|
+
]],
|
|
45
|
+
type: e.elementType,
|
|
46
|
+
size: e.elementSize,
|
|
47
|
+
effect: a.effect,
|
|
48
|
+
closable: a.closable && !a.disabled,
|
|
49
|
+
round: a.round,
|
|
50
|
+
onClick: e.handleClick,
|
|
51
|
+
onClose: e.handleClose
|
|
52
|
+
}), {
|
|
53
|
+
default: _(() => [
|
|
54
|
+
C(t.$slots, "default", {}, void 0, !0)
|
|
55
|
+
]),
|
|
56
|
+
_: 3
|
|
57
|
+
/* FORWARDED */
|
|
58
|
+
}, 16, ["class", "type", "size", "effect", "closable", "round"]);
|
|
59
|
+
}
|
|
60
|
+
const v = /* @__PURE__ */ T(p, [["render", x], ["__scopeId", "data-v-e2cb31ac"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-tag/index.vue"]]);
|
|
61
|
+
export {
|
|
62
|
+
v as T
|
|
63
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as p, useAttrs as _, computed as d, openBlock as g, createBlock as h, mergeProps as b, withCtx as s, renderSlot as c } from "vue";
|
|
2
|
+
import { ElLink as S } from "element-plus";
|
|
3
|
+
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const x = /* @__PURE__ */ p({
|
|
5
|
+
name: "QyLink",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
type: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: void 0
|
|
12
|
+
},
|
|
13
|
+
underline: {
|
|
14
|
+
type: [Boolean, String],
|
|
15
|
+
default: void 0
|
|
16
|
+
},
|
|
17
|
+
disabled: Boolean,
|
|
18
|
+
href: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
target: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "_self"
|
|
25
|
+
},
|
|
26
|
+
icon: {
|
|
27
|
+
type: [String, Object, Function],
|
|
28
|
+
default: void 0
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
emits: ["click"],
|
|
32
|
+
setup(r, { expose: l, emit: n }) {
|
|
33
|
+
l();
|
|
34
|
+
const t = r, i = n, o = _(), f = d(() => t.underline === !0 ? "hover" : t.underline === !1 ? "never" : t.underline), u = d(
|
|
35
|
+
() => Object.fromEntries(
|
|
36
|
+
Object.entries(o).filter(
|
|
37
|
+
([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e === "rel" || e === "download" || e === "hreflang" || e === "referrerpolicy" || e === "ping" || e === "tabindex" || e.startsWith("data-") || e.startsWith("aria-")
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
function m(e) {
|
|
42
|
+
i("click", e);
|
|
43
|
+
}
|
|
44
|
+
const a = { props: t, emit: i, attrs: o, normalizedUnderline: f, safeAttrs: u, handleClick: m, get ElLink() {
|
|
45
|
+
return S;
|
|
46
|
+
} };
|
|
47
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
function L(r, l, n, t, i, o) {
|
|
51
|
+
return g(), h(t.ElLink, b(t.safeAttrs, {
|
|
52
|
+
type: n.type,
|
|
53
|
+
underline: t.normalizedUnderline,
|
|
54
|
+
disabled: n.disabled,
|
|
55
|
+
href: n.href,
|
|
56
|
+
target: n.target,
|
|
57
|
+
icon: n.icon,
|
|
58
|
+
onClick: t.handleClick
|
|
59
|
+
}), {
|
|
60
|
+
icon: s(() => [
|
|
61
|
+
c(r.$slots, "icon")
|
|
62
|
+
]),
|
|
63
|
+
default: s(() => [
|
|
64
|
+
c(r.$slots, "default")
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
/* FORWARDED */
|
|
68
|
+
}, 16, ["type", "underline", "disabled", "href", "target", "icon"]);
|
|
69
|
+
}
|
|
70
|
+
const A = /* @__PURE__ */ v(x, [["render", L], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-link/index.vue"]]);
|
|
71
|
+
export {
|
|
72
|
+
A as L
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Oe=require("element-plus"),t=require("vue"),h=require("element-plus"),Be=require("./index-mO9UiIQW.cjs"),Pe=require("./index-C_vMHW_7.cjs"),Ee=require("./index-4Yl91Bw1.cjs"),Te=require("./index-oZEfxmBH.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function J(l){if(l===null||typeof l!="object")return!1;const o=Object.getPrototypeOf(l);return o===Object.prototype||o===null}function w(l){return Array.isArray(l)?l.map(o=>w(o)):l instanceof Date?new Date(l.getTime()):J(l)?Object.fromEntries(Object.entries(l).map(([o,u])=>[o,w(u)])):l}function j(l,o){if(Object.is(l,o))return!0;if(l instanceof Date&&o instanceof Date)return l.getTime()===o.getTime();if(Array.isArray(l)&&Array.isArray(o))return l.length===o.length&&l.every((u,e)=>j(u,o[e]));if(J(l)&&J(o)){const u=Object.keys(l),e=Object.keys(o);return u.length===e.length&&u.every(s=>Object.prototype.hasOwnProperty.call(o,s)&&j(l[s],o[s]))}return!1}function Ne(l,o,u,e){const s=u??{};for(const f of o)e.has(f)||Object.prototype.hasOwnProperty.call(s,f)||delete l[f]}function xe(l,o,u,e){const s=o??{},f=u??{};let v=!1;for(const n of new Set([...Object.keys(s),...Object.keys(f)])){const g=Object.prototype.hasOwnProperty.call(s,n),S=Object.prototype.hasOwnProperty.call(f,n);g&&S&&j(s[n],f[n])||(S?(l[n]=w(f[n]),v=!0):!(e!=null&&e.has(n))&&j(l[n],s[n])&&(delete l[n],v=!0))}return v}const Ae=t.defineComponent({name:"QySelectionDialog",inheritAttrs:!1,__name:"index",props:{modelValue:{type:Array,required:!1,default:()=>[]},open:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:"选择数据"},width:{type:[String,Number],required:!1,default:"1200px"},fetchMethod:{type:Function,required:!1,default:void 0},query:{type:Function,required:!1,default:void 0},responseFormatter:{type:Function,required:!1,default:void 0},selectionMode:{type:String,required:!1,default:void 0},selection:{type:String,required:!1,default:"single"},selected:{type:Array,required:!1,default:()=>[]},rowKey:{type:String,required:!1,default:"id"},mainKey:{type:String,required:!1,default:void 0},labelKey:{type:String,required:!1,default:"name"},tagName:{type:String,required:!1,default:void 0},searchKey:{type:[String,null],required:!1,default:"conditions"},queryParams:{type:Object,required:!1,default:()=>({})},category:{type:[Array,Function,Boolean],required:!1,default:!1},categoryFormatter:{type:[Function,Array],required:!1,default:void 0},categoryOptions:{type:Array,required:!1,default:()=>[]},categoryFetchMethod:{type:[Function,null],required:!1,default:null},type:{type:[Array,Boolean],required:!1,default:!1},typeOptions:{type:Array,required:!1,default:()=>[]},typeSelectionProps:{type:Object,required:!1,default:()=>({})},typeSelectProps:{type:Object,required:!1,default:()=>({})},tableProps:{type:Object,required:!1,default:()=>({})},showSelected:{type:Boolean,required:!1,default:!0},showSearch:{type:Boolean,required:!1,default:!0},showPagination:{type:Boolean,required:!1,default:!0},showCopyPaste:{type:Boolean,required:!1,default:!1},append:{type:Boolean,required:!1,default:!1},showAppend:{type:Boolean,required:!1,default:!1},pageSizes:{type:Array,required:!1,default:()=>[10,20,50,100]}},emits:["update:modelValue","update:open","error","selection-change","confirm","submit","cancel","close","append","loaded"],setup(l,{expose:o,emit:u}){const e=l,s=u,f=t.useAttrs(),v=t.useSlots(),n=t.getCurrentInstance(),g=t.ref(null),S=t.ref([]),d=t.ref([]);let b=!1,N=0;const x=t.ref([]),A=t.ref(!1);let C=0,E=0,k=!1;function F(){C+=1,E+=1,A.value=!1}t.watch(()=>e.open,F,{flush:"sync"}),t.onBeforeUnmount(()=>{k=!0,F()});function V(r){return!k&&e.open&&r===C}const G=t.ref(0),D=t.ref(!1),z=t.ref(""),p=t.reactive({category:[],type:"",page:1,pageSize:10,...e.searchKey?{[e.searchKey]:""}:{},...w(e.queryParams??{})});let K=w(e.queryParams??{}),T=new Set(Object.keys(e.queryParams??{}));t.watch(()=>e.queryParams,r=>{xe(p,K,r,I()),K=w(r??{}),Object.keys(r??{}).forEach(a=>T.add(a))},{deep:!0});function I(){return new Set(["category","type","page","pageSize",...e.searchKey?[e.searchKey]:[]])}const O=t.computed(()=>e.selectionMode?e.selectionMode:e.selection==="multi"?"multiple":e.selection),W=t.computed(()=>e.mainKey||e.rowKey),X=t.computed(()=>e.tagName||e.labelKey),ue=t.computed(()=>e.typeOptions.length?e.typeOptions:e.type||[]),de=t.computed(()=>({...e.typeSelectionProps,...e.typeSelectProps})),Y=t.computed(()=>e.tableProps||{}),ye=t.computed(()=>e.showSearch||!!f["search-visible"]),Z=t.computed(()=>e.showAppend||e.append),fe=t.computed(()=>Z.value||!!v.toolbar||!!v.bar),M=t.computed(()=>e.fetchMethod||e.query),Q=t.computed(()=>$()?e.modelValue:e.selected);function $(){const r=(n==null?void 0:n.vnode.props)||{};return Object.prototype.hasOwnProperty.call(r,"modelValue")||Object.prototype.hasOwnProperty.call(r,"model-value")||Object.prototype.hasOwnProperty.call(r,"onUpdate:modelValue")}t.watch([()=>e.modelValue,()=>e.selected,()=>e.open],()=>{e.open&&(d.value=q(Q.value),P())},{immediate:!0,deep:!0}),t.watch([()=>e.categoryOptions,()=>e.category],r=>{if(Array.isArray(e.category)&&e.category.length){x.value=e.category;return}x.value=e.categoryOptions||[]},{immediate:!0}),t.watch(D,r=>{r||(z.value="")});async function ge(){const r=++C;d.value=q(Q.value);try{await ee(r)}catch(a){V(r)&&s("error",a);return}V(r)&&(await B(),V(r)&&P())}async function ee(r){const a=e.categoryFetchMethod||(typeof e.category=="function"?e.category:null);if(!a)return;const i=await a();V(r)&&(x.value=oe(i))}async function B(){if(!M.value||!e.open||k)return;const r=C,a=++E,i=()=>V(r)&&a===E;A.value=!0;try{const c=await M.value(ae());if(!i())return;const m=e.responseFormatter?await e.responseFormatter(c):c;if(!i())return;const{rows:se,total:Ve}=re(m);return b=!0,S.value=se,G.value=Ve,s("loaded",se),P(),m}catch(c){i()&&s("error",c)}finally{i()&&(A.value=!1)}}function U(){return p.page=1,B()}function me(){return p.page=1,B()}function te(){const r=e.queryParams??{};return Ne(p,T,r,I()),T=new Set(Object.keys(r)),Object.assign(p,{category:[],type:"",page:1,pageSize:p.pageSize,...e.searchKey?{[e.searchKey]:""}:{},...w(r)}),B()}function pe(){s("append")}function re(r){if(Array.isArray(r))return{rows:r,total:r.length};const a=r==null?void 0:r.data;if(Array.isArray(a))return{rows:a,total:(r==null?void 0:r.total)??a.length};const i=(r==null?void 0:r.records)||(r==null?void 0:r.rows)||(a==null?void 0:a.records)||[],c=(r==null?void 0:r.total)??(a==null?void 0:a.total)??i.length;return{rows:i,total:c}}function oe(r){const a=(r==null?void 0:r.data)??r;if(!Array.isArray(a))return[];if(typeof e.categoryFormatter=="function")return e.categoryFormatter(a);if(Array.isArray(e.categoryFormatter)){const[i,c]=e.categoryFormatter;return a.map(m=>({...m,label:m[i],value:m[c],children:Array.isArray(m.children)?H(m.children,i,c):m.children}))}return a}function H(r,a,i){return r.map(c=>({...c,label:c[a],value:c[i],children:Array.isArray(c.children)?H(c.children,a,i):c.children}))}function ae(){const r={...e.queryParams,...p};return e.searchKey&&(r[e.searchKey]=String(r[e.searchKey]||"").trim()),r.category=ne(),w(r)}function ne(){if(Object.prototype.hasOwnProperty.call(e.queryParams,"category"))return e.queryParams.category;const r=p.category;return Array.isArray(r)?r:r?[r]:[]}function he(r){var a,i;if(O.value!=="none"){if(O.value==="single"){d.value=[r],(a=g.value)==null||a.setCurrentRow(r),_();return}le(r)&&((i=g.value)==null||i.toggleRowSelection(r,!R(r)))}}function ve(r){if(O.value!=="multiple"||b)return;const a=new Set(S.value.map(y)),i=new Set(r.map(y));d.value=d.value.filter(c=>!a.has(y(c))||i.has(y(c))),r.filter(c=>a.has(y(c))).forEach(c=>{R(c)||d.value.push(c)}),_()}function Se(r){d.value=d.value.filter(a=>y(a)!==y(r)),P(),_()}function P(){const r=++N;b=!0,t.nextTick(()=>{if(r===N)try{if(!g.value||!e.open||k)return;if(O.value==="single"){const[i]=d.value,c=S.value.find(m=>i&&y(m)===y(i));g.value.setCurrentRow(c);return}if(O.value!=="multiple")return;const a=new Set(d.value.map(y));g.value.clearSelection(),S.value.forEach(i=>{var c;a.has(y(i))&&((c=g.value)==null||c.toggleRowSelection(i,!0))})}finally{b=!1}})}function le(r){var i;const a=(i=Y.value)==null?void 0:i.selectable;return typeof a=="function"?a(r)!==!1:!0}function R(r){return d.value.some(a=>y(a)===y(r))}function y(r){return L(r,W.value)}function we(r){return L(r,X.value)??y(r)}function L(r,a){if(!(!r||!a))return a.split(".").reduce((i,c)=>i==null?void 0:i[c],r)}function _(){const r=q(d.value);s("selection-change",r)}function qe(){const r=q(d.value);s("update:modelValue",r),s("confirm",r),s("submit",{selection:r,rows:r,query:{...p}})}function be(r){(r==="escape"||r==="overlay")&&ie()}function ie(){F(),d.value=q(Q.value),s("update:open",!1),s("cancel"),s("close")}async function Ce(){var a;const r=JSON.stringify(d.value);await((a=navigator.clipboard)==null?void 0:a.writeText(r)),h.ElMessage.success("复制成功")}function ke(){try{const r=JSON.parse(z.value);if(!Array.isArray(r)){h.ElMessage.error("粘贴内容需要是数组");return}r.forEach(a=>{R(a)||d.value.push(a)}),D.value=!1,_(),P()}catch(r){h.ElMessage.error(`粘贴错误: ${(r==null?void 0:r.message)||"内容格式错误"}`)}}function q(r=[]){return r.map(a=>({...a}))}o({search:U,handleSearch:B,handleQuerySearch:U,resetSearch:te,getTableRef:()=>g.value,getTableData:()=>S.value,getSelection:()=>q(d.value)});const ce={props:e,emit:s,attrs:f,slots:v,instance:n,tableRef:g,tableData:S,innerSelectedRows:d,get syncingTableSelection(){return b},set syncingTableSelection(r){b=r},get tableSelectionSyncVersion(){return N},set tableSelectionSyncVersion(r){N=r},categoryOptions:x,loading:A,get sessionId(){return C},set sessionId(r){C=r},get requestId(){return E},set requestId(r){E=r},get unmounted(){return k},set unmounted(r){k=r},invalidateRequests:F,isCurrentSession:V,total:G,pasteDialogOpen:D,pasteText:z,queryForm:p,get lastHostQueryParams(){return K},set lastHostQueryParams(r){K=r},get hostQueryKeys(){return T},set hostQueryKeys(r){T=r},getOwnQueryKeys:I,selectionMode:O,resolvedRowKey:W,resolvedLabelKey:X,resolvedTypeOptions:ue,resolvedTypeSelectProps:de,resolvedTableProps:Y,showSearchBar:ye,showAppendButton:Z,showToolbar:fe,fetcher:M,sourceSelectedRows:Q,hasModelValueBinding:$,handleOpened:ge,loadCategoryOptions:ee,handleSearch:B,handleQuerySearch:U,handlePageSizeChange:me,resetSearch:te,handleAppend:pe,normalizeResponse:re,normalizeCategoryOptions:oe,normalizeCategoryChildren:H,getRequestQuery:ae,getCategoryQueryParam:ne,handleRowClick:he,handleSelectionChange:ve,removeSelectedRow:Se,syncTableSelection:P,isRowSelectable:le,hasSelected:R,getRowKey:y,getRowLabel:we,getValueByPath:L,emitDraftSelection:_,handleConfirm:qe,handleDialogClose:be,handleCancel:ie,copySelection:Ce,applyPastedSelection:ke,cloneRows:q,get ElButton(){return h.ElButton},get ElForm(){return h.ElForm},get ElFormItem(){return h.ElFormItem},get ElInput(){return h.ElInput},get ElPagination(){return h.ElPagination},get ElTable(){return h.ElTable},get ElTableColumn(){return h.ElTableColumn},QyDialog:Be.Dialog,QySelect:Pe.Select,QyTag:Ee.Tag,QyTreeSelect:Te.TreeSelect};return Object.defineProperty(ce,"__isScriptSetup",{enumerable:!1,value:!0}),ce}}),Fe={class:"qy-selection-dialog"},Ke={class:"qy-selection-dialog__main"},Qe={key:0,class:"qy-selection-dialog__selected"},Re={class:"qy-selection-dialog__selected-tags"},je={key:0,class:"qy-selection-dialog__selected-actions"},De={key:1,class:"qy-selection-dialog__search-row"},ze={key:0,class:"qy-selection-dialog__toolbar"},Ie={key:2,class:"qy-selection-dialog__pagination"},Me={class:"qy-selection-dialog__paste-actions"};function Ue(l,o,u,e,s,f){const v=Oe.ElLoadingDirective;return t.openBlock(),t.createBlock(e.QyDialog,{open:u.open,title:u.title,width:u.width,onOpened:e.handleOpened,onConfirm:e.handleConfirm,onCancel:e.handleCancel,onClose:e.handleDialogClose},{default:t.withCtx(()=>[t.createElementVNode("div",Fe,[t.renderSlot(l.$slots,"side",{},void 0,!0),t.createElementVNode("div",Ke,[u.showSelected?(t.openBlock(),t.createElementBlock("div",Qe,[o[12]||(o[12]=t.createElementVNode("span",{class:"qy-selection-dialog__selected-label"},"已选项",-1)),t.createElementVNode("div",Re,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.innerSelectedRows,n=>(t.openBlock(),t.createBlock(e.QyTag,{key:e.getRowKey(n),closable:"",class:"qy-selection-dialog__selected-tag",onClose:g=>e.removeSelectedRow(n)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.getRowLabel(n)),1)]),_:2},1032,["onClose"]))),128)),e.innerSelectedRows.length?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(e.QyTag,{key:0,tone:"info"},{default:t.withCtx(()=>[...o[9]||(o[9]=[t.createTextVNode("无",-1)])]),_:1}))]),u.showCopyPaste?(t.openBlock(),t.createElementBlock("div",je,[t.createVNode(e.ElButton,{size:"small",onClick:e.copySelection},{default:t.withCtx(()=>[...o[10]||(o[10]=[t.createTextVNode("复制",-1)])]),_:1}),t.createVNode(e.ElButton,{size:"small",onClick:o[0]||(o[0]=n=>e.pasteDialogOpen=!0)},{default:t.withCtx(()=>[...o[11]||(o[11]=[t.createTextVNode("粘贴",-1)])]),_:1})])):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.showSearchBar?(t.openBlock(),t.createElementBlock("div",De,[t.createVNode(e.ElForm,{class:"qy-selection-dialog__search",inline:"",model:e.queryForm},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"search",{query:e.queryForm,search:e.handleQuerySearch,reset:e.resetSearch},()=>[e.categoryOptions.length?(t.openBlock(),t.createBlock(e.ElFormItem,{key:0,label:"分类"},{default:t.withCtx(()=>[t.createVNode(e.QyTreeSelect,{modelValue:e.queryForm.category,"onUpdate:modelValue":o[1]||(o[1]=n=>e.queryForm.category=n),class:"qy-selection-dialog__category",options:e.categoryOptions,clearable:"",filterable:"","check-strictly":"","render-after-expand":!1,onChange:e.handleQuerySearch},null,8,["modelValue","options"])]),_:1})):t.createCommentVNode("v-if",!0),e.resolvedTypeOptions.length?(t.openBlock(),t.createBlock(e.ElFormItem,{key:1,label:"类型"},{default:t.withCtx(()=>[t.createVNode(e.QySelect,t.mergeProps({modelValue:e.queryForm.type,"onUpdate:modelValue":o[2]||(o[2]=n=>e.queryForm.type=n),class:"qy-selection-dialog__type",options:e.resolvedTypeOptions,placeholder:"请选择类型",clearable:""},e.resolvedTypeSelectProps,{onChange:e.handleQuerySearch}),null,16,["modelValue","options"])]),_:1})):t.createCommentVNode("v-if",!0),u.searchKey?(t.openBlock(),t.createBlock(e.ElFormItem,{key:2,label:"搜索"},{default:t.withCtx(()=>[t.createVNode(e.ElInput,{modelValue:e.queryForm[u.searchKey],"onUpdate:modelValue":o[3]||(o[3]=n=>e.queryForm[u.searchKey]=n),clearable:"",placeholder:"请输入",class:"qy-selection-dialog__search-input",onKeydown:t.withKeys(t.withModifiers(e.handleQuerySearch,["prevent"]),["enter"])},null,8,["modelValue","onKeydown"])]),_:1})):t.createCommentVNode("v-if",!0),t.createVNode(e.ElFormItem,null,{default:t.withCtx(()=>[t.createVNode(e.ElButton,{type:"primary",onClick:e.handleQuerySearch},{default:t.withCtx(()=>[...o[13]||(o[13]=[t.createTextVNode("查询",-1)])]),_:1}),t.createVNode(e.ElButton,{onClick:e.resetSearch},{default:t.withCtx(()=>[...o[14]||(o[14]=[t.createTextVNode("重置",-1)])]),_:1})]),_:1})],!0)]),_:3},8,["model"]),e.showToolbar?(t.openBlock(),t.createElementBlock("div",ze,[e.showAppendButton?(t.openBlock(),t.createBlock(e.ElButton,{key:0,type:"primary",onClick:e.handleAppend},{default:t.withCtx(()=>[...o[15]||(o[15]=[t.createTextVNode(" 新增 ",-1)])]),_:1})):t.createCommentVNode("v-if",!0),t.renderSlot(l.$slots,"toolbar",{query:e.queryForm,search:e.handleQuerySearch},void 0,!0),t.renderSlot(l.$slots,"bar",{query:e.queryForm,search:e.handleQuerySearch},void 0,!0)])):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),t.withDirectives((t.openBlock(),t.createBlock(e.ElTable,t.mergeProps({ref:"tableRef",data:e.tableData,"row-key":e.resolvedRowKey,border:"","highlight-current-row":"","max-height":"550px"},e.resolvedTableProps,{onSelectionChange:e.handleSelectionChange,onRowClick:e.handleRowClick}),{default:t.withCtx(()=>{var n;return[e.selectionMode==="multiple"?(t.openBlock(),t.createBlock(e.ElTableColumn,{key:0,type:"selection","reserve-selection":"",width:"42",selectable:(n=e.resolvedTableProps)==null?void 0:n.selectable},null,8,["selectable"])):t.createCommentVNode("v-if",!0),t.renderSlot(l.$slots,"columns",{},void 0,!0),t.renderSlot(l.$slots,"cols",{},void 0,!0)]}),_:3},16,["data","row-key"])),[[v,e.loading]]),u.showPagination&&e.total>0?(t.openBlock(),t.createElementBlock("div",Ie,[t.createVNode(e.ElPagination,{"current-page":e.queryForm.page,"onUpdate:currentPage":o[4]||(o[4]=n=>e.queryForm.page=n),"page-size":e.queryForm.pageSize,"onUpdate:pageSize":o[5]||(o[5]=n=>e.queryForm.pageSize=n),total:e.total,"page-sizes":u.pageSizes,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:e.handlePageSizeChange,onCurrentChange:e.handleSearch},null,8,["current-page","page-size","total","page-sizes"])])):t.createCommentVNode("v-if",!0)])]),t.createVNode(e.QyDialog,{open:e.pasteDialogOpen,title:"粘贴数据","show-footer":!1,width:"560px","onUpdate:open":o[8]||(o[8]=n=>e.pasteDialogOpen=n)},{default:t.withCtx(()=>[t.createVNode(e.ElInput,{modelValue:e.pasteText,"onUpdate:modelValue":o[6]||(o[6]=n=>e.pasteText=n),type:"textarea",rows:8},null,8,["modelValue"]),t.createElementVNode("div",Me,[t.createVNode(e.ElButton,{onClick:o[7]||(o[7]=n=>e.pasteDialogOpen=!1)},{default:t.withCtx(()=>[...o[16]||(o[16]=[t.createTextVNode("取消",-1)])]),_:1}),t.createVNode(e.ElButton,{type:"primary",onClick:e.applyPastedSelection},{default:t.withCtx(()=>[...o[17]||(o[17]=[t.createTextVNode("确认",-1)])]),_:1})])]),_:1},8,["open"])]),_:3},8,["open","title","width"])}const He=_e._export_sfc(Ae,[["render",Ue],["__scopeId","data-v-58940077"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-selection-dialog/index.vue"]]);exports.Component=He;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("vue"),m=require("element-plus"),_=require("./overlay-stack-DeKq7jZu.cjs"),p=require("./utils-DpkN3Zat.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v=r.defineComponent({name:"QyImagePreview",__name:"index",props:{open:{type:Boolean,required:!1,default:!1},urlList:{type:Array,required:!1,default:()=>[]},initialIndex:{type:Number,required:!1,default:0},hideOnClickModal:{type:Boolean,required:!1,default:!0}},emits:["update:open","close"],setup(a,{expose:u,emit:t}){u();const n=a,l=t,o=r.computed(()=>n.urlList.map(i=>p.normalizeImageSrc(i)).filter(Boolean));let e;const d=r.ref(0),{nextZIndex:s}=m.useZIndex();r.watch(()=>n.open&&o.value.length>0,i=>{i?(d.value=_.resolveOverlayZIndex(s()),e??(e=p.acquirePreviewScrollLock())):(e==null||e(),e=void 0)},{immediate:!0,flush:"sync"}),r.onBeforeUnmount(()=>e==null?void 0:e());function f(){l("update:open",!1),l("close")}const c={props:n,emit:l,normalizedUrlList:o,get releaseScrollLock(){return e},set releaseScrollLock(i){e=i},zIndex:d,nextZIndex:s,handleClose:f,get ElImageViewer(){return m.ElImageViewer}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function g(a,u,t,n,l,o){return t.open&&n.normalizedUrlList.length?(r.openBlock(),r.createBlock(n.ElImageViewer,{key:0,"url-list":n.normalizedUrlList,"initial-index":t.initialIndex,"hide-on-click-modal":t.hideOnClickModal,teleported:!0,"z-index":n.zIndex,onClose:n.handleClose},null,8,["url-list","initial-index","hide-on-click-modal","z-index"])):r.createCommentVNode("v-if",!0)}const y=x._export_sfc(v,[["render",g],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-image-preview/index.vue"]]);exports.ImagePreview=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),i=require("element-plus"),l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c=t.defineComponent({name:"QySkeletonItem",inheritAttrs:!1,__name:"index",props:{variant:{type:String,required:!1,default:"text"}},setup(a,{expose:o}){o();const r=t.useAttrs(),n=t.computed(()=>Object.fromEntries(Object.entries(r).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),s={attrs:r,safeAttrs:n,get ElSkeletonItem(){return i.ElSkeletonItem}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function u(a,o,r,n,s,e){return t.openBlock(),t.createBlock(n.ElSkeletonItem,t.mergeProps(n.safeAttrs,{variant:r.variant}),null,16,["variant"])}const _=l._export_sfc(c,[["render",u],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-skeleton-item/index.vue"]]);exports.SkeletonItem=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),D=require("element-plus"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E=a.defineComponent({name:"QyDatePicker",inheritAttrs:!1,__name:"index",props:{modelValue:{type:null,required:!1,default:void 0},type:{type:String,required:!1,default:"date"},placeholder:{type:String,required:!1,default:"请选择日期"},startPlaceholder:{type:String,required:!1,default:"开始时间"},endPlaceholder:{type:String,required:!1,default:"结束时间"},rangeSeparator:{type:String,required:!1,default:"-"},format:{type:String,required:!1,default:void 0},valueFormat:{type:String,required:!1,default:void 0},defaultTime:{type:[Date,Array],required:!1,default:void 0},disabledDate:{type:Function,required:!1,default:void 0},shortcuts:{type:Array,required:!1,default:void 0},clearable:{type:Boolean,required:!1,default:!0},validateEvent:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:void 0},readonly:{type:Boolean,required:!1},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:null,required:!1,default:"body"},popperClass:{type:String,required:!1,default:""},normalizeRangeEndTime:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue","change","clear","calendar-change","panel-change","visible-change","focus","blur"],setup(d,{expose:s,emit:t}){const l=d,o=t,c=a.useAttrs(),n=a.ref(null),q=a.computed(()=>["qy-date-picker__popper",l.popperClass].filter(Boolean).join(" "));function f(e){return Array.isArray(e)}function p(e){if(e.getHours()!==0||e.getMinutes()!==0||e.getSeconds()!==0||e.getMilliseconds()!==0)return e;const r=new Date(e);return r.setHours(23,59,59,0),r}function h(e){const r=e.match(/(T| )00:00:00(\.000)?(Z|[+-]\d{2}:?\d{2})?$/);return r?e.replace(r[0],`${r[1]}23:59:59${r[2]??""}${r[3]??""}`):e}function u(e){if(!l.normalizeRangeEndTime||!f(e)||e.length<2)return e;const r=e[1];let i=r;if(r instanceof Date?i=p(r):typeof r=="string"&&(i=h(r)),i===r)return e;const v=[...e];return v[1]=i,v}function b(e){o("update:modelValue",u(e))}function S(e){o("change",u(e))}function _(){o("clear")}function z(e){o("calendar-change",e)}function V(e,r,i){if(i===void 0){o("panel-change",e,r);return}o("panel-change",e,r,i)}function k(e){o("visible-change",e)}function x(e){o("focus",e)}function B(e){o("blur",e)}function g(){var e,r;(r=(e=n.value)==null?void 0:e.focus)==null||r.call(e)}function m(){var e,r;(r=(e=n.value)==null?void 0:e.blur)==null||r.call(e)}function y(){var e,r;(r=(e=n.value)==null?void 0:e.handleOpen)==null||r.call(e)}function P(){var e,r;(r=(e=n.value)==null?void 0:e.handleClose)==null||r.call(e)}s({focus:g,blur:m,open:y,close:P});const C={props:l,emit:o,attrs:c,datePickerRef:n,mergedPopperClass:q,isRangeValue:f,normalizeEndDate:p,normalizeEndString:h,normalizeRangeValue:u,handleUpdateModelValue:b,handleChange:S,handleClear:_,handleCalendarChange:z,handlePanelChange:V,handleVisibleChange:k,handleFocus:x,handleBlur:B,focus:g,blur:m,open:y,close:P,get ElDatePicker(){return D.ElDatePicker}};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}});function w(d,s,t,l,o,c){return a.openBlock(),a.createBlock(l.ElDatePicker,a.mergeProps({ref:"datePickerRef",class:"qy-date-picker"},l.attrs,{"model-value":t.modelValue,type:t.type,placeholder:t.placeholder,"start-placeholder":t.startPlaceholder,"end-placeholder":t.endPlaceholder,"range-separator":t.rangeSeparator,format:t.format,"value-format":t.valueFormat,"default-time":t.defaultTime,"disabled-date":t.disabledDate,shortcuts:t.shortcuts,clearable:t.clearable,disabled:t.disabled,"validate-event":t.validateEvent,readonly:t.readonly,size:t.size,teleported:t.teleported,"append-to":t.appendTo,"popper-class":l.mergedPopperClass,"onUpdate:modelValue":l.handleUpdateModelValue,onChange:l.handleChange,onClear:l.handleClear,onCalendarChange:l.handleCalendarChange,onPanelChange:l.handlePanelChange,onVisibleChange:l.handleVisibleChange,onFocus:l.handleFocus,onBlur:l.handleBlur}),{default:a.withCtx(n=>[a.renderSlot(d.$slots,"default",a.normalizeProps(a.guardReactiveProps(n)))]),"range-separator":a.withCtx(n=>[a.renderSlot(d.$slots,"range-separator",a.normalizeProps(a.guardReactiveProps(n)))]),"prev-month":a.withCtx(n=>[a.renderSlot(d.$slots,"prev-month",a.normalizeProps(a.guardReactiveProps(n)))]),"next-month":a.withCtx(n=>[a.renderSlot(d.$slots,"next-month",a.normalizeProps(a.guardReactiveProps(n)))]),"prev-year":a.withCtx(n=>[a.renderSlot(d.$slots,"prev-year",a.normalizeProps(a.guardReactiveProps(n)))]),"next-year":a.withCtx(n=>[a.renderSlot(d.$slots,"next-year",a.normalizeProps(a.guardReactiveProps(n)))]),_:3},16,["model-value","type","placeholder","start-placeholder","end-placeholder","range-separator","format","value-format","default-time","disabled-date","shortcuts","clearable","disabled","validate-event","readonly","size","teleported","append-to","popper-class"])}const T=R._export_sfc(E,[["render",w],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-date-picker/index.vue"]]);exports.DatePicker=T;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as l, computed as u, openBlock as o, createElementBlock as r, normalizeStyle as f, normalizeClass as c, renderSlot as i, createCommentVNode as n } from "vue";
|
|
2
|
+
import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const _ = /* @__PURE__ */ l({
|
|
4
|
+
name: "QyActionBar",
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: {
|
|
7
|
+
sticky: { type: Boolean, required: !1, default: !0 },
|
|
8
|
+
offsetBottom: { type: Number, required: !1, default: 0 },
|
|
9
|
+
bordered: { type: Boolean, required: !1, default: !0 },
|
|
10
|
+
shadow: { type: Boolean, required: !1, default: !1 },
|
|
11
|
+
wrap: { type: Boolean, required: !1, default: !0 },
|
|
12
|
+
justify: { type: String, required: !1, default: "between" },
|
|
13
|
+
background: { type: String, required: !1, default: "#fff" }
|
|
14
|
+
},
|
|
15
|
+
setup(t, { expose: d }) {
|
|
16
|
+
d();
|
|
17
|
+
const e = t, s = u(() => ({
|
|
18
|
+
// offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
|
|
19
|
+
bottom: `${e.offsetBottom}px`,
|
|
20
|
+
background: e.background
|
|
21
|
+
})), a = { props: e, barStyle: s };
|
|
22
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
23
|
+
}
|
|
24
|
+
}), p = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "qy-action-bar__left"
|
|
27
|
+
}, m = {
|
|
28
|
+
key: 1,
|
|
29
|
+
class: "qy-action-bar__center"
|
|
30
|
+
}, b = {
|
|
31
|
+
key: 2,
|
|
32
|
+
class: "qy-action-bar__right"
|
|
33
|
+
};
|
|
34
|
+
function q(t, d, e, s, a, k) {
|
|
35
|
+
return o(), r(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
class: c(["qy-action-bar", [
|
|
39
|
+
`is-justify-${e.justify}`,
|
|
40
|
+
{
|
|
41
|
+
"is-sticky": e.sticky,
|
|
42
|
+
"is-bordered": e.bordered,
|
|
43
|
+
"is-shadow": e.shadow,
|
|
44
|
+
"is-wrap": e.wrap
|
|
45
|
+
}
|
|
46
|
+
]]),
|
|
47
|
+
style: f(s.barStyle)
|
|
48
|
+
},
|
|
49
|
+
[
|
|
50
|
+
t.$slots.left ? (o(), r("div", p, [
|
|
51
|
+
i(t.$slots, "left", {}, void 0, !0)
|
|
52
|
+
])) : n("v-if", !0),
|
|
53
|
+
t.$slots.default ? (o(), r("div", m, [
|
|
54
|
+
i(t.$slots, "default", {}, void 0, !0)
|
|
55
|
+
])) : n("v-if", !0),
|
|
56
|
+
t.$slots.right ? (o(), r("div", b, [
|
|
57
|
+
i(t.$slots, "right", {}, void 0, !0)
|
|
58
|
+
])) : n("v-if", !0)
|
|
59
|
+
],
|
|
60
|
+
6
|
|
61
|
+
/* CLASS, STYLE */
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
const g = /* @__PURE__ */ y(_, [["render", q], ["__scopeId", "data-v-1efb467b"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-action-bar/index.vue"]]);
|
|
65
|
+
export {
|
|
66
|
+
g as C
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),b=require("element-plus"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C=t.defineComponent({name:"QyCheckbox",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean],required:!1,default:!1},value:{type:[String,Number,Boolean],required:!1},indeterminate:{type:Boolean,required:!1,default:!1},validateEvent:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:void 0},trueValue:{type:[String,Number,Boolean],required:!1,default:!0},falseValue:{type:[String,Number,Boolean],required:!1,default:!1},name:{type:String,required:!1},id:{type:String,required:!1},tabindex:{type:[String,Number],required:!1},ariaLabel:{type:String,required:!1},ariaControls:{type:String,required:!1}},emits:["update:modelValue","change","focus","blur"],setup(l,{expose:u,emit:s}){u();const e=l,r=s,n=t.useAttrs(),h=t.computed(()=>Object.fromEntries(Object.entries(n).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a.startsWith("data-")||a.startsWith("aria-")))),o=t.inject(b.checkboxGroupContextKey,void 0),c=t.computed(()=>e.modelValue===e.trueValue),f=t.computed(()=>o?e.value!==void 0&&o.modelValue.value.includes(e.value):c.value);function i(a){return a?e.trueValue:e.falseValue}function v(a){e.disabled||r("update:modelValue",i(a===!0))}function x(a,d){if(e.disabled)return;r("change",i(a===!0));const m=d==null?void 0:d.target;m instanceof HTMLInputElement&&t.nextTick(()=>{m.checked=f.value})}function _(a){r("focus",a)}function g(a){r("blur",a)}const p={props:e,emit:r,attrs:n,safeAttrs:h,checkboxGroup:o,isChecked:c,nativeChecked:f,resolveModelValue:i,handleUpdateModelValue:v,handleChange:x,handleFocus:_,handleBlur:g,get ElCheckbox(){return b.ElCheckbox}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}});function y(l,u,s,e,r,n){return t.openBlock(),t.createBlock(e.ElCheckbox,t.mergeProps(e.safeAttrs,{class:"qy-checkbox","model-value":e.isChecked,value:e.props.value,indeterminate:e.props.indeterminate,disabled:e.props.disabled||void 0,"validate-event":e.props.validateEvent,size:e.props.size,name:e.props.name,id:e.props.id,tabindex:e.props.tabindex,"aria-label":e.props.ariaLabel,"aria-controls":e.props.ariaControls,"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange,onFocusin:e.handleFocus,onFocusout:e.handleBlur}),{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["model-value","value","indeterminate","disabled","validate-event","size","name","id","tabindex","aria-label","aria-controls"])}const V=q._export_sfc(C,[["render",y],["__scopeId","data-v-e6e09c7b"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-checkbox/index.vue"]]);exports.Checkbox=V;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { defineComponent as I, useAttrs as O, computed as w, ref as v, onMounted as L, onBeforeUnmount as P, openBlock as M, createBlock as k, mergeProps as z, createSlots as A, withCtx as s, renderSlot as f } from "vue";
|
|
2
|
+
import { ElInputNumber as U } from "element-plus";
|
|
3
|
+
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const F = /* @__PURE__ */ I({
|
|
5
|
+
name: "QyInputNumber",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
id: { type: String, required: !1 },
|
|
10
|
+
step: { type: Number, required: !1, default: 1 },
|
|
11
|
+
stepStrictly: { type: Boolean, required: !1, default: !1 },
|
|
12
|
+
max: { type: Number, required: !1, default: void 0 },
|
|
13
|
+
min: { type: Number, required: !1, default: void 0 },
|
|
14
|
+
modelValue: { type: null, required: !1, default: void 0 },
|
|
15
|
+
readonly: { type: Boolean, required: !1, default: !1 },
|
|
16
|
+
disabled: { type: Boolean, required: !1, default: !1 },
|
|
17
|
+
size: { type: String, required: !1, default: void 0 },
|
|
18
|
+
controls: { type: Boolean, required: !1, default: !0 },
|
|
19
|
+
controlsPosition: { type: String, required: !1, default: "" },
|
|
20
|
+
valueOnClear: { type: [String, Number, null], required: !1, default: null },
|
|
21
|
+
name: { type: String, required: !1 },
|
|
22
|
+
placeholder: { type: String, required: !1, default: "请输入数字" },
|
|
23
|
+
precision: { type: Number, required: !1, default: void 0 },
|
|
24
|
+
validateEvent: { type: Boolean, required: !1 },
|
|
25
|
+
ariaLabel: { type: String, required: !1 }
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
28
|
+
setup(l, { expose: y, emit: n }) {
|
|
29
|
+
const t = l, r = n, c = O(), S = w(
|
|
30
|
+
() => Object.fromEntries(
|
|
31
|
+
Object.entries(c).filter(
|
|
32
|
+
([e]) => e === "class" || e === "style" || e === "title" || e === "role" || e.startsWith("data-") || e.startsWith("aria-")
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
), o = v(null), i = v(!1), m = v(t.modelValue);
|
|
36
|
+
function b() {
|
|
37
|
+
return t.valueOnClear === "min" ? t.min : t.valueOnClear === "max" ? t.max : t.valueOnClear;
|
|
38
|
+
}
|
|
39
|
+
function u(e = !1) {
|
|
40
|
+
var d, C;
|
|
41
|
+
if (!i.value) return;
|
|
42
|
+
i.value = !1;
|
|
43
|
+
const a = b();
|
|
44
|
+
r("update:modelValue", a), r("change", a, m.value), e && ((C = (d = o.value) == null ? void 0 : d.blur) == null || C.call(d));
|
|
45
|
+
}
|
|
46
|
+
function N(e) {
|
|
47
|
+
e === null && t.valueOnClear !== null && (i.value = !0, m.value = t.modelValue), r("update:modelValue", e);
|
|
48
|
+
}
|
|
49
|
+
function V(e) {
|
|
50
|
+
r("input", e);
|
|
51
|
+
}
|
|
52
|
+
function _(e, a) {
|
|
53
|
+
if (i.value && e === null) {
|
|
54
|
+
u();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
i.value = !1, r("change", e, a);
|
|
58
|
+
}
|
|
59
|
+
function x(e) {
|
|
60
|
+
r("focus", e);
|
|
61
|
+
}
|
|
62
|
+
function B(e) {
|
|
63
|
+
i.value && e.target instanceof HTMLInputElement && e.target.value === "" && u(), r("blur", e);
|
|
64
|
+
}
|
|
65
|
+
function E(e) {
|
|
66
|
+
i.value && e.key === "Tab" && e.target instanceof HTMLInputElement && e.target.value === "" && u(!0);
|
|
67
|
+
}
|
|
68
|
+
function p(e) {
|
|
69
|
+
const a = e.target;
|
|
70
|
+
i.value && a instanceof Element && !a.closest(".qy-input-number") && u(!0);
|
|
71
|
+
}
|
|
72
|
+
function h() {
|
|
73
|
+
var e, a;
|
|
74
|
+
(a = (e = o.value) == null ? void 0 : e.focus) == null || a.call(e);
|
|
75
|
+
}
|
|
76
|
+
function g() {
|
|
77
|
+
var e, a;
|
|
78
|
+
(a = (e = o.value) == null ? void 0 : e.blur) == null || a.call(e);
|
|
79
|
+
}
|
|
80
|
+
y({
|
|
81
|
+
focus: h,
|
|
82
|
+
blur: g
|
|
83
|
+
}), L(() => {
|
|
84
|
+
document.addEventListener("pointerdown", p, !0);
|
|
85
|
+
}), P(() => {
|
|
86
|
+
document.removeEventListener("pointerdown", p, !0);
|
|
87
|
+
});
|
|
88
|
+
const q = { props: t, emit: r, attrs: c, adapterAttrs: S, inputNumberRef: o, pendingClear: i, pendingClearOldValue: m, resolveValueOnClear: b, commitPendingClear: u, handleUpdateModelValue: N, handleInput: V, handleChange: _, handleFocus: x, handleBlur: B, handleKeydown: E, handleDocumentPointerdown: p, focus: h, blur: g, get ElInputNumber() {
|
|
89
|
+
return U;
|
|
90
|
+
} };
|
|
91
|
+
return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
function K(l, y, n, t, r, c) {
|
|
95
|
+
return M(), k(t.ElInputNumber, z({ ref: "inputNumberRef" }, t.adapterAttrs, {
|
|
96
|
+
class: "qy-input-number",
|
|
97
|
+
"model-value": n.modelValue,
|
|
98
|
+
min: n.min,
|
|
99
|
+
max: n.max,
|
|
100
|
+
step: n.step,
|
|
101
|
+
"step-strictly": n.stepStrictly,
|
|
102
|
+
precision: n.precision,
|
|
103
|
+
controls: n.controls,
|
|
104
|
+
"controls-position": n.controlsPosition,
|
|
105
|
+
placeholder: n.placeholder,
|
|
106
|
+
disabled: n.disabled,
|
|
107
|
+
readonly: n.readonly,
|
|
108
|
+
size: n.size,
|
|
109
|
+
"value-on-clear": n.valueOnClear,
|
|
110
|
+
"validate-event": n.validateEvent,
|
|
111
|
+
id: n.id,
|
|
112
|
+
name: n.name,
|
|
113
|
+
"aria-label": n.ariaLabel,
|
|
114
|
+
"onUpdate:modelValue": t.handleUpdateModelValue,
|
|
115
|
+
onInput: t.handleInput,
|
|
116
|
+
onChange: t.handleChange,
|
|
117
|
+
onFocus: t.handleFocus,
|
|
118
|
+
onBlur: t.handleBlur,
|
|
119
|
+
onKeydownCapture: t.handleKeydown
|
|
120
|
+
}), A({
|
|
121
|
+
_: 2
|
|
122
|
+
/* DYNAMIC */
|
|
123
|
+
}, [
|
|
124
|
+
l.$slots.prefix ? {
|
|
125
|
+
name: "prefix",
|
|
126
|
+
fn: s(() => [
|
|
127
|
+
f(l.$slots, "prefix")
|
|
128
|
+
]),
|
|
129
|
+
key: "0"
|
|
130
|
+
} : void 0,
|
|
131
|
+
l.$slots.suffix ? {
|
|
132
|
+
name: "suffix",
|
|
133
|
+
fn: s(() => [
|
|
134
|
+
f(l.$slots, "suffix")
|
|
135
|
+
]),
|
|
136
|
+
key: "1"
|
|
137
|
+
} : void 0,
|
|
138
|
+
l.$slots["increase-icon"] ? {
|
|
139
|
+
name: "increase-icon",
|
|
140
|
+
fn: s(() => [
|
|
141
|
+
f(l.$slots, "increase-icon")
|
|
142
|
+
]),
|
|
143
|
+
key: "2"
|
|
144
|
+
} : void 0,
|
|
145
|
+
l.$slots["decrease-icon"] ? {
|
|
146
|
+
name: "decrease-icon",
|
|
147
|
+
fn: s(() => [
|
|
148
|
+
f(l.$slots, "decrease-icon")
|
|
149
|
+
]),
|
|
150
|
+
key: "3"
|
|
151
|
+
} : void 0
|
|
152
|
+
]), 1040, ["model-value", "min", "max", "step", "step-strictly", "precision", "controls", "controls-position", "placeholder", "disabled", "readonly", "size", "value-on-clear", "validate-event", "id", "name", "aria-label"]);
|
|
153
|
+
}
|
|
154
|
+
const W = /* @__PURE__ */ j(F, [["render", K], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-input-number/index.vue"]]);
|
|
155
|
+
export {
|
|
156
|
+
W as I
|
|
157
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, computed as l, h as a } from "vue";
|
|
2
2
|
import { ElAlert as f } from "element-plus";
|
|
3
|
-
|
|
3
|
+
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const u = ["primary", "success", "warning", "info", "error"], m = ["light", "dark"], p = {
|
|
4
5
|
title: {
|
|
5
6
|
type: String,
|
|
6
7
|
default: ""
|
|
@@ -12,7 +13,7 @@ const d = ["primary", "success", "warning", "info", "error"], u = ["light", "dar
|
|
|
12
13
|
type: {
|
|
13
14
|
type: String,
|
|
14
15
|
default: "info",
|
|
15
|
-
validator: (t) =>
|
|
16
|
+
validator: (t) => u.includes(t)
|
|
16
17
|
},
|
|
17
18
|
closable: {
|
|
18
19
|
type: Boolean,
|
|
@@ -27,31 +28,31 @@ const d = ["primary", "success", "warning", "info", "error"], u = ["light", "dar
|
|
|
27
28
|
effect: {
|
|
28
29
|
type: String,
|
|
29
30
|
default: "light",
|
|
30
|
-
validator: (t) =>
|
|
31
|
+
validator: (t) => m.includes(t)
|
|
31
32
|
}
|
|
32
|
-
},
|
|
33
|
+
}, y = s({
|
|
33
34
|
name: "QyAlert",
|
|
34
35
|
inheritAttrs: !1,
|
|
35
|
-
props:
|
|
36
|
+
props: p,
|
|
36
37
|
emits: {
|
|
37
38
|
close: () => !0
|
|
38
39
|
},
|
|
39
|
-
setup(t, { attrs:
|
|
40
|
-
const
|
|
40
|
+
setup(t, { attrs: r, slots: o, emit: n }) {
|
|
41
|
+
const i = l(
|
|
41
42
|
() => Object.fromEntries(
|
|
42
|
-
Object.entries(
|
|
43
|
+
Object.entries(r).filter(
|
|
43
44
|
([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e.startsWith("data-") || e.startsWith("aria-")
|
|
44
45
|
)
|
|
45
46
|
)
|
|
46
|
-
),
|
|
47
|
+
), c = l(
|
|
47
48
|
() => Object.fromEntries(
|
|
48
|
-
["icon", "title", "default"].filter((e) =>
|
|
49
|
+
["icon", "title", "default"].filter((e) => o[e]).map((e) => [e, o[e]])
|
|
49
50
|
)
|
|
50
51
|
);
|
|
51
52
|
return () => a(
|
|
52
53
|
f,
|
|
53
54
|
{
|
|
54
|
-
...
|
|
55
|
+
...i.value,
|
|
55
56
|
title: t.title,
|
|
56
57
|
description: t.description,
|
|
57
58
|
type: t.type,
|
|
@@ -60,12 +61,12 @@ const d = ["primary", "success", "warning", "info", "error"], u = ["light", "dar
|
|
|
60
61
|
showIcon: t.showIcon,
|
|
61
62
|
center: t.center,
|
|
62
63
|
effect: t.effect,
|
|
63
|
-
onClose: () =>
|
|
64
|
+
onClose: () => n("close")
|
|
64
65
|
},
|
|
65
|
-
|
|
66
|
+
c.value
|
|
66
67
|
);
|
|
67
68
|
}
|
|
68
|
-
});
|
|
69
|
+
}), _ = /* @__PURE__ */ d(y, [["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-alert/index.vue"]]);
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
_ as A
|
|
71
72
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),G=require("element-plus"),J=require("./index-C_vMHW_7.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=t.defineComponent({name:"QyRemoteSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Array,null],required:!1,default:void 0},fetchMethod:{type:Function,required:!0},defaultOptions:{type:Array,required:!1,default:()=>[]},labelKey:{type:String,required:!1,default:"label"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},placeholder:{type:String,required:!1,default:"请选择"},disabled:{type:Boolean,required:!1,default:void 0},clearable:{type:Boolean,required:!1,default:!0},multiple:{type:Boolean,required:!1,default:!1},multipleLimit:{type:Number,required:!1,default:0},validateEvent:{type:Boolean,required:!1,default:!0},collapseTags:{type:Boolean,required:!1,default:!1},collapseTagsTooltip:{type:Boolean,required:!1,default:!1},autoSelectSingle:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:String,required:!1,default:"body"},fitInputWidth:{type:Boolean,required:!1,default:!0},popperClass:{type:String,required:!1,default:""},debounce:{type:Number,required:!1,default:300},minLength:{type:Number,required:!1,default:1},remoteOnFocus:{type:Boolean,required:!1,default:!1},remoteShowSuffix:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},reserveSelectedOption:{type:Boolean,required:!1,default:!0},allowCreate:{type:Boolean,required:!1,default:!1},commitOnBlur:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue","change","clear","visible-change","focus","blur","options-change","loading-change","error"],setup(u,{expose:F,emit:n}){const l=u,r=n,k=t.useAttrs(),p=G.useFormDisabled(),S=t.ref(null),d=t.ref([]),V=t.ref(new Map),y=t.ref(!1),c=t.ref(""),m=t.ref("");let s=0,o=null;const N=t.computed(()=>l.loading||y.value),b=t.ref(!1),x=t.computed(()=>c.value!==""),f=t.computed(()=>{if(x.value)return d.value;const e=new Map,a=i=>{e.set(C(i),i)};return l.defaultOptions.forEach(a),l.reserveSelectedOption&&V.value.forEach(i=>a(i)),d.value.forEach(a),Array.from(e.values())});t.watch(()=>l.defaultOptions,e=>{e.forEach(h)},{immediate:!0}),t.watch(()=>l.modelValue,()=>{f.value.forEach(h)},{immediate:!0});function C(e){return(e==null?void 0:e[l.valueKey])??(e==null?void 0:e.value)??(e==null?void 0:e.label)}function K(e){return Array.isArray(l.modelValue)?l.modelValue.includes(e):l.modelValue===e}function h(e){if(!l.reserveSelectedOption)return;const a=C(e);K(a)&&V.value.set(a,e)}function A(e){return p.value?!1:e?e.length>=l.minLength:l.remoteOnFocus}function v(e){y.value!==e&&(y.value=e,r("loading-change",e))}async function g(e){const a=B(e),i=++s;if(T(a),!A(a)){d.value=[],v(!1),r("options-change",f.value);return}v(!0);try{const q=await l.fetchMethod(a);if(i!==s)return;d.value=Array.isArray(q)?q:[],d.value.forEach(h),r("options-change",f.value)}catch(q){if(i!==s)return;d.value=[],r("error",q),r("options-change",f.value)}finally{i===s&&v(!1)}}function O(){b.value||(b.value=!0,g(""))}function P(e){const a=B(e);m.value=a,s+=1,T(a),o&&(clearTimeout(o),o=null),o=setTimeout(()=>{g(a)},l.debounce)}function _(){b.value=!0,g("")}function E(){g(c.value)}function D(e){m.value="",r("update:modelValue",e)}function U(e){m.value="",f.value.forEach(h),r("change",e)}function Q(){w(),r("clear")}function w(){s+=1,o&&clearTimeout(o),o=null,m.value="",c.value="",d.value=[],v(!1),r("options-change",f.value)}function W(e){e&&l.remoteOnFocus&&!c.value&&O(),r("visible-change",e)}function j(e){l.remoteOnFocus&&!c.value&&O(),r("focus",e)}function H(e){L(),r("blur",e)}function L(){if(!l.allowCreate||!l.commitOnBlur||p.value)return;const e=m.value;if(e.trim()){if(m.value="",l.multiple){const a=Array.isArray(l.modelValue)?l.modelValue:[];if(a.includes(e)||l.multipleLimit>0&&a.length>=l.multipleLimit)return;const i=[...a,e];r("update:modelValue",i),r("change",i);return}r("update:modelValue",e),r("change",e)}}function B(e){return String(e??"")}function T(e){c.value=e,d.value=[],r("options-change",f.value)}function M(){var e,a;(a=(e=S.value)==null?void 0:e.focus)==null||a.call(e)}function z(){var e,a;(a=(e=S.value)==null?void 0:e.blur)==null||a.call(e)}function I(){w(),r("update:modelValue",l.multiple?[]:""),r("clear")}t.onBeforeUnmount(()=>{s+=1,o&&clearTimeout(o)}),F({focus:M,blur:z,clear:I,retryFetch:E,fetchDefaultOptions:_});const R={props:l,emit:r,attrs:k,resolvedDisabled:p,selectRef:S,remoteOptions:d,selectedOptionMap:V,innerLoading:y,lastKeyword:c,pendingCreateText:m,get requestId(){return s},set requestId(e){s=e},get debounceTimer(){return o},set debounceTimer(e){o=e},mergedLoading:N,defaultOptionsFetched:b,hasSearchKeyword:x,mergedOptions:f,getOptionValue:C,isValueSelected:K,cacheOptionIfSelected:h,canFetch:A,setInnerLoading:v,fetchOptions:g,maybeFetchDefaultOptions:O,handleRemoteMethod:P,fetchDefaultOptions:_,retryFetch:E,handleUpdateModelValue:D,handleChange:U,handleClear:Q,cancelPendingSearch:w,handleVisibleChange:W,handleFocus:j,handleBlur:H,commitPendingCreateText:L,normalizeKeyword:B,clearRemoteOptionsForKeyword:T,focus:M,blur:z,clear:I,QySelect:J.Select};return Object.defineProperty(R,"__isScriptSetup",{enumerable:!1,value:!0}),R}});function Z(u,F,n,l,r,k){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" 远程防抖由本组件统一维护,底层需即时同步关键字,避免快速失焦丢失手输文本。 "),t.createVNode(l.QySelect,t.mergeProps({ref:"selectRef"},l.attrs,{"model-value":n.modelValue,options:l.mergedOptions,"label-key":n.labelKey,"value-key":n.valueKey,"disabled-key":n.disabledKey,placeholder:n.placeholder,disabled:l.resolvedDisabled,clearable:n.clearable,filterable:!0,multiple:n.multiple,"multiple-limit":n.multipleLimit,"validate-event":n.validateEvent,"collapse-tags":n.collapseTags,"collapse-tags-tooltip":n.collapseTagsTooltip,"auto-select-single":n.autoSelectSingle,size:n.size,teleported:n.teleported,"append-to":n.appendTo,"fit-input-width":n.fitInputWidth,"popper-class":n.popperClass,remote:"",debounce:0,"remote-show-suffix":n.remoteShowSuffix,"remote-method":l.handleRemoteMethod,loading:l.mergedLoading,"onUpdate:modelValue":l.handleUpdateModelValue,onChange:l.handleChange,onClear:l.handleClear,onVisibleChange:l.handleVisibleChange,onFocus:l.handleFocus,onBlur:l.handleBlur}),t.createSlots({default:t.withCtx(()=>[u.$slots.default?t.renderSlot(u.$slots,"default",{},void 0,void 0,0):t.createCommentVNode("v-if",!0)]),_:2},[u.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(u.$slots,"prefix")]),key:"0"}:void 0,u.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(u.$slots,"empty")]),key:"1"}:void 0,u.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(u.$slots,"loading")]),key:"2"}:void 0,u.$slots.tag?{name:"tag",fn:t.withCtx(p=>[t.renderSlot(u.$slots,"tag",t.normalizeProps(t.guardReactiveProps(p)))]),key:"3"}:void 0]),1040,["model-value","options","label-key","value-key","disabled-key","placeholder","disabled","clearable","multiple","multiple-limit","validate-event","collapse-tags","collapse-tags-tooltip","auto-select-single","size","teleported","append-to","fit-input-width","popper-class","remote-show-suffix","loading"])],2112)}const $=X._export_sfc(Y,[["render",Z],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-remote-select/index.vue"]]);exports.Component=$;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t } from "vue";
|
|
2
|
-
|
|
2
|
+
import { _ as r } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const i = t({
|
|
3
4
|
name: "QyDescriptionsItem",
|
|
4
5
|
inheritAttrs: !1,
|
|
5
6
|
props: {
|
|
@@ -25,7 +26,7 @@ const l = t({
|
|
|
25
26
|
setup() {
|
|
26
27
|
return () => null;
|
|
27
28
|
}
|
|
28
|
-
});
|
|
29
|
+
}), a = /* @__PURE__ */ r(i, [["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-descriptions-item/index.vue"]]);
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
a as D
|
|
31
32
|
};
|