@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
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { defineComponent as k, useAttrs as Q, useSlots as G, ref as J, computed as f, Comment as X, Text as Y, Fragment as x, isVNode as Z, watch as $, onMounted as ee, onUpdated as te, openBlock as A, createBlock as T, mergeProps as le, createSlots as ae, withCtx as m, renderSlot as y, createElementBlock as re, renderList as ne, normalizeProps as oe, guardReactiveProps as ie } from "vue";
|
|
2
|
+
import { useFormDisabled as ue, ElSelect as de, ElOption as se } from "element-plus";
|
|
3
|
+
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const ce = /* @__PURE__ */ k({
|
|
5
|
+
name: "QySelect",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: [String, Number, Boolean, Object, Array, null], required: !1, skipCheck: !0, default: void 0 },
|
|
10
|
+
options: { type: Array, required: !1, default: () => [] },
|
|
11
|
+
labelKey: { type: String, required: !1, default: "label" },
|
|
12
|
+
valueKey: { type: String, required: !1, default: "value" },
|
|
13
|
+
objectIdentityKey: { type: String, required: !1, default: void 0 },
|
|
14
|
+
disabledKey: { type: String, required: !1, default: "disabled" },
|
|
15
|
+
placeholder: { type: String, required: !1, default: "请选择" },
|
|
16
|
+
disabled: { type: Boolean, required: !1, default: void 0 },
|
|
17
|
+
clearable: { type: Boolean, required: !1, default: !0 },
|
|
18
|
+
filterable: { type: Boolean, required: !1, default: !1 },
|
|
19
|
+
filterMethod: { type: Function, required: !1 },
|
|
20
|
+
multipleLimit: { type: Number, required: !1, default: 0 },
|
|
21
|
+
allowCreate: { type: Boolean, required: !1, default: !1 },
|
|
22
|
+
validateEvent: { type: Boolean, required: !1, default: !0 },
|
|
23
|
+
loading: { type: Boolean, required: !1, default: !1 },
|
|
24
|
+
multiple: { type: Boolean, required: !1, default: !1 },
|
|
25
|
+
collapseTags: { type: Boolean, required: !1, default: !1 },
|
|
26
|
+
collapseTagsTooltip: { type: Boolean, required: !1, default: !1 },
|
|
27
|
+
autoSelectSingle: { type: Boolean, required: !1, default: !1 },
|
|
28
|
+
size: { type: String, required: !1, default: void 0 },
|
|
29
|
+
teleported: { type: Boolean, required: !1, default: !0 },
|
|
30
|
+
appendTo: { type: null, required: !1, default: "body" },
|
|
31
|
+
fitInputWidth: { type: Boolean, required: !1, default: !0 },
|
|
32
|
+
popperClass: { type: String, required: !1, default: "" }
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur"],
|
|
35
|
+
setup(n, { expose: C, emit: r }) {
|
|
36
|
+
const l = Symbol("invalid-select-value"), a = n, o = r, i = Q(), c = ue(), B = G(), S = J(null), z = f(
|
|
37
|
+
() => Object.fromEntries(
|
|
38
|
+
Object.entries(i).filter(
|
|
39
|
+
([e]) => e === "class" || e === "style" || e === "id" || e === "name" || e === "role" || e === "title" || e === "tabindex" || e === "remote" || e === "remoteMethod" || e === "remote-method" || e === "debounce" || e === "remoteShowSuffix" || e === "remote-show-suffix" || e.startsWith("data-") || e.startsWith("aria-")
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
), D = f(
|
|
43
|
+
() => ["qy-select__popper", a.popperClass].filter(Boolean).join(" ")
|
|
44
|
+
), K = f(() => {
|
|
45
|
+
const e = g(a.modelValue);
|
|
46
|
+
return e === l ? void 0 : e;
|
|
47
|
+
}), p = f(
|
|
48
|
+
() => a.options.map((e) => ({
|
|
49
|
+
raw: e,
|
|
50
|
+
label: j(e),
|
|
51
|
+
value: O(e),
|
|
52
|
+
disabled: !!e[a.disabledKey]
|
|
53
|
+
}))
|
|
54
|
+
), q = f(() => {
|
|
55
|
+
const e = B.default;
|
|
56
|
+
return e ? e().some(V) : !1;
|
|
57
|
+
}), F = f(() => {
|
|
58
|
+
if (!a.objectIdentityKey) return;
|
|
59
|
+
const e = K.value, t = Array.isArray(e) ? e.some(s) : s(e), u = !q.value && p.value.some((h) => s(h.value));
|
|
60
|
+
return t || u ? a.objectIdentityKey : void 0;
|
|
61
|
+
});
|
|
62
|
+
function V(e) {
|
|
63
|
+
return e.type === X ? !1 : e.type === Y ? typeof e.children == "string" && e.children.trim() !== "" : e.type !== x || !Array.isArray(e.children) ? !0 : e.children.some((t) => Z(t) ? V(t) : typeof t == "string" ? t.trim() !== "" : t != null);
|
|
64
|
+
}
|
|
65
|
+
function s(e) {
|
|
66
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
67
|
+
}
|
|
68
|
+
function b(e) {
|
|
69
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || s(e) ? e : l;
|
|
70
|
+
}
|
|
71
|
+
function g(e) {
|
|
72
|
+
if (e == null) return e;
|
|
73
|
+
if (Array.isArray(e)) {
|
|
74
|
+
const t = e;
|
|
75
|
+
return t.every((u) => b(u) !== l) ? t : l;
|
|
76
|
+
}
|
|
77
|
+
return b(e);
|
|
78
|
+
}
|
|
79
|
+
function j(e) {
|
|
80
|
+
const t = e[a.labelKey] ?? e.label ?? e.value ?? "";
|
|
81
|
+
return typeof t == "string" || typeof t == "number" ? t : typeof t == "boolean" ? String(t) : "";
|
|
82
|
+
}
|
|
83
|
+
function O(e) {
|
|
84
|
+
const t = e[a.valueKey] ?? e.value ?? e.label, u = b(t);
|
|
85
|
+
return u === l ? void 0 : u;
|
|
86
|
+
}
|
|
87
|
+
function _(e) {
|
|
88
|
+
return Array.isArray(e) ? e.length === 0 : e === "" || e === null || e === void 0;
|
|
89
|
+
}
|
|
90
|
+
let d = null;
|
|
91
|
+
$(
|
|
92
|
+
[
|
|
93
|
+
p,
|
|
94
|
+
() => a.modelValue,
|
|
95
|
+
() => a.autoSelectSingle,
|
|
96
|
+
c,
|
|
97
|
+
() => a.multiple
|
|
98
|
+
],
|
|
99
|
+
([e]) => v(e),
|
|
100
|
+
{ flush: "post" }
|
|
101
|
+
), ee(() => v(p.value)), te(() => v(p.value));
|
|
102
|
+
function v(e) {
|
|
103
|
+
if (!_(a.modelValue)) {
|
|
104
|
+
d = null;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (!a.autoSelectSingle || c.value || q.value || e.length !== 1) return;
|
|
108
|
+
const [t] = e;
|
|
109
|
+
if (t.disabled || t.value === void 0) return;
|
|
110
|
+
const u = w(t.value);
|
|
111
|
+
if (d && d.identityKey === a.objectIdentityKey && d.multiple === a.multiple && Object.is(d.candidate, u))
|
|
112
|
+
return;
|
|
113
|
+
d = {
|
|
114
|
+
candidate: u,
|
|
115
|
+
identityKey: a.objectIdentityKey,
|
|
116
|
+
multiple: a.multiple
|
|
117
|
+
};
|
|
118
|
+
const h = a.multiple ? [t.value] : t.value;
|
|
119
|
+
o("update:modelValue", h), o("change", h);
|
|
120
|
+
}
|
|
121
|
+
function w(e) {
|
|
122
|
+
return !s(e) || !a.objectIdentityKey ? e : e[a.objectIdentityKey] ?? e;
|
|
123
|
+
}
|
|
124
|
+
function L(e, t) {
|
|
125
|
+
return `${String(e.value ?? e.label ?? "")}-${t}`;
|
|
126
|
+
}
|
|
127
|
+
function P(e) {
|
|
128
|
+
const t = g(e);
|
|
129
|
+
t !== l && o("update:modelValue", t);
|
|
130
|
+
}
|
|
131
|
+
function U(e) {
|
|
132
|
+
const t = g(e);
|
|
133
|
+
t !== l && o("change", t);
|
|
134
|
+
}
|
|
135
|
+
function N() {
|
|
136
|
+
o("clear");
|
|
137
|
+
}
|
|
138
|
+
function W(e) {
|
|
139
|
+
o("visible-change", e);
|
|
140
|
+
}
|
|
141
|
+
function H(e) {
|
|
142
|
+
o("focus", e);
|
|
143
|
+
}
|
|
144
|
+
function R(e) {
|
|
145
|
+
o("blur", e);
|
|
146
|
+
}
|
|
147
|
+
function E() {
|
|
148
|
+
var e, t;
|
|
149
|
+
(t = (e = S.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
150
|
+
}
|
|
151
|
+
function I() {
|
|
152
|
+
var e, t;
|
|
153
|
+
(t = (e = S.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
154
|
+
}
|
|
155
|
+
C({
|
|
156
|
+
// 仅暴露业务常用焦点方法,复杂下拉行为仍交给 Element Plus 自身处理。
|
|
157
|
+
focus: E,
|
|
158
|
+
blur: I
|
|
159
|
+
});
|
|
160
|
+
const M = { INVALID_VALUE: l, props: a, emit: o, attrs: i, resolvedDisabled: c, slots: B, selectRef: S, adapterAttrs: z, mergedPopperClass: D, controlledModelValue: K, normalizedOptions: p, hasDefaultSlotContent: q, elementValueKey: F, vnodeHasContent: V, isObjectValue: s, preserveSelectValue: b, preserveModelValue: g, getOptionLabel: j, getOptionValue: O, isEmptyValue: _, get lastAutoSelectState() {
|
|
161
|
+
return d;
|
|
162
|
+
}, set lastAutoSelectState(e) {
|
|
163
|
+
d = e;
|
|
164
|
+
}, runAutoSelect: v, getAutoSelectCandidate: w, getOptionKey: L, handleUpdateModelValue: P, handleChange: U, handleClear: N, handleVisibleChange: W, handleFocus: H, handleBlur: R, focus: E, blur: I, get ElOption() {
|
|
165
|
+
return se;
|
|
166
|
+
}, get ElSelect() {
|
|
167
|
+
return de;
|
|
168
|
+
} };
|
|
169
|
+
return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
function pe(n, C, r, l, a, o) {
|
|
173
|
+
return A(), T(l.ElSelect, le({
|
|
174
|
+
ref: "selectRef",
|
|
175
|
+
class: "qy-select"
|
|
176
|
+
}, l.adapterAttrs, {
|
|
177
|
+
"model-value": l.controlledModelValue,
|
|
178
|
+
placeholder: r.placeholder,
|
|
179
|
+
disabled: l.resolvedDisabled,
|
|
180
|
+
clearable: r.clearable,
|
|
181
|
+
filterable: r.filterable,
|
|
182
|
+
"filter-method": r.filterMethod,
|
|
183
|
+
"multiple-limit": r.multipleLimit,
|
|
184
|
+
"allow-create": r.allowCreate,
|
|
185
|
+
"validate-event": r.validateEvent,
|
|
186
|
+
loading: r.loading,
|
|
187
|
+
multiple: r.multiple,
|
|
188
|
+
"collapse-tags": r.collapseTags,
|
|
189
|
+
"collapse-tags-tooltip": r.collapseTagsTooltip,
|
|
190
|
+
size: r.size,
|
|
191
|
+
teleported: r.teleported,
|
|
192
|
+
"fit-input-width": r.fitInputWidth,
|
|
193
|
+
"popper-class": l.mergedPopperClass,
|
|
194
|
+
"append-to": r.appendTo,
|
|
195
|
+
"value-key": l.elementValueKey,
|
|
196
|
+
"onUpdate:modelValue": l.handleUpdateModelValue,
|
|
197
|
+
onChange: l.handleChange,
|
|
198
|
+
onClear: l.handleClear,
|
|
199
|
+
onVisibleChange: l.handleVisibleChange,
|
|
200
|
+
onFocus: l.handleFocus,
|
|
201
|
+
onBlur: l.handleBlur
|
|
202
|
+
}), ae({
|
|
203
|
+
default: m(() => [
|
|
204
|
+
l.hasDefaultSlotContent ? y(n.$slots, "default", {}, void 0, !0, 0) : (A(!0), re(
|
|
205
|
+
x,
|
|
206
|
+
{ key: 1 },
|
|
207
|
+
ne(l.normalizedOptions, (i, c) => (A(), T(l.ElOption, {
|
|
208
|
+
key: l.getOptionKey(i, c),
|
|
209
|
+
label: i.label,
|
|
210
|
+
value: i.value,
|
|
211
|
+
disabled: i.disabled
|
|
212
|
+
}, null, 8, ["label", "value", "disabled"]))),
|
|
213
|
+
128
|
|
214
|
+
/* KEYED_FRAGMENT */
|
|
215
|
+
))
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
/* DYNAMIC */
|
|
219
|
+
}, [
|
|
220
|
+
n.$slots.prefix ? {
|
|
221
|
+
name: "prefix",
|
|
222
|
+
fn: m(() => [
|
|
223
|
+
y(n.$slots, "prefix", {}, void 0, !0)
|
|
224
|
+
]),
|
|
225
|
+
key: "0"
|
|
226
|
+
} : void 0,
|
|
227
|
+
n.$slots.empty ? {
|
|
228
|
+
name: "empty",
|
|
229
|
+
fn: m(() => [
|
|
230
|
+
y(n.$slots, "empty", {}, void 0, !0)
|
|
231
|
+
]),
|
|
232
|
+
key: "1"
|
|
233
|
+
} : void 0,
|
|
234
|
+
n.$slots.loading ? {
|
|
235
|
+
name: "loading",
|
|
236
|
+
fn: m(() => [
|
|
237
|
+
y(n.$slots, "loading", {}, void 0, !0)
|
|
238
|
+
]),
|
|
239
|
+
key: "2"
|
|
240
|
+
} : void 0,
|
|
241
|
+
n.$slots.tag ? {
|
|
242
|
+
name: "tag",
|
|
243
|
+
fn: m((i) => [
|
|
244
|
+
y(n.$slots, "tag", oe(ie(i)), void 0, !0)
|
|
245
|
+
]),
|
|
246
|
+
key: "3"
|
|
247
|
+
} : void 0
|
|
248
|
+
]), 1040, ["model-value", "placeholder", "disabled", "clearable", "filterable", "filter-method", "multiple-limit", "allow-create", "validate-event", "loading", "multiple", "collapse-tags", "collapse-tags-tooltip", "size", "teleported", "fit-input-width", "popper-class", "append-to", "value-key"]);
|
|
249
|
+
}
|
|
250
|
+
const ge = /* @__PURE__ */ fe(ce, [["render", pe], ["__scopeId", "data-v-27904def"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-select/index.vue"]]);
|
|
251
|
+
export {
|
|
252
|
+
ge as S
|
|
253
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),f=require("element-plus"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=t.defineComponent({name:"QyLink",inheritAttrs:!1,__name:"index",props:{type:{type:String,default:void 0},underline:{type:[Boolean,String],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:[String,Object,Function],default:void 0}},emits:["click"],setup(i,{expose:a,emit:r}){a();const n=i,l=r,o=t.useAttrs(),c=t.computed(()=>n.underline===!0?"hover":n.underline===!1?"never":n.underline),d=t.computed(()=>Object.fromEntries(Object.entries(o).filter(([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-"))));function u(e){l("click",e)}const s={props:n,emit:l,attrs:o,normalizedUnderline:c,safeAttrs:d,handleClick:u,get ElLink(){return f.ElLink}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function m(i,a,r,n,l,o){return t.openBlock(),t.createBlock(n.ElLink,t.mergeProps(n.safeAttrs,{type:r.type,underline:n.normalizedUnderline,disabled:r.disabled,href:r.href,target:r.target,icon:r.icon,onClick:n.handleClick}),{icon:t.withCtx(()=>[t.renderSlot(i.$slots,"icon")]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16,["type","underline","disabled","href","target","icon"])}const g=p._export_sfc(_,[["render",m],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-link/index.vue"]]);exports.Link=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),_=require("element-plus"),b=require("@element-plus/icons-vue"),m=require("./utils-DpkN3Zat.cjs"),z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N=e.defineComponent({name:"QyImage",__name:"index",props:{src:{type:String,required:!1,default:""},alt:{type:String,required:!1,default:""},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},size:{type:Number,required:!1,default:64},fit:{type:String,required:!1,default:"cover"},placeholder:{type:Boolean,required:!1,default:!0},lazy:{type:Boolean,required:!1,default:!0},compressor:{type:[Boolean,Object],required:!1,default:!0},preview:{type:Boolean,required:!1,default:!1},previewList:{type:Array,required:!1,default:()=>[]},initialIndex:{type:Number,required:!1,default:0}},emits:["load","error","fallback","preview"],setup(a,{expose:c,emit:s}){c();const r=a,l=s,i=e.ref(!1),d=e.ref("");let o=0;e.onBeforeUnmount(()=>{o+=1});const u=e.computed(()=>m.normalizeImageSrc(r.src)),f=e.computed(()=>({width:r.width??r.size,height:r.height??r.size})),q=e.computed(()=>({width:p(f.value.width),height:p(f.value.height)})),w=e.computed(()=>r.placeholder||i.value),y=e.computed(()=>r.preview&&!!u.value),g=e.computed(()=>(r.previewList.length?r.previewList:[r.src]).map(n=>m.normalizeImageSrc(n)).filter(Boolean));e.watch(()=>[r.src,r.compressor],h,{immediate:!0,deep:!0});async function h(){const t=++o;if(d.value="",i.value=!1,!!r.src)try{const n=await m.resolveQyImageDisplaySrc(r.src,{compressor:r.compressor});if(t!==o)return;d.value=n.src,n.source==="fallback"&&l("fallback",n.src)}catch{if(t!==o)return;i.value=!1,d.value=u.value}}function I(t){l("load",t)}function S(t){i.value=!0,l("error",t)}function E(){y.value&&(m.openQyImagePreview({urlList:g.value,initialIndex:r.initialIndex}),l("preview",u.value))}function p(t){return typeof t=="number"?`${t}px`:t}const v={props:r,emit:l,imageError:i,displaySrc:d,get requestId(){return o},set requestId(t){o=t},normalizedSrc:u,imageSize:f,rootStyle:q,showPlaceholder:w,previewEnabled:y,previewUrls:g,loadImage:h,handleLoad:I,handleError:S,handlePreview:E,normalizeCssSize:p,get ElIcon(){return _.ElIcon},get ElImage(){return _.ElImage},get PictureFilled(){return b.PictureFilled}};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),k={class:"qy-image__state qy-image__state--error"},P={class:"qy-image__state qy-image__state--empty"};function V(a,c,s,r,l,i){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-image",{"qy-image--previewable":r.previewEnabled}]),style:e.normalizeStyle(r.rootStyle),onClick:r.handlePreview},[r.displaySrc&&!r.imageError?(e.openBlock(),e.createBlock(r.ElImage,{key:0,class:"qy-image__inner",src:r.displaySrc,alt:s.alt,fit:s.fit,lazy:s.lazy,onLoad:r.handleLoad,onError:r.handleError},{placeholder:e.withCtx(()=>[e.renderSlot(a.$slots,"placeholder",{},()=>[c[0]||(c[0]=e.createElementVNode("div",{class:"qy-image__state"},[e.createElementVNode("span",{class:"qy-image__loading"})],-1))],!0)]),error:e.withCtx(()=>[e.renderSlot(a.$slots,"error",{},()=>[e.createElementVNode("div",k,[e.createVNode(r.ElIcon,{size:20},{default:e.withCtx(()=>[e.createVNode(r.PictureFilled)]),_:1})])],!0)]),_:3},8,["src","alt","fit","lazy"])):r.imageError&&a.$slots.error?e.renderSlot(a.$slots,"error",{},void 0,!0,1):r.showPlaceholder?e.renderSlot(a.$slots,"empty",{},()=>[e.createElementVNode("div",P,[e.createVNode(r.ElIcon,{size:20},{default:e.withCtx(()=>[e.createVNode(r.PictureFilled)]),_:1})])],!0,2):e.createCommentVNode("v-if",!0)],6)}const B=z._export_sfc(N,[["render",V],["__scopeId","data-v-ba6624fb"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-image/index.vue"]]);exports.Image=B;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N=e.defineComponent({name:"QyDropdown",inheritAttrs:!1,__name:"index",props:{items:{type:Array,required:!1,default:()=>[]},disabled:{type:Boolean,required:!1,default:!1},placement:{type:String,required:!1,default:"bottom-end"},trigger:{type:String,required:!1,default:"click"},closeOnSelect:{type:Boolean,required:!1,default:!0},panelWidth:{type:[Number,String],required:!1},width:{type:[Number,String],required:!1},maxHeight:{type:[Number,String],required:!1},modelValue:{type:Boolean,required:!1,default:void 0},ariaLabel:{type:String,required:!1}},emits:["select","open-change","update:modelValue"],setup(a,{expose:u,emit:p}){u();const t=a,l=p,y=e.useAttrs(),n=e.ref(null),s=e.ref(!1),f=e.computed(()=>t.modelValue!==void 0),o=e.computed(()=>t.disabled?!1:f.value?!!t.modelValue:s.value),w=e.computed(()=>t.items.filter(r=>!r.hidden)),v=e.computed(()=>t.panelWidth??t.width),q=e.computed(()=>[`qy-dropdown--${t.placement}`,{"is-open":o.value,"is-disabled":t.disabled}]),S=e.computed(()=>({width:m(v.value),maxHeight:m(t.maxHeight),overflowX:"hidden",overflowY:t.maxHeight?"auto":void 0})),C=e.computed(()=>({class:["qy-dropdown__trigger",{"is-open":o.value,"is-disabled":t.disabled}],type:"button",disabled:t.disabled||void 0,"aria-haspopup":"menu","aria-expanded":o.value?"true":"false","aria-label":t.ariaLabel||void 0,onClick:b,onContextmenu:_,onKeydown:k}));function m(r){return typeof r=="number"?`${r}px`:r}function d(r){t.disabled||r===o.value||(f.value||(s.value=r),l("update:modelValue",r),l("open-change",r))}function b(r){t.trigger!=="click"||t.disabled||(r.stopPropagation(),d(!o.value))}function _(r){t.trigger!=="contextmenu"||t.disabled||(r.preventDefault(),r.stopPropagation(),d(!0))}function k(r){t.disabled||t.trigger==="click"&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),d(!o.value))}async function B(r){var i,c;r.key!=="Escape"||!o.value||(r.preventDefault(),r.stopPropagation(),d(!1),await e.nextTick(),o.value||(c=(i=n.value)==null?void 0:i.querySelector(".qy-dropdown__trigger"))==null||c.focus())}function E(r,i){if(r.disabled){i.preventDefault();return}l("select",r),t.closeOnSelect&&d(!1)}function x(r){return{"is-disabled":r.disabled,"is-danger":r.danger,"is-active":r.active,"is-divided":r.divided}}function V(r){return r?e.markRaw(e.toRaw(r)):void 0}function g(r){var c;const i=r.target;!o.value||!(i instanceof Node)||(c=n.value)!=null&&c.contains(i)||d(!1)}e.onMounted(()=>{document.addEventListener("click",g)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",g)});const h={props:t,emit:l,attrs:y,rootRef:n,innerOpen:s,isControlled:f,isOpen:o,visibleItems:w,panelWidth:v,dropdownClasses:q,panelStyle:S,triggerAttrs:C,normalizeSize:m,requestOpen:d,handleTriggerClick:b,handleTriggerContextmenu:_,handleTriggerKeydown:k,handleEscape:B,handleItemClick:E,itemClasses:x,normalizeIcon:V,handleDocumentClick:g};return Object.defineProperty(h,"__isScriptSetup",{enumerable:!1,value:!0}),h}}),O={class:"qy-dropdown__trigger-label"},I=["aria-hidden"],z=["disabled","title","data-qy-dropdown-key","data-danger","data-active","data-disabled","aria-disabled","onClick"],P={key:0,class:"qy-dropdown__item-icon","aria-hidden":"true"},A={class:"qy-dropdown__item-label"},L={key:1,class:"qy-dropdown__empty"};function T(a,u,p,t,l,y){return e.openBlock(),e.createElementBlock("div",e.mergeProps({ref:"rootRef"},t.attrs,{class:["qy-dropdown",t.dropdownClasses],onKeydown:t.handleEscape}),[e.renderSlot(a.$slots,"trigger",{open:t.isOpen,disabled:p.disabled,attrs:t.triggerAttrs},()=>[e.createElementVNode("button",e.normalizeProps(e.guardReactiveProps(t.triggerAttrs)),[e.createElementVNode("span",O,e.toDisplayString(p.ariaLabel||"更多"),1)],16)],!0),e.withDirectives(e.createElementVNode("div",{class:"qy-dropdown__panel",style:e.normalizeStyle(t.panelStyle),"aria-hidden":t.isOpen?void 0:"true",role:"menu"},[e.renderSlot(a.$slots,"header",{},void 0,!0),t.visibleItems.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.visibleItems,n=>(e.openBlock(),e.createElementBlock("button",{key:n.key,type:"button",class:e.normalizeClass(["qy-dropdown__item",t.itemClasses(n)]),disabled:n.disabled,title:n.title,"data-qy-dropdown-key":n.key,"data-danger":n.danger?"true":void 0,"data-active":n.active?"true":void 0,"data-disabled":n.disabled?"true":void 0,"aria-disabled":n.disabled?"true":void 0,role:"menuitem",onClick:s=>t.handleItemClick(n,s)},[n.icon?(e.openBlock(),e.createElementBlock("span",P,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.normalizeIcon(n.icon))))])):e.createCommentVNode("v-if",!0),e.createElementVNode("span",A,[e.renderSlot(a.$slots,"item",{item:n},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0)])],10,z))),128)):(e.openBlock(),e.createElementBlock("div",L,[e.renderSlot(a.$slots,"empty",{},()=>[u[0]||(u[0]=e.createTextVNode("暂无数据",-1))],!0)])),e.renderSlot(a.$slots,"footer",{},void 0,!0)],12,I),[[e.vShow,t.isOpen]])],16)}const H=D._export_sfc(N,[["render",T],["__scopeId","data-v-5619211c"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-dropdown/index.vue"]]);exports.Dropdown=H;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),s=require("element-plus"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),a=t=>t==="class"||t==="style"||t==="id"||t==="role"||t.startsWith("data-")||t.startsWith("aria-"),u=i.defineComponent({name:"QyStep",inheritAttrs:!1,props:{title:{type:String,default:""},description:{type:String,default:""},icon:{type:[String,Object],default:""},status:{type:String,default:""}},setup(t,{attrs:n,slots:e}){const r=i.computed(()=>Object.fromEntries(Object.entries(n).filter(([c])=>a(c))));return()=>i.h(s.ElStep,{...r.value,title:t.title,description:t.description,icon:t.icon,status:t.status},{...e.icon?{icon:e.icon}:{},...e.title?{title:e.title}:{},...e.description?{description:e.description}:{}})}}),p=o._export_sfc(u,[["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-step/index.vue"]]);exports.Step=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),s=require("element-plus"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),o=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"),l=e.defineComponent({name:"QyRow",inheritAttrs:!1,props:{tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,default:"start"},align:String},setup(t,{attrs:i,slots:r}){const n=e.computed(()=>Object.fromEntries(Object.entries(i).filter(([a])=>o(a))));return()=>e.h(s.ElRow,{...n.value,tag:t.tag,gutter:t.gutter,justify:t.justify,align:t.align},r.default?{default:r.default}:void 0)}}),f=u._export_sfc(l,[["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-row/index.vue"]]);exports.Row=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),K=require("element-plus"),T=require("./overlay-stack-DeKq7jZu.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C=1e3,z=t.defineComponent({name:"QyPopover",inheritAttrs:!1,__name:"index",props:{enterable:{type:Boolean,default:!0},teleported:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},trigger:{type:String,default:"click"},placement:{type:String,default:"bottom"},effect:{type:String,default:"light"},width:{type:[Number,String],default:240},offset:{type:Number,default:12},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:200},showArrow:{type:Boolean,default:!0},transition:{type:String,default:void 0},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:void 0}},emits:["update:open","open-change","open","close"],setup(g,{expose:D,emit:r}){const n=g,f=r,u=t.computed(()=>n.open!==void 0),d=u.value&&n.open===!0&&!n.disabled,l=t.ref(d),p=t.ref(d),k=t.ref(d),a=t.ref(null),E=t.computed(()=>n.disabled?!1:u.value?n.open===!0:l.value);let o;const S=`qy-popover-${t.getCurrentInstance().uid}`;let c=!1,s;const q=t.computed(()=>typeof n.width=="number"?`${n.width}px`:n.width),N=t.computed(()=>({"--qy-popover-width":q.value,"--qy-popover-mobile-gutter":"24px"})),y=t.useSlots(),I=t.computed(()=>{var e;return((e=y.reference)==null?void 0:e.call(y))??[]});function w(){o&&(clearTimeout(o),o=void 0),a.value=null}function L(e){o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,a.value===e&&(a.value=null)},C)}function i(){if(c)return;const e=E.value;p.value!==e&&(c=!0,s=e,p.value=e)}function v(e){if(!(e&&n.disabled)){if(!u.value){if(l.value===e)return;l.value=e,f("update:open",e),i();return}a.value!==e&&(a.value===null&&n.open===e||(a.value=e,L(e),f("update:open",e),i()))}}function _(e){e===p.value&&(!c||s!==e||(c=!1,s=void 0,e!==k.value&&(k.value=e,a.value===e&&w(),f("open-change",e),f(e?"open":"close"),i())))}function O(e){v(e),i()}function W(){_(!0)}function j(){_(!1)}function B(){v(!1)}const h=new WeakSet;function b(e){if(e.key!=="Escape"&&e.code!=="Escape"||!p.value||e.defaultPrevented)return;const A=document.querySelector(`.${S}`);T.isTopmostVisibleLayer(A)&&(T.claimOverlayEscape(e),h.add(e))}function m(e){h.has(e)&&(h.delete(e),e.stopPropagation(),!e.defaultPrevented&&(e.preventDefault(),e.stopImmediatePropagation(),v(!1),i()))}t.watch(E,()=>i()),t.watch(u,e=>{w(),e?l.value=n.open===!0:l.value=p.value,i()}),t.watch(()=>n.open,(e,A)=>{!u.value||a.value===null||(e===a.value||e!==A)&&w()}),t.watch(()=>n.disabled,e=>{e?v(!1):i()}),t.onBeforeUnmount(()=>{window.removeEventListener("keydown",b,!0),document.body.removeEventListener("keydown",m),window.removeEventListener("keydown",m),c=!1,s=void 0,o&&clearTimeout(o)}),t.onMounted(()=>{window.addEventListener("keydown",b,!0),document.body.addEventListener("keydown",m),window.addEventListener("keydown",m)}),D({close:B});const P={props:n,emit:f,isControlled:u,initialVisible:d,requestedDesired:l,renderedDesired:p,actualVisible:k,pendingIntent:a,targetDesired:E,CONTROLLED_ACK_WINDOW:C,get acknowledgementTimer(){return o},set acknowledgementTimer(e){o=e},popperId:S,get transitionActive(){return c},set transitionActive(e){c=e},get transitionDirection(){return s},set transitionDirection(e){s=e},normalizedWidth:q,popperStyle:N,slots:y,referenceNodes:I,clearAcknowledgement:w,startAcknowledgementWindow:L,pumpTransition:i,requestIntent:v,confirmActual:_,handleElementVisibility:O,handleAfterEnter:W,handleAfterLeave:j,close:B,ownedEscapeEvents:h,captureEscapeOwner:b,handleKeydown:m,get ElPopover(){return K.ElPopover}};return Object.defineProperty(P,"__isScriptSetup",{enumerable:!1,value:!0}),P}});function F(g,D,r,n,f,u){return t.openBlock(),t.createBlock(n.ElPopover,{visible:n.renderedDesired,trigger:r.trigger,placement:r.placement,effect:r.effect,width:r.width,offset:r.offset,"show-after":r.showDelay,"hide-after":r.hideDelay,"show-arrow":r.showArrow,transition:r.transition,disabled:r.disabled,enterable:r.enterable,teleported:r.teleported,"append-to":r.appendTo,"popper-style":n.popperStyle,"popper-class":`qy-popover-popper ${n.popperId}`,"onUpdate:visible":n.handleElementVisibility,onAfterEnter:n.handleAfterEnter,onAfterLeave:n.handleAfterLeave},{reference:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.referenceNodes,(d,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d),{key:d.key??l}))),128))]),default:t.withCtx(()=>[t.renderSlot(g.$slots,"default")]),_:3},8,["visible","trigger","placement","effect","width","offset","show-after","hide-after","show-arrow","transition","disabled","enterable","teleported","append-to","popper-style","popper-class"])}const H=U._export_sfc(z,[["render",F],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-popover/index.vue"]]);exports.Popover=H;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),a=e.defineComponent({name:"QyTabPane",inheritAttrs:!1,props:{label:{type:String,default:""},name:{type:[String,Number],required:!1},closable:{type:Boolean,required:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},setup(){return()=>null}}),t=n._export_sfc(a,[["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-tab-pane/index.vue"]]);exports.TabPane=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),q=require("element-plus"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean],required:!1},value:{type:[String,Number,Boolean],required:!1,default:!0},label:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:void 0},size:{type:String,required:!1,default:void 0},name:{type:String,required:!1},border:{type:Boolean,required:!1,default:!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(i,{expose:c,emit:f}){c();const e=i,n=f,d=a.useAttrs(),b=a.computed(()=>Object.fromEntries(Object.entries(d).filter(([r])=>r==="class"||r==="style"||r==="role"||r==="title"||r.startsWith("data-")||r.startsWith("aria-")))),t=a.computed(()=>e.value),p=a.ref(null);let l=null;const _=a.computed(()=>e.modelValue!==void 0?e.modelValue:t.value===!0?!1:t.value===!1?!0:typeof t.value=="string"?`__qy-radio-unselected__${t.value}`:Number.NaN);a.onMounted(()=>{var r;l=((r=p.value)==null?void 0:r.$el.querySelector("input.el-radio__original"))??null,l==null||l.addEventListener("keydown",s)}),a.onBeforeUnmount(()=>{l==null||l.removeEventListener("keydown",s)});function u(){return!e.disabled&&e.modelValue!==t.value}function g(){u()&&n("update:modelValue",t.value)}function v(){u()&&n("change",t.value)}function s(r){if(r.key!==" "&&r.code!=="Space")return;const o=r.target;!o||o.tagName!=="INPUT"||o.type!=="radio"||o.disabled||o.checked||(r.preventDefault(),o.click())}function y(r){n("focus",r)}function h(r){n("blur",r)}const m={props:e,emit:n,attrs:d,safeAttrs:b,resolvedValue:t,radioRef:p,get radioInput(){return l},set radioInput(r){l=r},internalModelValue:_,canSelect:u,handleUpdateModelValue:g,handleChange:v,handleKeydown:s,handleFocus:y,handleBlur:h,get ElRadio(){return q.ElRadio}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}});function x(i,c,f,e,n,d){return a.openBlock(),a.createBlock(e.ElRadio,a.mergeProps({ref:"radioRef"},e.safeAttrs,{class:"qy-radio","model-value":e.internalModelValue,value:e.resolvedValue,label:e.props.label,disabled:e.props.disabled,size:e.props.size,name:e.props.name,border:e.props.border,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,onFocusCapture:e.handleFocus,onBlurCapture:e.handleBlur}),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(e.props.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"])}const B=S._export_sfc(V,[["render",x],["__scopeId","data-v-4c863d1f"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-radio/index.vue"]]);exports.Radio=B;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("element-plus"),e=require("vue"),q=require("./index-DZ9ixuhw.cjs"),w=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({name:"QyTableColumnSettings",__name:"index",props:{modelValue:{type:Boolean,required:!0},settings:{type:Array,required:!1,default:()=>[]},defaultSettings:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:"列设置"},width:{type:[String,Number],required:!1,default:"700px"},showDeleteCache:{type:Boolean,required:!1,default:!0},unconfigurableTypes:{type:Array,required:!1,default:()=>["index","selection","expand","setup"]}},emits:["update:modelValue","confirm","reset","cancel","delete-cache","change"],setup(y,{expose:l,emit:f}){l();const t=y,c=f,d=e.ref([]),r=e.ref(""),u=n=>n.map(o=>({...o})),_=()=>{var n;d.value=u(t.settings),r.value=((n=d.value[0])==null?void 0:n.key)||""};e.watch(()=>t.modelValue,n=>{n&&_()},{immediate:!0});const i=()=>{c("change",u(d.value))},m=n=>d.value.find(o=>o.key===n),a=e.computed(()=>m(r.value)),b=e.computed(()=>d.value.findIndex(n=>n.key===r.value)),p=n=>!!(n.type&&t.unconfigurableTypes.includes(n.type)),C=n=>n==="left"?"left":n==="right"?"right":"none",N=n=>n.type==="index"?"序号":n.type==="selection"?"多选":n.type==="expand"?"展开":n.type==="setup"?"设置":n.label||n.prop||n.key,h=n=>{n&&(r.value=n.key)},k=n=>{a.value&&v(a.value.key,n)},v=(n,o)=>{const s=m(n);s&&(s.fixed=o,i())},V={props:t,emit:c,draftSettings:d,currentKey:r,cloneSettings:u,syncDraft:_,emitChange:i,findSetting:m,currentSetting:a,currentIndex:b,isUnconfigurable:p,fixedClass:C,displayLabel:N,selectSetting:h,setCurrentFixed:k,setFixed:v,setVisible:(n,o)=>{const s=m(n);!s||p(s)||(s.visible=o,i())},setWidth:(n,o)=>{const s=m(n);s&&(s.width=o,i())},move:(n,o)=>{if(n===o||n<0||n>=d.value.length||o<0||o>=d.value.length)return;const s=[...d.value],[x]=s.splice(n,1);s.splice(o,0,x),d.value=s,r.value=x.key,i()},reset:()=>{var o,s;const n=(o=t.defaultSettings)!=null&&o.length?t.defaultSettings:t.settings;d.value=u(n),r.value=((s=d.value[0])==null?void 0:s.key)||"",c("reset",u(d.value)),i()},handleCancel:()=>{c("cancel"),c("update:modelValue",!1)},confirm:()=>{c("confirm",u(d.value)),c("update:modelValue",!1)},QySwitch:q.Switch};return Object.defineProperty(V,"__isScriptSetup",{enumerable:!1,value:!0}),V}}),E={class:"qy-table-column-settings"},B={class:"qy-table-column-settings__table-wrap"},T=["data-testid","onClick"],I={class:"qy-table-column-settings__side","data-testid":"settings-side-actions"},D={class:"qy-table-column-settings__side-main"},U={key:0,class:"qy-table-column-settings__selected is-empty"},F={key:1,class:"qy-table-column-settings__selected"},A={class:"qy-table-column-settings__side-footer"};function L(y,l,f,t,c,d){const r=g.ElTableColumn,u=g.ElInput,_=g.ElTable,i=g.ElButton,m=g.ElDialog;return e.openBlock(),e.createBlock(m,{"model-value":f.modelValue,title:f.title,width:f.width,"append-to-body":"","before-close":t.handleCancel},{footer:e.withCtx(()=>[e.createVNode(i,{"data-action":"cancel",onClick:t.handleCancel},{default:e.withCtx(()=>[...l[17]||(l[17]=[e.createTextVNode(" 取消 ",-1)])]),_:1}),e.createVNode(i,{type:"primary","data-action":"confirm",onClick:t.confirm},{default:e.withCtx(()=>[...l[18]||(l[18]=[e.createTextVNode(" 确定 ",-1)])]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",E,[e.createElementVNode("div",B,[e.createVNode(_,{data:t.draftSettings,"row-key":"key",height:"400px",border:"","highlight-current-row":"","data-testid":"settings-table",onCurrentChange:t.selectSetting,onRowClick:t.selectSetting},{default:e.withCtx(()=>[e.createVNode(r,{label:"列名",prop:"label","show-overflow-tooltip":""},{default:e.withCtx(({row:a})=>[e.createElementVNode("div",{class:"qy-table-column-settings__name","data-testid":`table-row-${a.key}`,onClick:b=>t.selectSetting(a)},[e.createElementVNode("span",{class:e.normalizeClass(["qy-table-column-settings__fixed-mark",`is-${t.fixedClass(a.fixed)}`]),"aria-hidden":"true"},null,2),e.createElementVNode("span",null,e.toDisplayString(t.displayLabel(a)),1)],8,T)]),_:1}),e.createVNode(r,{label:"列宽(px)",prop:"width",width:"150"},{default:e.withCtx(({row:a})=>[e.createVNode(u,{"model-value":a.width,size:"small",placeholder:"留空自动设置宽度","data-testid":"width","onUpdate:modelValue":b=>t.setWidth(a.key,b)},null,8,["model-value","onUpdate:modelValue"])]),_:1}),e.createVNode(r,{label:"列显示",prop:"visible",width:"100"},{default:e.withCtx(({row:a})=>[e.createVNode(t.QySwitch,{"model-value":a.visible,disabled:t.isUnconfigurable(a),"data-testid":"visible-switch","onUpdate:modelValue":b=>t.setVisible(a.key,!!b)},null,8,["model-value","disabled","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",I,[e.createElementVNode("div",D,[t.currentSetting?(e.openBlock(),e.createElementBlock("div",F,e.toDisplayString(t.displayLabel(t.currentSetting)),1)):(e.openBlock(),e.createElementBlock("div",U," 请选择列 ")),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!t.currentSetting||t.currentIndex===0,"data-action":"top",onClick:l[0]||(l[0]=a=>t.move(t.currentIndex,0))},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-top"},null,-1),e.createElementVNode("span",null,"置顶",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!t.currentSetting||t.currentIndex===0,"data-action":"up",onClick:l[1]||(l[1]=a=>t.move(t.currentIndex,t.currentIndex-1))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-up"},null,-1),e.createElementVNode("span",null,"上移",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!t.currentSetting||t.currentIndex===t.draftSettings.length-1,"data-action":"down",onClick:l[2]||(l[2]=a=>t.move(t.currentIndex,t.currentIndex+1))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-down"},null,-1),e.createElementVNode("span",null,"下移",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!t.currentSetting||t.currentIndex===t.draftSettings.length-1,"data-action":"bottom",onClick:l[3]||(l[3]=a=>t.move(t.currentIndex,t.draftSettings.length-1))},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-bottom"},null,-1),e.createElementVNode("span",null,"置底",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!t.currentSetting,"data-action":"fixed-left",onClick:l[4]||(l[4]=a=>t.setCurrentFixed("left"))},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-fixed-left"},null,-1),e.createElementVNode("span",null,"固定左边",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!t.currentSetting,"data-action":"fixed-right",onClick:l[5]||(l[5]=a=>t.setCurrentFixed("right"))},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-fixed-right"},null,-1),e.createElementVNode("span",null,"固定右边",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!t.currentSetting,"data-action":"clear-fixed",onClick:l[6]||(l[6]=a=>t.setCurrentFixed(!1))},{default:e.withCtx(()=>[...l[14]||(l[14]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-clear-fixed"},null,-1),e.createElementVNode("span",null,"取消固定",-1)])]),_:1},8,["disabled"])]),e.createElementVNode("div",A,[e.createVNode(i,{"data-action":"reset",onClick:t.reset},{default:e.withCtx(()=>[...l[15]||(l[15]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-reset"},null,-1),e.createElementVNode("span",null,"恢复默认",-1)])]),_:1}),f.showDeleteCache?(e.openBlock(),e.createBlock(i,{key:0,type:"danger",plain:"","data-action":"delete-cache",onClick:l[7]||(l[7]=a=>t.emit("delete-cache"))},{default:e.withCtx(()=>[...l[16]||(l[16]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-reset"},null,-1),e.createElementVNode("span",null,"删除缓存",-1)])]),_:1})):e.createCommentVNode("v-if",!0)])])])]),_:1},8,["model-value","title","width"])}const Q=w._export_sfc(S,[["render",L],["__scopeId","data-v-e7d18a6c"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-table-column-settings/index.vue"]]);exports.TableColumnSettings=Q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const M=require("element-plus"),t=require("vue"),I=require("@element-plus/icons-vue"),g=require("element-plus"),Ze=require("./js.cookie-BmJmHEx1.cjs"),Je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Qe="Admin-Token";function Ne(T=Qe){return Ze.api.get(T)}const Ge=Object.assign({name:"QyUpload"},{__name:"index",props:{modelValue:{type:[Object,Array,String],default:void 0},selectedFiles:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},variant:{type:String,default:"media-card"},defaultValue:{type:Object,default:()=>({files:"",text:""})},valueFormat:{type:String,default:"object"},showText:{type:Boolean,default:!0},showPasteInput:{type:Boolean,default:!1},pastePlaceholder:{type:String,default:"输入文字"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},fileType:{type:Array,default:()=>[]},fileSize:{type:Number,default:10},limit:{type:Number,default:9},isShowTip:{type:Boolean,default:!1},api:{type:String,default:"/permission-api/common/uploads"},name:{type:String,default:"file"},tokenKey:{type:String,default:"Admin-Token"},supportVideo:{type:Boolean,default:!1},size:{type:String,default:"default"},disableDrag:{type:Boolean,default:!1},callBack:{type:Function,default:null},extraData:{type:Object,default:()=>({})},uploadRequest:{type:Function,default:null}},emits:["update:modelValue","update:selectedFiles","selectedFilesChange","change","success","error","remove","invalid","preview"],setup(T,{expose:r,emit:p}){const n=T,m=p,ie=t.ref(null),y=t.ref(null),L=t.ref(null),s=t.ref([]),P=t.ref(null),W=t.ref(null),k=new Map,U=new WeakMap;let d=Date.now(),b=!1;const C=t.ref(!1),X=t.ref([]),re=t.ref(0),se=t.ref(!1),ue=t.ref(""),de=t.ref(""),q=new Set,B=new Map;function E(e){q.delete(e)&&URL.revokeObjectURL(e)}function H(){for(const e of q)E(e)}function S(e){const a=B.get(e);a&&(B.delete(e),a.close())}function Z(){for(const e of B.keys())S(e)}function J(e){var a;(a=k.get(e))==null||a()}function Q(){for(const e of k.values())e()}const j=t.ref(!1),_=t.ref(""),De=t.ref(!1);t.onMounted(()=>{n.modelValue!==void 0||!n.autoUpload||Y(n.defaultValue)});const Fe=t.computed(()=>({large:"160px",default:"140px",small:"80px"})[n.size]??n.size),w=g.useFormDisabled(),Me=t.computed(()=>s.value.some(e=>e.status==="uploading")),Te=t.computed(()=>n.variant==="file-list"||n.supportVideo?"text":"picture-card"),ce=t.computed(()=>n.supportVideo?1:!n.autoUpload&&!n.multiple?2:n.limit),qe=t.computed(()=>{var e;return n.isShowTip&&(n.fileSize||((e=x.value)==null?void 0:e.length))}),x=t.computed(()=>{var e;return(e=n.fileType)!=null&&e.length?n.fileType.map(a=>String(a).trim().replace(/^\./,"").toLowerCase()).filter(Boolean):n.variant==="file-list"?[]:n.supportVideo?["mp4","mov","avi"]:["jpg","jpeg","png","gif","webp"]}),z=t.computed(()=>{if(!n.autoUpload&&!n.multiple)return!1;const e=n.supportVideo?1:n.limit;return s.value.length>=e}),Ee=t.computed(()=>x.value.map(e=>`.${e}`).join(",")),Se=t.computed(()=>({"qy-upload--attachment-card":n.variant==="attachment-card","qy-upload--reached-limit":z.value,"qy-upload--disabled":w.value,"qy-upload--video":n.supportVideo,"qy-upload--without-text":!n.showText&&!n.showPasteInput}));t.watch(_,()=>{b||D()}),t.watch(()=>n.modelValue,e=>{n.autoUpload&&e!==void 0&&Y(e)},{immediate:!0,deep:!0}),t.watch(()=>[n.autoUpload,n.selectedFiles],([e,a])=>{e||(s.value=N(a))},{immediate:!0,deep:!0});function G(e){return Array.isArray(e)?e.filter(Boolean):e?String(e).split(",").filter(Boolean):[]}function fe(e){return Array.isArray(e)?{files:e,text:""}:typeof e=="string"?{files:G(e),text:""}:e&&typeof e=="object"?{files:G(e.files),text:e.text??""}:{files:[],text:""}}function pe(e=[]){return e.map((a,l)=>({name:(n.variant==="attachment-card"?String(a).split(/[?#]/,1)[0]:String(a)).split("/").pop()||`file-${l}`,url:a,status:"success",uid:g.genFileId()}))}function N(e=[]){return e.filter(Boolean).map((a,l)=>{const o=t.toRaw(a);return{name:o.name,raw:o,status:"ready",uid:me(o,l)}})}function me(e,a){if(e.uid!=null)return e.uid;const l=U.get(e);return l??(d+=a+1,U.set(e,d),d)}function A(e=s.value){return e.map(a=>{const l=a.raw??(a instanceof File?a:null);return l?t.toRaw(l):null}).filter(Boolean)}function R(e){m("update:selectedFiles",e),m("selectedFilesChange",e)}function Re(e,a){if(n.autoUpload)return;const l=e==null?void 0:e.raw;if(l&&!O(l)){s.value=N(n.selectedFiles);return}const o=A(a);l&&!o.includes(l)&&o.push(l);const i=n.multiple?o:o.slice(-1);s.value=N(i),R(i)}function ge(e){const a=new Set(e.map(o=>o.url)),l=s.value.filter(o=>(o.status==="ready"||o.status==="uploading")&&!a.has(o.url));return[...e,...l]}function Y(e){const a=fe(e);b=!0,_.value=a.text,s.value=ge(pe(a.files)),t.nextTick(()=>{b=!1})}function $(e){return n.valueFormat==="array"?e.files:n.valueFormat==="string"?e.files.join(","):e}function Ie(){var e;(e=P.value)==null||e.focus()}function Le(e){e.target.value=""}function D(e){const o={files:(e??s.value).filter(i=>i.status==="success"&&i.url).map(i=>i.url),text:_.value};m("update:modelValue",$(o)),m("change",o),n.callBack&&n.callBack(o)}function Pe(e,a){if(S(e.uid),J(e.uid),E(e.url),!n.autoUpload){const l=A(a);s.value=N(l),R(l),m("remove",e,a);return}D(a),m("remove",e,a)}function ee(e){var l;const a=(e==null?void 0:e.name)||"";return a.includes(".")&&((l=a.split(".").pop())==null?void 0:l.toLowerCase())||""}function te(e){var i,u,c;const a=((u=(i=e==null?void 0:e.type)==null?void 0:i.toLowerCase)==null?void 0:u.call(i))||"",l={"image/jpeg":["jpg","jpeg"],"image/png":["png"],"image/gif":["gif"],"image/bmp":["bmp"],"image/webp":["webp"],"video/mp4":["mp4"],"video/quicktime":["mov"],"video/x-msvideo":["avi"],"video/webm":["webm"]};if(l[a])return l[a];const o=(c=a.split("/")[1])==null?void 0:c.split("+")[0];return o?[o]:[]}function ve(e){if(!x.value.length)return!0;const a=ee(e);if(n.variant==="attachment-card")return x.value.includes(a);const l=te(e);return[a,...l].some(o=>x.value.includes(o))}function O(e){if(n.fileSize>0&&e.size>n.fileSize*1024*1024){const l={code:"size",file:e,message:`文件大小不能超过${n.fileSize}M`};return g.ElMessage.warning(l.message),m("invalid",l),!1}if(!ve(e)){const l={code:"extension",file:e,message:`格式不支持,仅允许: ${x.value.join("/")}`};return g.ElMessage.warning(l.message),m("invalid",l),!1}return!0}async function he(e,a,l,o,i){const u=ne(e),c={close:()=>o.close()};B.set(i,c);const h=()=>B.get(i)===c;try{const f=await n.uploadRequest({file:e,formData:u,api:n.api,name:n.name,tokenKey:n.tokenKey,extraData:n.extraData});if(!h())return;const F=ye(f);if(!F){const V=new Error("上传失败,未返回文件地址");g.ElMessage.error(V.message),m("error",V),l==null||l(V);return}g.ElMessage.success("上传成功"),a==null||a({...typeof f=="object"&&f?f:{},url:F})}catch(f){if(!h())return;g.ElMessage.error("上传失败"),m("error",f),l==null||l(f)}finally{h()&&S(i)}}function ne(e){const a=new FormData;return a.append(n.name,e),n.extraData&&Object.entries(n.extraData).forEach(([l,o])=>a.append(l,o)),a}function ye(e){var o,i;if(typeof e=="string")return e;const a=e||{},l=a.urls??a.url??((o=a.data)==null?void 0:o.urls)??((i=a.data)==null?void 0:i.url)??"";return Array.isArray(l)?l[0]||"":l||""}function ae(e,a,l,o,i=e.uid){const u=g.ElLoading.service({target:y.value,text:"上传中",background:"rgba(255,255,255,0.7)"});if(n.uploadRequest){he(e,l,o,u,i);return}const c=n.api.startsWith("http")?n.api:window.location.origin+n.api.replace(/^([^/])/,"/$1"),h=ne(e),f=new XMLHttpRequest;let F=!1;const V=()=>F?!1:(F=!0,k.delete(i),u.close(),!0);k.set(i,()=>{V()&&f.abort()}),f.onabort=V,f.open("POST",c);const Be=Ne(n.tokenKey);Be&&f.setRequestHeader("Authorization",`Bearer ${Be}`),f.upload.onprogress=v=>{!F&&v.total>0&&(a==null||a({percent:v.loaded/v.total*100}))},f.onload=()=>{if(V()){if(f.status<200||f.status>=300){const v=`上传失败 (HTTP ${f.status})`;g.ElMessage.error(v),m("error",{msg:v,status:f.status}),o==null||o(new Error(v));return}try{const v=JSON.parse(f.responseText);v.code===200&&v.urls?(g.ElMessage.success("上传成功"),l==null||l({...v,url:v.urls})):(g.ElMessage.error(v.msg||"上传失败"),m("error",v),o==null||o(v))}catch{g.ElMessage.error("上传失败,响应格式错误"),m("error",new Error("Response parse error")),o==null||o(new Error("Response parse error"))}}},f.onerror=()=>{V()&&(g.ElMessage.error("上传失败,网络异常"),m("error",new Error("Network error")),o==null||o(new Error("Network error")))},f.send(h)}function we(e){return w.value?!1:O(e)}function xe(e,a){const l=s.value.find(o=>{var i;return o.uid===(e==null?void 0:e.uid)||((i=o.raw)==null?void 0:i.uid)===(e==null?void 0:e.uid)});l&&(l.url=a,l.status="success")}function je(e){ae(e.file,e.onProgress,a=>{xe(e.file,a.url),e.onSuccess(a),D(),m("success",a)},a=>e.onError(a))}function le(e){var l;const a=((l=e.name)==null?void 0:l.split(/[?#]/,1)[0])||"";try{return decodeURIComponent(a)}catch{return a}}function oe(e){return/\.(?:jpe?g|png|gif|bmp|webp|avif|svg|ico)$/i.test(le(e))}function ze(e){var i;if(!e.url)return;const a=n.variant==="attachment-card";if(a&&!oe(e)){m("preview",{url:e.url,name:le(e)});return}const l=((i=e.url.split(".").pop())==null?void 0:i.toLowerCase())||"";if(["mp4","mov","avi","webm"].includes(l)){ue.value=e.url,de.value=e.name||"视频预览",se.value=!0;return}const o=s.value.filter(u=>{var c;return u.status==="success"&&u.url&&(a?oe(u):!["mp4","mov","avi","webm"].includes((c=u.url.split(".").pop())==null?void 0:c.toLowerCase()))});X.value=o.map(u=>u.url),re.value=o.findIndex(u=>u.uid===e.uid)||0,C.value=!0}function Ae(){C.value=!1,X.value=[]}function Ve(e,a){if(e.name&&ee(e))return e;const l=te(e).find(o=>x.value.includes(o));return l?new File([e],`paste-${Date.now()+a}.${l}`,{type:e.type,lastModified:e.lastModified}):e}function K(e){if(!n.autoUpload){const a=A(),l=e.filter(i=>O(i));if(!l.length)return;const o=n.multiple?[...a,...l].slice(0,n.limit):l.slice(-1);s.value=N(o),R(o);return}for(let a=0;a<e.length&&!(s.value.length>=ce.value);a++){const l=Ve(e[a],a);if(!we(l))continue;const o=g.genFileId(),i=URL.createObjectURL(l);q.add(i),s.value.push({uid:o,name:l.name||`file-${o}`,status:"uploading",percentage:0,url:i}),ae(l,u=>{const c=s.value.find(h=>h.uid===o);c&&(c.percentage=u.percent)},u=>{const c=s.value.find(h=>h.uid===o);c&&(c.url!==u.url&&E(c.url),c.status="success",c.url=u.url,D(),m("success",u))},()=>be(o),o)}}function Oe(e){const a=e.target,l=Array.from(a.files||[]);if(a.value="",w.value||!l.length)return;const o=n.supportVideo||!n.multiple?l.slice(0,1):l;K(o)}function ke(e){const a=Array.from((e==null?void 0:e.files)||[]).filter(u=>{var c;return(c=u.type)==null?void 0:c.startsWith("image/")});if(a.length)return a;const l=e==null?void 0:e.items;if(!l)return[];const o=[],i=new Set;for(let u=0;u<l.length;u++){const c=l[u];if(c.kind==="file"&&c.type.startsWith("image/")){const h=c.getAsFile();h&&!i.has(h)&&(i.add(h),o.push(h))}}return o}function Ke(e){if(w.value)return;const a=ke(e.clipboardData);a.length&&(e.preventDefault(),K(a))}function We(){w.value||n.disableDrag||(j.value=!0)}function Xe(){j.value=!1}function He(e){var l;if(j.value=!1,w.value||n.disableDrag||z.value)return;const a=Array.from(((l=e.dataTransfer)==null?void 0:l.files)||[]);a.length&&K(a)}function be(e){S(e),J(e);const a=s.value.findIndex(l=>l.uid===e);a!==-1&&(E(s.value[a].url),s.value.splice(a,1))}t.onBeforeUnmount(()=>{Z(),Q(),H()});function _e(){var e;w.value||z.value||(e=L.value)==null||e.click()}function Ue(){var e;Z(),Q();for(const a of s.value)(e=a.url)!=null&&e.startsWith("blob:")&&q.add(a.url);H(),s.value=[],_.value="",R([]),n.autoUpload&&D()}r({openFileDialog:_e,getPathList:()=>s.value.filter(e=>e.status==="success").map(e=>e.url),clearFiles:Ue,getValue:()=>({files:s.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:_.value}),getModelValue:()=>$({files:s.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:_.value})});const Ce={props:n,emit:m,uploadRef:ie,rootRef:y,nativeInputRef:L,fileList:s,inputRef:P,pasteInputRef:W,pendingXhrs:k,selectedFileUids:U,get selectedFileUid(){return d},set selectedFileUid(e){d=e},get syncingFromValue(){return b},set syncingFromValue(e){b=e},viewerVisible:C,viewerUrlList:X,viewerIndex:re,videoVisible:se,videoUrl:ue,videoTitle:de,objectUrls:q,pendingCustomUploads:B,releaseObjectUrl:E,releaseObjectUrls:H,cancelCustomUpload:S,cancelCustomUploads:Z,cancelXhr:J,cancelXhrs:Q,isDragOver:j,localText:_,textExpanded:De,sizeValue:Fe,isUploadDisabled:w,isUploading:Me,uploadListType:Te,effectiveLimit:ce,shouldShowTip:qe,allowedExtensions:x,isReachedLimit:z,acceptAttr:Ee,uploadClasses:Se,normalizeFilesInput:G,parseValue:fe,createFileList:pe,createSelectedFileList:N,getSelectedFileUid:me,getSelectedRawFiles:A,emitSelectedFiles:R,handleFileChange:Re,mergePendingFileList:ge,syncValueToState:Y,formatModelValue:$,focusTextarea:Ie,clearPasteInput:Le,handleSyncValue:D,handleRemove:Pe,getFileNameExtension:ee,getMimeExtensions:te,isAllowedFileType:ve,validateFile:O,uploadViaCustomRequest:he,createUploadFormData:ne,resolveUploadUrl:ye,uploadViaXhr:ae,handleBeforeUpload:we,applyUploadResultToFile:xe,handleCustomUpload:je,attachmentName:le,isAttachmentImage:oe,handlePreview:ze,closeViewer:Ae,createNamedPasteFile:Ve,uploadFiles:K,handleNativeInputChange:Oe,collectImageFilesFromClipboard:ke,handlePaste:Ke,handleDragOver:We,handleDragLeave:Xe,handleDrop:He,handleRemoveByUid:be,openFileDialog:_e,clearFiles:Ue,ref:t.ref,computed:t.computed,watch:t.watch,onMounted:t.onMounted,onBeforeUnmount:t.onBeforeUnmount,nextTick:t.nextTick,toRaw:t.toRaw,get Plus(){return I.Plus},get InfoFilled(){return I.InfoFilled},get Document(){return I.Document},get ZoomIn(){return I.ZoomIn},get Delete(){return I.Delete},get ElMessage(){return g.ElMessage},get ElLoading(){return g.ElLoading},get genFileId(){return g.genFileId},get useFormDisabled(){return g.useFormDisabled},get getToken(){return Ne}};return Object.defineProperty(Ce,"__isScriptSetup",{enumerable:!1,value:!0}),Ce}}),Ye=["accept","multiple","disabled"],$e={class:"qy-upload__attachment"},et=["src","alt"],tt=["title"],nt={key:2,class:"qy-upload__attachment-progress",role:"status"},at={key:3,class:"qy-upload__attachment-actions"},lt=["onClick"],ot=["onClick"],it=["disabled"],rt={class:"qy-upload__hint"},st=["placeholder","disabled"],ut=["src"],dt={key:1,class:"qy-upload__tip"},ct={class:"error"},ft={class:"error"};function pt(T,r,p,n,m,ie){var U;const y=M.ElIcon,L=M.ElInput,s=M.ElPopover,P=M.ElUpload,W=M.ElImageViewer,k=M.ElDialog;return t.openBlock(),t.createElementBlock("div",{ref:"rootRef",class:t.normalizeClass(["qy-upload",n.uploadClasses]),style:t.normalizeStyle({"--qy-upload-size":n.sizeValue})},[t.createElementVNode("input",{ref:"nativeInputRef",class:"qy-upload__native-input",type:"file",accept:n.acceptAttr,multiple:p.supportVideo?!1:p.multiple,disabled:n.isUploadDisabled,onChange:n.handleNativeInputChange},null,40,Ye),t.createVNode(P,{ref:"uploadRef","file-list":n.fileList,"onUpdate:fileList":r[7]||(r[7]=d=>n.fileList=d),action:"#",multiple:p.supportVideo?!1:p.multiple,limit:n.effectiveLimit,"auto-upload":p.autoUpload,"list-type":n.uploadListType,accept:n.acceptAttr,disabled:n.isUploadDisabled,"http-request":n.handleCustomUpload,"before-upload":n.handleBeforeUpload,"on-change":n.handleFileChange,"on-preview":n.handlePreview,"on-remove":n.handleRemove},t.createSlots({default:t.withCtx(()=>[p.variant!=="file-list"&&!n.isReachedLimit?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["qy-upload__trigger",{"is-dragover":n.isDragOver}]),onPaste:n.handlePaste,onDragover:t.withModifiers(n.handleDragOver,["prevent"]),onDragleave:t.withModifiers(n.handleDragLeave,["prevent"]),onDrop:t.withModifiers(n.handleDrop,["prevent"])},[t.createVNode(y,{class:"qy-upload__icon"},{default:t.withCtx(()=>[t.createVNode(n.Plus)]),_:1}),p.supportVideo?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r[10]||(r[10]=t.createElementVNode("span",{class:"qy-upload__label"},"点击上传视频",-1)),t.createElementVNode("span",rt,"支持 "+t.toDisplayString(n.allowedExtensions.join(" / "))+",不超过 "+t.toDisplayString(p.fileSize)+"MB",1)],64)):t.createCommentVNode("v-if",!0),t.createCommentVNode(" 文字输入框:可通过 showText 关闭,凭证上传这类纯图片场景不需要展示 "),p.showText?(t.openBlock(),t.createElementBlock("div",{key:1,class:"qy-upload__text",onClick:r[4]||(r[4]=t.withModifiers(()=>{},["stop"])),onPaste:t.withModifiers(n.handlePaste,["stop"])},[t.createVNode(s,{visible:n.textExpanded,"onUpdate:visible":r[3]||(r[3]=d=>n.textExpanded=d),placement:"bottom-start",width:220,trigger:"click","popper-class":"qy-upload__text-popover",onAfterEnter:n.focusTextarea},{reference:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["qy-upload__text-preview",{"is-placeholder":!n.localText}])},t.toDisplayString(n.localText||p.pastePlaceholder),3)]),default:t.withCtx(()=>[t.createVNode(L,{ref:"inputRef",modelValue:n.localText,"onUpdate:modelValue":r[1]||(r[1]=d=>n.localText=d),type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:p.pastePlaceholder,disabled:n.isUploadDisabled,onBlur:r[2]||(r[2]=d=>n.textExpanded=!1),onPaste:t.withModifiers(n.handlePaste,["stop"])},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["visible"])],32)):p.showPasteInput?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createCommentVNode(" 纯粘贴入口:不保存文字,只提供一个可聚焦区域承接 Ctrl+V 图片 "),t.createElementVNode("div",{class:"qy-upload__text",onClick:r[6]||(r[6]=t.withModifiers(()=>{},["stop"])),onPaste:t.withModifiers(n.handlePaste,["stop"])},[t.createElementVNode("input",{ref:"pasteInputRef",class:"qy-upload__paste-input",placeholder:p.pastePlaceholder,disabled:n.isUploadDisabled,onPaste:t.withModifiers(n.handlePaste,["stop"]),onInput:n.clearPasteInput,onClick:r[5]||(r[5]=t.withModifiers(()=>{},["stop"]))},null,40,st)],32)],2112)):t.createCommentVNode("v-if",!0)],34)):t.createCommentVNode("v-if",!0)]),_:2},[p.variant==="attachment-card"?{name:"file",fn:t.withCtx(({file:d})=>[t.createElementVNode("div",$e,[n.isAttachmentImage(d)&&d.url?(t.openBlock(),t.createElementBlock("img",{key:0,class:"qy-upload__attachment-image",src:d.url,alt:n.attachmentName(d)},null,8,et)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"qy-upload__attachment-file",title:n.attachmentName(d)},[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(n.Document)]),_:1}),t.createElementVNode("span",null,t.toDisplayString(n.attachmentName(d)),1)],8,tt)),d.status==="uploading"?(t.openBlock(),t.createElementBlock("span",nt,"上传中")):t.createCommentVNode("v-if",!0),d.status==="success"||!n.isUploadDisabled?(t.openBlock(),t.createElementBlock("div",at,[d.status==="success"?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button","aria-label":"预览附件",onClick:t.withModifiers(b=>n.handlePreview(d),["stop"])},[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(n.ZoomIn)]),_:1})],8,lt)):t.createCommentVNode("v-if",!0),n.isUploadDisabled?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button","aria-label":"删除附件",onClick:t.withModifiers(b=>{var C;return(C=n.uploadRef)==null?void 0:C.handleRemove(d)},["stop"])},[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(n.Delete)]),_:1})],8,ot))])):t.createCommentVNode("v-if",!0)])]),key:"0"}:void 0,p.variant==="file-list"?{name:"trigger",fn:t.withCtx(()=>[t.createElementVNode("div",{class:"qy-upload__file-trigger",onClick:r[0]||(r[0]=t.withModifiers(()=>{},["stop"])),onDragover:t.withModifiers(n.handleDragOver,["prevent"]),onDragleave:t.withModifiers(n.handleDragLeave,["prevent"]),onDrop:t.withModifiers(n.handleDrop,["prevent"])},[t.renderSlot(T.$slots,"trigger",{open:n.openFileDialog,disabled:n.isUploadDisabled,uploading:n.isUploading},()=>[t.createElementVNode("button",{class:"qy-upload__file-button",type:"button",disabled:n.isUploadDisabled,onClick:n.openFileDialog}," 选择文件 ",8,it)],!0)],32)]),key:"1"}:void 0]),1032,["file-list","multiple","limit","auto-upload","list-type","accept","disabled"]),n.viewerVisible?(t.openBlock(),t.createBlock(W,{key:0,teleported:p.variant==="attachment-card","url-list":n.viewerUrlList,"initial-index":n.viewerIndex,onClose:n.closeViewer},null,8,["teleported","url-list","initial-index"])):t.createCommentVNode("v-if",!0),t.createCommentVNode(" 视频预览弹窗 "),t.createVNode(k,{modelValue:n.videoVisible,"onUpdate:modelValue":r[8]||(r[8]=d=>n.videoVisible=d),title:n.videoTitle,width:"640px","append-to-body":"","destroy-on-close":"",onClose:r[9]||(r[9]=d=>n.videoVisible=!1)},{default:t.withCtx(()=>[n.videoVisible?(t.openBlock(),t.createElementBlock("video",{key:0,src:n.videoUrl,controls:"",autoplay:"",style:{width:"100%","max-height":"400px","border-radius":"4px"}},null,8,ut)):t.createCommentVNode("v-if",!0)]),_:1},8,["modelValue","title"]),n.shouldShowTip?(t.openBlock(),t.createElementBlock("div",dt,[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(n.InfoFilled)]),_:1}),t.createElementVNode("span",null,[r[13]||(r[13]=t.createTextVNode(" 请上传 ",-1)),p.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r[11]||(r[11]=t.createTextVNode("大小不超过 ",-1)),t.createElementVNode("b",ct,t.toDisplayString(p.fileSize)+"MB",1)],64)):t.createCommentVNode("v-if",!0),(U=n.allowedExtensions)!=null&&U.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r[12]||(r[12]=t.createTextVNode(",格式为 ",-1)),t.createElementVNode("b",ft,t.toDisplayString(n.allowedExtensions.join("/")),1)],64)):t.createCommentVNode("v-if",!0),r[14]||(r[14]=t.createTextVNode(" 的文件。 ",-1))])])):t.createCommentVNode("v-if",!0)],6)}const mt=Je._export_sfc(Ge,[["render",pt],["__scopeId","data-v-61da1df2"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/upload/index.vue"]]);exports.Upload=mt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),ne=require("element-plus"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re=i.defineComponent({name:"QyTree",inheritAttrs:!1,__name:"index",props:{data:{type:Array,required:!1,default:()=>[]},emptyText:{type:String,required:!1},nodeKey:{type:String,required:!1},props:{type:Object,required:!1,default:()=>({})},renderAfterExpand:{type:Boolean,required:!1,default:!0},defaultExpandAll:{type:Boolean,required:!1},expandOnClickNode:{type:Boolean,required:!1,default:!0},autoExpandParent:{type:Boolean,required:!1,default:!0},defaultExpandedKeys:{type:Array,required:!1},accordion:{type:Boolean,required:!1},indent:{type:Number,required:!1,default:18},icon:{type:null,required:!1},highlightCurrent:{type:Boolean,required:!1},currentNodeKey:{type:[String,Number],required:!1},showCheckbox:{type:Boolean,required:!1},checkStrictly:{type:Boolean,required:!1},checkOnClickNode:{type:Boolean,required:!1},checkOnClickLeaf:{type:Boolean,required:!1,default:!0},checkDescendants:{type:Boolean,required:!1},defaultCheckedKeys:{type:Array,required:!1},filterNodeMethod:{type:Function,required:!1},lazy:{type:Boolean,required:!1},load:{type:Function,required:!1},draggable:{type:Boolean,required:!1},allowDrag:{type:Function,required:!1},allowDrop:{type:Function,required:!1}},emits:["node-click","node-contextmenu","current-change","node-expand","node-collapse","check-change","check","node-drag-start","node-drag-enter","node-drag-over","node-drag-leave","node-drag-end","node-drop"],setup(g,{expose:C,emit:l}){const a=g,s=l,k=i.useAttrs(),c=i.ref(),L=Object.freeze([...a.defaultExpandedKeys??[]]),P=Object.freeze([...a.defaultCheckedKeys??[]]),T=i.computed(()=>Object.fromEntries(Object.entries(k).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function d(e){var n,t,r,o;return Object.freeze({key:e.key??null,parentKey:((n=e.parent)==null?void 0:n.key)??null,data:e.data,label:e.label??String(((r=e.data)==null?void 0:r[typeof((t=a.props)==null?void 0:t.label)=="string"?a.props.label:"label"])??""),level:e.level??0,expanded:e.expanded===!0,checked:e.checked===!0,indeterminate:e.indeterminate===!0,disabled:e.disabled===!0,leaf:e.isLeaf===!0,visible:e.visible!==!1,loading:e.loading===!0,loaded:e.loaded===!0,childCount:((o=e.childNodes)==null?void 0:o.length)??0})}const j=i.computed(()=>{const e=a.props??{};return{...e,...typeof e.label=="function"?{label:n=>{var t;return((t=e.label)==null?void 0:t.call(e,n))??""}}:{},...typeof e.disabled=="function"?{disabled:n=>{var t;return((t=e.disabled)==null?void 0:t.call(e,n))??!1}}:{},...typeof e.isLeaf=="function"?{isLeaf:n=>{var t;return((t=e.isLeaf)==null?void 0:t.call(e,n))??!1}}:{},...typeof e.class=="function"?{class:(n,t)=>{var r;return((r=e.class)==null?void 0:r.call(e,n,d(t)))??""}}:{}}}),z=i.computed(()=>a.filterNodeMethod?(e,n,t)=>{var r;return((r=a.filterNodeMethod)==null?void 0:r.call(a,e,n,d(t)))??!1}:void 0),H=i.computed(()=>a.load?(e,n,t)=>{var r;return(r=a.load)==null?void 0:r.call(a,d(e),n,t)}:void 0);function u(e){var t;return((t=c.value)==null?void 0:t.getNode(e.data))===e?e:null}function y(e){var t;const n=(t=c.value)==null?void 0:t.getNode(e);return(n==null?void 0:n.data)===e?n:null}const M=i.computed(()=>a.allowDrag?e=>{var t;const n=u(e);return n?((t=a.allowDrag)==null?void 0:t.call(a,d(n)))??!1:!1}:void 0),F=i.computed(()=>a.allowDrop?(e,n,t)=>{var h;const r=u(e),o=u(n);return r&&o?((h=a.allowDrop)==null?void 0:h.call(a,d(r),d(o),t==="prev"?"before":t==="next"?"after":"inner"))??!1:!1}:void 0);function p(e){return{checkedKeys:e.checkedKeys??[],checkedNodes:e.checkedNodes??[],halfCheckedKeys:e.halfCheckedKeys??[],halfCheckedNodes:e.halfCheckedNodes??[]}}function Q(e){return e}function I(e,n,t,r){const o=u(n);o&&s("node-click",o.data,d(o),r)}function R(e,n,t){const r=u(t);r&&s("node-contextmenu",e,r.data,d(r))}function W(e,n){if(e===null&&n===null){s("current-change",null,null);return}const t=n?u(n):y(e);t&&s("current-change",t.data,n?d(t):null)}function V(e,n){const t=u(n);t&&s("node-expand",t.data,d(t))}function G(e,n){const t=u(n);t&&s("node-collapse",t.data,d(t))}function J(e,n,t){const r=y(e);r&&s("check-change",r.data,n,t)}function U(e,n){const t=y(e);t&&s("check",t.data,p(n))}function X(e,n){const t=u(e);t&&s("node-drag-start",d(t),n)}function Y(e,n,t){const r=u(e),o=u(n);r&&o&&s("node-drag-enter",d(r),d(o),t)}function Z(e,n,t){const r=u(e),o=u(n);r&&o&&s("node-drag-over",d(r),d(o),t)}function $(e,n,t){const r=u(e),o=u(n);r&&o&&s("node-drag-leave",d(r),d(o),t)}function ee(e,n,t,r){const o=u(e),h=n?u(n):null;o&&(!n||h)&&s("node-drag-end",d(o),h?d(h):null,t,r)}function te(e,n,t,r){const o=u(e),h=u(n);o&&h&&s("node-drop",d(o),d(h),t,r)}function f(e){if(!a.nodeKey)throw new Error(`QyTree.${e} requires nodeKey`)}function x(e){var n;if(!a.filterNodeMethod)throw new Error("QyTree.filter requires filterNodeMethod");(n=c.value)==null||n.filter(e)}function D(e){var t;f("getNode");const n=(t=c.value)==null?void 0:t.getNode(e);return n?d(n):null}function v(e){var n;return f("getNodePath"),((n=c.value)==null?void 0:n.getNodePath(e))??[]}function m(e){var n;return f("getCheckedKeys"),((n=c.value)==null?void 0:n.getCheckedKeys(e))??[]}function b(e,n){var t;return f("getCheckedNodes"),((t=c.value)==null?void 0:t.getCheckedNodes(e,n))??[]}function q(){var e;return f("getHalfCheckedKeys"),((e=c.value)==null?void 0:e.getHalfCheckedKeys())??[]}function K(){var e;return f("getHalfCheckedNodes"),((e=c.value)==null?void 0:e.getHalfCheckedNodes())??[]}function E(e,n,t=!1){var r;f("setChecked"),(r=c.value)==null||r.setChecked(e,n,t)}function w(e,n){var t;f("setCheckedKeys"),(t=c.value)==null||t.setCheckedKeys(e,n)}function _(e,n){var t;f("setCheckedNodes"),(t=c.value)==null||t.setCheckedNodes(e,n)}function N(){var n,t;f("getCurrentKey");const e=((n=c.value)==null?void 0:n.getCurrentKey())??null;return e!==null&&((t=c.value)!=null&&t.getNode(e))?e:null}function B(){var e;return f("getCurrentNode"),N()===null?null:((e=c.value)==null?void 0:e.getCurrentNode())??null}function O(e,n=!0){var t;f("setCurrentKey"),(t=c.value)==null||t.setCurrentKey(e,n)}function S(e,n=!0){var t;f("setCurrentNode"),(t=c.value)==null||t.setCurrentNode(e,n)}C({filter:x,getNode:D,getNodePath:v,getCheckedKeys:m,getCheckedNodes:b,getHalfCheckedKeys:q,getHalfCheckedNodes:K,setChecked:E,setCheckedKeys:w,setCheckedNodes:_,getCurrentKey:N,getCurrentNode:B,setCurrentKey:O,setCurrentNode:S});const A={props:a,emit:s,attrs:k,treeRef:c,initialDefaultExpandedKeys:L,initialDefaultCheckedKeys:P,safeAttrs:T,toSnapshot:d,treeProps:j,adaptFilterNodeMethod:z,adaptLoad:H,resolveCurrentElementNode:u,resolveCurrentElementNodeByData:y,adaptAllowDrag:M,adaptAllowDrop:F,checkedInfo:p,toPublicPosition:Q,handleNodeClick:I,handleNodeContextmenu:R,handleCurrentChange:W,handleNodeExpand:V,handleNodeCollapse:G,handleCheckChange:J,handleCheck:U,handleNodeDragStart:X,handleNodeDragEnter:Y,handleNodeDragOver:Z,handleNodeDragLeave:$,handleNodeDragEnd:ee,handleNodeDrop:te,requireNodeKey:f,filter:x,getNode:D,getNodePath:v,getCheckedKeys:m,getCheckedNodes:b,getHalfCheckedKeys:q,getHalfCheckedNodes:K,setChecked:E,setCheckedKeys:w,setCheckedNodes:_,getCurrentKey:N,getCurrentNode:B,setCurrentKey:O,setCurrentNode:S,get ElTree(){return ne.ElTree}};return Object.defineProperty(A,"__isScriptSetup",{enumerable:!1,value:!0}),A}});function de(g,C,l,a,s,k){return i.openBlock(),i.createBlock(a.ElTree,i.mergeProps({ref:"treeRef"},a.safeAttrs,{class:"qy-tree",data:l.data,"empty-text":l.emptyText,"node-key":l.nodeKey,props:a.treeProps,"render-after-expand":l.renderAfterExpand,"default-expand-all":l.defaultExpandAll,"expand-on-click-node":l.expandOnClickNode,"auto-expand-parent":l.autoExpandParent,"default-expanded-keys":a.initialDefaultExpandedKeys,accordion:l.accordion,indent:l.indent,icon:l.icon,"highlight-current":l.highlightCurrent,"current-node-key":l.currentNodeKey,"show-checkbox":l.showCheckbox,"check-strictly":l.checkStrictly,"check-on-click-node":l.checkOnClickNode,"check-on-click-leaf":l.checkOnClickLeaf,"check-descendants":l.checkDescendants,"default-checked-keys":a.initialDefaultCheckedKeys,"filter-node-method":a.adaptFilterNodeMethod,lazy:l.lazy,load:a.adaptLoad,draggable:l.draggable,"allow-drag":a.adaptAllowDrag,"allow-drop":a.adaptAllowDrop,onNodeClick:a.handleNodeClick,onNodeContextmenu:a.handleNodeContextmenu,onCurrentChange:a.handleCurrentChange,onNodeExpand:a.handleNodeExpand,onNodeCollapse:a.handleNodeCollapse,onCheckChange:a.handleCheckChange,onCheck:a.handleCheck,onNodeDragStart:a.handleNodeDragStart,onNodeDragEnter:a.handleNodeDragEnter,onNodeDragOver:a.handleNodeDragOver,onNodeDragLeave:a.handleNodeDragLeave,onNodeDragEnd:a.handleNodeDragEnd,onNodeDrop:a.handleNodeDrop}),i.createSlots({_:2},[g.$slots.default?{name:"default",fn:i.withCtx(c=>[i.renderSlot(g.$slots,"default",{data:c.data,node:a.toSnapshot(c.node)})]),key:"0"}:void 0,g.$slots.empty?{name:"empty",fn:i.withCtx(()=>[i.renderSlot(g.$slots,"empty")]),key:"1"}:void 0]),1040,["data","empty-text","node-key","props","render-after-expand","default-expand-all","expand-on-click-node","auto-expand-parent","default-expanded-keys","accordion","indent","icon","highlight-current","current-node-key","show-checkbox","check-strictly","check-on-click-node","check-on-click-leaf","check-descendants","default-checked-keys","filter-node-method","lazy","load","draggable","allow-drag","allow-drop"])}const oe=ae._export_sfc(re,[["render",de],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-tree/index.vue"]]);exports.Tree=oe;
|