yc-pro-components 0.0.4 → 0.0.6
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/es/components/check-card/index.d.ts +38 -38
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +19 -19
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/dialog-form/index.d.ts +7 -7
- package/es/components/dialog-form/src/index.vue.d.ts +7 -7
- package/es/components/display-item/index.d.ts +21 -21
- package/es/components/display-item/src/index.vue.d.ts +21 -21
- package/es/components/drawer-form/index.d.ts +26 -26
- package/es/components/drawer-form/src/index.vue.d.ts +8 -8
- package/es/components/form/index.d.ts +14 -14
- package/es/components/form/src/form-content.vue.d.ts +20 -20
- package/es/components/form/src/index.vue.d.ts +14 -14
- package/es/components/form-item/index.d.ts +32 -32
- package/es/components/form-item/src/index.vue.d.ts +12 -12
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/index.d.ts +0 -1
- package/es/components/index.mjs +0 -2
- package/es/components/input-tag/index.d.ts +9 -9
- package/es/components/input-tag/src/index.vue.d.ts +1 -1
- package/es/components/page/index.d.ts +220 -220
- package/es/components/page/src/index.vue.d.ts +78 -78
- package/es/components/radio/index.d.ts +25 -25
- package/es/components/radio/src/index.vue.d.ts +25 -25
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +49 -49
- package/es/components/search/src/index.vue.d.ts +21 -21
- package/es/components/table/index.d.ts +54 -54
- package/es/components/table/src/index.vue.d.ts +18 -18
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +21 -21
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-line-tree/src/index.vue2.mjs +2 -18
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +203 -203
- package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +90 -90
- package/es/index.mjs +0 -2
- package/index.js +11 -2066
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +12 -2060
- package/lib/components/check-card/index.d.ts +38 -38
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +19 -19
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/dialog-form/index.d.ts +7 -7
- package/lib/components/dialog-form/src/index.vue.d.ts +7 -7
- package/lib/components/display-item/index.d.ts +21 -21
- package/lib/components/display-item/src/index.vue.d.ts +21 -21
- package/lib/components/drawer-form/index.d.ts +26 -26
- package/lib/components/drawer-form/src/index.vue.d.ts +8 -8
- package/lib/components/form/index.d.ts +14 -14
- package/lib/components/form/src/form-content.vue.d.ts +20 -20
- package/lib/components/form/src/index.vue.d.ts +14 -14
- package/lib/components/form-item/index.d.ts +32 -32
- package/lib/components/form-item/src/index.vue.d.ts +12 -12
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +10 -19
- package/lib/components/input-tag/index.d.ts +9 -9
- package/lib/components/input-tag/src/index.vue.d.ts +1 -1
- package/lib/components/page/index.d.ts +220 -220
- package/lib/components/page/src/index.vue.d.ts +78 -78
- package/lib/components/radio/index.d.ts +25 -25
- package/lib/components/radio/src/index.vue.d.ts +25 -25
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +49 -49
- package/lib/components/search/src/index.vue.d.ts +21 -21
- package/lib/components/table/index.d.ts +54 -54
- package/lib/components/table/src/index.vue.d.ts +18 -18
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +21 -21
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-line-tree/src/index.vue2.js +2 -18
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +203 -203
- package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +90 -90
- package/lib/index.js +10 -19
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -2
- package/es/components/yc-icon/index.d.ts +0 -49
- package/es/components/yc-icon/index.mjs +0 -10
- package/es/components/yc-icon/src/hooks.d.ts +0 -11
- package/es/components/yc-icon/src/hooks.mjs +0 -80
- package/es/components/yc-icon/src/iconfont.d.ts +0 -21
- package/es/components/yc-icon/src/iconfont.mjs +0 -45
- package/es/components/yc-icon/src/iconifyIconOffline.d.ts +0 -34
- package/es/components/yc-icon/src/iconifyIconOffline.mjs +0 -51
- package/es/components/yc-icon/src/iconifyIconOnline.d.ts +0 -19
- package/es/components/yc-icon/src/iconifyIconOnline.mjs +0 -30
- package/es/components/yc-icon/src/types.d.ts +0 -35
- package/es/components/yc-icon/src/types.mjs +0 -1
- package/lib/components/yc-icon/index.d.ts +0 -49
- package/lib/components/yc-icon/index.js +0 -18
- package/lib/components/yc-icon/src/hooks.d.ts +0 -11
- package/lib/components/yc-icon/src/hooks.js +0 -82
- package/lib/components/yc-icon/src/iconfont.d.ts +0 -21
- package/lib/components/yc-icon/src/iconfont.js +0 -49
- package/lib/components/yc-icon/src/iconifyIconOffline.d.ts +0 -34
- package/lib/components/yc-icon/src/iconifyIconOffline.js +0 -55
- package/lib/components/yc-icon/src/iconifyIconOnline.d.ts +0 -19
- package/lib/components/yc-icon/src/iconifyIconOnline.js +0 -34
- package/lib/components/yc-icon/src/types.d.ts +0 -35
- package/lib/components/yc-icon/src/types.js +0 -2
package/lib/index.js
CHANGED
|
@@ -72,12 +72,10 @@ var index$L = require('./components/yc-segmented/src/index.js');
|
|
|
72
72
|
var animate = require('./components/yc-animate-selector/src/animate.js');
|
|
73
73
|
var index$M = require('./components/yc-animate-selector/index.js');
|
|
74
74
|
var index$N = require('./components/yc-animate-selector/src/index.vue.js');
|
|
75
|
-
var
|
|
76
|
-
var index$
|
|
77
|
-
var index$
|
|
78
|
-
var index$
|
|
79
|
-
var index$R = require('./components/yc-tabs-with-filter/index.js');
|
|
80
|
-
var index$S = require('./components/yc-tabs-with-filter/src/index.vue.js');
|
|
75
|
+
var index$O = require('./components/yc-download-dialog/index.js');
|
|
76
|
+
var index$P = require('./components/yc-download-dialog/src/index.vue.js');
|
|
77
|
+
var index$Q = require('./components/yc-tabs-with-filter/index.js');
|
|
78
|
+
var index$R = require('./components/yc-tabs-with-filter/src/index.vue.js');
|
|
81
79
|
|
|
82
80
|
const install = defaults.default.install;
|
|
83
81
|
|
|
@@ -206,17 +204,10 @@ exports.animates = animate.animates;
|
|
|
206
204
|
exports.YcAnimateSelectorWithInstall = index$M.YcAnimateSelectorWithInstall;
|
|
207
205
|
exports.ReAnimateSelector = index$N.default;
|
|
208
206
|
exports.YcAnimateSelector = index$N.default;
|
|
209
|
-
exports.
|
|
210
|
-
exports.
|
|
211
|
-
exports.
|
|
212
|
-
exports.
|
|
213
|
-
exports.
|
|
214
|
-
exports.
|
|
215
|
-
exports.YcIconifyIconOnline = index$O.YcIconifyIconOnline;
|
|
216
|
-
exports.YcDownloadDialogWithInstall = index$P.YcDownloadDialogWithInstall;
|
|
217
|
-
exports.ReDownloadDialog = index$Q.default;
|
|
218
|
-
exports.YcDownloadDialog = index$Q.default;
|
|
219
|
-
exports.YcTabsWithFilterWithInstall = index$R.YcTabsWithFilterWithInstall;
|
|
220
|
-
exports.ReTabsWithFilter = index$S.default;
|
|
221
|
-
exports.YcTabsWithFilter = index$S.default;
|
|
207
|
+
exports.YcDownloadDialogWithInstall = index$O.YcDownloadDialogWithInstall;
|
|
208
|
+
exports.ReDownloadDialog = index$P.default;
|
|
209
|
+
exports.YcDownloadDialog = index$P.default;
|
|
210
|
+
exports.YcTabsWithFilterWithInstall = index$Q.YcTabsWithFilterWithInstall;
|
|
211
|
+
exports.ReTabsWithFilter = index$R.default;
|
|
212
|
+
exports.YcTabsWithFilter = index$R.default;
|
|
222
213
|
exports.install = install;
|
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.YcComponentsLocaleEn=t())})(this,function(){"use strict";var e={name:"en",plus:{dialog:{confirmText:"Yes",cancelText:"No",title:"Dialog"},datepicker:{startPlaceholder:"Please select start time",endPlaceholder:"Please select end time"},dialogForm:{title:"Dialog form"},drawerForm:{title:"Drawer form",confirmText:"Yes",cancelText:"No"},form:{submitText:"Submit",resetText:"Reset",errorTip:"Please complete the form and submit again!"},field:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},popover:{confirmText:"Yes",cancelText:"No"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract"},table:{title:"Table",density:"Density",refresh:"Refresh",columnSettings:"Column settings",selectAll:"Select all",default:"Default",loose:"Loose",compact:"Compact",action:"Action",more:"More",confirmToPerformThisOperation:"Confirm to perform this operation?",prompt:"Prompt",sort:"Sort",resetText:"Reset"},stepsForm:{nextText:"Next step",preText:"Previous step",submitText:"Submit"},inputTag:{placeholder:"Please enter keywords and press enter or space key"},header:{logout:"logout"}}};return e});
|
package/locale/en.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */var e={name:"en",plus:{dialog:{confirmText:"Yes",cancelText:"No",title:"Dialog"},datepicker:{startPlaceholder:"Please select start time",endPlaceholder:"Please select end time"},dialogForm:{title:"Dialog form"},drawerForm:{title:"Drawer form",confirmText:"Yes",cancelText:"No"},form:{submitText:"Submit",resetText:"Reset",errorTip:"Please complete the form and submit again!"},field:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},popover:{confirmText:"Yes",cancelText:"No"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract"},table:{title:"Table",density:"Density",refresh:"Refresh",columnSettings:"Column settings",selectAll:"Select all",default:"Default",loose:"Loose",compact:"Compact",action:"Action",more:"More",confirmToPerformThisOperation:"Confirm to perform this operation?",prompt:"Prompt",sort:"Sort",resetText:"Reset"},stepsForm:{nextText:"Next step",preText:"Previous step",submitText:"Submit"},inputTag:{placeholder:"Please enter keywords and press enter or space key"},header:{logout:"logout"}}};export{e as default};
|
package/locale/en.mjs
CHANGED
package/locale/ja.js
CHANGED
package/locale/ja.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.YcComponentsLocaleJa=e())})(this,function(){"use strict";var u={name:"ja",plus:{dialog:{confirmText:"\u78BA\u5B9A",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB",title:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7"},datepicker:{startPlaceholder:"\u958B\u59CB\u6642\u9593\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",endPlaceholder:"\u7D42\u4E86\u6642\u9593\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},dialogForm:{title:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7\u30D5\u30A9\u30FC\u30E0"},drawerForm:{title:"\u30C9\u30A5\u30ED\u30EF\u30FC\u30D5\u30A9\u30FC\u30E0",confirmText:"\u78BA\u5B9A",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB"},form:{submitText:"\u9001\u4FE1",resetText:"\u30EA\u30BB\u30C3\u30C8",errorTip:"\u30D5\u30A9\u30FC\u30E0\u3092\u5B8C\u5168\u306B\u8A18\u5165\u3057\u3066\u304B\u3089\u518D\u5EA6\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\uFF01"},field:{pleaseEnter:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",pleaseSelect:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},popover:{confirmText:"\u78BA\u5B9A",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB"},search:{searchText:"\u691C\u7D22",resetText:"\u30EA\u30BB\u30C3\u30C8",expand:"\u958B\u304F",retract:"\u9589\u307E\u308B"},table:{title:"\u30C6\u30FC\u30D6\u30EB",density:"\u5BC6\u5EA6",refresh:"\u30EA\u30D5\u30EC\u30C3\u30B7\u30E5",columnSettings:"\u5217\u306E\u8A2D\u5B9A",selectAll:"\u3059\u3079\u3066\u9078\u629E",default:"\u30C7\u30D5\u30A9\u30EB\u30C8",loose:"\u3086\u3063\u305F\u308A",compact:"\u304D\u3061\u3093\u3068",action:"\u30AA\u30D7\u30B7\u30E7\u30F3",more:"\u3082\u3063\u3068\u898B\u308B",confirmToPerformThisOperation:"\u3053\u306E\u64CD\u4F5C\u3092\u5B9F\u884C\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",prompt:"\u30D2\u30F3\u30C8",sort:"\u4E26\u3079\u66FF\u3048",resetText:"\u30EA\u30BB\u30C3\u30C8"},stepsForm:{nextText:"\u6B21\u3078",preText:"\u524D\u3078",submitText:"\u9001\u4FE1"},inputTag:{placeholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066Enter/\u30B9\u30DA\u30FC\u30B9\u30AD\u30FC\u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044"},header:{logout:"\u30ED\u30B0\u30A2\u30A6\u30C8"}}};return u});
|
package/locale/ja.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */var u={name:"ja",plus:{dialog:{confirmText:"\u78BA\u5B9A",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB",title:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7"},datepicker:{startPlaceholder:"\u958B\u59CB\u6642\u9593\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",endPlaceholder:"\u7D42\u4E86\u6642\u9593\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},dialogForm:{title:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7\u30D5\u30A9\u30FC\u30E0"},drawerForm:{title:"\u30C9\u30A5\u30ED\u30EF\u30FC\u30D5\u30A9\u30FC\u30E0",confirmText:"\u78BA\u5B9A",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB"},form:{submitText:"\u9001\u4FE1",resetText:"\u30EA\u30BB\u30C3\u30C8",errorTip:"\u30D5\u30A9\u30FC\u30E0\u3092\u5B8C\u5168\u306B\u8A18\u5165\u3057\u3066\u304B\u3089\u518D\u5EA6\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\uFF01"},field:{pleaseEnter:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",pleaseSelect:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},popover:{confirmText:"\u78BA\u5B9A",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB"},search:{searchText:"\u691C\u7D22",resetText:"\u30EA\u30BB\u30C3\u30C8",expand:"\u958B\u304F",retract:"\u9589\u307E\u308B"},table:{title:"\u30C6\u30FC\u30D6\u30EB",density:"\u5BC6\u5EA6",refresh:"\u30EA\u30D5\u30EC\u30C3\u30B7\u30E5",columnSettings:"\u5217\u306E\u8A2D\u5B9A",selectAll:"\u3059\u3079\u3066\u9078\u629E",default:"\u30C7\u30D5\u30A9\u30EB\u30C8",loose:"\u3086\u3063\u305F\u308A",compact:"\u304D\u3061\u3093\u3068",action:"\u30AA\u30D7\u30B7\u30E7\u30F3",more:"\u3082\u3063\u3068\u898B\u308B",confirmToPerformThisOperation:"\u3053\u306E\u64CD\u4F5C\u3092\u5B9F\u884C\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",prompt:"\u30D2\u30F3\u30C8",sort:"\u4E26\u3079\u66FF\u3048",resetText:"\u30EA\u30BB\u30C3\u30C8"},stepsForm:{nextText:"\u6B21\u3078",preText:"\u524D\u3078",submitText:"\u9001\u4FE1"},inputTag:{placeholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066Enter/\u30B9\u30DA\u30FC\u30B9\u30AD\u30FC\u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044"},header:{logout:"\u30ED\u30B0\u30A2\u30A6\u30C8"}}};export{u as default};
|
package/locale/ja.mjs
CHANGED
package/locale/ko.js
CHANGED
package/locale/ko.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */(function(u,C){typeof exports=="object"&&typeof module!="undefined"?module.exports=C():typeof define=="function"&&define.amd?define(C):(u=typeof globalThis!="undefined"?globalThis:u||self,u.YcComponentsLocaleKo=C())})(this,function(){"use strict";var u={name:"ko",plus:{dialog:{confirmText:"\uD655\uC2E0\uD558\uB294",cancelText:"\uCDE8\uC18C",title:"\uD31D \uC5C5"},datepicker:{startPlaceholder:"\uC2DC\uC791 \uC2DC\uAC04\uC744 \uC120\uD0DD\uD558\uC138\uC694",endPlaceholder:"\uC885\uB8CC\uC2DC\uAC04\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694"},dialogForm:{title:"\uD31D\uC5C5 \uD615\uD0DC"},drawerForm:{title:"\uC11C\uB78D \uD615\uD0DC",confirmText:"\uD655\uC2E0\uD558\uB294",cancelText:"\uCDE8\uC18C"},form:{submitText:"\uC81C\uCD9C\uD558\uB2E4",resetText:"\uCD08\uAE30\uD654",errorTip:"\uC591\uC2DD\uC744 \uC644\uC804\uD788 \uC791\uC131\uD558\uC2E0 \uD6C4 \uB2E4\uC2DC \uC81C\uCD9C\uD574 \uC8FC\uC138\uC694!"},field:{pleaseEnter:"\uB4E4\uC5B4 \uC624\uC138\uC694",pleaseSelect:"\uC120\uD0DD\uD574\uC8FC\uC138\uC694"},popover:{confirmText:"\uD655\uC2E0\uD558\uB294",cancelText:"\uCDE8\uC18C"},search:{searchText:"\uCC3E\uB2E4",resetText:"\uCD08\uAE30\uD654",expand:"\uD655\uC7A5\uD558\uB2E4",retract:"\uB2EB\uB2E4"},table:{title:"\uC2DC\uD2B8",density:"\uBC00\uB3C4",refresh:"\uC0C8\uB85C \uACE0\uCE58\uB2E4",columnSettings:"\uC5F4 \uC124\uC815",selectAll:"\uBAA8\uB450 \uC120\uD0DD",default:"\uAE30\uBCF8",loose:"\uD5D0\uB801\uD55C",compact:"\uCF64\uD329\uD2B8",action:"\uC791\uB3D9\uD558\uB2E4",more:"\uB354",confirmToPerformThisOperation:"\uC774 \uC791\uC5C5\uC744 \uC218\uD589\uD558\uB824\uBA74 \uD655\uC778\uD558\uC138\uC694?",prompt:"\uD78C\uD2B8",sort:"\uC885\uB958",resetText:"\uCD08\uAE30\uD654"},stepsForm:{nextText:"\uB2E4\uC74C \uB2E8\uACC4",preText:"\uC774\uC804\uC758",submitText:"\uC81C\uCD9C\uD558\uB2E4"},inputTag:{placeholder:"\uD0A4\uC6CC\uB4DC\uB97C \uC785\uB825\uD558\uACE0 Enter/\uC2A4\uD398\uC774\uC2A4\uBC14\uB97C \uB204\uB974\uC138\uC694"},header:{logout:"\uB85C\uADF8\uC544\uC6C3"}}};return u});
|
package/locale/ko.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */var u={name:"ko",plus:{dialog:{confirmText:"\uD655\uC2E0\uD558\uB294",cancelText:"\uCDE8\uC18C",title:"\uD31D \uC5C5"},datepicker:{startPlaceholder:"\uC2DC\uC791 \uC2DC\uAC04\uC744 \uC120\uD0DD\uD558\uC138\uC694",endPlaceholder:"\uC885\uB8CC\uC2DC\uAC04\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694"},dialogForm:{title:"\uD31D\uC5C5 \uD615\uD0DC"},drawerForm:{title:"\uC11C\uB78D \uD615\uD0DC",confirmText:"\uD655\uC2E0\uD558\uB294",cancelText:"\uCDE8\uC18C"},form:{submitText:"\uC81C\uCD9C\uD558\uB2E4",resetText:"\uCD08\uAE30\uD654",errorTip:"\uC591\uC2DD\uC744 \uC644\uC804\uD788 \uC791\uC131\uD558\uC2E0 \uD6C4 \uB2E4\uC2DC \uC81C\uCD9C\uD574 \uC8FC\uC138\uC694!"},field:{pleaseEnter:"\uB4E4\uC5B4 \uC624\uC138\uC694",pleaseSelect:"\uC120\uD0DD\uD574\uC8FC\uC138\uC694"},popover:{confirmText:"\uD655\uC2E0\uD558\uB294",cancelText:"\uCDE8\uC18C"},search:{searchText:"\uCC3E\uB2E4",resetText:"\uCD08\uAE30\uD654",expand:"\uD655\uC7A5\uD558\uB2E4",retract:"\uB2EB\uB2E4"},table:{title:"\uC2DC\uD2B8",density:"\uBC00\uB3C4",refresh:"\uC0C8\uB85C \uACE0\uCE58\uB2E4",columnSettings:"\uC5F4 \uC124\uC815",selectAll:"\uBAA8\uB450 \uC120\uD0DD",default:"\uAE30\uBCF8",loose:"\uD5D0\uB801\uD55C",compact:"\uCF64\uD329\uD2B8",action:"\uC791\uB3D9\uD558\uB2E4",more:"\uB354",confirmToPerformThisOperation:"\uC774 \uC791\uC5C5\uC744 \uC218\uD589\uD558\uB824\uBA74 \uD655\uC778\uD558\uC138\uC694?",prompt:"\uD78C\uD2B8",sort:"\uC885\uB958",resetText:"\uCD08\uAE30\uD654"},stepsForm:{nextText:"\uB2E4\uC74C \uB2E8\uACC4",preText:"\uC774\uC804\uC758",submitText:"\uC81C\uCD9C\uD558\uB2E4"},inputTag:{placeholder:"\uD0A4\uC6CC\uB4DC\uB97C \uC785\uB825\uD558\uACE0 Enter/\uC2A4\uD398\uC774\uC2A4\uBC14\uB97C \uB204\uB974\uC138\uC694"},header:{logout:"\uB85C\uADF8\uC544\uC6C3"}}};export{u as default};
|
package/locale/ko.mjs
CHANGED
package/locale/zh-cn.js
CHANGED
package/locale/zh-cn.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.YcComponentsLocaleZhCn=e())})(this,function(){"use strict";var u={name:"zh-cn",plus:{dialog:{confirmText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5F39\u7A97"},datepicker:{startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},dialogForm:{title:"\u5F39\u7A97\u8868\u5355"},drawerForm:{title:"\u62BD\u5C49\u8868\u5355",confirmText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},form:{submitText:"\u63D0\u4EA4",resetText:"\u91CD\u7F6E",errorTip:"\u8BF7\u5B8C\u6574\u586B\u5199\u8868\u5355\u7136\u540E\u518D\u6B21\u63D0\u4EA4\uFF01"},field:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},popover:{confirmText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},search:{searchText:"\u641C\u7D22",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77"},table:{title:"\u8868\u683C",density:"\u5BC6\u5EA6",refresh:"\u5237\u65B0",columnSettings:"\u5217\u8BBE\u7F6E",selectAll:"\u5168\u9009",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1",action:"\u64CD\u4F5C",more:"\u66F4\u591A",confirmToPerformThisOperation:"\u786E\u5B9A\u6267\u884C\u672C\u6B21\u64CD\u4F5C?",prompt:"\u63D0\u793A",sort:"\u6392\u5E8F",resetText:"\u91CD\u7F6E"},stepsForm:{nextText:"\u4E0B\u4E00\u6B65",preText:"\u4E0A\u4E00\u6B65",submitText:"\u63D0\u4EA4"},inputTag:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u540E\u6309\u56DE\u8F66/\u7A7A\u683C\u952E"},header:{logout:"\u9000\u51FA\u767B\u5F55"}}};return u});
|
package/locale/zh-cn.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */var u={name:"zh-cn",plus:{dialog:{confirmText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5F39\u7A97"},datepicker:{startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},dialogForm:{title:"\u5F39\u7A97\u8868\u5355"},drawerForm:{title:"\u62BD\u5C49\u8868\u5355",confirmText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},form:{submitText:"\u63D0\u4EA4",resetText:"\u91CD\u7F6E",errorTip:"\u8BF7\u5B8C\u6574\u586B\u5199\u8868\u5355\u7136\u540E\u518D\u6B21\u63D0\u4EA4\uFF01"},field:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},popover:{confirmText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},search:{searchText:"\u641C\u7D22",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77"},table:{title:"\u8868\u683C",density:"\u5BC6\u5EA6",refresh:"\u5237\u65B0",columnSettings:"\u5217\u8BBE\u7F6E",selectAll:"\u5168\u9009",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1",action:"\u64CD\u4F5C",more:"\u66F4\u591A",confirmToPerformThisOperation:"\u786E\u5B9A\u6267\u884C\u672C\u6B21\u64CD\u4F5C?",prompt:"\u63D0\u793A",sort:"\u6392\u5E8F",resetText:"\u91CD\u7F6E"},stepsForm:{nextText:"\u4E0B\u4E00\u6B65",preText:"\u4E0A\u4E00\u6B65",submitText:"\u63D0\u4EA4"},inputTag:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u540E\u6309\u56DE\u8F66/\u7A7A\u683C\u952E"},header:{logout:"\u9000\u51FA\u767B\u5F55"}}};export{u as default};
|
package/locale/zh-cn.mjs
CHANGED
package/locale/zh-tw.js
CHANGED
package/locale/zh-tw.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.YcComponentsLocaleZhTw=e())})(this,function(){"use strict";var u={name:"zh-tw",plus:{dialog:{confirmText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5F48\u7A97"},datepicker:{startPlaceholder:"\u8ACB\u9078\u64C7\u958B\u59CB\u6642\u9593",endPlaceholder:"\u8ACB\u9078\u64C7\u7D50\u675F\u6642\u9593"},dialogForm:{title:"\u5F48\u7A97\u8868\u55AE"},drawerForm:{title:"\u62BD\u5C5C\u8868\u55AE",confirmText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88"},form:{submitText:"\u63D0\u4EA4",resetText:"\u91CD\u7F6E",errorTip:"\u8ACB\u5B8C\u6574\u586B\u5BEB\u8868\u55AE\u7136\u5F8C\u518D\u6B21\u63D0\u4EA4\uFF01"},field:{pleaseEnter:"\u8ACB\u8F38\u5165",pleaseSelect:"\u8ACB\u9078\u64C7"},popover:{confirmText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88"},search:{searchText:"\u641C\u5C0B",resetText:"\u91CD\u7F6E",expand:"\u5C55\u958B",retract:"\u6536\u8D77"},table:{title:"\u8868\u683C",density:"\u5BC6\u5EA6",refresh:"\u5237\u65B0",columnSettings:"\u5217\u8A2D\u5B9A",selectAll:"\u5168\u9078",default:"\u9810\u8A2D",loose:"\u5BEC\u9B06",compact:"\u7DCA\u6E4A",action:"\u64CD\u4F5C",more:"\u66F4\u591A",confirmToPerformThisOperation:"\u78BA\u5B9A\u57F7\u884C\u672C\u6B21\u64CD\u4F5C?",prompt:"\u63D0\u793A",sort:"\u6392\u5E8F",resetText:"\u91CD\u7F6E"},stepsForm:{nextText:"\u4E0B\u4E00\u6B65",preText:"\u4E0A\u4E00\u6B65",submitText:"\u63D0\u4EA4"},inputTag:{placeholder:"\u8ACB\u8F38\u5165\u95DC\u9375\u5B57\u5F8C\u6309\u56DE\u8ECA/\u7A7A\u767D\u9375"},header:{logout:"\u767B\u51FA"}}};return u});
|
package/locale/zh-tw.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.6 */var u={name:"zh-tw",plus:{dialog:{confirmText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5F48\u7A97"},datepicker:{startPlaceholder:"\u8ACB\u9078\u64C7\u958B\u59CB\u6642\u9593",endPlaceholder:"\u8ACB\u9078\u64C7\u7D50\u675F\u6642\u9593"},dialogForm:{title:"\u5F48\u7A97\u8868\u55AE"},drawerForm:{title:"\u62BD\u5C5C\u8868\u55AE",confirmText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88"},form:{submitText:"\u63D0\u4EA4",resetText:"\u91CD\u7F6E",errorTip:"\u8ACB\u5B8C\u6574\u586B\u5BEB\u8868\u55AE\u7136\u5F8C\u518D\u6B21\u63D0\u4EA4\uFF01"},field:{pleaseEnter:"\u8ACB\u8F38\u5165",pleaseSelect:"\u8ACB\u9078\u64C7"},popover:{confirmText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88"},search:{searchText:"\u641C\u5C0B",resetText:"\u91CD\u7F6E",expand:"\u5C55\u958B",retract:"\u6536\u8D77"},table:{title:"\u8868\u683C",density:"\u5BC6\u5EA6",refresh:"\u5237\u65B0",columnSettings:"\u5217\u8A2D\u5B9A",selectAll:"\u5168\u9078",default:"\u9810\u8A2D",loose:"\u5BEC\u9B06",compact:"\u7DCA\u6E4A",action:"\u64CD\u4F5C",more:"\u66F4\u591A",confirmToPerformThisOperation:"\u78BA\u5B9A\u57F7\u884C\u672C\u6B21\u64CD\u4F5C?",prompt:"\u63D0\u793A",sort:"\u6392\u5E8F",resetText:"\u91CD\u7F6E"},stepsForm:{nextText:"\u4E0B\u4E00\u6B65",preText:"\u4E0A\u4E00\u6B65",submitText:"\u63D0\u4EA4"},inputTag:{placeholder:"\u8ACB\u8F38\u5165\u95DC\u9375\u5B57\u5F8C\u6309\u56DE\u8ECA/\u7A7A\u767D\u9375"},header:{logout:"\u767B\u51FA"}}};export{u as default};
|
package/locale/zh-tw.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yc-pro-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "YC Components - 基于 Element Plus 的页面级组件库",
|
|
5
5
|
"author": "jinbizhihui",
|
|
6
6
|
"keywords": [
|
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@element-plus/icons-vue": "^2.1.0",
|
|
93
|
-
"@iconify/vue": "^5.0.0",
|
|
94
93
|
"@vueuse/core": "^9.13.0",
|
|
95
94
|
"accounting": "^0.4.1",
|
|
96
95
|
"axios": "^1.4.0",
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { IconifyIconData } from './src/iconifyIconOffline';
|
|
2
|
-
import { DefineComponent, PropType, Component, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
/** 本地图标组件 */
|
|
4
|
-
declare const YcIconifyIconOffline: DefineComponent<{
|
|
5
|
-
icon: {
|
|
6
|
-
type: PropType<string | Component | IconifyIconData>;
|
|
7
|
-
default: null;
|
|
8
|
-
};
|
|
9
|
-
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
10
|
-
icon: {
|
|
11
|
-
type: PropType<string | Component | IconifyIconData>;
|
|
12
|
-
default: null;
|
|
13
|
-
};
|
|
14
|
-
}>>, {
|
|
15
|
-
icon: string | Component | IconifyIconData;
|
|
16
|
-
}, {}>;
|
|
17
|
-
/** 在线图标组件 */
|
|
18
|
-
declare const YcIconifyIconOnline: DefineComponent<{
|
|
19
|
-
icon: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
24
|
-
icon: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
}>>, {
|
|
29
|
-
icon: string;
|
|
30
|
-
}, {}>;
|
|
31
|
-
/** iconfont 组件 */
|
|
32
|
-
declare const YcFontIcon: DefineComponent<{
|
|
33
|
-
icon: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
38
|
-
icon: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
}>>, {
|
|
43
|
-
icon: string;
|
|
44
|
-
}, {}>;
|
|
45
|
-
export { YcIconifyIconOffline, YcIconifyIconOnline, YcFontIcon };
|
|
46
|
-
export { useRenderIcon } from './src/hooks';
|
|
47
|
-
export type { YcIconType } from './src/types';
|
|
48
|
-
export type { IconifyIconData } from './src/iconifyIconOffline';
|
|
49
|
-
export { YcIconifyIconOffline as IconifyIconOffline, YcIconifyIconOnline as IconifyIconOnline, YcFontIcon as FontIcon };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import IconifyIconOffline from './src/iconifyIconOffline.mjs';
|
|
2
|
-
import IconifyIconOnline from './src/iconifyIconOnline.mjs';
|
|
3
|
-
import FontIcon from './src/iconfont.mjs';
|
|
4
|
-
export { useRenderIcon } from './src/hooks.mjs';
|
|
5
|
-
|
|
6
|
-
const YcIconifyIconOffline = IconifyIconOffline;
|
|
7
|
-
const YcIconifyIconOnline = IconifyIconOnline;
|
|
8
|
-
const YcFontIcon = FontIcon;
|
|
9
|
-
|
|
10
|
-
export { YcFontIcon as FontIcon, YcIconifyIconOffline as IconifyIconOffline, YcIconifyIconOnline as IconifyIconOnline, YcFontIcon, YcIconifyIconOffline, YcIconifyIconOnline };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
2
|
-
import { YcIconType } from './types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 渲染图标的 Hook
|
|
6
|
-
* 支持 iconfont、自定义 SVG、Iconify 以及 URL 中所有的图标
|
|
7
|
-
* @param icon 必传 图标
|
|
8
|
-
* @param attrs 可选 YcIconType 属性
|
|
9
|
-
* @returns Component
|
|
10
|
-
*/
|
|
11
|
-
export declare function useRenderIcon(icon: string | Component | Record<string, unknown>, attrs?: YcIconType): Component | undefined;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h } from 'vue';
|
|
2
|
-
import FontIcon from './iconfont.mjs';
|
|
3
|
-
import IconifyIconOnline from './iconifyIconOnline.mjs';
|
|
4
|
-
import IconifyIconOffline from './iconifyIconOffline.mjs';
|
|
5
|
-
import { isString } from 'lodash-es';
|
|
6
|
-
|
|
7
|
-
function isUrlIcon(icon) {
|
|
8
|
-
return /^https?:\/\//i.test(icon);
|
|
9
|
-
}
|
|
10
|
-
const UrlIconComponent = defineComponent({
|
|
11
|
-
name: "YcUrlIcon",
|
|
12
|
-
props: {
|
|
13
|
-
src: { type: String, required: true },
|
|
14
|
-
size: { type: Number, default: 20 }
|
|
15
|
-
},
|
|
16
|
-
render() {
|
|
17
|
-
return h("img", {
|
|
18
|
-
src: this.src,
|
|
19
|
-
class: "yc-url-icon",
|
|
20
|
-
style: {
|
|
21
|
-
width: `${this.size}px`,
|
|
22
|
-
height: `${this.size}px`,
|
|
23
|
-
objectFit: "contain"
|
|
24
|
-
},
|
|
25
|
-
alt: "icon"
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
function useRenderIcon(icon, attrs) {
|
|
30
|
-
const ifReg = /^IF-/;
|
|
31
|
-
if (isString(icon) && isUrlIcon(icon)) {
|
|
32
|
-
const attrSize = (attrs == null ? void 0 : attrs.width) || (attrs == null ? void 0 : attrs.height);
|
|
33
|
-
const size = typeof attrSize === "number" ? attrSize : 20;
|
|
34
|
-
return h(UrlIconComponent, { src: icon, size });
|
|
35
|
-
}
|
|
36
|
-
if (isString(icon) && ifReg.test(icon)) {
|
|
37
|
-
const name = icon.split(ifReg)[1];
|
|
38
|
-
const iconName = name.slice(
|
|
39
|
-
0,
|
|
40
|
-
name.indexOf(" ") == -1 ? name.length : name.indexOf(" ")
|
|
41
|
-
);
|
|
42
|
-
const iconType = name.slice(name.indexOf(" ") + 1, name.length);
|
|
43
|
-
return defineComponent({
|
|
44
|
-
name: "YcFontIconWrapper",
|
|
45
|
-
render() {
|
|
46
|
-
return h(FontIcon, {
|
|
47
|
-
icon: iconName,
|
|
48
|
-
iconType,
|
|
49
|
-
...attrs
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
} else if (typeof icon === "function" || typeof (icon == null ? void 0 : icon.render) === "function") {
|
|
54
|
-
return attrs ? h(icon, { ...attrs }) : icon;
|
|
55
|
-
} else if (typeof icon === "object") {
|
|
56
|
-
return defineComponent({
|
|
57
|
-
name: "YcOfflineIconWrapper",
|
|
58
|
-
render() {
|
|
59
|
-
return h(IconifyIconOffline, {
|
|
60
|
-
icon,
|
|
61
|
-
...attrs
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
} else {
|
|
66
|
-
return defineComponent({
|
|
67
|
-
name: "YcIconWrapper",
|
|
68
|
-
render() {
|
|
69
|
-
if (!icon) return;
|
|
70
|
-
const IconComponent = icon.includes(":") ? IconifyIconOnline : IconifyIconOffline;
|
|
71
|
-
return h(IconComponent, {
|
|
72
|
-
icon,
|
|
73
|
-
...attrs
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export { useRenderIcon };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* iconfont 组件
|
|
4
|
-
* 封装 iconfont,默认 font-class 引用模式
|
|
5
|
-
* 支持 unicode 引用、font-class 引用、symbol 引用
|
|
6
|
-
* @see https://www.iconfont.cn/help/detail?helptype=code
|
|
7
|
-
*/
|
|
8
|
-
declare const _default: DefineComponent<{
|
|
9
|
-
icon: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
14
|
-
icon: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
}>>, {
|
|
19
|
-
icon: string;
|
|
20
|
-
}, {}>;
|
|
21
|
-
export default _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h } from 'vue';
|
|
2
|
-
|
|
3
|
-
var FontIcon = defineComponent({
|
|
4
|
-
name: "YcFontIcon",
|
|
5
|
-
props: {
|
|
6
|
-
icon: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: ""
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
render() {
|
|
12
|
-
const attrs = this.$attrs;
|
|
13
|
-
if (Object.keys(attrs).includes("uni") || (attrs == null ? void 0 : attrs.iconType) === "uni") {
|
|
14
|
-
return h(
|
|
15
|
-
"i",
|
|
16
|
-
{
|
|
17
|
-
class: "iconfont",
|
|
18
|
-
...attrs
|
|
19
|
-
},
|
|
20
|
-
this.icon
|
|
21
|
-
);
|
|
22
|
-
} else if (Object.keys(attrs).includes("svg") || (attrs == null ? void 0 : attrs.iconType) === "svg") {
|
|
23
|
-
return h(
|
|
24
|
-
"svg",
|
|
25
|
-
{
|
|
26
|
-
class: "icon-svg"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
default: () => [
|
|
30
|
-
h("use", {
|
|
31
|
-
"xlink:href": `#${this.icon}`
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
} else {
|
|
37
|
-
return h("i", {
|
|
38
|
-
class: `iconfont ${this.icon}`,
|
|
39
|
-
...attrs
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export { FontIcon as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { PropType, Component, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Iconify 图标数据接口
|
|
5
|
-
*/
|
|
6
|
-
export interface IconifyIconData {
|
|
7
|
-
body: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
left?: number;
|
|
11
|
-
top?: number;
|
|
12
|
-
rotate?: number;
|
|
13
|
-
hFlip?: boolean;
|
|
14
|
-
vFlip?: boolean;
|
|
15
|
-
}
|
|
16
|
-
type IconType = string | IconifyIconData | Component;
|
|
17
|
-
/**
|
|
18
|
-
* Iconify 离线图标组件
|
|
19
|
-
* 用于内网环境,从本地加载图标
|
|
20
|
-
*/
|
|
21
|
-
declare const _default: DefineComponent<{
|
|
22
|
-
icon: {
|
|
23
|
-
type: PropType<IconType>;
|
|
24
|
-
default: null;
|
|
25
|
-
};
|
|
26
|
-
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
27
|
-
icon: {
|
|
28
|
-
type: PropType<IconType>;
|
|
29
|
-
default: null;
|
|
30
|
-
};
|
|
31
|
-
}>>, {
|
|
32
|
-
icon: IconType;
|
|
33
|
-
}, {}>;
|
|
34
|
-
export default _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h } from 'vue';
|
|
2
|
-
import { Icon, addIcon } from '@iconify/vue';
|
|
3
|
-
|
|
4
|
-
function isIconifyIconData(icon) {
|
|
5
|
-
return typeof icon === "object" && icon !== null && "body" in icon && typeof icon.body === "string";
|
|
6
|
-
}
|
|
7
|
-
var IconifyIconOffline = defineComponent({
|
|
8
|
-
name: "YcIconifyIconOffline",
|
|
9
|
-
components: { IconifyIcon: Icon },
|
|
10
|
-
props: {
|
|
11
|
-
icon: {
|
|
12
|
-
type: [String, Object, Function],
|
|
13
|
-
default: null
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
render() {
|
|
17
|
-
if (isIconifyIconData(this.icon)) {
|
|
18
|
-
const iconName = this.icon.name || "custom-icon";
|
|
19
|
-
addIcon(iconName, this.icon);
|
|
20
|
-
}
|
|
21
|
-
const attrs = this.$attrs;
|
|
22
|
-
if (typeof this.icon === "string") {
|
|
23
|
-
return h(
|
|
24
|
-
Icon,
|
|
25
|
-
{
|
|
26
|
-
icon: this.icon,
|
|
27
|
-
"aria-hidden": false,
|
|
28
|
-
style: (attrs == null ? void 0 : attrs.style) ? Object.assign(attrs.style, { outline: "none" }) : { outline: "none" },
|
|
29
|
-
...attrs
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
default: () => []
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
} else {
|
|
36
|
-
return h(
|
|
37
|
-
this.icon,
|
|
38
|
-
{
|
|
39
|
-
"aria-hidden": false,
|
|
40
|
-
style: (attrs == null ? void 0 : attrs.style) ? Object.assign(attrs.style, { outline: "none" }) : { outline: "none" },
|
|
41
|
-
...attrs
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
default: () => []
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export { IconifyIconOffline as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Iconify 在线图标组件
|
|
4
|
-
* 用于外网环境,从 CDN 加载图标
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: DefineComponent<{
|
|
7
|
-
icon: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
12
|
-
icon: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
}>>, {
|
|
17
|
-
icon: string;
|
|
18
|
-
}, {}>;
|
|
19
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h } from 'vue';
|
|
2
|
-
import { Icon } from '@iconify/vue';
|
|
3
|
-
|
|
4
|
-
var IconifyIconOnline = defineComponent({
|
|
5
|
-
name: "YcIconifyIconOnline",
|
|
6
|
-
components: { IconifyIcon: Icon },
|
|
7
|
-
props: {
|
|
8
|
-
icon: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: ""
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
render() {
|
|
14
|
-
const attrs = this.$attrs;
|
|
15
|
-
return h(
|
|
16
|
-
Icon,
|
|
17
|
-
{
|
|
18
|
-
icon: `${this.icon}`,
|
|
19
|
-
"aria-hidden": false,
|
|
20
|
-
style: (attrs == null ? void 0 : attrs.style) ? Object.assign(attrs.style, { outline: "none" }) : { outline: "none" },
|
|
21
|
-
...attrs
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
default: () => []
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export { IconifyIconOnline as default };
|