bgi-plus 1.0.8 → 1.0.10
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/dist/index.css +1 -1
- package/dist/index.full.js +84 -7
- package/dist/index.full.min.js +15 -15
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +84 -7
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/extend/base-table/src/index.mjs.map +1 -1
- package/es/components/extend/base-table/src/index.vue_vue_type_script_setup_true_lang.mjs +79 -3
- package/es/components/extend/base-table/src/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/extend/v-form/src/index.mjs +5 -4
- package/es/components/extend/v-form/src/index.mjs.map +1 -1
- package/es/components/extend/v-form/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/lib/components/extend/base-table/src/index.js.map +1 -1
- package/lib/components/extend/base-table/src/index.vue_vue_type_script_setup_true_lang.js +79 -3
- package/lib/components/extend/base-table/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/extend/v-form/src/index.js +4 -3
- package/lib/components/extend/v-form/src/index.js.map +1 -1
- package/lib/components/extend/v-form/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/web-types.json +1 -1
package/dist/locale/uz-uz.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.ElementPlusLocaleUzUz=t())})(this,function(){return{name:`uz-uz`,el:{breadcrumb:{label:`Breadcrumb`},colorpicker:{confirm:`Qabul qilish`,clear:`Tozalash`,defaultLabel:`color picker`,description:`current color is {color}. press enter to select a new color.`,alphaLabel:`pick alpha value`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`Hozir`,today:`Bugun`,cancel:`Bekor qilish`,clear:`Tozalash`,confirm:`Qabul qilish`,dateTablePrompt:`Use the arrow keys and enter to select the day of the month`,monthTablePrompt:`Use the arrow keys and enter to select the month`,yearTablePrompt:`Use the arrow keys and enter to select the year`,selectedDate:`Selected date`,selectDate:`Kunni tanlash`,selectTime:`Soatni tanlash`,startDate:`Boshlanish sanasi`,startTime:`Boshlanish vaqti`,endDate:`Tugash sanasi`,endTime:`Tugash vaqti`,prevYear:`Oʻtgan yil`,nextYear:`Kelgusi yil`,prevMonth:`Oʻtgan oy`,nextMonth:`Kelgusi oy`,year:`Yil`,month1:`Yanvar`,month2:`Fevral`,month3:`Mart`,month4:`Aprel`,month5:`May`,month6:`Iyun`,month7:`Iyul`,month8:`Avgust`,month9:`Sentabr`,month10:`Oktabr`,month11:`Noyabr`,month12:`Dekabr`,weeks:{sun:`Yak`,mon:`Dush`,tue:`Sesh`,wed:`Chor`,thu:`Pay`,fri:`Jum`,sat:`Shan`},weeksFull:{sun:`Sunday`,mon:`Monday`,tue:`Tuesday`,wed:`Wednesday`,thu:`Thursday`,fri:`Friday`,sat:`Saturday`},months:{jan:`Yan`,feb:`Fev`,mar:`Mar`,apr:`Apr`,may:`May`,jun:`Iyun`,jul:`Iyul`,aug:`Avg`,sep:`Sen`,oct:`Okt`,nov:`Noy`,dec:`Dek`}},inputNumber:{decrease:`decrease number`,increase:`increase number`},select:{loading:`Yuklanmoqda`,noMatch:`Mos maʼlumot yoʻq`,noData:`Maʼlumot yoʻq`,placeholder:`Tanladizngiz`},mention:{loading:`Yuklanmoqda`},dropdown:{toggleDropdown:`Toggle Dropdown`},cascader:{noMatch:`Mos maʼlumot topilmadi`,loading:`Yuklanmoqda`,placeholder:`Tanlash`,noData:`Maʼlumot yoʻq`},pagination:{goto:`Oʻtish`,pagesize:`/sahifa`,total:`Barchasi {total} ta`,pageClassifier:``,page:`Page`,prev:`Go to previous page`,next:`Go to next page`,currentPage:`page {pager}`,prevPages:`Previous {pager} pages`,nextPages:`Next {pager} pages`,deprecationWarning:`Deprecated usages detected, please refer to the el-pagination documentation for more details`},dialog:{close:`Close this dialog`},drawer:{close:`Close this dialog`},messagebox:{title:`Xabar`,confirm:`Qabul qilish`,cancel:`Bekor qilish`,error:`Xatolik`,close:`Close this dialog`},upload:{deleteTip:`Oʻchirish tugmasini bosib oʻchiring`,delete:`Oʻchirish`,preview:`Oldin koʻrish`,continue:`Davom qilish`},slider:{defaultLabel:`slider between {min} and {max}`,defaultRangeStartLabel:`pick start value`,defaultRangeEndLabel:`pick end value`},table:{emptyText:`Boʻsh`,confirmFilter:`Qabul qilish`,resetFilter:`Oldingi holatga qaytarish`,clearFilter:`Jami`,sumText:`Summasi`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`Close this tag`},tour:{next:`Next`,previous:`Previous`,finish:`Finish`,close:`Close this dialog`},tree:{emptyText:`Maʼlumot yoʻq`},transfer:{noMatch:`Mos maʼlumot topilmadi`,noData:`Maʼlumot yoʻq`,titles:[`1-jadval`,`2-jadval`],filterPlaceholder:`Kalit soʻzni kiriting`,noCheckedFormat:`{total} ta element`,hasCheckedFormat:`{checked}/{total} ta belgilandi`},image:{error:`Xatolik`},pageHeader:{title:`Orqaga`},popconfirm:{confirmButtonText:`Yes`,cancelButtonText:`No`},carousel:{leftArrow:`Carousel arrow left`,rightArrow:`Carousel arrow right`,indicator:`Carousel switch to index {index}`}}}});
|
|
3
3
|
//# sourceMappingURL=uz-uz.min.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
var e={name:`uz-uz`,el:{breadcrumb:{label:`Breadcrumb`},colorpicker:{confirm:`Qabul qilish`,clear:`Tozalash`,defaultLabel:`color picker`,description:`current color is {color}. press enter to select a new color.`,alphaLabel:`pick alpha value`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`Hozir`,today:`Bugun`,cancel:`Bekor qilish`,clear:`Tozalash`,confirm:`Qabul qilish`,dateTablePrompt:`Use the arrow keys and enter to select the day of the month`,monthTablePrompt:`Use the arrow keys and enter to select the month`,yearTablePrompt:`Use the arrow keys and enter to select the year`,selectedDate:`Selected date`,selectDate:`Kunni tanlash`,selectTime:`Soatni tanlash`,startDate:`Boshlanish sanasi`,startTime:`Boshlanish vaqti`,endDate:`Tugash sanasi`,endTime:`Tugash vaqti`,prevYear:`Oʻtgan yil`,nextYear:`Kelgusi yil`,prevMonth:`Oʻtgan oy`,nextMonth:`Kelgusi oy`,year:`Yil`,month1:`Yanvar`,month2:`Fevral`,month3:`Mart`,month4:`Aprel`,month5:`May`,month6:`Iyun`,month7:`Iyul`,month8:`Avgust`,month9:`Sentabr`,month10:`Oktabr`,month11:`Noyabr`,month12:`Dekabr`,weeks:{sun:`Yak`,mon:`Dush`,tue:`Sesh`,wed:`Chor`,thu:`Pay`,fri:`Jum`,sat:`Shan`},weeksFull:{sun:`Sunday`,mon:`Monday`,tue:`Tuesday`,wed:`Wednesday`,thu:`Thursday`,fri:`Friday`,sat:`Saturday`},months:{jan:`Yan`,feb:`Fev`,mar:`Mar`,apr:`Apr`,may:`May`,jun:`Iyun`,jul:`Iyul`,aug:`Avg`,sep:`Sen`,oct:`Okt`,nov:`Noy`,dec:`Dek`}},inputNumber:{decrease:`decrease number`,increase:`increase number`},select:{loading:`Yuklanmoqda`,noMatch:`Mos maʼlumot yoʻq`,noData:`Maʼlumot yoʻq`,placeholder:`Tanladizngiz`},mention:{loading:`Yuklanmoqda`},dropdown:{toggleDropdown:`Toggle Dropdown`},cascader:{noMatch:`Mos maʼlumot topilmadi`,loading:`Yuklanmoqda`,placeholder:`Tanlash`,noData:`Maʼlumot yoʻq`},pagination:{goto:`Oʻtish`,pagesize:`/sahifa`,total:`Barchasi {total} ta`,pageClassifier:``,page:`Page`,prev:`Go to previous page`,next:`Go to next page`,currentPage:`page {pager}`,prevPages:`Previous {pager} pages`,nextPages:`Next {pager} pages`,deprecationWarning:`Deprecated usages detected, please refer to the el-pagination documentation for more details`},dialog:{close:`Close this dialog`},drawer:{close:`Close this dialog`},messagebox:{title:`Xabar`,confirm:`Qabul qilish`,cancel:`Bekor qilish`,error:`Xatolik`,close:`Close this dialog`},upload:{deleteTip:`Oʻchirish tugmasini bosib oʻchiring`,delete:`Oʻchirish`,preview:`Oldin koʻrish`,continue:`Davom qilish`},slider:{defaultLabel:`slider between {min} and {max}`,defaultRangeStartLabel:`pick start value`,defaultRangeEndLabel:`pick end value`},table:{emptyText:`Boʻsh`,confirmFilter:`Qabul qilish`,resetFilter:`Oldingi holatga qaytarish`,clearFilter:`Jami`,sumText:`Summasi`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`Close this tag`},tour:{next:`Next`,previous:`Previous`,finish:`Finish`,close:`Close this dialog`},tree:{emptyText:`Maʼlumot yoʻq`},transfer:{noMatch:`Mos maʼlumot topilmadi`,noData:`Maʼlumot yoʻq`,titles:[`1-jadval`,`2-jadval`],filterPlaceholder:`Kalit soʻzni kiriting`,noCheckedFormat:`{total} ta element`,hasCheckedFormat:`{checked}/{total} ta belgilandi`},image:{error:`Xatolik`},pageHeader:{title:`Orqaga`},popconfirm:{confirmButtonText:`Yes`,cancelButtonText:`No`},carousel:{leftArrow:`Carousel arrow left`,rightArrow:`Carousel arrow right`,indicator:`Carousel switch to index {index}`}}};export{e as default};
|
|
3
3
|
//# sourceMappingURL=uz-uz.min.mjs.map
|
package/dist/locale/uz-uz.mjs
CHANGED
package/dist/locale/vi.js
CHANGED
package/dist/locale/vi.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.ElementPlusLocaleVi=t())})(this,function(){return{name:`vi`,el:{breadcrumb:{label:`Đường dẫn`},colorpicker:{confirm:`OK`,clear:`Xóa`,defaultLabel:`bộ chọn màu`,description:`màu hiện tại là {color}. nhấn enter để chọn màu mới.`,alphaLabel:`chọn độ trong suốt`,alphaDescription:`độ trong suốt {alpha}, màu hiện tại là {color}`,hueLabel:`chọn tông màu`,hueDescription:`tông màu {hue}, màu hiện tại là {color}`,svLabel:`chọn độ bão hòa và độ sáng`,svDescription:`độ bão hòa {saturation}, độ sáng {brightness}, màu hiện tại là {color}`,predefineDescription:`chọn {value} làm màu`},datepicker:{now:`Hiện tại`,today:`Hôm nay`,cancel:`Hủy`,clear:`Xóa`,confirm:`OK`,dateTablePrompt:`Sử dụng các phím mũi tên và enter để chọn ngày`,monthTablePrompt:`Sử dụng các phím mũi tên và enter để chọn tháng`,yearTablePrompt:`Sử dụng các phím mũi tên và enter để chọn năm`,selectedDate:`Ngày đã chọn`,selectDate:`Chọn ngày`,selectTime:`Chọn giờ`,startDate:`Ngày bắt đầu`,startTime:`Thời gian bắt đầu`,endDate:`Ngày kết thúc`,endTime:`Thời gian kết thúc`,prevYear:`Năm trước`,nextYear:`Năm tới`,prevMonth:`Tháng trước`,nextMonth:`Tháng tới`,year:`Năm`,month1:`Tháng 1`,month2:`Tháng 2`,month3:`Tháng 3`,month4:`Tháng 4`,month5:`Tháng 5`,month6:`Tháng 6`,month7:`Tháng 7`,month8:`Tháng 8`,month9:`Tháng 9`,month10:`Tháng 10`,month11:`Tháng 11`,month12:`Tháng 12`,weeks:{sun:`CN`,mon:`T2`,tue:`T3`,wed:`T4`,thu:`T5`,fri:`T6`,sat:`T7`},weeksFull:{sun:`Chủ nhật`,mon:`Thứ hai`,tue:`Thứ ba`,wed:`Thứ tư`,thu:`Thứ năm`,fri:`Thứ sáu`,sat:`Thứ bảy`},months:{jan:`Th.1`,feb:`Th.2`,mar:`Th.3`,apr:`Th.4`,may:`Th.5`,jun:`Th.6`,jul:`Th.7`,aug:`Th.8`,sep:`Th.9`,oct:`Th.10`,nov:`Th.11`,dec:`Th.12`}},inputNumber:{decrease:`giảm số`,increase:`tăng số`},select:{loading:`Đang tải`,noMatch:`Dữ liệu không phù hợp`,noData:`Không có dữ liệu`,placeholder:`Chọn`},mention:{loading:`Đang tải`},dropdown:{toggleDropdown:`Bật/tắt menu thả xuống`},cascader:{noMatch:`Dữ liệu không phù hợp`,loading:`Đang tải`,placeholder:`Chọn`,noData:`Không có dữ liệu`},pagination:{goto:`Đến trang`,pagesize:`/trang`,total:`Tổng {total}`,pageClassifier:``,page:`Trang`,prev:`Đến trang trước`,next:`Đến trang sau`,currentPage:`trang {pager}`,prevPages:`{pager} trang trước`,nextPages:`{pager} trang sau`,deprecationWarning:`Phát hiện cách sử dụng không còn được hỗ trợ, vui lòng tham khảo tài liệu el-pagination để biết thêm chi tiết`},dialog:{close:`Đóng hộp thoại này`},drawer:{close:`Đóng hộp thoại này`},messagebox:{title:`Thông báo`,confirm:`OK`,cancel:`Hủy`,error:`Dữ liệu không hợp lệ`,close:`Đóng hộp thoại này`},upload:{deleteTip:`Nhấn xoá để xoá`,delete:`Xóa`,preview:`Xem trước`,continue:`Tiếp tục`},slider:{defaultLabel:`thanh trượt giữa {min} và {max}`,defaultRangeStartLabel:`chọn giá trị bắt đầu`,defaultRangeEndLabel:`chọn giá trị kết thúc`},table:{emptyText:`Không có dữ liệu`,confirmFilter:`Xác nhận`,resetFilter:`Làm mới`,clearFilter:`Tất cả`,sumText:`Tổng`,selectAllLabel:`Chọn tất cả các hàng`,selectRowLabel:`Chọn hàng này`,expandRowLabel:`Mở rộng hàng này`,collapseRowLabel:`Thu gọn hàng này`,sortLabel:`Sắp xếp theo {column}`,filterLabel:`Lọc theo {column}`},tag:{close:`Đóng thẻ này`},tour:{next:`Tiếp`,previous:`Trước`,finish:`Hoàn thành`,close:`Đóng hộp thoại này`},tree:{emptyText:`Không có dữ liệu`},transfer:{noMatch:`Dữ liệu không phù hợp`,noData:`Không có dữ liệu`,titles:[`Danh sách 1`,`Danh sách 2`],filterPlaceholder:`Nhập từ khóa`,noCheckedFormat:`{total} mục`,hasCheckedFormat:`{checked}/{total} đã chọn`},image:{error:`LỖI`},pageHeader:{title:`Quay lại`},popconfirm:{confirmButtonText:`Có`,cancelButtonText:`Không`},carousel:{leftArrow:`Mũi tên qua trái`,rightArrow:`Mũi tên qua phải`,indicator:`Chuyển carousel đến mục {index}`}}}});
|
|
3
3
|
//# sourceMappingURL=vi.min.js.map
|
package/dist/locale/vi.min.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
var e={name:`vi`,el:{breadcrumb:{label:`Đường dẫn`},colorpicker:{confirm:`OK`,clear:`Xóa`,defaultLabel:`bộ chọn màu`,description:`màu hiện tại là {color}. nhấn enter để chọn màu mới.`,alphaLabel:`chọn độ trong suốt`,alphaDescription:`độ trong suốt {alpha}, màu hiện tại là {color}`,hueLabel:`chọn tông màu`,hueDescription:`tông màu {hue}, màu hiện tại là {color}`,svLabel:`chọn độ bão hòa và độ sáng`,svDescription:`độ bão hòa {saturation}, độ sáng {brightness}, màu hiện tại là {color}`,predefineDescription:`chọn {value} làm màu`},datepicker:{now:`Hiện tại`,today:`Hôm nay`,cancel:`Hủy`,clear:`Xóa`,confirm:`OK`,dateTablePrompt:`Sử dụng các phím mũi tên và enter để chọn ngày`,monthTablePrompt:`Sử dụng các phím mũi tên và enter để chọn tháng`,yearTablePrompt:`Sử dụng các phím mũi tên và enter để chọn năm`,selectedDate:`Ngày đã chọn`,selectDate:`Chọn ngày`,selectTime:`Chọn giờ`,startDate:`Ngày bắt đầu`,startTime:`Thời gian bắt đầu`,endDate:`Ngày kết thúc`,endTime:`Thời gian kết thúc`,prevYear:`Năm trước`,nextYear:`Năm tới`,prevMonth:`Tháng trước`,nextMonth:`Tháng tới`,year:`Năm`,month1:`Tháng 1`,month2:`Tháng 2`,month3:`Tháng 3`,month4:`Tháng 4`,month5:`Tháng 5`,month6:`Tháng 6`,month7:`Tháng 7`,month8:`Tháng 8`,month9:`Tháng 9`,month10:`Tháng 10`,month11:`Tháng 11`,month12:`Tháng 12`,weeks:{sun:`CN`,mon:`T2`,tue:`T3`,wed:`T4`,thu:`T5`,fri:`T6`,sat:`T7`},weeksFull:{sun:`Chủ nhật`,mon:`Thứ hai`,tue:`Thứ ba`,wed:`Thứ tư`,thu:`Thứ năm`,fri:`Thứ sáu`,sat:`Thứ bảy`},months:{jan:`Th.1`,feb:`Th.2`,mar:`Th.3`,apr:`Th.4`,may:`Th.5`,jun:`Th.6`,jul:`Th.7`,aug:`Th.8`,sep:`Th.9`,oct:`Th.10`,nov:`Th.11`,dec:`Th.12`}},inputNumber:{decrease:`giảm số`,increase:`tăng số`},select:{loading:`Đang tải`,noMatch:`Dữ liệu không phù hợp`,noData:`Không có dữ liệu`,placeholder:`Chọn`},mention:{loading:`Đang tải`},dropdown:{toggleDropdown:`Bật/tắt menu thả xuống`},cascader:{noMatch:`Dữ liệu không phù hợp`,loading:`Đang tải`,placeholder:`Chọn`,noData:`Không có dữ liệu`},pagination:{goto:`Đến trang`,pagesize:`/trang`,total:`Tổng {total}`,pageClassifier:``,page:`Trang`,prev:`Đến trang trước`,next:`Đến trang sau`,currentPage:`trang {pager}`,prevPages:`{pager} trang trước`,nextPages:`{pager} trang sau`,deprecationWarning:`Phát hiện cách sử dụng không còn được hỗ trợ, vui lòng tham khảo tài liệu el-pagination để biết thêm chi tiết`},dialog:{close:`Đóng hộp thoại này`},drawer:{close:`Đóng hộp thoại này`},messagebox:{title:`Thông báo`,confirm:`OK`,cancel:`Hủy`,error:`Dữ liệu không hợp lệ`,close:`Đóng hộp thoại này`},upload:{deleteTip:`Nhấn xoá để xoá`,delete:`Xóa`,preview:`Xem trước`,continue:`Tiếp tục`},slider:{defaultLabel:`thanh trượt giữa {min} và {max}`,defaultRangeStartLabel:`chọn giá trị bắt đầu`,defaultRangeEndLabel:`chọn giá trị kết thúc`},table:{emptyText:`Không có dữ liệu`,confirmFilter:`Xác nhận`,resetFilter:`Làm mới`,clearFilter:`Tất cả`,sumText:`Tổng`,selectAllLabel:`Chọn tất cả các hàng`,selectRowLabel:`Chọn hàng này`,expandRowLabel:`Mở rộng hàng này`,collapseRowLabel:`Thu gọn hàng này`,sortLabel:`Sắp xếp theo {column}`,filterLabel:`Lọc theo {column}`},tag:{close:`Đóng thẻ này`},tour:{next:`Tiếp`,previous:`Trước`,finish:`Hoàn thành`,close:`Đóng hộp thoại này`},tree:{emptyText:`Không có dữ liệu`},transfer:{noMatch:`Dữ liệu không phù hợp`,noData:`Không có dữ liệu`,titles:[`Danh sách 1`,`Danh sách 2`],filterPlaceholder:`Nhập từ khóa`,noCheckedFormat:`{total} mục`,hasCheckedFormat:`{checked}/{total} đã chọn`},image:{error:`LỖI`},pageHeader:{title:`Quay lại`},popconfirm:{confirmButtonText:`Có`,cancelButtonText:`Không`},carousel:{leftArrow:`Mũi tên qua trái`,rightArrow:`Mũi tên qua phải`,indicator:`Chuyển carousel đến mục {index}`}}};export{e as default};
|
|
3
3
|
//# sourceMappingURL=vi.min.mjs.map
|
package/dist/locale/vi.mjs
CHANGED
package/dist/locale/zh-cn.js
CHANGED
package/dist/locale/zh-cn.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.ElementPlusLocaleZhCn=t())})(this,function(){return{name:`zh-cn`,el:{breadcrumb:{label:`面包屑`},colorpicker:{confirm:`确定`,clear:`清空`,defaultLabel:`颜色选择器`,description:`当前颜色 {color},按 Enter 键选择新颜色`,alphaLabel:`选择透明度的值`,alphaDescription:`透明度 {alpha}, 当前颜色 {color}`,hueLabel:`选择色相值`,hueDescription:`色相 {hue}, 当前颜色 {color}`,svLabel:`选择饱和度与明度的值`,svDescription:`饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}`,predefineDescription:`选择 {value} 作为颜色`},datepicker:{now:`此刻`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`确定`,dateTablePrompt:`使用方向键与 Enter 键可选择日期`,monthTablePrompt:`使用方向键与 Enter 键可选择月份`,yearTablePrompt:`使用方向键与 Enter 键可选择年份`,selectedDate:`已选日期`,selectDate:`选择日期`,selectTime:`选择时间`,startDate:`开始日期`,startTime:`开始时间`,endDate:`结束日期`,endTime:`结束时间`,prevYear:`前一年`,nextYear:`后一年`,prevMonth:`上个月`,nextMonth:`下个月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`减少数值`,increase:`增加数值`},select:{loading:`加载中`,noMatch:`无匹配数据`,noData:`无数据`,placeholder:`请选择`},mention:{loading:`加载中`},dropdown:{toggleDropdown:`切换下拉选项`},cascader:{noMatch:`无匹配数据`,loading:`加载中`,placeholder:`请选择`,noData:`暂无数据`},pagination:{goto:`前往`,pagesize:`条/页`,total:`共 {total} 条`,pageClassifier:`页`,page:`页`,prev:`上一页`,next:`下一页`,currentPage:`第 {pager} 页`,prevPages:`向前 {pager} 页`,nextPages:`向后 {pager} 页`,deprecationWarning:`你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档`},dialog:{close:`关闭此对话框`},drawer:{close:`关闭此对话框`},messagebox:{title:`提示`,confirm:`确定`,cancel:`取消`,error:`输入的数据不合法!`,close:`关闭此对话框`},upload:{deleteTip:`按 Delete 键可删除`,delete:`删除`,preview:`查看图片`,continue:`继续上传`},slider:{defaultLabel:`滑块介于 {min} 至 {max}`,defaultRangeStartLabel:`选择起始值`,defaultRangeEndLabel:`选择结束值`},table:{emptyText:`暂无数据`,confirmFilter:`筛选`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合计`,selectAllLabel:`选择所有行`,selectRowLabel:`选择当前行`,expandRowLabel:`展开当前行`,collapseRowLabel:`收起当前行`,sortLabel:`按 {column} 排序`,filterLabel:`按 {column} 过滤`},tag:{close:`关闭此标签`},tour:{next:`下一步`,previous:`上一步`,finish:`结束导览`,close:`关闭此对话框`},tree:{emptyText:`暂无数据`},transfer:{noMatch:`无匹配数据`,noData:`无数据`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`请输入搜索内容`,noCheckedFormat:`共 {total} 项`,hasCheckedFormat:`已选 {checked}/{total} 项`},image:{error:`加载失败`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`确定`,cancelButtonText:`取消`},carousel:{leftArrow:`上一张幻灯片`,rightArrow:`下一张幻灯片`,indicator:`幻灯片切换至索引 {index}`}},expand:{locale:`zh`,utils:{index:`序号`,selectPlaceholder:`请选择`,inputPlaceholder:`请输入`,datePlaceholder:`选择日期`,startDate:`开始日期`,endDate:`结束日期`,dateFormat:`yyyy-MM-dd`,parseTimeFormat:`{y}-{m}-{d} {h}:{i}:{s}`,uploadFile:`文件上传`,dragFile:`拖拽或点击上传文件`,formatErrTip:`文件格式不正确`,dropEditSample:`拖拽或编辑样本`,uploadSuccessTip:`上传成功`,lessThen:`小于{0}`,anyFormat:`任意格式`,uploadError:`上传出现错误,您可以重新点击上传`,networkErrTip:`上传失败,请检查网络并重试`,successTip:`保存成功!`,operateSuccess:`操作成功!`,disableSuccess:`禁用成功!`,enableSuccess:`启用成功!`,deleteSuccess:`删除成功!`,deleteFailed:`删除失败!`,pleaseEnter:`请输入`,pleaseChoose:`请选择`,selectOrSearch:`请选择或搜索`,maxFileNameLengtTip:`文件名称字符长度需≤{0}`,hpoShowtip:`显示{0}条结果中的前20条结果`,maxFile:`文件大小超过最大限制{0}`,selectFile:`请选择{1}文件`,fileCountLimit:`文件超过最大数量限制{0}`,minute:`分`,second:`秒`,hour:`小时`,day:`天`,isRequiredTip:`{0}是必填项`,dataUpdated:`{0}更新成功`,dataUpdateFailed:`{0}更新失败`,addData:`新增{0}`,editData:`编辑{0}`,newData:`新增{0}`,dataDeleted:`{0}删除成功`,dataEnabled:`{0}已启用`,dataDisabled:`{0}已禁用`,dataSaved:`{0}已保存`,deleteTitle:`删除 “{0}”?`,exceedsMaxLength:`{0}超过最大长度限制{1}`,notBeFound:`以下数据未查到:`,status:`状态`,remark:`备注`,updater:`操作人`,updateTime:`最后操作时间`,operation:`操作`,creator:`创建人`,createTime:`创建时间`,tip:`提示`,copy:`复制`,copySuccess:`复制成功`,collapse:`折叠`,expand:`展开`,requiredError:`不能为空`,patternError:`格式不正确`,searchLimitExceeded:`文本框批量查询最多一次可查{limit}条数据。`,searchPlaceholder:`搜索`},other:{sleepTip:`您已{0}分钟无任何操作,即将进入屏幕保护模式`,notSupportOnlinePreview:`不支持在线预览,请转换为支持的格式`,supportOnlinePreviewFormat:`支持{0}格式的在线预览`,loadingEllipsis:`加载中...`,noDataFound:`无数据`,noData:`暂无数据`,selectedN:`已选择{0}个`,lastNDay:`最近{0}天`,selectedRecords:`已选中{0}条数据`,copyCurrentCellText:`复制当前单元格文本`,copyCurrentColumnText:`复制当前列文本`,copyCurrentRowText:`复制当前行文本`,copyCurrentRowSelectedText:`复制勾选行文本`,copyCurrentColumnSelectedText:`复制当前列勾选文本`,widthAdjustSuccess:`宽度调整保存成功`,enabled:`启用`,disabled:`禁用`,errorTip:`错误提示`},button:{search:`查询`,reset:`重置`,refresh:`刷新`,delete:`删除`,cancel:`取消`,save:`保存`,sure:`确认`,confirm:`确定`,download:`下载`,add:`添加`,new:`新增`,prev:`上一个`,next:`下一个`,previousStep:`上一步`,nextStep:`下一步`,edit:`编辑`,submit:`提交`,close:`关闭`,preview:`预览`,operate:`操作`,enable:`启用`,disable:`禁用`,clear:`清空`,export:`导出`,import:`导入`,back:`返回`}}}});
|
|
3
3
|
//# sourceMappingURL=zh-cn.min.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
var e={name:`zh-cn`,el:{breadcrumb:{label:`面包屑`},colorpicker:{confirm:`确定`,clear:`清空`,defaultLabel:`颜色选择器`,description:`当前颜色 {color},按 Enter 键选择新颜色`,alphaLabel:`选择透明度的值`,alphaDescription:`透明度 {alpha}, 当前颜色 {color}`,hueLabel:`选择色相值`,hueDescription:`色相 {hue}, 当前颜色 {color}`,svLabel:`选择饱和度与明度的值`,svDescription:`饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}`,predefineDescription:`选择 {value} 作为颜色`},datepicker:{now:`此刻`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`确定`,dateTablePrompt:`使用方向键与 Enter 键可选择日期`,monthTablePrompt:`使用方向键与 Enter 键可选择月份`,yearTablePrompt:`使用方向键与 Enter 键可选择年份`,selectedDate:`已选日期`,selectDate:`选择日期`,selectTime:`选择时间`,startDate:`开始日期`,startTime:`开始时间`,endDate:`结束日期`,endTime:`结束时间`,prevYear:`前一年`,nextYear:`后一年`,prevMonth:`上个月`,nextMonth:`下个月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`减少数值`,increase:`增加数值`},select:{loading:`加载中`,noMatch:`无匹配数据`,noData:`无数据`,placeholder:`请选择`},mention:{loading:`加载中`},dropdown:{toggleDropdown:`切换下拉选项`},cascader:{noMatch:`无匹配数据`,loading:`加载中`,placeholder:`请选择`,noData:`暂无数据`},pagination:{goto:`前往`,pagesize:`条/页`,total:`共 {total} 条`,pageClassifier:`页`,page:`页`,prev:`上一页`,next:`下一页`,currentPage:`第 {pager} 页`,prevPages:`向前 {pager} 页`,nextPages:`向后 {pager} 页`,deprecationWarning:`你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档`},dialog:{close:`关闭此对话框`},drawer:{close:`关闭此对话框`},messagebox:{title:`提示`,confirm:`确定`,cancel:`取消`,error:`输入的数据不合法!`,close:`关闭此对话框`},upload:{deleteTip:`按 Delete 键可删除`,delete:`删除`,preview:`查看图片`,continue:`继续上传`},slider:{defaultLabel:`滑块介于 {min} 至 {max}`,defaultRangeStartLabel:`选择起始值`,defaultRangeEndLabel:`选择结束值`},table:{emptyText:`暂无数据`,confirmFilter:`筛选`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合计`,selectAllLabel:`选择所有行`,selectRowLabel:`选择当前行`,expandRowLabel:`展开当前行`,collapseRowLabel:`收起当前行`,sortLabel:`按 {column} 排序`,filterLabel:`按 {column} 过滤`},tag:{close:`关闭此标签`},tour:{next:`下一步`,previous:`上一步`,finish:`结束导览`,close:`关闭此对话框`},tree:{emptyText:`暂无数据`},transfer:{noMatch:`无匹配数据`,noData:`无数据`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`请输入搜索内容`,noCheckedFormat:`共 {total} 项`,hasCheckedFormat:`已选 {checked}/{total} 项`},image:{error:`加载失败`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`确定`,cancelButtonText:`取消`},carousel:{leftArrow:`上一张幻灯片`,rightArrow:`下一张幻灯片`,indicator:`幻灯片切换至索引 {index}`}},expand:{locale:`zh`,utils:{index:`序号`,selectPlaceholder:`请选择`,inputPlaceholder:`请输入`,datePlaceholder:`选择日期`,startDate:`开始日期`,endDate:`结束日期`,dateFormat:`yyyy-MM-dd`,parseTimeFormat:`{y}-{m}-{d} {h}:{i}:{s}`,uploadFile:`文件上传`,dragFile:`拖拽或点击上传文件`,formatErrTip:`文件格式不正确`,dropEditSample:`拖拽或编辑样本`,uploadSuccessTip:`上传成功`,lessThen:`小于{0}`,anyFormat:`任意格式`,uploadError:`上传出现错误,您可以重新点击上传`,networkErrTip:`上传失败,请检查网络并重试`,successTip:`保存成功!`,operateSuccess:`操作成功!`,disableSuccess:`禁用成功!`,enableSuccess:`启用成功!`,deleteSuccess:`删除成功!`,deleteFailed:`删除失败!`,pleaseEnter:`请输入`,pleaseChoose:`请选择`,selectOrSearch:`请选择或搜索`,maxFileNameLengtTip:`文件名称字符长度需≤{0}`,hpoShowtip:`显示{0}条结果中的前20条结果`,maxFile:`文件大小超过最大限制{0}`,selectFile:`请选择{1}文件`,fileCountLimit:`文件超过最大数量限制{0}`,minute:`分`,second:`秒`,hour:`小时`,day:`天`,isRequiredTip:`{0}是必填项`,dataUpdated:`{0}更新成功`,dataUpdateFailed:`{0}更新失败`,addData:`新增{0}`,editData:`编辑{0}`,newData:`新增{0}`,dataDeleted:`{0}删除成功`,dataEnabled:`{0}已启用`,dataDisabled:`{0}已禁用`,dataSaved:`{0}已保存`,deleteTitle:`删除 “{0}”?`,exceedsMaxLength:`{0}超过最大长度限制{1}`,notBeFound:`以下数据未查到:`,status:`状态`,remark:`备注`,updater:`操作人`,updateTime:`最后操作时间`,operation:`操作`,creator:`创建人`,createTime:`创建时间`,tip:`提示`,copy:`复制`,copySuccess:`复制成功`,collapse:`折叠`,expand:`展开`,requiredError:`不能为空`,patternError:`格式不正确`,searchLimitExceeded:`文本框批量查询最多一次可查{limit}条数据。`,searchPlaceholder:`搜索`},other:{sleepTip:`您已{0}分钟无任何操作,即将进入屏幕保护模式`,notSupportOnlinePreview:`不支持在线预览,请转换为支持的格式`,supportOnlinePreviewFormat:`支持{0}格式的在线预览`,loadingEllipsis:`加载中...`,noDataFound:`无数据`,noData:`暂无数据`,selectedN:`已选择{0}个`,lastNDay:`最近{0}天`,selectedRecords:`已选中{0}条数据`,copyCurrentCellText:`复制当前单元格文本`,copyCurrentColumnText:`复制当前列文本`,copyCurrentRowText:`复制当前行文本`,copyCurrentRowSelectedText:`复制勾选行文本`,copyCurrentColumnSelectedText:`复制当前列勾选文本`,widthAdjustSuccess:`宽度调整保存成功`,enabled:`启用`,disabled:`禁用`,errorTip:`错误提示`},button:{search:`查询`,reset:`重置`,refresh:`刷新`,delete:`删除`,cancel:`取消`,save:`保存`,sure:`确认`,confirm:`确定`,download:`下载`,add:`添加`,new:`新增`,prev:`上一个`,next:`下一个`,previousStep:`上一步`,nextStep:`下一步`,edit:`编辑`,submit:`提交`,close:`关闭`,preview:`预览`,operate:`操作`,enable:`启用`,disable:`禁用`,clear:`清空`,export:`导出`,import:`导入`,back:`返回`}}};export{e as default};
|
|
3
3
|
//# sourceMappingURL=zh-cn.min.mjs.map
|
package/dist/locale/zh-cn.mjs
CHANGED
package/dist/locale/zh-hk.js
CHANGED
package/dist/locale/zh-hk.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.ElementPlusLocaleZhHk=t())})(this,function(){return{name:`zh-hk`,el:{breadcrumb:{label:`麵包屑`},colorpicker:{confirm:`確認`,clear:`清空`,defaultLabel:`顏色選擇器`,description:`當前顏色為 {color}。按 Enter 鍵選擇新顏色。`,alphaLabel:`選擇透明度的值`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`現在`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`確認`,dateTablePrompt:`使用方向鍵與 Enter 鍵以選擇日期`,monthTablePrompt:`使用方向鍵與 Enter 鍵以選擇月份`,yearTablePrompt:`使用方向鍵與 Enter 鍵以選擇年份`,selectedDate:`已選日期`,selectDate:`選擇日期`,selectTime:`選擇時間`,startDate:`開始日期`,startTime:`開始時間`,endDate:`結束日期`,endTime:`結束時間`,prevYear:`前一年`,nextYear:`後一年`,prevMonth:`上個月`,nextMonth:`下個月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`減少數值`,increase:`增加數值`},select:{loading:`載入中`,noMatch:`無匹配資料`,noData:`無資料`,placeholder:`請選擇`},mention:{loading:`載入中`},dropdown:{toggleDropdown:`切換下拉選單`},cascader:{noMatch:`無匹配資料`,loading:`載入中`,placeholder:`請選擇`,noData:`無資料`},pagination:{goto:`前往`,pagesize:`項/頁`,total:`共 {total} 項`,pageClassifier:`頁`,page:`頁`,prev:`上一頁`,next:`下一頁`,currentPage:`第 {pager} 頁`,prevPages:`向前 {pager} 頁`,nextPages:`向後 {pager} 頁`,deprecationWarning:`檢測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊`},dialog:{close:`關閉此對話框`},drawer:{close:`關閉此對話框`},messagebox:{title:`提示`,confirm:`確定`,cancel:`取消`,error:`輸入的資料不符合規定!`,close:`關閉此對話框`},upload:{deleteTip:`按 Delete 鍵以刪除`,delete:`刪除`,preview:`查看圖片`,continue:`繼續上傳`},slider:{defaultLabel:`滑桿介於 {min} 至 {max}`,defaultRangeStartLabel:`選擇起始值`,defaultRangeEndLabel:`選擇結束值`},table:{emptyText:`暫無資料`,confirmFilter:`篩選`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合計`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`關閉此標籤`},tour:{next:`下一步`,previous:`上一步`,finish:`結束導覽`,close:`關閉此對話框`},tree:{emptyText:`暫無資料`},transfer:{noMatch:`無匹配資料`,noData:`無資料`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`請輸入搜尋內容`,noCheckedFormat:`共 {total} 項`,hasCheckedFormat:`已選 {checked}/{total} 項`},image:{error:`載入失敗`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`確認`,cancelButtonText:`取消`},carousel:{leftArrow:`上一張幻燈片`,rightArrow:`下一張幻燈片`,indicator:`幻燈片切換至索引 {index}`}}}});
|
|
3
3
|
//# sourceMappingURL=zh-hk.min.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
var e={name:`zh-hk`,el:{breadcrumb:{label:`麵包屑`},colorpicker:{confirm:`確認`,clear:`清空`,defaultLabel:`顏色選擇器`,description:`當前顏色為 {color}。按 Enter 鍵選擇新顏色。`,alphaLabel:`選擇透明度的值`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`現在`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`確認`,dateTablePrompt:`使用方向鍵與 Enter 鍵以選擇日期`,monthTablePrompt:`使用方向鍵與 Enter 鍵以選擇月份`,yearTablePrompt:`使用方向鍵與 Enter 鍵以選擇年份`,selectedDate:`已選日期`,selectDate:`選擇日期`,selectTime:`選擇時間`,startDate:`開始日期`,startTime:`開始時間`,endDate:`結束日期`,endTime:`結束時間`,prevYear:`前一年`,nextYear:`後一年`,prevMonth:`上個月`,nextMonth:`下個月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`減少數值`,increase:`增加數值`},select:{loading:`載入中`,noMatch:`無匹配資料`,noData:`無資料`,placeholder:`請選擇`},mention:{loading:`載入中`},dropdown:{toggleDropdown:`切換下拉選單`},cascader:{noMatch:`無匹配資料`,loading:`載入中`,placeholder:`請選擇`,noData:`無資料`},pagination:{goto:`前往`,pagesize:`項/頁`,total:`共 {total} 項`,pageClassifier:`頁`,page:`頁`,prev:`上一頁`,next:`下一頁`,currentPage:`第 {pager} 頁`,prevPages:`向前 {pager} 頁`,nextPages:`向後 {pager} 頁`,deprecationWarning:`檢測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊`},dialog:{close:`關閉此對話框`},drawer:{close:`關閉此對話框`},messagebox:{title:`提示`,confirm:`確定`,cancel:`取消`,error:`輸入的資料不符合規定!`,close:`關閉此對話框`},upload:{deleteTip:`按 Delete 鍵以刪除`,delete:`刪除`,preview:`查看圖片`,continue:`繼續上傳`},slider:{defaultLabel:`滑桿介於 {min} 至 {max}`,defaultRangeStartLabel:`選擇起始值`,defaultRangeEndLabel:`選擇結束值`},table:{emptyText:`暫無資料`,confirmFilter:`篩選`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合計`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`關閉此標籤`},tour:{next:`下一步`,previous:`上一步`,finish:`結束導覽`,close:`關閉此對話框`},tree:{emptyText:`暫無資料`},transfer:{noMatch:`無匹配資料`,noData:`無資料`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`請輸入搜尋內容`,noCheckedFormat:`共 {total} 項`,hasCheckedFormat:`已選 {checked}/{total} 項`},image:{error:`載入失敗`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`確認`,cancelButtonText:`取消`},carousel:{leftArrow:`上一張幻燈片`,rightArrow:`下一張幻燈片`,indicator:`幻燈片切換至索引 {index}`}}};export{e as default};
|
|
3
3
|
//# sourceMappingURL=zh-hk.min.mjs.map
|
package/dist/locale/zh-hk.mjs
CHANGED
package/dist/locale/zh-mo.js
CHANGED
package/dist/locale/zh-mo.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.ElementPlusLocaleZhMo=t())})(this,function(){return{name:`zh-mo`,el:{breadcrumb:{label:`麵包屑`},colorpicker:{confirm:`確認`,clear:`清空`,defaultLabel:`顏色選擇器`,description:`當前顏色為 {color}。按 Enter 鍵選擇新顏色。`,alphaLabel:`選擇透明度的值`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`現在`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`確認`,dateTablePrompt:`使用方向鍵與 Enter 鍵以選擇日期`,monthTablePrompt:`使用方向鍵與 Enter 鍵以選擇月份`,yearTablePrompt:`使用方向鍵與 Enter 鍵以選擇年份`,selectedDate:`已選日期`,selectDate:`選擇日期`,selectTime:`選擇時間`,startDate:`開始日期`,startTime:`開始時間`,endDate:`結束日期`,endTime:`結束時間`,prevYear:`前一年`,nextYear:`後一年`,prevMonth:`上個月`,nextMonth:`下個月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`減少數值`,increase:`增加數值`},select:{loading:`載入中`,noMatch:`無匹配資料`,noData:`無資料`,placeholder:`請選擇`},mention:{loading:`載入中`},dropdown:{toggleDropdown:`切換下拉選單`},cascader:{noMatch:`無匹配資料`,loading:`載入中`,placeholder:`請選擇`,noData:`無資料`},pagination:{goto:`前往`,pagesize:`項/頁`,total:`共 {total} 項`,pageClassifier:`頁`,page:`頁`,prev:`上一頁`,next:`下一頁`,currentPage:`第 {pager} 頁`,prevPages:`向前 {pager} 頁`,nextPages:`向後 {pager} 頁`,deprecationWarning:`檢測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊`},dialog:{close:`關閉此對話框`},drawer:{close:`關閉此對話框`},messagebox:{title:`提示`,confirm:`確定`,cancel:`取消`,error:`輸入的資料不符合規定!`,close:`關閉此對話框`},upload:{deleteTip:`按 Delete 鍵以刪除`,delete:`刪除`,preview:`查看圖片`,continue:`繼續上傳`},slider:{defaultLabel:`滑桿介於 {min} 至 {max}`,defaultRangeStartLabel:`選擇起始值`,defaultRangeEndLabel:`選擇結束值`},table:{emptyText:`暫無資料`,confirmFilter:`篩選`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合計`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`關閉此標籤`},tour:{next:`下一步`,previous:`上一步`,finish:`結束導覽`,close:`關閉此對話框`},tree:{emptyText:`暫無資料`},transfer:{noMatch:`無匹配資料`,noData:`無資料`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`請輸入搜尋內容`,noCheckedFormat:`共 {total} 項`,hasCheckedFormat:`已選 {checked}/{total} 項`},image:{error:`載入失敗`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`確認`,cancelButtonText:`取消`},carousel:{leftArrow:`上一張幻燈片`,rightArrow:`下一張幻燈片`,indicator:`幻燈片切換至索引 {index}`}}}});
|
|
3
3
|
//# sourceMappingURL=zh-mo.min.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
var e={name:`zh-mo`,el:{breadcrumb:{label:`麵包屑`},colorpicker:{confirm:`確認`,clear:`清空`,defaultLabel:`顏色選擇器`,description:`當前顏色為 {color}。按 Enter 鍵選擇新顏色。`,alphaLabel:`選擇透明度的值`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`現在`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`確認`,dateTablePrompt:`使用方向鍵與 Enter 鍵以選擇日期`,monthTablePrompt:`使用方向鍵與 Enter 鍵以選擇月份`,yearTablePrompt:`使用方向鍵與 Enter 鍵以選擇年份`,selectedDate:`已選日期`,selectDate:`選擇日期`,selectTime:`選擇時間`,startDate:`開始日期`,startTime:`開始時間`,endDate:`結束日期`,endTime:`結束時間`,prevYear:`前一年`,nextYear:`後一年`,prevMonth:`上個月`,nextMonth:`下個月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`減少數值`,increase:`增加數值`},select:{loading:`載入中`,noMatch:`無匹配資料`,noData:`無資料`,placeholder:`請選擇`},mention:{loading:`載入中`},dropdown:{toggleDropdown:`切換下拉選單`},cascader:{noMatch:`無匹配資料`,loading:`載入中`,placeholder:`請選擇`,noData:`無資料`},pagination:{goto:`前往`,pagesize:`項/頁`,total:`共 {total} 項`,pageClassifier:`頁`,page:`頁`,prev:`上一頁`,next:`下一頁`,currentPage:`第 {pager} 頁`,prevPages:`向前 {pager} 頁`,nextPages:`向後 {pager} 頁`,deprecationWarning:`檢測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊`},dialog:{close:`關閉此對話框`},drawer:{close:`關閉此對話框`},messagebox:{title:`提示`,confirm:`確定`,cancel:`取消`,error:`輸入的資料不符合規定!`,close:`關閉此對話框`},upload:{deleteTip:`按 Delete 鍵以刪除`,delete:`刪除`,preview:`查看圖片`,continue:`繼續上傳`},slider:{defaultLabel:`滑桿介於 {min} 至 {max}`,defaultRangeStartLabel:`選擇起始值`,defaultRangeEndLabel:`選擇結束值`},table:{emptyText:`暫無資料`,confirmFilter:`篩選`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合計`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`關閉此標籤`},tour:{next:`下一步`,previous:`上一步`,finish:`結束導覽`,close:`關閉此對話框`},tree:{emptyText:`暫無資料`},transfer:{noMatch:`無匹配資料`,noData:`無資料`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`請輸入搜尋內容`,noCheckedFormat:`共 {total} 項`,hasCheckedFormat:`已選 {checked}/{total} 項`},image:{error:`載入失敗`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`確認`,cancelButtonText:`取消`},carousel:{leftArrow:`上一張幻燈片`,rightArrow:`下一張幻燈片`,indicator:`幻燈片切換至索引 {index}`}}};export{e as default};
|
|
3
3
|
//# sourceMappingURL=zh-mo.min.mjs.map
|
package/dist/locale/zh-mo.mjs
CHANGED
package/dist/locale/zh-tw.js
CHANGED
package/dist/locale/zh-tw.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.ElementPlusLocaleZhTw=t())})(this,function(){return{name:`zh-tw`,el:{breadcrumb:{label:`面包屑`},colorpicker:{confirm:`確認`,clear:`清空`,defaultLabel:`色彩選擇器`,description:`目前色彩為 {color}。按一下 Enter 以選擇新色彩。`,alphaLabel:`選擇透明度的值`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`現在`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`確認`,dateTablePrompt:`使用方向鍵與 Enter 鍵以選擇日期`,monthTablePrompt:`使用方向鍵與 Enter 鍵以選擇月份`,yearTablePrompt:`使用方向鍵與 Enter 鍵以選擇年份`,selectedDate:`已選日期`,selectDate:`選擇日期`,selectTime:`選擇時間`,startDate:`開始日期`,startTime:`開始時間`,endDate:`結束日期`,endTime:`結束時間`,prevYear:`前一年`,nextYear:`後一年`,prevMonth:`上個月`,nextMonth:`下個月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`減少數值`,increase:`增加數值`},select:{loading:`載入中`,noMatch:`無相符資料`,noData:`無資料`,placeholder:`請選擇`},mention:{loading:`載入中`},dropdown:{toggleDropdown:`切換下拉選單`},cascader:{noMatch:`無相符資料`,loading:`載入中`,placeholder:`請選擇`,noData:`無資料`},pagination:{goto:`前往`,pagesize:`項/頁`,total:`共 {total} 項`,pageClassifier:`頁`,page:`頁`,prev:`上一頁`,next:`下一頁`,currentPage:`第 {pager} 頁`,prevPages:`向前 {pager} 頁`,nextPages:`向後 {pager} 頁`,deprecationWarning:`偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊`},dialog:{close:`關閉此對話框`},drawer:{close:`關閉此對話框`},messagebox:{title:`提示`,confirm:`確定`,cancel:`取消`,error:`輸入的資料不符合規定!`,close:`關閉此對話框`},upload:{deleteTip:`按 Delete 鍵以刪除`,delete:`刪除`,preview:`查看圖片`,continue:`繼續上傳`},slider:{defaultLabel:`滑桿介於 {min} 至 {max}`,defaultRangeStartLabel:`選擇起始值`,defaultRangeEndLabel:`選擇結束值`},table:{emptyText:`暫無資料`,confirmFilter:`篩選`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合計`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`關閉此標籤`},tour:{next:`下一步`,previous:`上一步`,finish:`結束導覽`,close:`關閉此對話框`},tree:{emptyText:`暫無資料`},transfer:{noMatch:`無相符資料`,noData:`無資料`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`請輸入搜尋內容`,noCheckedFormat:`共 {total} 項`,hasCheckedFormat:`已選 {checked}/{total} 項`},image:{error:`載入失敗`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`確認`,cancelButtonText:`取消`},carousel:{leftArrow:`上一張投影片`,rightArrow:`下一張投影片`,indicator:`投影片切換至索引 {index}`}}}});
|
|
3
3
|
//# sourceMappingURL=zh-tw.min.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Element Plus v1.0.
|
|
1
|
+
/*! Element Plus v1.0.10 */
|
|
2
2
|
var e={name:`zh-tw`,el:{breadcrumb:{label:`面包屑`},colorpicker:{confirm:`確認`,clear:`清空`,defaultLabel:`色彩選擇器`,description:`目前色彩為 {color}。按一下 Enter 以選擇新色彩。`,alphaLabel:`選擇透明度的值`,alphaDescription:`alpha {alpha}, current color is {color}`,hueLabel:`pick hue value`,hueDescription:`hue {hue}, current color is {color}`,svLabel:`pick saturation and brightness value`,svDescription:`saturation {saturation}, brightness {brightness}, current color is {color}`,predefineDescription:`select {value} as the color`},datepicker:{now:`現在`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`確認`,dateTablePrompt:`使用方向鍵與 Enter 鍵以選擇日期`,monthTablePrompt:`使用方向鍵與 Enter 鍵以選擇月份`,yearTablePrompt:`使用方向鍵與 Enter 鍵以選擇年份`,selectedDate:`已選日期`,selectDate:`選擇日期`,selectTime:`選擇時間`,startDate:`開始日期`,startTime:`開始時間`,endDate:`結束日期`,endTime:`結束時間`,prevYear:`前一年`,nextYear:`後一年`,prevMonth:`上個月`,nextMonth:`下個月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`減少數值`,increase:`增加數值`},select:{loading:`載入中`,noMatch:`無相符資料`,noData:`無資料`,placeholder:`請選擇`},mention:{loading:`載入中`},dropdown:{toggleDropdown:`切換下拉選單`},cascader:{noMatch:`無相符資料`,loading:`載入中`,placeholder:`請選擇`,noData:`無資料`},pagination:{goto:`前往`,pagesize:`項/頁`,total:`共 {total} 項`,pageClassifier:`頁`,page:`頁`,prev:`上一頁`,next:`下一頁`,currentPage:`第 {pager} 頁`,prevPages:`向前 {pager} 頁`,nextPages:`向後 {pager} 頁`,deprecationWarning:`偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊`},dialog:{close:`關閉此對話框`},drawer:{close:`關閉此對話框`},messagebox:{title:`提示`,confirm:`確定`,cancel:`取消`,error:`輸入的資料不符合規定!`,close:`關閉此對話框`},upload:{deleteTip:`按 Delete 鍵以刪除`,delete:`刪除`,preview:`查看圖片`,continue:`繼續上傳`},slider:{defaultLabel:`滑桿介於 {min} 至 {max}`,defaultRangeStartLabel:`選擇起始值`,defaultRangeEndLabel:`選擇結束值`},table:{emptyText:`暫無資料`,confirmFilter:`篩選`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合計`,selectAllLabel:`Select all rows`,selectRowLabel:`Select this row`,expandRowLabel:`Expand this row`,collapseRowLabel:`Collapse this row`,sortLabel:`Sort by {column}`,filterLabel:`Filter by {column}`},tag:{close:`關閉此標籤`},tour:{next:`下一步`,previous:`上一步`,finish:`結束導覽`,close:`關閉此對話框`},tree:{emptyText:`暫無資料`},transfer:{noMatch:`無相符資料`,noData:`無資料`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`請輸入搜尋內容`,noCheckedFormat:`共 {total} 項`,hasCheckedFormat:`已選 {checked}/{total} 項`},image:{error:`載入失敗`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`確認`,cancelButtonText:`取消`},carousel:{leftArrow:`上一張投影片`,rightArrow:`下一張投影片`,indicator:`投影片切換至索引 {index}`}}};export{e as default};
|
|
3
3
|
//# sourceMappingURL=zh-tw.min.mjs.map
|
package/dist/locale/zh-tw.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../packages/components/extend/base-table/src/index.vue"],"sourcesContent":["<template>\n <div ref=\"rootEl\" class=\"basetable-block\">\n <slot\n name=\"custom\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n <div\n v-if=\"\n topInputs.length ||\n $slots.formButton ||\n $slots.topRight ||\n $slots.topLeft ||\n $slots.inLineformButton\n \"\n class=\"basetable-top-box\"\n :class=\"{ 'no-padding-basetable': noPadding }\"\n >\n <v-form\n v-if=\"topInputs.length || $slots.formButton || $slots.inLineformButton\"\n ref=\"searchForm\"\n :model=\"inputsData\"\n :inline=\"true\"\n label-position=\"right\"\n :form-items=\"topInputsDealed\"\n :rules=\"topRules\"\n :class=\"{ 'is-collapsed': isCollapsed }\"\n @value-change=\"onChange\"\n >\n <template v-if=\"!isCollapsed\">\n <template v-if=\"topInputs.length\">\n <div v-if=\"showCollapse\" class=\"form-btns\">\n <el-button type=\"primary\" link @click=\"toggleCollapse\">\n <el-icon class=\"el-icon--arrow-up\"><ArrowUp /></el-icon>\n {{ t('expand.utils.collapse') }}\n </el-button>\n </div>\n <div v-if=\"hasSearch\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :size=\"size\"\n :loading=\"tableLoading\"\n :plain=\"searchButtonIcon ? true : false\"\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n type=\"primary\"\n link\n @click=\"onSearch(inputsData, 1)\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <SearchIcon />\n </template>\n {{ t('expand.button.search') }}\n </el-button>\n </div>\n <div v-if=\"hasReset\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :size=\"size\"\n plain\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n :type=\"searchButtonIcon ? 'primary' : undefined\"\n link\n @click=\"restTopInputs\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <Refresh />\n </template>\n {{ t('expand.button.refresh') }}\n </el-button>\n </div>\n </template>\n <div v-if=\"$slots.inLineformButton\" class=\"form-btns\">\n <slot\n name=\"inLineformButton\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n </template>\n <div v-if=\"isCollapsed\" class=\"collapse-btns\">\n <template v-if=\"topInputs.length\">\n <div class=\"form-btns\">\n <el-button type=\"primary\" link @click=\"toggleCollapse\">\n <el-icon class=\"el-icon--arrow-up\"><ArrowUp /></el-icon>\n {{ t('expand.utils.expand') }}\n </el-button>\n </div>\n <div v-if=\"hasSearch\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :loading=\"tableLoading\"\n :plain=\"searchButtonIcon ? true : false\"\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n type=\"primary\"\n :size=\"size\"\n link\n @click=\"onSearch(inputsData, 1)\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <SearchIcon />\n </template>\n {{ t('expand.button.search') }}\n </el-button>\n </div>\n <div v-if=\"hasReset\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :size=\"size\"\n plain\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n :type=\"searchButtonIcon ? 'primary' : undefined\"\n link\n @click=\"restTopInputs\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <Refresh />\n </template>\n {{ t('expand.button.refresh') }}\n </el-button>\n </div>\n </template>\n <div v-if=\"$slots.inLineformButton\" class=\"form-btns\">\n <slot\n name=\"inLineformButton\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n </div>\n <div v-if=\"$slots.formButton && !isCollapsed\" class=\"form-btns\">\n <slot\n name=\"formButton\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n </v-form>\n <div v-if=\"$slots.topLeft\" class=\"basetable-left-buttons\">\n <slot\n name=\"topLeft\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n <div v-if=\"$slots.topRight || hasRefresh\" class=\"basetable-right-buttons\">\n <slot\n name=\"topRight\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n <el-button\n v-if=\"hasRefresh\"\n class=\"icon-button\"\n type=\"text\"\n icon=\"el-icon-refresh\"\n @click=\"onReset()\"\n />\n </div>\n </div>\n <div\n v-if=\"middleButtons.length || $slots.default\"\n class=\"basetable-middle-box\"\n :class=\"{ 'no-padding-basetable': noPadding }\"\n >\n <template\n v-for=\"(\n {\n type,\n plain,\n disabled,\n loading,\n text,\n icon,\n tips,\n svgIcon,\n click,\n isShow = true,\n hide = false,\n badgeValue = 0,\n isDot = false,\n max = 99,\n permit,\n ...rest\n },\n idx\n ) in middleButtons\"\n >\n <template v-if=\"badgeValue || isDot\">\n <el-badge\n :key=\"idx\"\n :value=\"badgeValue\"\n :is-dot=\"isDot\"\n :max=\"max\"\n class=\"v-button\"\n >\n <el-button\n v-if=\"isShow && !hide\"\n :key=\"idx\"\n v-permit=\"permit\"\n :type=\"type\"\n :plain=\"plain\"\n :disabled=\"\n getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n :loading=\"loading\"\n :icon=\"icon\"\n @click=\"\n () => {\n click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n lastSearchData,\n })\n }\n \"\n >\n <svg-icon v-if=\"svgIcon\" :icon-class=\"svgIcon\" />\n {{ text }}\n </el-button>\n </el-badge>\n </template>\n <template v-else-if=\"rest.options\">\n <el-tooltip\n :key=\"idx\"\n :content=\"tips\"\n :disabled=\"!tips\"\n placement=\"top\"\n >\n <el-dropdown\n v-if=\"isShow && !hide\"\n :key=\"idx\"\n v-permit=\"permit\"\n class=\"v-button\"\n :disabled=\"\n getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n placement=\"bottom-start\"\n @command=\"\n (command: any) => {\n click\n ? click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n command,\n lastSearchData,\n })\n : rest.options\n .find((item: any) => item.value === command)\n .click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n command,\n lastSearchData,\n })\n }\n \"\n >\n <el-button\n :key=\"idx\"\n :type=\"type\"\n :plain=\"plain\"\n :disabled=\"\n getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n :loading=\"loading\"\n :icon=\"icon\"\n :style=\"\n rest.showMoreIcon\n ? 'position: relative; padding-left: 10px; padding-right: 36px'\n : ''\n \"\n >\n <svg-icon v-if=\"svgIcon\" :icon-class=\"svgIcon\" />\n {{ text }}\n <el-icon\n v-if=\"rest.showMoreIcon\"\n style=\"\n position: absolute;\n top: 0;\n right: 4px;\n height: 100%;\n padding-left: 4px;\n width: 24px;\n font-size: 18px;\n border-left: 1px solid var(--el-button-border-color);\n \"\n >\n <MoreFilled />\n </el-icon>\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <template v-for=\"item in rest.options\" :key=\"item.label\">\n <el-dropdown-item\n v-if=\"!item.hide\"\n :command=\"item.value\"\n :disabled=\"item.disabled\"\n >\n <template v-if=\"item.labelRender\">\n <component :is=\"item.labelRender()\" />\n </template>\n <template v-else>{{ item.label }}</template>\n </el-dropdown-item>\n </template>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n </el-tooltip>\n </template>\n <template v-else>\n <el-tooltip\n :key=\"idx\"\n :content=\"tips\"\n :disabled=\"!tips\"\n placement=\"top\"\n >\n <v-button\n v-if=\"isShow && !hide\"\n v-permit=\"permit\"\n :type=\"type\"\n :plain=\"plain\"\n :disabled=\"\n rest.needSelect\n ? !selectRows.length\n : getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n :loading=\"loading\"\n :icon=\"icon\"\n v-bind=\"rest\"\n @click=\"\n (clickDone: Function) => {\n click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n clickDone,\n lastSearchData,\n })\n }\n \"\n >\n <svg-icon v-if=\"svgIcon\" :icon-class=\"svgIcon\" />\n {{ text }}\n </v-button>\n </el-tooltip>\n </template>\n </template>\n <slot\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n <!-- select-type、table-columns、use-virtual 为非el-table原有属性 -->\n <div\n class=\"v-table-wrapper\"\n :class=\"{\n 'no-padding-basetable': noPadding,\n 'header-unselection': headerSelectable && !headerSelectable(),\n }\"\n >\n <HTable\n ref=\"VTableBase\"\n v-loading=\"tableLoading || propsLoading\"\n :use-virtual=\"useVirtual\"\n :row-height=\"rowHeight\"\n :estimated-row-height=\"estimatedRowHeight\"\n :height=\"vTableHeight\"\n :max-height=\"maxHeight\"\n :class=\"{\n 'no-border': !hasBorder,\n 'auto-height': autoHeight,\n 'row-click': rowClick,\n }\"\n :allow-drag-last-column=\"allowDragLastColumn\"\n :border=\"true\"\n :header-filter=\"headerFilter\"\n :no-data-text=\"noDataText\"\n :stripe=\"isStripe\"\n :lazy=\"lazy\"\n :load=\"handleLazyLoad\"\n :tree-props=\"treeConfig\"\n :row-key=\"rowKey\"\n :default-expand-all=\"\n expandRow ? defaultExpandAll : treeConfig.expandAll\n \"\n :expand-row-keys=\"expandRowKeys\"\n :table-columns=\"finalVtableColumns\"\n :data=\"tableData\"\n :label-param=\"labelParam\"\n :expand-row=\"expandRow ? expandRowRender : expandRow\"\n :highlight-current-row=\"selectType === 'radio'\"\n :select-type=\"selectType\"\n :selectable=\"selectable\"\n :cell-class-name=\"cellClassName\"\n :search-data=\"inputsData\"\n :search-value-change=\"searchValueChange\"\n :table-search=\"onSearch\"\n :span-method=\"spanMethod\"\n :colspan-prop-name=\"colspanPropName\"\n :no-hover-effect=\"noHoverEffect\"\n :no-one-click-expand=\"noOneClickExpand\"\n :remember-scroller=\"\n !!(scrollPosition.scrollTop || scrollPosition.scrollLeft)\n \"\n :cell-style=\"cellStyle\"\n :row-class-name=\"rowClassName\"\n @row-click=\"handleRowClick\"\n @current-change=\"handleCurrentChange\"\n @selection-change=\"handleSelectionChange\"\n @select=\"handleSelect\"\n @select-all=\"handleSelectAll\"\n @sort-change=\"handleSortChange\"\n @expand-change=\"handleExpandChange\"\n @row-contextmenu=\"rowContextmenu\"\n @header-dragend=\"handleHeaderDragend\"\n @cell-mouse-enter=\"handleCellMouseEnter\"\n @cell-mouse-leave=\"handleCellMouseLeave\"\n />\n <HPagination\n v-if=\"hasShowPagination\"\n :class=\"{ unvisibility: !$slots.paginationLeft && total === 0 }\"\n :total=\"total\"\n :current-page=\"pageNum\"\n :page-size=\"pageSize\"\n :page-sizes=\"pageSizes\"\n :select-rows=\"selectRows\"\n :show-selected-number=\"showSelectedNumber\"\n :loading=\"tableLoading\"\n :pager-count=\"pagerCount\"\n @pagination-change=\"paginationChange\"\n >\n <template #paginationLeft>\n <slot name=\"paginationLeft\" />\n </template>\n </HPagination>\n <div v-else-if=\"!noPadding\" style=\"height: 18px\" />\n </div>\n <teleport to=\"body\">\n <div\n v-if=\"showContextmenu\"\n v-click-outside=\"closeContextMenu\"\n class=\"contextmenu-modal\"\n :style=\"contextmenuStyle\"\n >\n <div\n v-for=\"item in contextmenuList\"\n :key=\"item.label\"\n class=\"contextmenu-item\"\n @click=\"item.onClick\"\n >\n <el-icon><DocumentCopy /></el-icon>\n {{ item.label }}\n </div>\n </div>\n </teleport>\n </div>\n</template>\n\n<script lang=\"tsx\" setup>\nimport {\n computed,\n getCurrentInstance,\n nextTick,\n onActivated,\n onBeforeUnmount,\n onMounted,\n provide,\n reactive,\n ref,\n resolveDirective,\n unref,\n watch,\n} from 'vue'\nimport { isFunction } from '@vue/shared'\nimport { vLoading } from '@element-plus/components/loading'\nimport { ClickOutside as vClickOutside } from '@element-plus/directives'\nimport { ElMessage } from '@element-plus/components/message'\nimport { ElBadge } from '@element-plus/components/badge'\nimport {\n ElDropdown,\n ElDropdownItem,\n ElDropdownMenu,\n} from '@element-plus/components/dropdown'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElTooltip } from '@element-plus/components/tooltip'\nimport HPagination from './v-pagination/index.vue'\nimport HTable from './v-table/index.vue'\nimport { SvgIcon } from '@element-plus/components/extend/svg-icon'\nimport { VButton } from '@element-plus/components/extend/v-button'\nimport { VForm } from '@element-plus/components/extend/v-form'\nimport {\n ArrowUp,\n DocumentCopy,\n MoreFilled,\n Refresh,\n Search as SearchIcon,\n} from '@element-plus/icons-vue'\nimport {\n calcVTableHeight,\n createRenderValue,\n getParentNode,\n getTextWidth,\n getVnodeText,\n isNull,\n} from './utils'\nimport { cloneDeep, debounce } from 'lodash-unified'\nimport { baseTableContextKey } from './constants'\nimport { useLocale } from '@element-plus/hooks'\nimport { baseTableEmits, baseTableProps } from './props'\n\nimport type { Directive } from 'vue'\n\ndefineOptions({ name: 'BaseTable' })\n\n// 使用全局注册的 permit 指令,未注册时 fallback 为空指令\nconst vPermit: Directive = resolveDirective('permit') || {\n mounted() {},\n updated() {},\n}\n\nconst props = defineProps(baseTableProps)\nconst emit = defineEmits(baseTableEmits)\n\nconst { t } = useLocale()\nconst instance = getCurrentInstance()!\n\n// 日期组件宽度计算函数\nconst calculateDatePickerWidth = (item: any) => {\n const timeFormat = item.timeFormat || 'YYYY-MM-DD'\n const timeFormatWidth = getTextWidth(timeFormat)\n const placeholderWidth = getTextWidth(item.placeholder)\n return `${Math.max(placeholderWidth, timeFormatWidth) * 2 + 60}px`\n}\n\n// ========== Template Refs ==========\nconst rootEl = ref<HTMLElement>()\nconst searchForm = ref()\nconst VTableBase = ref()\n\n// ========== Reactive State ==========\nconst lazyTreeNodeMapCache = ref<Record<string, any>>({})\nconst abortSignal = ref<AbortController | null>(null)\nconst observer = ref<MutationObserver | null>(null)\nconst resizeObserver = ref<ResizeObserver | null>(null)\nconst autoCollapsed = ref(false)\nconst showCollapse = ref(false)\nconst isCollapsed = ref(false)\nconst vTableHeight = ref<number | undefined>(undefined)\nconst scrollPosition = reactive({\n scrollTop: 0,\n scrollLeft: 0,\n})\nconst pageNum = ref(1)\nconst pageSize = ref(props.defaultPageSize || props.pageSizes[0])\nconst total = ref(0)\nconst sortInfo = reactive<{\n order: string | undefined\n sidx: string | undefined\n}>({\n order: undefined,\n sidx: undefined,\n})\nconst tableLoading = ref(false)\nconst currentRow = ref<Record<string, any>>({})\nconst selectRows = ref<any[]>([])\nconst lastSearchData = ref<Record<string, any>>({})\nconst showContextmenu = ref(false)\nconst contextmenuList = ref<any[]>([])\nconst contextmenuStyle = reactive({ left: '0px', top: '0px' })\nconst fields = ref<any[]>([])\nconst hasMoreData = ref(true)\nconst loadingMore = ref(false)\nlet clickRow: any = null\nlet scrollHandler: any = null\n\n// ========== Initialize inputsData ==========\nconst buildInputsDefault = () => {\n const inputsDefault: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n let defaultValue = item.defaultValue\n if (item.element === 'el-switch' && defaultValue === undefined)\n defaultValue = false\n inputsDefault[item.prop] = defaultValue\n })\n const columns = [...props.tableColumns].filter(\n (item: any) => item && !item.hide\n )\n columns\n .filter((col: any) => col.headerSearch)\n .forEach((item: any) => {\n const { defaultValue } = item.headerSearch\n inputsDefault[item.prop] = defaultValue\n })\n if (props.headerFilter) {\n columns\n .filter((col: any) => col.filter)\n .forEach((item: any) => {\n if (item.filter instanceof Array) {\n item.filter.forEach((child: any) => {\n if (!isNull(child.defaultValue)) {\n inputsDefault[item.prop] = child.defaultValue\n }\n })\n } else {\n inputsDefault[item.prop] = item.filter.defaultValue\n }\n })\n }\n return inputsDefault\n}\n\nconst inputsData = reactive<Record<string, any>>(buildInputsDefault())\n\n// ========== Provide ==========\nconst addField = (field: any) => {\n fields.value.push(field)\n}\nconst removeField = (field: any) => {\n fields.value.splice(fields.value.indexOf(field), 1)\n}\nprovide(baseTableContextKey, reactive({ addField, removeField }))\n\n// ========== Computed ==========\nconst topInputsDealed = computed(() => {\n return props.topInputs.map((item: any) => {\n const extra: Record<string, any> = {\n autoSubmitOnEnter: true,\n maxlength: item.maxlength || 1000000,\n }\n if (isCollapsed.value) {\n if (\n (item.multiple && item.element === 'el-select') ||\n (item.element === 'el-cascader' && item.props.multiple)\n ) {\n extra.filterable = false\n extra.collapseTags = true\n }\n if (\n ['el-input', 'el-autocomplete'].includes(item.element) &&\n item.type === 'textarea'\n ) {\n extra.resize = 'none'\n extra.rows = 1\n }\n }\n if (!item.placeholder) {\n if (item.element === 'el-input') {\n extra.placeholder = t('expand.utils.pleaseEnter')\n } else {\n extra.placeholder = t('expand.utils.pleaseChoose')\n }\n }\n if (item.element === 'el-date-picker' && item.placeholder) {\n extra.inputWidth = calculateDatePickerWidth(item)\n }\n if (item.element === 'el-switch') {\n extra.inlinePrompt =\n item.inlinePrompt !== undefined ? item.inlinePrompt : true\n extra.activeText = item.activeText || item.title || ''\n extra.inactiveText = item.inactiveText || item.title || ''\n extra.activeValue = item.activeValue || ['Y']\n extra.inactiveValue = item.inactiveValue || ['N']\n }\n return { ...item, ...extra }\n })\n})\n\nconst inputsDataDealed = computed(() => {\n return dealQueryParam(cloneDeep(inputsData))\n})\n\nconst finalVtableColumns = computed(() => {\n let indexColumn = props.tableColumns\n .filter((v: any) => v)\n .find((item: any) => item.type === 'index')\n const columns = [...props.tableColumns]\n .filter((v: any) => v)\n .filter((item: any) => !item.hide)\n if (!indexColumn && !props.noIndex) {\n indexColumn = {\n label: t('expand.utils.index'),\n type: 'index',\n fixed: props.tableColumns.some(\n (item: any) => item && item.fixed && item.fixed !== 'right'\n ),\n width: '45',\n index: (index: number) =>\n (pageNum.value - 1) * pageSize.value + (index + 1),\n }\n columns.unshift(indexColumn)\n }\n if (indexColumn && !indexColumn.index) {\n indexColumn.index = (index: number) =>\n (pageNum.value - 1) * pageSize.value + (index + 1)\n }\n return renderProxy(columns)\n})\n\nconst tableHeaderInputs = computed(() => {\n const columns = [...props.tableColumns].filter((item: any) => !item.hide)\n return columns\n .filter((col: any) => col.headerSearch)\n .map((v: any) => v.headerSearch)\n})\n\nconst filterInputs = computed(() => {\n const columns = [...props.tableColumns].filter(\n (item: any) => !item.hide && item.filter\n )\n const inputs: any[] = []\n columns.forEach((col: any) => {\n if (col.filter instanceof Array) {\n col.filter.forEach((child: any) => {\n inputs.push(child)\n })\n } else {\n inputs.push(col.filter)\n }\n })\n return inputs\n})\n\nconst valueStringColumns = computed(() => {\n const flag: Record<string, boolean> = {}\n props.tableColumns.forEach((item: any) => {\n if (item.valueIsString) {\n flag[item.prop] = true\n }\n })\n props.topInputs.forEach((item: any) => {\n if (item.valueIsString) {\n flag[item.prop] = true\n }\n })\n return flag\n})\n\nconst valueArrayColumns = computed(() => {\n const flag: Record<string, boolean> = {}\n props.topInputs.forEach((item: any) => {\n if (item.valueArray) {\n flag[item.prop] = true\n }\n })\n return flag\n})\n\nconst timeToObjectColumns = computed(() => {\n const flag: Record<string, boolean> = {}\n props.topInputs.forEach((item: any) => {\n if (item.timeToObject) {\n flag[item.prop] = true\n }\n })\n return flag\n})\n\nconst timeToSplitColumns = computed(() => {\n const flag: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n if (item.timeToSplit) {\n flag[item.prop] = item\n }\n })\n return flag\n})\n\nconst textareaColumns = computed(() => {\n const flag: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n if (\n ['el-input', 'el-autocomplete'].includes(item.element) &&\n item.type === 'textarea'\n ) {\n flag[item.prop] = item\n }\n })\n return flag\n})\n\nconst groupCheckColumns = computed(() => {\n const flag: Record<string, any> = {}\n props.tableColumns.forEach((item: any) => {\n if (item.filter && item.filter.group) {\n flag[item.prop] = item\n }\n })\n return flag\n})\n\nconst hasShowPagination = computed(() => {\n return !props.needDropdown && props.isShowPagination\n})\n\n// ========== Methods ==========\nfunction getInputDefaultValue(item: any) {\n const { defaultValue, element } = item\n if (element === 'el-switch' && defaultValue === undefined) return ['N']\n return defaultValue\n}\n\nfunction initInfiniteScroll() {\n const tableContainer = VTableBase.value.$refs.singleTable.scrollBarRef.wrapRef\n if (!tableContainer) return\n\n scrollHandler = debounce(() => {\n const { scrollTop, scrollHeight, clientHeight } = tableContainer\n if (\n scrollHeight - scrollTop - clientHeight < 50 &&\n !loadingMore.value &&\n hasMoreData.value\n ) {\n loadNextPage()\n }\n }, 100)\n\n tableContainer.addEventListener('scroll', scrollHandler)\n}\n\nasync function loadNextPage() {\n if (loadingMore.value || !hasMoreData.value) return\n\n loadingMore.value = true\n try {\n const nextNum = pageNum.value + 1\n const searchData = {\n ...dealQueryParam(cloneDeep(inputsData)),\n page: nextNum,\n pageNum: nextNum,\n limit: pageSize.value,\n pageSize: pageSize.value,\n ...props.requiredParam,\n ...sortInfo,\n }\n\n const response = await props.searchMethod(searchData)\n const data = response?.result || response || []\n const list = props.isShowPagination\n ? data.list || data.records || []\n : data instanceof Array\n ? data\n : [data]\n\n if (!list.length) {\n hasMoreData.value = false\n return\n }\n\n pageNum.value = nextNum\n emit('update:tableData', [...props.tableData, ...list])\n const { scrollTop, scrollLeft } =\n VTableBase.value.$refs.singleTable.scrollBarRef.wrapRef\n nextTick(() =>\n VTableBase.value.$refs.singleTable.scrollTo(scrollLeft, scrollTop)\n )\n } catch {\n hasMoreData.value = false\n } finally {\n loadingMore.value = false\n }\n}\n\nfunction renderProxy(columns: any[]) {\n return columns.map((column: any) => {\n if (column.type === 'index') column.prop = '$index'\n return {\n ...column,\n originRender: column.render,\n render:\n column.prop === 'operateCol' && !column.render\n ? undefined\n : ({ index, row, value, scope }: any) => {\n const renderValue = createRenderValue({\n index,\n row,\n column,\n value,\n scope,\n })\n return renderValue\n },\n }\n })\n}\n\nfunction handleResize() {\n nextTick(() => {\n if (props.autoHeight || props.tableHeight || props.maxHeight) return\n if (!VTableBase.value) return\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n })\n}\n\nfunction expandRowRender(scope: any) {\n return props.expandRow!(scope)\n}\n\nfunction toggleCollapse() {\n isCollapsed.value = !isCollapsed.value\n}\n\nfunction getInputsData() {\n return inputsData\n}\n\nfunction setInputsData(data: Record<string, any>) {\n const dkeys = Object.keys(data)\n const ikeys = Object.keys(inputsData)\n ikeys.forEach((ik) => {\n if (!dkeys.includes(ik)) {\n inputsData[ik] = undefined\n }\n })\n dkeys.forEach((dk) => {\n inputsData[dk] = data[dk]\n })\n}\n\nfunction onChange(\n prop: string,\n value: any,\n action: string,\n { itemProps }: any\n) {\n inputsData[prop] = value\n emit('topInputsChange', prop, value, action, inputsData)\n if (\n ((action === 'input' || itemProps.element === 'el-select') &&\n !props.hasSearch) ||\n action === 'enter' ||\n (itemProps.element === 'el-switch' && action === 'change')\n ) {\n onSearch(inputsData, 1, pageSize.value)\n }\n}\n\nfunction searchValueChange(prop: string, value: any) {\n inputsData[prop] = value\n}\n\nfunction handleLazyLoad(\n row: any,\n treeNode: any,\n resolve: (data: any[]) => void\n) {\n props.load!(row, treeNode, (data: any[]) => {\n if (data.length !== 0) {\n lazyTreeNodeMapCache.value[row[props.rowKey!]] = cloneDeep(data)\n }\n resolve(data)\n })\n}\n\nfunction handleLazySortNodes(column: any, prop: string, order: string) {\n const expandNodeMap = unref(\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap\n )\n const cacheNodeMap: Record<string, any> = {}\n Object.keys(lazyTreeNodeMapCache.value).forEach((key) => {\n cacheNodeMap[key] = lazyTreeNodeMapCache.value[key].slice(0)\n })\n if (order) {\n Object.keys(expandNodeMap).forEach((key) => {\n cacheNodeMap[key]?.sort((a: any, b: any) => {\n if (column.sortMethod) {\n return order === 'ascending'\n ? column.sortMethod(a, b)\n : 0 - column.sortMethod(a, b)\n } else {\n const ra = a[prop]\n const rb = b[prop]\n const va = ra === undefined || ra === null ? '' : ra\n const vb = rb === undefined || rb === null ? '' : rb\n return va < vb\n ? order === 'ascending'\n ? -1\n : 1\n : va > vb\n ? order === 'ascending'\n ? 1\n : -1\n : 0\n }\n })\n })\n }\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap.value =\n cacheNodeMap\n}\n\nfunction handleSortChange({ column, prop, order }: any) {\n emit('sort-change', { column, prop, order })\n if (column.sortable === true) return\n if (props.customSortMethod) {\n props.customSortMethod({ column, prop, order })\n return\n }\n if (props.lazy && props.onlySortLazyNodes) {\n handleLazySortNodes(column, prop, order)\n return\n }\n\n sortInfo.order = order ? (order === 'ascending' ? 'asc' : 'desc') : undefined\n if (sortInfo.order) {\n sortInfo.sidx = prop.replace(/[A-Z]/g, (...args: any[]) => {\n return `_${args[0].toLowerCase()}`\n })\n } else {\n sortInfo.order = undefined\n sortInfo.sidx = undefined\n }\n onSearch(inputsData, 1, pageSize.value)\n}\n\nfunction handleExpandChange(row: any, expandRows: any) {\n emit('expand-change', row, expandRows)\n}\n\nfunction clearSort() {\n VTableBase.value.$refs.singleTable.clearSort()\n sortInfo.order = undefined\n sortInfo.sidx = undefined\n}\n\nasync function queryTableData(\n inputsDataParam: any = inputsData,\n pNum: number = pageNum.value,\n pSize: number = pageSize.value,\n resetSearch: boolean = false\n) {\n if (props.needDropdown) {\n if (pNum === 1) {\n hasMoreData.value = true\n pageNum.value = 1\n }\n }\n if (props.lazy && (props.forceUpdateOnSearch || resetSearch)) {\n lazyTreeNodeMapCache.value = {}\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap.value = {}\n emit('update:tableData', [])\n }\n const inputsDataCopy = cloneDeep(inputsDataParam)\n\n if (resetSearch) {\n emit('reset', inputsDataCopy)\n }\n\n if (props.noAirSearch) {\n const values: any[] = []\n for (const k in inputsDataCopy) {\n if (inputsDataCopy[k]) {\n values.push(inputsDataCopy[k])\n }\n }\n if (values.length === 0) {\n ElMessage({\n message: '请设置搜索条件',\n type: 'warning',\n })\n return\n }\n }\n if (props.topInputs.length > 0) {\n const tipsLabel: string[] = []\n props.topInputs.forEach(({ require, prop, label }: any) => {\n if (require && !inputsDataCopy[prop]) {\n tipsLabel.push(label)\n }\n })\n if (tipsLabel.length > 0) {\n ElMessage({\n message: `${tipsLabel.join('和')}必填,请设置后搜索`,\n type: 'warning',\n })\n return\n }\n }\n\n const selectDefaultAllList = props.topInputs.filter((item: any) => {\n return item.element === 'el-select'\n })\n selectDefaultAllList.forEach((item: any) => {\n if (inputsDataCopy[item.prop] === 'all') {\n inputsDataCopy[item.prop] = undefined\n }\n })\n const searchData: any = {\n ...inputsDataCopy,\n page: props.isShowPagination ? pNum : undefined,\n pageNum: props.isShowPagination ? pNum : undefined,\n limit: props.isShowPagination ? pSize : undefined,\n pageSize: props.isShowPagination ? pSize : undefined,\n ...props.requiredParam,\n ...sortInfo,\n }\n\n dealQueryParam(searchData)\n\n if (!props.beforeSearch(inputsDataCopy, searchData, instance.proxy)) {\n return\n }\n lastSearchData.value = searchData\n\n try {\n tableLoading.value = true\n const response = await Promise.resolve(props.searchMethod(searchData))\n if (!response || !response.result) {\n emit('update:tableData', [])\n emit('search', searchData)\n return\n }\n\n const { page, result } = response\n let data = page || result\n if (props.afterSearch(data)) {\n data = props.afterSearch(data)\n }\n\n const { total: totalCount = 0 } = data || {}\n const list = props.isShowPagination\n ? data.list || data.records || []\n : data instanceof Array\n ? data\n : data\n ? [data]\n : []\n list.forEach((item: any, i: number) => {\n item.__index__ = i\n })\n emit('update:tableData', list)\n doLayout()\n pageNum.value = pNum\n pageSize.value = pSize\n total.value = totalCount\n emit(\n 'searchCallback',\n instance.proxy,\n response,\n inputsData,\n inputsDataDealed.value\n )\n } finally {\n tableLoading.value = false\n }\n}\n\nfunction dealQueryParam(searchData: Record<string, any>) {\n for (const k in searchData) {\n const inputValue = searchData[k]\n if (!isNull(inputValue)) {\n if (inputValue instanceof Array) {\n if (inputValue.length === 0) {\n searchData[k] = undefined\n } else if (valueStringColumns.value[k]) {\n const newValue = inputValue.join()\n searchData[k] = newValue.length ? newValue : undefined\n } else if (timeToObjectColumns.value[k]) {\n const newValue = {\n startDate: inputValue[0],\n endDate: inputValue[1],\n }\n searchData[k] = newValue\n } else if (timeToSplitColumns.value[k]) {\n const timeToSplit = timeToSplitColumns.value[k].timeToSplit\n searchData[timeToSplit[0]] = inputValue[0]\n searchData[timeToSplit[1]] = inputValue[1]\n searchData[k] = undefined\n } else if (groupCheckColumns.value[k]) {\n if (groupCheckColumns.value[k].filter.splitProp) {\n groupCheckColumns.value[k].filter.options.forEach(\n ({ prop, options }: any) => {\n const ovs = options.map(({ value }: any) => value)\n searchData[prop] = ovs.filter((v: any) =>\n inputValue.includes(v)\n )\n }\n )\n searchData[k] = undefined\n } else {\n const newValue = inputValue.filter(\n (val: any) => String(val).indexOf('group#') !== 0\n )\n searchData[k] = newValue.length ? newValue : undefined\n }\n }\n } else if (typeof inputValue === 'string') {\n searchData[k] = inputValue.trim() || undefined\n if (\n textareaColumns.value[k] &&\n searchData[k] &&\n (props.multiLineMode || valueArrayColumns.value[k])\n ) {\n const splitArr = searchData[k]\n .split(/\\n|,|,/)\n .map((v: string) => v.trim())\n .filter((v: string) => v !== '')\n if (props.multiLineMode === 'array' || valueArrayColumns.value[k]) {\n if (!(splitArr.length === 1 && props.multiLineMode === 'array')) {\n searchData[k] = splitArr\n }\n } else {\n searchData[k] = splitArr.join(props.multiLineMode as string)\n }\n } else if (valueArrayColumns.value[k]) {\n searchData[k] = [inputValue]\n }\n } else {\n if (valueArrayColumns.value[k]) {\n searchData[k] = [inputValue]\n }\n }\n } else {\n delete searchData[k]\n }\n }\n return searchData\n}\n\nfunction resetScrollingPosition() {\n scrollPosition.scrollTop = 0\n scrollPosition.scrollLeft = 0\n}\n\nfunction rememberScrollingPosition() {\n const { scrollTop, scrollLeft } =\n VTableBase.value.$refs.singleTable.scrollBarRef.wrapRef\n scrollPosition.scrollTop = scrollTop\n scrollPosition.scrollLeft = scrollLeft\n}\n\nfunction pagingScrollTopLeft() {\n const { scrollTop, scrollLeft } = scrollPosition\n nextTick(() => {\n VTableBase.value &&\n VTableBase.value.$refs.singleTable.scrollTo(scrollLeft, scrollTop)\n resetScrollingPosition()\n })\n}\n\nfunction doLayout(callback?: (ctx: any) => void) {\n nextTick(() => {\n VTableBase.value && VTableBase.value.$refs.singleTable.doLayout()\n nextTick(() => {\n props.needScrollTopLeft && pagingScrollTopLeft()\n })\n callback && callback(instance.proxy)\n })\n}\n\nfunction restTopInputs() {\n if (!props.hasRefresh) {\n onReset()\n } else {\n props.topInputs.forEach((item: any) => {\n inputsData[item.prop] = getInputDefaultValue(item)\n })\n onSearch(inputsData, 1, pageSize.value, true)\n }\n}\n\nfunction onReset(onlyRestParams?: boolean) {\n clearSort()\n const inputsDefault: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n inputsDefault[item.prop] = getInputDefaultValue(item)\n })\n tableHeaderInputs.value.forEach((item: any) => {\n const { defaultValue } = item\n inputsDefault[item.prop] = defaultValue\n })\n if (props.headerFilter) {\n filterInputs.value.forEach((item: any) => {\n inputsDefault[item.prop] = item.defaultValue\n })\n }\n const dkeys = Object.keys(inputsDefault)\n const ikeys = Object.keys(inputsData)\n ikeys.forEach((ik) => {\n if (!dkeys.includes(ik)) {\n inputsData[ik] = undefined\n }\n })\n dkeys.forEach((dk) => {\n inputsData[dk] = inputsDefault[dk]\n })\n if (onlyRestParams) return\n onSearch({ ...inputsDefault }, 1, pageSize.value, true)\n}\n\nfunction handleRowClick(val: any, col: any, event: Event) {\n if (col.property === 'operateCol' || col.className === 'text-click') {\n event.preventDefault()\n return\n }\n clickRow = val\n if (col.type === 'selection' || col.type === 'radio') {\n if (col.type === 'selection') {\n if (props.selectable && !props.selectable(val)) return\n const isSelected =\n selectRows.value.length && selectRows.value.includes(val)\n handleLazyTreeCheck(selectRows.value, val, !isSelected)\n VTableBase.value.$refs.singleTable.toggleRowSelection(val, !isSelected)\n }\n return\n }\n if (props.selectType === 'checkbox' && !instance.vnode.props?.onRowClick) {\n if (props.selectable && !props.selectable(val)) return\n const isSelected = selectRows.value.length && selectRows.value.includes(val)\n handleLazyTreeCheck(selectRows.value, val, !isSelected)\n VTableBase.value.$refs.singleTable.toggleRowSelection(val, !isSelected)\n }\n if (!col.treeNode) {\n emit('rowClick', { row: val })\n }\n}\n\nfunction handleCurrentChange(val: any) {\n if (props.selectType === 'radio') {\n currentRow.value = val\n emit('currentChange', val)\n }\n emit('current-change', val)\n}\n\nfunction getCurrentRow() {\n return currentRow.value\n}\n\nfunction setCurrentRow(val: any) {\n if (props.selectType === 'radio') {\n VTableBase.value && VTableBase.value.$refs.singleTable.setCurrentRow(val)\n currentRow.value = val\n }\n}\n\nfunction handleSelectionChange(val: any[]) {\n if (props.selectType === 'checkbox') {\n selectRows.value = val\n }\n if (clickRow) {\n const isSelected =\n selectRows.value.length && selectRows.value.includes(clickRow)\n emit('select', {\n selectRows: val,\n currentRow: clickRow,\n isSelected,\n })\n }\n emit('selection-change', val)\n clickRow = null\n}\n\nfunction handleSelect(rows: any[], val: any) {\n const isSelected = !!rows.length && rows.includes(val)\n handleLazyTreeCheck(rows, val, isSelected)\n emit('select', { selectRows: rows, currentRow: val, isSelected })\n}\n\nfunction handleLazyTreeCheck(rows: any[], val: any, isSelected: boolean) {\n if (props.lazy && props.treeConfig.checkStrictly) {\n setTimeout(() => {\n const lazyTreeNodeMap =\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap.value\n if (\n lazyTreeNodeMap[val[props.rowKey!]] &&\n lazyTreeNodeMap[val[props.rowKey!]].length\n ) {\n lazyTreeNodeMap[val[props.rowKey!]].forEach((v: any) => {\n if (!props.selectable || props.selectable(v)) {\n VTableBase.value.$refs.singleTable.toggleRowSelection(v, isSelected)\n }\n })\n }\n rows.forEach((v: any) => {\n if (\n lazyTreeNodeMap[v[props.rowKey!]] &&\n lazyTreeNodeMap[v[props.rowKey!]].length\n ) {\n const sonKeys = lazyTreeNodeMap[v[props.rowKey!]].map(\n (son: any) => son[props.rowKey!]\n )\n if (!isSelected && sonKeys.includes(val[props.rowKey!])) {\n if (!props.selectable || props.selectable(v)) {\n VTableBase.value.$refs.singleTable.toggleRowSelection(\n v,\n isSelected\n )\n }\n }\n }\n })\n }, 0)\n }\n}\n\nfunction handleSelectAll(rows: any[]) {\n emit('selectAll', { selectRows: rows })\n}\n\nfunction getSelectRows() {\n return selectRows.value\n}\n\nfunction getSelecRowsWithSort() {\n if (!selectRows.value.length) {\n return selectRows.value\n }\n const tableDataDisplay = unref(\n VTableBase.value.$refs.singleTable.store.states.data\n )\n if (\n Object.keys(unref(VTableBase.value.$refs.singleTable.store.states.treeData))\n .length\n ) {\n const treeDataSorted: any[] = []\n const lazyTreeNodeMap = unref(\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap\n )\n const getTreeDataSorted = (list: any[]) => {\n list.forEach((row: any) => {\n treeDataSorted.push(row)\n if (\n lazyTreeNodeMap[row[props.rowKey!]] ||\n row[props.treeConfig.children]\n ) {\n getTreeDataSorted(\n lazyTreeNodeMap[row[props.rowKey!]] ||\n row[props.treeConfig.children]\n )\n }\n })\n }\n getTreeDataSorted(tableDataDisplay)\n return [...selectRows.value].sort((a: any, b: any) => {\n return treeDataSorted.indexOf(a) - treeDataSorted.indexOf(b)\n })\n } else {\n return [...selectRows.value].sort((a: any, b: any) => {\n return tableDataDisplay.indexOf(a) - tableDataDisplay.indexOf(b)\n })\n }\n}\n\nfunction getSortedTableData(getTreeData = false) {\n if (\n getTreeData &&\n Object.keys(unref(VTableBase.value.$refs.singleTable.store.states.treeData))\n .length\n ) {\n const treeData = unref(\n VTableBase.value.$refs.singleTable.store.states.treeData\n )\n const lazyTreeNodeMap = unref(\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap\n )\n const sortedTableData: any[] = []\n const concatAllNodes = (row: any) => {\n if (\n treeData[row[props.rowKey!]] &&\n treeData[row[props.rowKey!]].children.length\n ) {\n lazyTreeNodeMap[row[props.rowKey!]].forEach((cRow: any) => {\n sortedTableData.push(cRow)\n concatAllNodes(cRow)\n })\n }\n }\n unref(VTableBase.value.$refs.singleTable.store.states.data).forEach(\n (row: any) => {\n sortedTableData.push(row)\n concatAllNodes(row)\n }\n )\n return sortedTableData\n } else {\n return unref(VTableBase.value.$refs.singleTable.store.states.data)\n }\n}\n\nfunction clearSelection(rows?: any[]) {\n if (rows && rows.length) {\n rows.forEach((row: any) => {\n VTableBase.value.$refs.singleTable.toggleRowSelection(row, false)\n })\n } else {\n VTableBase.value.$refs.singleTable.clearSelection()\n }\n}\n\nfunction addSelection(rows?: any[]) {\n if (rows && rows.length) {\n rows.forEach((row: any) => {\n VTableBase.value.$refs.singleTable.toggleRowSelection(row, true)\n })\n }\n}\n\nfunction paginationChange(paginationData: any) {\n if (props.needDropdown) {\n hasMoreData.value = true\n pageNum.value = 1\n }\n const { currentPage: pNum, pageSize: pSize } = paginationData\n pageNum.value = pNum\n pageSize.value = pSize\n onSearch()\n}\n\nasync function validateCells(\n callback?: (valid: boolean, invalidFields?: Record<string, any>) => void\n) {\n return validateField(fields.value, callback)\n}\n\nfunction clearCellValidate() {\n fields.value.forEach((field: any) => field.clearValidate())\n}\n\nasync function doValidateField(fieldList: any[]) {\n if (fieldList.length === 0) return true\n let validationErrors: Record<string, any> = {}\n for (const field of fieldList) {\n try {\n await field.validate('')\n } catch (fields2: any) {\n validationErrors = {\n ...validationErrors,\n ...fields2,\n }\n }\n }\n if (Object.keys(validationErrors).length === 0) return true\n return Promise.reject(validationErrors)\n}\n\nasync function validateField(\n fieldList: any[],\n callback?: (valid: boolean, invalidFields?: Record<string, any>) => void\n) {\n const shouldThrow = !isFunction(callback)\n try {\n const result = await doValidateField(fieldList)\n if (result === true && callback) {\n await callback(result)\n }\n return result\n } catch (e) {\n if (e instanceof Error) throw e\n const invalidFields = e as Record<string, any>\n if (callback) {\n await callback(false, invalidFields)\n }\n return shouldThrow && Promise.reject(invalidFields)\n }\n}\n\nfunction loadTableData(newTableData: any[] = props.tableData) {\n if (newTableData) {\n emit('update:tableData', newTableData)\n }\n}\n\nfunction setTableHeight() {\n if (!VTableBase.value) return\n nextTick(() => {\n if (props.autoHeight || props.maxHeight) return\n if (props.tableHeight) {\n vTableHeight.value = props.tableHeight\n return\n }\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n })\n}\n\nasync function copyText(text: string) {\n if (navigator.clipboard) {\n await navigator.clipboard.writeText(text)\n ElMessage.success(t('expand.utils.copySuccess'))\n } else {\n const textarea = document.createElement('textarea')\n textarea.value = text\n document.body.appendChild(textarea)\n textarea.select()\n document.execCommand('copy')\n document.body.removeChild(textarea)\n ElMessage.success(t('expand.utils.copySuccess'))\n }\n closeContextMenu()\n}\n\nfunction closeContextMenu() {\n window.removeEventListener('mousewheel', closeContextMenu)\n showContextmenu.value = false\n}\n\nfunction handleHeaderDragend(...args: any[]) {\n emit('header-dragend', ...args)\n}\n\nfunction handleCellMouseEnter(...args: any[]) {\n emit('cell-mouse-enter', ...args)\n}\n\nfunction handleCellMouseLeave(...args: any[]) {\n emit('cell-mouse-leave', ...args)\n}\n\nfunction $contextmenu({ items, event }: { items: any[]; event: MouseEvent }) {\n contextmenuList.value = items\n contextmenuStyle.left = `${event.clientX}px`\n contextmenuStyle.top = `${event.clientY}px`\n showContextmenu.value = true\n window.addEventListener('mousewheel', closeContextMenu)\n}\n\nfunction rowContextmenu(row: any, column: any, event: MouseEvent) {\n if (!props.showCellContextmenu) return\n event.stopPropagation()\n const tableDataDisplay = unref(\n VTableBase.value.$refs.singleTable.store.states.data\n )\n const rowIndex = tableDataDisplay.indexOf(row)\n const prop = column.property\n if (prop && prop !== 'operateCol') {\n $contextmenu({\n items: [\n {\n label: t('expand.other.copyCurrentCellText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n const col = finalVtableColumns.value.find(\n (item: any) => item.prop === prop\n )\n const value = row[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index: rowIndex,\n row,\n value,\n scope: { row, column: col, index: rowIndex },\n })\n text += getVnodeText(renderValue)\n copyText(text)\n },\n },\n {\n label: t('expand.other.copyCurrentColumnText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n const col = finalVtableColumns.value.find(\n (item: any) => item.prop === prop\n )\n props.tableData.forEach((r: any, index: number) => {\n const value = r[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index,\n row: r,\n value,\n scope: { row: r, column: col, index },\n })\n text += `${getVnodeText(renderValue)}\\r`\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ...(props.selectType === 'checkbox' || props.selectType === 'radio'\n ? [\n {\n label: t('expand.other.copyCurrentColumnSelectedText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n let rows: any[]\n const col = finalVtableColumns.value.find(\n (item: any) => item.prop === prop\n )\n if (props.selectType === 'radio') {\n rows = [currentRow.value]\n } else {\n rows = selectRows.value\n }\n rows.forEach((r: any, index: number) => {\n const value = r[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index,\n row: r,\n value,\n scope: { row: r, column: col, index },\n })\n text += `${getVnodeText(renderValue)}\\r`\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ]\n : []),\n {\n label: t('expand.other.copyCurrentRowText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n const r = props.tableData[rowIndex]\n finalVtableColumns.value.forEach((col: any) => {\n const value = r[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index: rowIndex,\n row: r,\n value,\n scope: { row: r, column: col, index: rowIndex },\n })\n if (col.prop !== 'operateCol') {\n text += `${getVnodeText(renderValue)}\\t`\n }\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ...(props.selectType === 'checkbox' || props.selectType === 'radio'\n ? [\n {\n label: t('expand.other.copyCurrentRowSelectedText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n let rows: any[]\n if (props.selectType === 'radio') {\n rows = [currentRow.value]\n } else {\n rows = selectRows.value\n }\n rows.forEach((r: any) => {\n finalVtableColumns.value.forEach((col: any) => {\n const value = r[col.prop]\n const _index = tableDataDisplay.indexOf(r)\n const renderValue = createRenderValue({\n column: col,\n index: _index,\n row: r,\n value,\n scope: { row: r, column: col, index: _index },\n })\n if (col.prop !== 'operateCol') {\n text += `${getVnodeText(renderValue)}\\t`\n }\n })\n text = text.slice(0, -1)\n text += '\\r'\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ]\n : []),\n ],\n event,\n })\n event.preventDefault()\n }\n}\n\nfunction getDisabledValue(disabled: any, otherInfo: any) {\n if (typeof disabled === 'function') {\n return disabled(otherInfo)\n } else {\n return disabled\n }\n}\n\n// ========== Debounced onSearch ==========\nconst onSearch = debounce(queryTableData, 300)\n\n// ========== Watchers ==========\nwatch(\n () => finalVtableColumns.value,\n () => {\n doLayout()\n }\n)\n\nwatch(\n () => props.middleButtons,\n () => {\n setTableHeight()\n }\n)\n\nwatch(\n () => props.tableHeight,\n () => {\n setTableHeight()\n }\n)\n\nwatch(\n () => props.topInputs,\n () => {\n props.topInputs.forEach((item: any) => {\n if (item.defaultValue && inputsData[item.prop] === undefined) {\n inputsData[item.prop] = item.defaultValue\n }\n })\n }\n)\n\n// ========== Lifecycle ==========\n// created equivalent\nabortSignal.value = new AbortController()\nwindow.addEventListener('resize', debounce(handleResize, 100), {\n signal: abortSignal.value.signal,\n capture: true,\n})\n\nonMounted(() => {\n if (props.autoSearch) onSearch()\n nextTick(() => {\n if (props.needDropdown) {\n initInfiniteScroll()\n }\n resizeObserver.value = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const { contentRect, target } = entry\n if (target.className.includes('basetable-top-box')) {\n showCollapse.value = contentRect.height > 45\n if (\n showCollapse.value &&\n props.headerFilter &&\n !autoCollapsed.value\n ) {\n isCollapsed.value = true\n autoCollapsed.value = true\n }\n }\n setTableHeight()\n }\n })\n const element = rootEl.value?.querySelector('.basetable-top-box')\n element && resizeObserver.value.observe(element)\n const middleBox = rootEl.value?.querySelector('.basetable-middle-box')\n middleBox && resizeObserver.value.observe(middleBox)\n\n if (!VTableBase.value) return\n if (props.autoHeight || props.maxHeight) return\n if (props.tableHeight) {\n vTableHeight.value = props.tableHeight\n return\n }\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n const elTabPane = getParentNode(VTableBase.value.$el, 'el-tab-pane', 50)\n if (elTabPane) {\n const callback = (mutationsList: MutationRecord[]) => {\n for (const mutation of mutationsList) {\n if (\n mutation.type === 'attributes' &&\n mutation.attributeName === 'style'\n ) {\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n resetScrollingPosition()\n doLayout()\n }\n }\n }\n observer.value = new MutationObserver(callback)\n observer.value.observe(elTabPane, { attributes: true })\n if (props.tabLevel === 2) {\n const parentTabPane = getParentNode(elTabPane, 'el-tab-pane', 10)\n if (parentTabPane) {\n observer.value.observe(parentTabPane, { attributes: true })\n }\n }\n }\n })\n})\n\nonActivated(() => {\n handleResize()\n})\n\nonBeforeUnmount(() => {\n abortSignal.value && abortSignal.value.abort()\n observer.value && observer.value.disconnect()\n resizeObserver.value && resizeObserver.value.disconnect()\n})\n\n// ========== Expose ==========\ndefineExpose({\n onSearch,\n onReset,\n getInputsData,\n setInputsData,\n getSelectRows,\n getSelecRowsWithSort,\n getSortedTableData,\n clearSelection,\n addSelection,\n getCurrentRow,\n setCurrentRow,\n validateCells,\n clearCellValidate,\n loadTableData,\n doLayout,\n setTableHeight,\n clearSort,\n rememberScrollingPosition,\n restTopInputs,\n VTableBase,\n inputsData,\n inputsDataDealed,\n selectRows,\n currentRow,\n tableLoading,\n pageNum,\n pageSize,\n total,\n lastSearchData,\n searchForm,\n})\n</script>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../packages/components/extend/base-table/src/index.vue"],"sourcesContent":["<template>\n <div ref=\"rootEl\" class=\"basetable-block\">\n <slot\n name=\"custom\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n <div\n v-if=\"\n topInputs.length ||\n $slots.formButton ||\n $slots.topRight ||\n $slots.topLeft ||\n $slots.inLineformButton\n \"\n class=\"basetable-top-box\"\n :class=\"{ 'no-padding-basetable': noPadding }\"\n >\n <v-form\n v-if=\"topInputs.length || $slots.formButton || $slots.inLineformButton\"\n ref=\"searchForm\"\n :model=\"inputsData\"\n :inline=\"true\"\n label-position=\"right\"\n :form-items=\"topInputsDealed\"\n :rules=\"topRules\"\n :class=\"{ 'is-collapsed': isCollapsed }\"\n @value-change=\"onChange\"\n >\n <template v-if=\"!isCollapsed\">\n <template v-if=\"topInputs.length\">\n <div v-if=\"showCollapse\" class=\"form-btns\">\n <el-button type=\"primary\" link @click=\"toggleCollapse\">\n <el-icon class=\"el-icon--arrow-up\"><ArrowUp /></el-icon>\n {{ t('expand.utils.collapse') }}\n </el-button>\n </div>\n <div v-if=\"hasSearch\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :size=\"size\"\n :loading=\"tableLoading\"\n :plain=\"searchButtonIcon ? true : false\"\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n type=\"primary\"\n link\n @click=\"onSearch(inputsData, 1)\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <SearchIcon />\n </template>\n {{ t('expand.button.search') }}\n </el-button>\n </div>\n <div v-if=\"hasReset\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :size=\"size\"\n plain\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n :type=\"searchButtonIcon ? 'primary' : undefined\"\n link\n @click=\"restTopInputs\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <Refresh />\n </template>\n {{ t('expand.button.refresh') }}\n </el-button>\n </div>\n </template>\n <div v-if=\"$slots.inLineformButton\" class=\"form-btns\">\n <slot\n name=\"inLineformButton\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n </template>\n <div v-if=\"isCollapsed\" class=\"collapse-btns\">\n <template v-if=\"topInputs.length\">\n <div class=\"form-btns\">\n <el-button type=\"primary\" link @click=\"toggleCollapse\">\n <el-icon class=\"el-icon--arrow-up\"><ArrowUp /></el-icon>\n {{ t('expand.utils.expand') }}\n </el-button>\n </div>\n <div v-if=\"hasSearch\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :loading=\"tableLoading\"\n :plain=\"searchButtonIcon ? true : false\"\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n type=\"primary\"\n :size=\"size\"\n link\n @click=\"onSearch(inputsData, 1)\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <SearchIcon />\n </template>\n {{ t('expand.button.search') }}\n </el-button>\n </div>\n <div v-if=\"hasReset\" class=\"form-btns\">\n <el-button\n v-permit=\"searchPermit\"\n :size=\"size\"\n plain\n :class=\"searchButtonIcon ? 'search-btn-only-icon' : undefined\"\n :type=\"searchButtonIcon ? 'primary' : undefined\"\n link\n @click=\"restTopInputs\"\n >\n <template v-if=\"searchButtonIcon\" #icon>\n <Refresh />\n </template>\n {{ t('expand.button.refresh') }}\n </el-button>\n </div>\n </template>\n <div v-if=\"$slots.inLineformButton\" class=\"form-btns\">\n <slot\n name=\"inLineformButton\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n </div>\n <div v-if=\"$slots.formButton && !isCollapsed\" class=\"form-btns\">\n <slot\n name=\"formButton\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n </v-form>\n <div v-if=\"$slots.topLeft\" class=\"basetable-left-buttons\">\n <slot\n name=\"topLeft\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n <div v-if=\"$slots.topRight || hasRefresh\" class=\"basetable-right-buttons\">\n <slot\n name=\"topRight\"\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n <el-button\n v-if=\"hasRefresh\"\n class=\"icon-button\"\n type=\"text\"\n icon=\"el-icon-refresh\"\n @click=\"onReset()\"\n />\n </div>\n </div>\n <div\n v-if=\"middleButtons.length || $slots.default\"\n class=\"basetable-middle-box\"\n :class=\"{ 'no-padding-basetable': noPadding }\"\n >\n <template\n v-for=\"(\n {\n type,\n plain,\n disabled,\n loading,\n text,\n icon,\n tips,\n svgIcon,\n click,\n isShow = true,\n hide = false,\n badgeValue = 0,\n isDot = false,\n max = 99,\n permit,\n ...rest\n },\n idx\n ) in middleButtons\"\n >\n <template v-if=\"badgeValue || isDot\">\n <el-badge\n :key=\"idx\"\n :value=\"badgeValue\"\n :is-dot=\"isDot\"\n :max=\"max\"\n class=\"v-button\"\n >\n <el-button\n v-if=\"isShow && !hide\"\n :key=\"idx\"\n v-permit=\"permit\"\n :type=\"type\"\n :plain=\"plain\"\n :disabled=\"\n getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n :loading=\"loading\"\n :icon=\"icon\"\n @click=\"\n () => {\n click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n lastSearchData,\n })\n }\n \"\n >\n <svg-icon v-if=\"svgIcon\" :icon-class=\"svgIcon\" />\n {{ text }}\n </el-button>\n </el-badge>\n </template>\n <template v-else-if=\"rest.options\">\n <el-tooltip\n :key=\"idx\"\n :content=\"tips\"\n :disabled=\"!tips\"\n placement=\"top\"\n >\n <el-dropdown\n v-if=\"isShow && !hide\"\n :key=\"idx\"\n v-permit=\"permit\"\n class=\"v-button\"\n :disabled=\"\n getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n placement=\"bottom-start\"\n @command=\"\n (command: any) => {\n click\n ? click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n command,\n lastSearchData,\n })\n : rest.options\n .find((item: any) => item.value === command)\n .click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n command,\n lastSearchData,\n })\n }\n \"\n >\n <el-button\n :key=\"idx\"\n :type=\"type\"\n :plain=\"plain\"\n :disabled=\"\n getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n :loading=\"loading\"\n :icon=\"icon\"\n :style=\"\n rest.showMoreIcon\n ? 'position: relative; padding-left: 10px; padding-right: 36px'\n : ''\n \"\n >\n <svg-icon v-if=\"svgIcon\" :icon-class=\"svgIcon\" />\n {{ text }}\n <el-icon\n v-if=\"rest.showMoreIcon\"\n style=\"\n position: absolute;\n top: 0;\n right: 4px;\n height: 100%;\n padding-left: 4px;\n width: 24px;\n font-size: 18px;\n border-left: 1px solid var(--el-button-border-color);\n \"\n >\n <MoreFilled />\n </el-icon>\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <template v-for=\"item in rest.options\" :key=\"item.label\">\n <el-dropdown-item\n v-if=\"!item.hide\"\n :command=\"item.value\"\n :disabled=\"item.disabled\"\n >\n <template v-if=\"item.labelRender\">\n <component :is=\"item.labelRender()\" />\n </template>\n <template v-else>{{ item.label }}</template>\n </el-dropdown-item>\n </template>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n </el-tooltip>\n </template>\n <template v-else>\n <el-tooltip\n :key=\"idx\"\n :content=\"tips\"\n :disabled=\"!tips\"\n placement=\"top\"\n >\n <v-button\n v-if=\"isShow && !hide\"\n v-permit=\"permit\"\n :type=\"type\"\n :plain=\"plain\"\n :disabled=\"\n rest.needSelect\n ? !selectRows.length\n : getDisabledValue(disabled, {\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n })\n \"\n :loading=\"loading\"\n :icon=\"icon\"\n v-bind=\"rest\"\n @click=\"\n (clickDone: Function) => {\n click({\n selectRows,\n currentRow,\n inputsData,\n inputsDataDealed,\n clickDone,\n lastSearchData,\n })\n }\n \"\n >\n <svg-icon v-if=\"svgIcon\" :icon-class=\"svgIcon\" />\n {{ text }}\n </v-button>\n </el-tooltip>\n </template>\n </template>\n <slot\n :select-rows=\"selectRows\"\n :current-row=\"currentRow\"\n :inputs-data=\"inputsData\"\n :inputs-data-dealed=\"inputsDataDealed\"\n />\n </div>\n <!-- select-type、table-columns、use-virtual 为非el-table原有属性 -->\n <div\n class=\"v-table-wrapper\"\n :class=\"{\n 'no-padding-basetable': noPadding,\n 'header-unselection': headerSelectable && !headerSelectable(),\n }\"\n >\n <HTable\n ref=\"VTableBase\"\n v-loading=\"tableLoading || propsLoading\"\n :use-virtual=\"useVirtual\"\n :row-height=\"rowHeight\"\n :estimated-row-height=\"estimatedRowHeight\"\n :height=\"vTableHeight\"\n :max-height=\"maxHeight\"\n :class=\"{\n 'no-border': !hasBorder,\n 'auto-height': autoHeight,\n 'row-click': rowClick,\n }\"\n :allow-drag-last-column=\"allowDragLastColumn\"\n :border=\"true\"\n :header-filter=\"headerFilter\"\n :no-data-text=\"noDataText\"\n :stripe=\"isStripe\"\n :lazy=\"lazy\"\n :load=\"handleLazyLoad\"\n :tree-props=\"treeConfig\"\n :row-key=\"rowKey\"\n :default-expand-all=\"\n expandRow ? defaultExpandAll : treeConfig.expandAll\n \"\n :expand-row-keys=\"expandRowKeys\"\n :table-columns=\"finalVtableColumns\"\n :data=\"tableData\"\n :label-param=\"labelParam\"\n :expand-row=\"expandRow ? expandRowRender : expandRow\"\n :highlight-current-row=\"selectType === 'radio'\"\n :select-type=\"selectType\"\n :selectable=\"selectable\"\n :cell-class-name=\"cellClassName\"\n :search-data=\"inputsData\"\n :search-value-change=\"searchValueChange\"\n :table-search=\"onSearch\"\n :span-method=\"spanMethod\"\n :colspan-prop-name=\"colspanPropName\"\n :no-hover-effect=\"noHoverEffect\"\n :no-one-click-expand=\"noOneClickExpand\"\n :remember-scroller=\"\n !!(scrollPosition.scrollTop || scrollPosition.scrollLeft)\n \"\n :cell-style=\"cellStyle\"\n :row-class-name=\"rowClassName\"\n @row-click=\"handleRowClick\"\n @current-change=\"handleCurrentChange\"\n @selection-change=\"handleSelectionChange\"\n @select=\"handleSelect\"\n @select-all=\"handleSelectAll\"\n @sort-change=\"handleSortChange\"\n @expand-change=\"handleExpandChange\"\n @row-contextmenu=\"rowContextmenu\"\n @header-dragend=\"handleHeaderDragend\"\n @cell-mouse-enter=\"handleCellMouseEnter\"\n @cell-mouse-leave=\"handleCellMouseLeave\"\n />\n <HPagination\n v-if=\"hasShowPagination\"\n :class=\"{ unvisibility: !$slots.paginationLeft && total === 0 }\"\n :total=\"total\"\n :current-page=\"pageNum\"\n :page-size=\"pageSize\"\n :page-sizes=\"pageSizes\"\n :select-rows=\"selectRows\"\n :show-selected-number=\"showSelectedNumber\"\n :loading=\"tableLoading\"\n :pager-count=\"pagerCount\"\n @pagination-change=\"paginationChange\"\n >\n <template #paginationLeft>\n <slot name=\"paginationLeft\" />\n </template>\n </HPagination>\n <div v-else-if=\"!noPadding\" style=\"height: 18px\" />\n </div>\n <teleport to=\"body\">\n <div\n v-if=\"showContextmenu\"\n v-click-outside=\"closeContextMenu\"\n class=\"contextmenu-modal\"\n :style=\"contextmenuStyle\"\n >\n <div\n v-for=\"item in contextmenuList\"\n :key=\"item.label\"\n class=\"contextmenu-item\"\n @click=\"item.onClick\"\n >\n <el-icon><DocumentCopy /></el-icon>\n {{ item.label }}\n </div>\n </div>\n </teleport>\n </div>\n</template>\n\n<script lang=\"tsx\" setup>\nimport {\n computed,\n getCurrentInstance,\n nextTick,\n onActivated,\n onBeforeUnmount,\n onMounted,\n provide,\n reactive,\n ref,\n resolveDirective,\n unref,\n watch,\n} from 'vue'\nimport { isFunction } from '@vue/shared'\nimport { vLoading } from '@element-plus/components/loading'\nimport { ClickOutside as vClickOutside } from '@element-plus/directives'\nimport { ElMessage } from '@element-plus/components/message'\nimport { ElBadge } from '@element-plus/components/badge'\nimport {\n ElDropdown,\n ElDropdownItem,\n ElDropdownMenu,\n} from '@element-plus/components/dropdown'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElTooltip } from '@element-plus/components/tooltip'\nimport HPagination from './v-pagination/index.vue'\nimport HTable from './v-table/index.vue'\nimport { SvgIcon } from '@element-plus/components/extend/svg-icon'\nimport { VButton } from '@element-plus/components/extend/v-button'\nimport { VForm } from '@element-plus/components/extend/v-form'\nimport {\n ArrowUp,\n DocumentCopy,\n MoreFilled,\n Refresh,\n Search as SearchIcon,\n} from '@element-plus/icons-vue'\nimport {\n calcVTableHeight,\n createRenderValue,\n getParentNode,\n getTextWidth,\n getVnodeText,\n isNull,\n} from './utils'\nimport { cloneDeep, debounce } from 'lodash-unified'\nimport { baseTableContextKey } from './constants'\nimport { useLocale } from '@element-plus/hooks'\nimport { baseTableEmits, baseTableProps } from './props'\n\nimport type { Directive } from 'vue'\n\ndefineOptions({ name: 'BaseTable' })\n\n// 使用全局注册的 permit 指令,未注册时 fallback 为空指令\nconst vPermit: Directive = resolveDirective('permit') || {\n mounted() {},\n updated() {},\n}\n\nconst props = defineProps(baseTableProps)\nconst emit = defineEmits(baseTableEmits)\n\nconst { t } = useLocale()\nconst instance = getCurrentInstance()!\n\n// 日期组件宽度计算函数\nconst calculateDatePickerWidth = (item: any) => {\n const timeFormat = item.timeFormat || 'YYYY-MM-DD'\n const timeFormatWidth = getTextWidth(timeFormat)\n const placeholderWidth = getTextWidth(item.placeholder)\n return `${Math.max(placeholderWidth, timeFormatWidth) * 2 + 60}px`\n}\n\n// ========== Template Refs ==========\nconst rootEl = ref<HTMLElement>()\nconst searchForm = ref()\nconst VTableBase = ref()\n\nconst inputRefs = new Set(['VTableBase', 'searchForm'])\nconst stableInstanceApi: Record<string, () => any> = {\n onSearch: () => onSearch,\n onReset: () => onReset,\n getInputsData: () => getInputsData,\n setInputsData: () => setInputsData,\n getSelectRows: () => getSelectRows,\n getSelecRowsWithSort: () => getSelecRowsWithSort,\n getSortedTableData: () => getSortedTableData,\n clearSelection: () => clearSelection,\n addSelection: () => addSelection,\n getCurrentRow: () => getCurrentRow,\n setCurrentRow: () => setCurrentRow,\n validateCells: () => validateCells,\n clearCellValidate: () => clearCellValidate,\n loadTableData: () => loadTableData,\n doLayout: () => doLayout,\n setTableHeight: () => setTableHeight,\n clearSort: () => clearSort,\n rememberScrollingPosition: () => rememberScrollingPosition,\n restTopInputs: () => restTopInputs,\n VTableBase: () => VTableBase.value,\n searchForm: () => searchForm.value,\n inputsData: () => inputsData,\n inputsDataDealed: () => inputsDataDealed.value,\n selectRows: () => selectRows.value,\n currentRow: () => currentRow.value,\n tableLoading: () => tableLoading.value,\n pageNum: () => pageNum.value,\n pageSize: () => pageSize.value,\n total: () => total.value,\n lastSearchData: () => lastSearchData.value,\n}\nconst stableInstance = new Proxy({} as Record<string, any>, {\n get(_target, key: string | symbol) {\n if (typeof key !== 'string') return undefined\n if (key === '$el') return rootEl.value\n if (key === '$refs') {\n return {\n VTableBase: VTableBase.value,\n searchForm: searchForm.value,\n }\n }\n if (key === '$props') return props\n if (key === '$attrs') return instance.attrs\n if (key === '$slots') return instance.slots\n if (key === '$emit') return instance.emit\n if (key in stableInstanceApi) {\n return stableInstanceApi[key]()\n }\n if (key in props) {\n return props[key as keyof typeof props]\n }\n return undefined\n },\n has(_target, key: string | symbol) {\n if (typeof key !== 'string') return false\n return getStableInstanceKeys().includes(key)\n },\n ownKeys() {\n return getStableInstanceKeys()\n },\n getOwnPropertyDescriptor(_target, key: string | symbol) {\n if (typeof key !== 'string' || !getStableInstanceKeys().includes(key)) {\n return undefined\n }\n return {\n configurable: true,\n enumerable: true,\n }\n },\n})\n\nfunction getStableInstanceKeys() {\n return Array.from(\n new Set([\n '$el',\n '$refs',\n '$props',\n '$attrs',\n '$slots',\n '$emit',\n ...Object.keys(props),\n ...inputRefs,\n ...Object.keys(stableInstanceApi),\n ])\n )\n}\n\n// ========== Reactive State ==========\nconst lazyTreeNodeMapCache = ref<Record<string, any>>({})\nconst abortSignal = ref<AbortController | null>(null)\nconst observer = ref<MutationObserver | null>(null)\nconst resizeObserver = ref<ResizeObserver | null>(null)\nconst autoCollapsed = ref(false)\nconst showCollapse = ref(false)\nconst isCollapsed = ref(false)\nconst vTableHeight = ref<number | undefined>(undefined)\nconst scrollPosition = reactive({\n scrollTop: 0,\n scrollLeft: 0,\n})\nconst pageNum = ref(1)\nconst pageSize = ref(props.defaultPageSize || props.pageSizes[0])\nconst total = ref(0)\nconst sortInfo = reactive<{\n order: string | undefined\n sidx: string | undefined\n}>({\n order: undefined,\n sidx: undefined,\n})\nconst tableLoading = ref(false)\nconst currentRow = ref<Record<string, any>>({})\nconst selectRows = ref<any[]>([])\nconst lastSearchData = ref<Record<string, any>>({})\nconst showContextmenu = ref(false)\nconst contextmenuList = ref<any[]>([])\nconst contextmenuStyle = reactive({ left: '0px', top: '0px' })\nconst fields = ref<any[]>([])\nconst hasMoreData = ref(true)\nconst loadingMore = ref(false)\nlet clickRow: any = null\nlet scrollHandler: any = null\n\n// ========== Initialize inputsData ==========\nconst buildInputsDefault = () => {\n const inputsDefault: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n let defaultValue = item.defaultValue\n if (item.element === 'el-switch' && defaultValue === undefined)\n defaultValue = false\n inputsDefault[item.prop] = defaultValue\n })\n const columns = [...props.tableColumns].filter(\n (item: any) => item && !item.hide\n )\n columns\n .filter((col: any) => col.headerSearch)\n .forEach((item: any) => {\n const { defaultValue } = item.headerSearch\n inputsDefault[item.prop] = defaultValue\n })\n if (props.headerFilter) {\n columns\n .filter((col: any) => col.filter)\n .forEach((item: any) => {\n if (item.filter instanceof Array) {\n item.filter.forEach((child: any) => {\n if (!isNull(child.defaultValue)) {\n inputsDefault[item.prop] = child.defaultValue\n }\n })\n } else {\n inputsDefault[item.prop] = item.filter.defaultValue\n }\n })\n }\n return inputsDefault\n}\n\nconst inputsData = reactive<Record<string, any>>(buildInputsDefault())\n\n// ========== Provide ==========\nconst addField = (field: any) => {\n fields.value.push(field)\n}\nconst removeField = (field: any) => {\n fields.value.splice(fields.value.indexOf(field), 1)\n}\nprovide(baseTableContextKey, reactive({ addField, removeField }))\n\n// ========== Computed ==========\nconst topInputsDealed = computed(() => {\n return props.topInputs.map((item: any) => {\n const extra: Record<string, any> = {\n autoSubmitOnEnter: true,\n maxlength: item.maxlength || 1000000,\n }\n if (isCollapsed.value) {\n if (\n (item.multiple && item.element === 'el-select') ||\n (item.element === 'el-cascader' && item.props.multiple)\n ) {\n extra.filterable = false\n extra.collapseTags = true\n }\n if (\n ['el-input', 'el-autocomplete'].includes(item.element) &&\n item.type === 'textarea'\n ) {\n extra.resize = 'none'\n extra.rows = 1\n }\n }\n if (!item.placeholder) {\n if (item.element === 'el-input') {\n extra.placeholder = t('expand.utils.pleaseEnter')\n } else {\n extra.placeholder = t('expand.utils.pleaseChoose')\n }\n }\n if (item.element === 'el-date-picker' && item.placeholder) {\n extra.inputWidth = calculateDatePickerWidth(item)\n }\n if (item.element === 'el-switch') {\n extra.inlinePrompt =\n item.inlinePrompt !== undefined ? item.inlinePrompt : true\n extra.activeText = item.activeText || item.title || ''\n extra.inactiveText = item.inactiveText || item.title || ''\n extra.activeValue = item.activeValue || ['Y']\n extra.inactiveValue = item.inactiveValue || ['N']\n }\n return { ...item, ...extra }\n })\n})\n\nconst inputsDataDealed = computed(() => {\n return dealQueryParam(cloneDeep(inputsData))\n})\n\nconst finalVtableColumns = computed(() => {\n let indexColumn = props.tableColumns\n .filter((v: any) => v)\n .find((item: any) => item.type === 'index')\n const columns = [...props.tableColumns]\n .filter((v: any) => v)\n .filter((item: any) => !item.hide)\n if (!indexColumn && !props.noIndex) {\n indexColumn = {\n label: t('expand.utils.index'),\n type: 'index',\n fixed: props.tableColumns.some(\n (item: any) => item && item.fixed && item.fixed !== 'right'\n ),\n width: '45',\n index: (index: number) =>\n (pageNum.value - 1) * pageSize.value + (index + 1),\n }\n columns.unshift(indexColumn)\n }\n if (indexColumn && !indexColumn.index) {\n indexColumn.index = (index: number) =>\n (pageNum.value - 1) * pageSize.value + (index + 1)\n }\n return renderProxy(columns)\n})\n\nconst tableHeaderInputs = computed(() => {\n const columns = [...props.tableColumns].filter((item: any) => !item.hide)\n return columns\n .filter((col: any) => col.headerSearch)\n .map((v: any) => v.headerSearch)\n})\n\nconst filterInputs = computed(() => {\n const columns = [...props.tableColumns].filter(\n (item: any) => !item.hide && item.filter\n )\n const inputs: any[] = []\n columns.forEach((col: any) => {\n if (col.filter instanceof Array) {\n col.filter.forEach((child: any) => {\n inputs.push(child)\n })\n } else {\n inputs.push(col.filter)\n }\n })\n return inputs\n})\n\nconst valueStringColumns = computed(() => {\n const flag: Record<string, boolean> = {}\n props.tableColumns.forEach((item: any) => {\n if (item.valueIsString) {\n flag[item.prop] = true\n }\n })\n props.topInputs.forEach((item: any) => {\n if (item.valueIsString) {\n flag[item.prop] = true\n }\n })\n return flag\n})\n\nconst valueArrayColumns = computed(() => {\n const flag: Record<string, boolean> = {}\n props.topInputs.forEach((item: any) => {\n if (item.valueArray) {\n flag[item.prop] = true\n }\n })\n return flag\n})\n\nconst timeToObjectColumns = computed(() => {\n const flag: Record<string, boolean> = {}\n props.topInputs.forEach((item: any) => {\n if (item.timeToObject) {\n flag[item.prop] = true\n }\n })\n return flag\n})\n\nconst timeToSplitColumns = computed(() => {\n const flag: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n if (item.timeToSplit) {\n flag[item.prop] = item\n }\n })\n return flag\n})\n\nconst textareaColumns = computed(() => {\n const flag: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n if (\n ['el-input', 'el-autocomplete'].includes(item.element) &&\n item.type === 'textarea'\n ) {\n flag[item.prop] = item\n }\n })\n return flag\n})\n\nconst groupCheckColumns = computed(() => {\n const flag: Record<string, any> = {}\n props.tableColumns.forEach((item: any) => {\n if (item.filter && item.filter.group) {\n flag[item.prop] = item\n }\n })\n return flag\n})\n\nconst hasShowPagination = computed(() => {\n return !props.needDropdown && props.isShowPagination\n})\n\n// ========== Methods ==========\nfunction getInputDefaultValue(item: any) {\n const { defaultValue, element } = item\n if (element === 'el-switch' && defaultValue === undefined) return ['N']\n return defaultValue\n}\n\nfunction initInfiniteScroll() {\n const tableContainer = VTableBase.value.$refs.singleTable.scrollBarRef.wrapRef\n if (!tableContainer) return\n\n scrollHandler = debounce(() => {\n const { scrollTop, scrollHeight, clientHeight } = tableContainer\n if (\n scrollHeight - scrollTop - clientHeight < 50 &&\n !loadingMore.value &&\n hasMoreData.value\n ) {\n loadNextPage()\n }\n }, 100)\n\n tableContainer.addEventListener('scroll', scrollHandler)\n}\n\nasync function loadNextPage() {\n if (loadingMore.value || !hasMoreData.value) return\n\n loadingMore.value = true\n try {\n const nextNum = pageNum.value + 1\n const searchData = {\n ...dealQueryParam(cloneDeep(inputsData)),\n page: nextNum,\n pageNum: nextNum,\n limit: pageSize.value,\n pageSize: pageSize.value,\n ...props.requiredParam,\n ...sortInfo,\n }\n\n const response = await props.searchMethod(searchData)\n const data = response?.result || response || []\n const list = props.isShowPagination\n ? data.list || data.records || []\n : data instanceof Array\n ? data\n : [data]\n\n if (!list.length) {\n hasMoreData.value = false\n return\n }\n\n pageNum.value = nextNum\n emit('update:tableData', [...props.tableData, ...list])\n const { scrollTop, scrollLeft } =\n VTableBase.value.$refs.singleTable.scrollBarRef.wrapRef\n nextTick(() =>\n VTableBase.value.$refs.singleTable.scrollTo(scrollLeft, scrollTop)\n )\n } catch {\n hasMoreData.value = false\n } finally {\n loadingMore.value = false\n }\n}\n\nfunction renderProxy(columns: any[]) {\n return columns.map((column: any) => {\n if (column.type === 'index') column.prop = '$index'\n return {\n ...column,\n originRender: column.render,\n render:\n column.prop === 'operateCol' && !column.render\n ? undefined\n : ({ index, row, value, scope }: any) => {\n const renderValue = createRenderValue({\n index,\n row,\n column,\n value,\n scope,\n })\n return renderValue\n },\n }\n })\n}\n\nfunction handleResize() {\n nextTick(() => {\n if (props.autoHeight || props.tableHeight || props.maxHeight) return\n if (!VTableBase.value) return\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n })\n}\n\nfunction expandRowRender(scope: any) {\n return props.expandRow!(scope)\n}\n\nfunction toggleCollapse() {\n isCollapsed.value = !isCollapsed.value\n}\n\nfunction getInputsData() {\n return inputsData\n}\n\nfunction setInputsData(data: Record<string, any>) {\n const dkeys = Object.keys(data)\n const ikeys = Object.keys(inputsData)\n ikeys.forEach((ik) => {\n if (!dkeys.includes(ik)) {\n inputsData[ik] = undefined\n }\n })\n dkeys.forEach((dk) => {\n inputsData[dk] = data[dk]\n })\n}\n\nfunction onChange(\n prop: string,\n value: any,\n action: string,\n { itemProps }: any\n) {\n inputsData[prop] = value\n emit('topInputsChange', prop, value, action, inputsData)\n if (\n ((action === 'input' || itemProps.element === 'el-select') &&\n !props.hasSearch) ||\n action === 'enter' ||\n (itemProps.element === 'el-switch' && action === 'change')\n ) {\n onSearch(inputsData, 1, pageSize.value)\n }\n}\n\nfunction searchValueChange(prop: string, value: any) {\n inputsData[prop] = value\n}\n\nfunction handleLazyLoad(\n row: any,\n treeNode: any,\n resolve: (data: any[]) => void\n) {\n props.load!(row, treeNode, (data: any[]) => {\n if (data.length !== 0) {\n lazyTreeNodeMapCache.value[row[props.rowKey!]] = cloneDeep(data)\n }\n resolve(data)\n })\n}\n\nfunction handleLazySortNodes(column: any, prop: string, order: string) {\n const expandNodeMap = unref(\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap\n )\n const cacheNodeMap: Record<string, any> = {}\n Object.keys(lazyTreeNodeMapCache.value).forEach((key) => {\n cacheNodeMap[key] = lazyTreeNodeMapCache.value[key].slice(0)\n })\n if (order) {\n Object.keys(expandNodeMap).forEach((key) => {\n cacheNodeMap[key]?.sort((a: any, b: any) => {\n if (column.sortMethod) {\n return order === 'ascending'\n ? column.sortMethod(a, b)\n : 0 - column.sortMethod(a, b)\n } else {\n const ra = a[prop]\n const rb = b[prop]\n const va = ra === undefined || ra === null ? '' : ra\n const vb = rb === undefined || rb === null ? '' : rb\n return va < vb\n ? order === 'ascending'\n ? -1\n : 1\n : va > vb\n ? order === 'ascending'\n ? 1\n : -1\n : 0\n }\n })\n })\n }\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap.value =\n cacheNodeMap\n}\n\nfunction handleSortChange({ column, prop, order }: any) {\n emit('sort-change', { column, prop, order })\n if (column.sortable === true) return\n if (props.customSortMethod) {\n props.customSortMethod({ column, prop, order })\n return\n }\n if (props.lazy && props.onlySortLazyNodes) {\n handleLazySortNodes(column, prop, order)\n return\n }\n\n sortInfo.order = order ? (order === 'ascending' ? 'asc' : 'desc') : undefined\n if (sortInfo.order) {\n sortInfo.sidx = prop.replace(/[A-Z]/g, (...args: any[]) => {\n return `_${args[0].toLowerCase()}`\n })\n } else {\n sortInfo.order = undefined\n sortInfo.sidx = undefined\n }\n onSearch(inputsData, 1, pageSize.value)\n}\n\nfunction handleExpandChange(row: any, expandRows: any) {\n emit('expand-change', row, expandRows)\n}\n\nfunction clearSort() {\n VTableBase.value.$refs.singleTable.clearSort()\n sortInfo.order = undefined\n sortInfo.sidx = undefined\n}\n\nasync function queryTableData(\n inputsDataParam: any = inputsData,\n pNum: number = pageNum.value,\n pSize: number = pageSize.value,\n resetSearch: boolean = false\n) {\n if (props.needDropdown) {\n if (pNum === 1) {\n hasMoreData.value = true\n pageNum.value = 1\n }\n }\n if (props.lazy && (props.forceUpdateOnSearch || resetSearch)) {\n lazyTreeNodeMapCache.value = {}\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap.value = {}\n emit('update:tableData', [])\n }\n const inputsDataCopy = cloneDeep(inputsDataParam)\n\n if (resetSearch) {\n emit('reset', inputsDataCopy)\n }\n\n if (props.noAirSearch) {\n const values: any[] = []\n for (const k in inputsDataCopy) {\n if (inputsDataCopy[k]) {\n values.push(inputsDataCopy[k])\n }\n }\n if (values.length === 0) {\n ElMessage({\n message: '请设置搜索条件',\n type: 'warning',\n })\n return\n }\n }\n if (props.topInputs.length > 0) {\n const tipsLabel: string[] = []\n props.topInputs.forEach(({ require, prop, label }: any) => {\n if (require && !inputsDataCopy[prop]) {\n tipsLabel.push(label)\n }\n })\n if (tipsLabel.length > 0) {\n ElMessage({\n message: `${tipsLabel.join('和')}必填,请设置后搜索`,\n type: 'warning',\n })\n return\n }\n }\n\n const selectDefaultAllList = props.topInputs.filter((item: any) => {\n return item.element === 'el-select'\n })\n selectDefaultAllList.forEach((item: any) => {\n if (inputsDataCopy[item.prop] === 'all') {\n inputsDataCopy[item.prop] = undefined\n }\n })\n const searchData: any = {\n ...inputsDataCopy,\n page: props.isShowPagination ? pNum : undefined,\n pageNum: props.isShowPagination ? pNum : undefined,\n limit: props.isShowPagination ? pSize : undefined,\n pageSize: props.isShowPagination ? pSize : undefined,\n ...props.requiredParam,\n ...sortInfo,\n }\n\n dealQueryParam(searchData)\n\n if (!props.beforeSearch(inputsDataCopy, searchData, stableInstance)) {\n return\n }\n lastSearchData.value = searchData\n\n try {\n tableLoading.value = true\n const response = await Promise.resolve(props.searchMethod(searchData))\n if (!response || !response.result) {\n emit('update:tableData', [])\n emit('search', searchData)\n return\n }\n\n const { page, result } = response\n let data = page || result\n if (props.afterSearch(data)) {\n data = props.afterSearch(data)\n }\n\n const { total: totalCount = 0 } = data || {}\n const list = props.isShowPagination\n ? data.list || data.records || []\n : data instanceof Array\n ? data\n : data\n ? [data]\n : []\n list.forEach((item: any, i: number) => {\n item.__index__ = i\n })\n emit('update:tableData', list)\n doLayout()\n pageNum.value = pNum\n pageSize.value = pSize\n total.value = totalCount\n emit(\n 'searchCallback',\n stableInstance,\n response,\n inputsData,\n inputsDataDealed.value\n )\n } finally {\n tableLoading.value = false\n }\n}\n\nfunction dealQueryParam(searchData: Record<string, any>) {\n for (const k in searchData) {\n const inputValue = searchData[k]\n if (!isNull(inputValue)) {\n if (inputValue instanceof Array) {\n if (inputValue.length === 0) {\n searchData[k] = undefined\n } else if (valueStringColumns.value[k]) {\n const newValue = inputValue.join()\n searchData[k] = newValue.length ? newValue : undefined\n } else if (timeToObjectColumns.value[k]) {\n const newValue = {\n startDate: inputValue[0],\n endDate: inputValue[1],\n }\n searchData[k] = newValue\n } else if (timeToSplitColumns.value[k]) {\n const timeToSplit = timeToSplitColumns.value[k].timeToSplit\n searchData[timeToSplit[0]] = inputValue[0]\n searchData[timeToSplit[1]] = inputValue[1]\n searchData[k] = undefined\n } else if (groupCheckColumns.value[k]) {\n if (groupCheckColumns.value[k].filter.splitProp) {\n groupCheckColumns.value[k].filter.options.forEach(\n ({ prop, options }: any) => {\n const ovs = options.map(({ value }: any) => value)\n searchData[prop] = ovs.filter((v: any) =>\n inputValue.includes(v)\n )\n }\n )\n searchData[k] = undefined\n } else {\n const newValue = inputValue.filter(\n (val: any) => String(val).indexOf('group#') !== 0\n )\n searchData[k] = newValue.length ? newValue : undefined\n }\n }\n } else if (typeof inputValue === 'string') {\n searchData[k] = inputValue.trim() || undefined\n if (\n textareaColumns.value[k] &&\n searchData[k] &&\n (props.multiLineMode || valueArrayColumns.value[k])\n ) {\n const splitArr = searchData[k]\n .split(/\\n|,|,/)\n .map((v: string) => v.trim())\n .filter((v: string) => v !== '')\n if (props.multiLineMode === 'array' || valueArrayColumns.value[k]) {\n if (!(splitArr.length === 1 && props.multiLineMode === 'array')) {\n searchData[k] = splitArr\n }\n } else {\n searchData[k] = splitArr.join(props.multiLineMode as string)\n }\n } else if (valueArrayColumns.value[k]) {\n searchData[k] = [inputValue]\n }\n } else {\n if (valueArrayColumns.value[k]) {\n searchData[k] = [inputValue]\n }\n }\n } else {\n delete searchData[k]\n }\n }\n return searchData\n}\n\nfunction resetScrollingPosition() {\n scrollPosition.scrollTop = 0\n scrollPosition.scrollLeft = 0\n}\n\nfunction rememberScrollingPosition() {\n const { scrollTop, scrollLeft } =\n VTableBase.value.$refs.singleTable.scrollBarRef.wrapRef\n scrollPosition.scrollTop = scrollTop\n scrollPosition.scrollLeft = scrollLeft\n}\n\nfunction pagingScrollTopLeft() {\n const { scrollTop, scrollLeft } = scrollPosition\n nextTick(() => {\n VTableBase.value &&\n VTableBase.value.$refs.singleTable.scrollTo(scrollLeft, scrollTop)\n resetScrollingPosition()\n })\n}\n\nfunction doLayout(callback?: (ctx: any) => void) {\n nextTick(() => {\n VTableBase.value && VTableBase.value.$refs.singleTable.doLayout()\n nextTick(() => {\n props.needScrollTopLeft && pagingScrollTopLeft()\n })\n callback && callback(stableInstance)\n })\n}\n\nfunction restTopInputs() {\n if (!props.hasRefresh) {\n onReset()\n } else {\n props.topInputs.forEach((item: any) => {\n inputsData[item.prop] = getInputDefaultValue(item)\n })\n onSearch(inputsData, 1, pageSize.value, true)\n }\n}\n\nfunction onReset(onlyRestParams?: boolean) {\n clearSort()\n const inputsDefault: Record<string, any> = {}\n props.topInputs.forEach((item: any) => {\n inputsDefault[item.prop] = getInputDefaultValue(item)\n })\n tableHeaderInputs.value.forEach((item: any) => {\n const { defaultValue } = item\n inputsDefault[item.prop] = defaultValue\n })\n if (props.headerFilter) {\n filterInputs.value.forEach((item: any) => {\n inputsDefault[item.prop] = item.defaultValue\n })\n }\n const dkeys = Object.keys(inputsDefault)\n const ikeys = Object.keys(inputsData)\n ikeys.forEach((ik) => {\n if (!dkeys.includes(ik)) {\n inputsData[ik] = undefined\n }\n })\n dkeys.forEach((dk) => {\n inputsData[dk] = inputsDefault[dk]\n })\n if (onlyRestParams) return\n onSearch({ ...inputsDefault }, 1, pageSize.value, true)\n}\n\nfunction handleRowClick(val: any, col: any, event: Event) {\n if (col.property === 'operateCol' || col.className === 'text-click') {\n event.preventDefault()\n return\n }\n clickRow = val\n if (col.type === 'selection' || col.type === 'radio') {\n if (col.type === 'selection') {\n if (props.selectable && !props.selectable(val)) return\n const isSelected =\n selectRows.value.length && selectRows.value.includes(val)\n handleLazyTreeCheck(selectRows.value, val, !isSelected)\n VTableBase.value.$refs.singleTable.toggleRowSelection(val, !isSelected)\n }\n return\n }\n if (props.selectType === 'checkbox' && !instance.vnode.props?.onRowClick) {\n if (props.selectable && !props.selectable(val)) return\n const isSelected = selectRows.value.length && selectRows.value.includes(val)\n handleLazyTreeCheck(selectRows.value, val, !isSelected)\n VTableBase.value.$refs.singleTable.toggleRowSelection(val, !isSelected)\n }\n if (!col.treeNode) {\n emit('rowClick', { row: val })\n }\n}\n\nfunction handleCurrentChange(val: any) {\n if (props.selectType === 'radio') {\n currentRow.value = val\n emit('currentChange', val)\n }\n emit('current-change', val)\n}\n\nfunction getCurrentRow() {\n return currentRow.value\n}\n\nfunction setCurrentRow(val: any) {\n if (props.selectType === 'radio') {\n VTableBase.value && VTableBase.value.$refs.singleTable.setCurrentRow(val)\n currentRow.value = val\n }\n}\n\nfunction handleSelectionChange(val: any[]) {\n if (props.selectType === 'checkbox') {\n selectRows.value = val\n }\n if (clickRow) {\n const isSelected =\n selectRows.value.length && selectRows.value.includes(clickRow)\n emit('select', {\n selectRows: val,\n currentRow: clickRow,\n isSelected,\n })\n }\n emit('selection-change', val)\n clickRow = null\n}\n\nfunction handleSelect(rows: any[], val: any) {\n const isSelected = !!rows.length && rows.includes(val)\n handleLazyTreeCheck(rows, val, isSelected)\n emit('select', { selectRows: rows, currentRow: val, isSelected })\n}\n\nfunction handleLazyTreeCheck(rows: any[], val: any, isSelected: boolean) {\n if (props.lazy && props.treeConfig.checkStrictly) {\n setTimeout(() => {\n const lazyTreeNodeMap =\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap.value\n if (\n lazyTreeNodeMap[val[props.rowKey!]] &&\n lazyTreeNodeMap[val[props.rowKey!]].length\n ) {\n lazyTreeNodeMap[val[props.rowKey!]].forEach((v: any) => {\n if (!props.selectable || props.selectable(v)) {\n VTableBase.value.$refs.singleTable.toggleRowSelection(v, isSelected)\n }\n })\n }\n rows.forEach((v: any) => {\n if (\n lazyTreeNodeMap[v[props.rowKey!]] &&\n lazyTreeNodeMap[v[props.rowKey!]].length\n ) {\n const sonKeys = lazyTreeNodeMap[v[props.rowKey!]].map(\n (son: any) => son[props.rowKey!]\n )\n if (!isSelected && sonKeys.includes(val[props.rowKey!])) {\n if (!props.selectable || props.selectable(v)) {\n VTableBase.value.$refs.singleTable.toggleRowSelection(\n v,\n isSelected\n )\n }\n }\n }\n })\n }, 0)\n }\n}\n\nfunction handleSelectAll(rows: any[]) {\n emit('selectAll', { selectRows: rows })\n}\n\nfunction getSelectRows() {\n return selectRows.value\n}\n\nfunction getSelecRowsWithSort() {\n if (!selectRows.value.length) {\n return selectRows.value\n }\n const tableDataDisplay = unref(\n VTableBase.value.$refs.singleTable.store.states.data\n )\n if (\n Object.keys(unref(VTableBase.value.$refs.singleTable.store.states.treeData))\n .length\n ) {\n const treeDataSorted: any[] = []\n const lazyTreeNodeMap = unref(\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap\n )\n const getTreeDataSorted = (list: any[]) => {\n list.forEach((row: any) => {\n treeDataSorted.push(row)\n if (\n lazyTreeNodeMap[row[props.rowKey!]] ||\n row[props.treeConfig.children]\n ) {\n getTreeDataSorted(\n lazyTreeNodeMap[row[props.rowKey!]] ||\n row[props.treeConfig.children]\n )\n }\n })\n }\n getTreeDataSorted(tableDataDisplay)\n return [...selectRows.value].sort((a: any, b: any) => {\n return treeDataSorted.indexOf(a) - treeDataSorted.indexOf(b)\n })\n } else {\n return [...selectRows.value].sort((a: any, b: any) => {\n return tableDataDisplay.indexOf(a) - tableDataDisplay.indexOf(b)\n })\n }\n}\n\nfunction getSortedTableData(getTreeData = false) {\n if (\n getTreeData &&\n Object.keys(unref(VTableBase.value.$refs.singleTable.store.states.treeData))\n .length\n ) {\n const treeData = unref(\n VTableBase.value.$refs.singleTable.store.states.treeData\n )\n const lazyTreeNodeMap = unref(\n VTableBase.value.$refs.singleTable.store.states.lazyTreeNodeMap\n )\n const sortedTableData: any[] = []\n const concatAllNodes = (row: any) => {\n if (\n treeData[row[props.rowKey!]] &&\n treeData[row[props.rowKey!]].children.length\n ) {\n lazyTreeNodeMap[row[props.rowKey!]].forEach((cRow: any) => {\n sortedTableData.push(cRow)\n concatAllNodes(cRow)\n })\n }\n }\n unref(VTableBase.value.$refs.singleTable.store.states.data).forEach(\n (row: any) => {\n sortedTableData.push(row)\n concatAllNodes(row)\n }\n )\n return sortedTableData\n } else {\n return unref(VTableBase.value.$refs.singleTable.store.states.data)\n }\n}\n\nfunction clearSelection(rows?: any[]) {\n if (rows && rows.length) {\n rows.forEach((row: any) => {\n VTableBase.value.$refs.singleTable.toggleRowSelection(row, false)\n })\n } else {\n VTableBase.value.$refs.singleTable.clearSelection()\n }\n}\n\nfunction addSelection(rows?: any[]) {\n if (rows && rows.length) {\n rows.forEach((row: any) => {\n VTableBase.value.$refs.singleTable.toggleRowSelection(row, true)\n })\n }\n}\n\nfunction paginationChange(paginationData: any) {\n if (props.needDropdown) {\n hasMoreData.value = true\n pageNum.value = 1\n }\n const { currentPage: pNum, pageSize: pSize } = paginationData\n pageNum.value = pNum\n pageSize.value = pSize\n onSearch()\n}\n\nasync function validateCells(\n callback?: (valid: boolean, invalidFields?: Record<string, any>) => void\n) {\n return validateField(fields.value, callback)\n}\n\nfunction clearCellValidate() {\n fields.value.forEach((field: any) => field.clearValidate())\n}\n\nasync function doValidateField(fieldList: any[]) {\n if (fieldList.length === 0) return true\n let validationErrors: Record<string, any> = {}\n for (const field of fieldList) {\n try {\n await field.validate('')\n } catch (fields2: any) {\n validationErrors = {\n ...validationErrors,\n ...fields2,\n }\n }\n }\n if (Object.keys(validationErrors).length === 0) return true\n return Promise.reject(validationErrors)\n}\n\nasync function validateField(\n fieldList: any[],\n callback?: (valid: boolean, invalidFields?: Record<string, any>) => void\n) {\n const shouldThrow = !isFunction(callback)\n try {\n const result = await doValidateField(fieldList)\n if (result === true && callback) {\n await callback(result)\n }\n return result\n } catch (e) {\n if (e instanceof Error) throw e\n const invalidFields = e as Record<string, any>\n if (callback) {\n await callback(false, invalidFields)\n }\n return shouldThrow && Promise.reject(invalidFields)\n }\n}\n\nfunction loadTableData(newTableData: any[] = props.tableData) {\n if (newTableData) {\n emit('update:tableData', newTableData)\n }\n}\n\nfunction setTableHeight() {\n if (!VTableBase.value) return\n nextTick(() => {\n if (props.autoHeight || props.maxHeight) return\n if (props.tableHeight) {\n vTableHeight.value = props.tableHeight\n return\n }\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n })\n}\n\nasync function copyText(text: string) {\n if (navigator.clipboard) {\n await navigator.clipboard.writeText(text)\n ElMessage.success(t('expand.utils.copySuccess'))\n } else {\n const textarea = document.createElement('textarea')\n textarea.value = text\n document.body.appendChild(textarea)\n textarea.select()\n document.execCommand('copy')\n document.body.removeChild(textarea)\n ElMessage.success(t('expand.utils.copySuccess'))\n }\n closeContextMenu()\n}\n\nfunction closeContextMenu() {\n window.removeEventListener('mousewheel', closeContextMenu)\n showContextmenu.value = false\n}\n\nfunction handleHeaderDragend(...args: any[]) {\n emit('header-dragend', ...args)\n}\n\nfunction handleCellMouseEnter(...args: any[]) {\n emit('cell-mouse-enter', ...args)\n}\n\nfunction handleCellMouseLeave(...args: any[]) {\n emit('cell-mouse-leave', ...args)\n}\n\nfunction $contextmenu({ items, event }: { items: any[]; event: MouseEvent }) {\n contextmenuList.value = items\n contextmenuStyle.left = `${event.clientX}px`\n contextmenuStyle.top = `${event.clientY}px`\n showContextmenu.value = true\n window.addEventListener('mousewheel', closeContextMenu)\n}\n\nfunction rowContextmenu(row: any, column: any, event: MouseEvent) {\n if (!props.showCellContextmenu) return\n event.stopPropagation()\n const tableDataDisplay = unref(\n VTableBase.value.$refs.singleTable.store.states.data\n )\n const rowIndex = tableDataDisplay.indexOf(row)\n const prop = column.property\n if (prop && prop !== 'operateCol') {\n $contextmenu({\n items: [\n {\n label: t('expand.other.copyCurrentCellText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n const col = finalVtableColumns.value.find(\n (item: any) => item.prop === prop\n )\n const value = row[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index: rowIndex,\n row,\n value,\n scope: { row, column: col, index: rowIndex },\n })\n text += getVnodeText(renderValue)\n copyText(text)\n },\n },\n {\n label: t('expand.other.copyCurrentColumnText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n const col = finalVtableColumns.value.find(\n (item: any) => item.prop === prop\n )\n props.tableData.forEach((r: any, index: number) => {\n const value = r[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index,\n row: r,\n value,\n scope: { row: r, column: col, index },\n })\n text += `${getVnodeText(renderValue)}\\r`\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ...(props.selectType === 'checkbox' || props.selectType === 'radio'\n ? [\n {\n label: t('expand.other.copyCurrentColumnSelectedText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n let rows: any[]\n const col = finalVtableColumns.value.find(\n (item: any) => item.prop === prop\n )\n if (props.selectType === 'radio') {\n rows = [currentRow.value]\n } else {\n rows = selectRows.value\n }\n rows.forEach((r: any, index: number) => {\n const value = r[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index,\n row: r,\n value,\n scope: { row: r, column: col, index },\n })\n text += `${getVnodeText(renderValue)}\\r`\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ]\n : []),\n {\n label: t('expand.other.copyCurrentRowText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n const r = props.tableData[rowIndex]\n finalVtableColumns.value.forEach((col: any) => {\n const value = r[col.prop]\n const renderValue = createRenderValue({\n column: col,\n index: rowIndex,\n row: r,\n value,\n scope: { row: r, column: col, index: rowIndex },\n })\n if (col.prop !== 'operateCol') {\n text += `${getVnodeText(renderValue)}\\t`\n }\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ...(props.selectType === 'checkbox' || props.selectType === 'radio'\n ? [\n {\n label: t('expand.other.copyCurrentRowSelectedText'),\n icon: DocumentCopy,\n onClick: () => {\n let text = ''\n let rows: any[]\n if (props.selectType === 'radio') {\n rows = [currentRow.value]\n } else {\n rows = selectRows.value\n }\n rows.forEach((r: any) => {\n finalVtableColumns.value.forEach((col: any) => {\n const value = r[col.prop]\n const _index = tableDataDisplay.indexOf(r)\n const renderValue = createRenderValue({\n column: col,\n index: _index,\n row: r,\n value,\n scope: { row: r, column: col, index: _index },\n })\n if (col.prop !== 'operateCol') {\n text += `${getVnodeText(renderValue)}\\t`\n }\n })\n text = text.slice(0, -1)\n text += '\\r'\n })\n text = text.slice(0, -1)\n copyText(text)\n },\n },\n ]\n : []),\n ],\n event,\n })\n event.preventDefault()\n }\n}\n\nfunction getDisabledValue(disabled: any, otherInfo: any) {\n if (typeof disabled === 'function') {\n return disabled(otherInfo)\n } else {\n return disabled\n }\n}\n\n// ========== Debounced onSearch ==========\nconst onSearch = debounce(queryTableData, 300)\n\n// ========== Watchers ==========\nwatch(\n () => finalVtableColumns.value,\n () => {\n doLayout()\n }\n)\n\nwatch(\n () => props.middleButtons,\n () => {\n setTableHeight()\n }\n)\n\nwatch(\n () => props.tableHeight,\n () => {\n setTableHeight()\n }\n)\n\nwatch(\n () => props.topInputs,\n () => {\n props.topInputs.forEach((item: any) => {\n if (item.defaultValue && inputsData[item.prop] === undefined) {\n inputsData[item.prop] = item.defaultValue\n }\n })\n }\n)\n\n// ========== Lifecycle ==========\n// created equivalent\nabortSignal.value = new AbortController()\nwindow.addEventListener('resize', debounce(handleResize, 100), {\n signal: abortSignal.value.signal,\n capture: true,\n})\n\nonMounted(() => {\n if (props.autoSearch) onSearch()\n nextTick(() => {\n if (props.needDropdown) {\n initInfiniteScroll()\n }\n resizeObserver.value = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const { contentRect, target } = entry\n if (target.className.includes('basetable-top-box')) {\n showCollapse.value = contentRect.height > 45\n if (\n showCollapse.value &&\n props.headerFilter &&\n !autoCollapsed.value\n ) {\n isCollapsed.value = true\n autoCollapsed.value = true\n }\n }\n setTableHeight()\n }\n })\n const element = rootEl.value?.querySelector('.basetable-top-box')\n element && resizeObserver.value.observe(element)\n const middleBox = rootEl.value?.querySelector('.basetable-middle-box')\n middleBox && resizeObserver.value.observe(middleBox)\n\n if (!VTableBase.value) return\n if (props.autoHeight || props.maxHeight) return\n if (props.tableHeight) {\n vTableHeight.value = props.tableHeight\n return\n }\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n const elTabPane = getParentNode(VTableBase.value.$el, 'el-tab-pane', 50)\n if (elTabPane) {\n const callback = (mutationsList: MutationRecord[]) => {\n for (const mutation of mutationsList) {\n if (\n mutation.type === 'attributes' &&\n mutation.attributeName === 'style'\n ) {\n vTableHeight.value = calcVTableHeight(\n VTableBase.value.$el,\n props.tableHeightMinus\n )\n resetScrollingPosition()\n doLayout()\n }\n }\n }\n observer.value = new MutationObserver(callback)\n observer.value.observe(elTabPane, { attributes: true })\n if (props.tabLevel === 2) {\n const parentTabPane = getParentNode(elTabPane, 'el-tab-pane', 10)\n if (parentTabPane) {\n observer.value.observe(parentTabPane, { attributes: true })\n }\n }\n }\n })\n})\n\nonActivated(() => {\n handleResize()\n})\n\nonBeforeUnmount(() => {\n abortSignal.value && abortSignal.value.abort()\n observer.value && observer.value.disconnect()\n resizeObserver.value && resizeObserver.value.disconnect()\n})\n\n// ========== Expose ==========\ndefineExpose({\n onSearch,\n onReset,\n getInputsData,\n setInputsData,\n getSelectRows,\n getSelecRowsWithSort,\n getSortedTableData,\n clearSelection,\n addSelection,\n getCurrentRow,\n setCurrentRow,\n validateCells,\n clearCellValidate,\n loadTableData,\n doLayout,\n setTableHeight,\n clearSort,\n rememberScrollingPosition,\n restTopInputs,\n VTableBase,\n inputsData,\n inputsDataDealed,\n selectRows,\n currentRow,\n tableLoading,\n pageNum,\n pageSize,\n total,\n lastSearchData,\n searchForm,\n})\n</script>\n"],"mappings":""}
|