@aplus-frontend/ui 0.5.18 → 0.5.20
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/index.mjs +231 -227
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.d.ts +3 -1
- package/es/src/ap-field/index.mjs +39 -35
- package/es/src/ap-field/interface.d.ts +33 -1
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/es/src/ap-field/tree-select/index.vue.mjs +251 -0
- package/es/src/ap-field/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/css.js +1 -0
- package/es/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/index.js +1 -0
- package/es/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/es/src/ap-field/tree-select/use-request.mjs +66 -0
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- package/es/src/ap-form/item-tree-select/style/css.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/css.js +1 -0
- package/es/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/index.js +1 -0
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/index.d.ts +2 -1
- package/es/src/ap-form/items/index.mjs +3 -2
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/es/src/ap-form/items/select/index.vue.mjs +25 -22
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +107 -0
- package/es/src/ap-form/items/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +32 -31
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +11 -10
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +102 -99
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +4 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +4055 -1945
- package/es/src/ap-table/constants.mjs +53 -49
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
- package/es/src/ap-table/interface.d.ts +13 -1
- package/es/src/ap-table/utils.d.ts +1462 -6
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +50 -50
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +40 -37
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +118 -122
- package/es/src/business/ap-ladder/index.d.ts +1 -3
- package/es/src/business/ap-ladder/interface.d.ts +16 -16
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/index.mjs +230 -226
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/path-map.mjs +2 -0
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +46 -41
- package/es/src/text/interface.d.ts +6 -0
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +33 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/lib/src/ap-field/tree-select/index.vue.js +1 -0
- package/lib/src/ap-field/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-field/tree-select/style/css.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-field/tree-select/style/index.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/lib/src/ap-field/tree-select/use-request.js +1 -0
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/item-tree-select/style/css.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-form/items/index.d.ts +2 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -0
- package/lib/src/ap-form/items/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +4055 -1945
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -1
- package/lib/src/ap-table/utils.d.ts +1462 -6
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -3
- package/lib/src/business/ap-ladder/interface.d.ts +16 -16
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +41 -1
- package/theme/ap-ladder/ap-ladder.less +41 -2
- package/theme/index.css +41 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");require("./components/SingleFile.vue.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");const E=require("./utils/accept.js"),j=require("./hooks/useOss.js"),z=require("@aplus-frontend/antdv"),h=require("../config-provider/hooks/use-locale.js"),A=require("../config-provider/hooks/use-namespace.js"),R=require("./components/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");require("./components/SingleFile.vue.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");const E=require("./utils/accept.js"),j=require("./hooks/useOss.js"),z=require("@aplus-frontend/antdv"),h=require("../config-provider/hooks/use-locale.js"),A=require("../config-provider/hooks/use-namespace.js"),R=require("./components/Picture.vue2.js"),U=require("./components/MultipleFile.vue2.js"),k=require("./components/SingleFile.vue2.js"),g=require("../config-provider/hooks/use-global-config.js"),T=e.defineComponent({name:"AplusFileUpload",__name:"apUpload",props:{dirName:{type:String,default:void 0},type:{type:String,default:"singleFile"},value:{type:[String,Object,Array],default:void 0},needName:{type:[Boolean,Object],default:void 0},accept:{type:String,default:void 0},maxSize:{type:Number,default:void 0},title:{type:String,default:""},subTitle:{type:[String,Object],default:""},maxCount:{type:Number,default:void 0},beforeUpload:{type:Function,default:void 0},customRequest:{type:Function,default:void 0},getOssAccess:{type:Function,default:void 0},onChange:{type:Function,default:void 0},maxSizeErrorMsg:{type:String,default:void 0},maxCountErrorMsg:{type:String,default:void 0},acceptErrorMsg:{type:String,default:void 0},onRemove:{type:Function,default:void 0}},emits:["update:value"],setup(f,{expose:_,emit:y}){var p,d,v,m;const{t:s,lang:C}=h.useLocale();E.injectLocaleToAccept(s),j.injectLocaleToOss(s,C);const{b:S}=A.useNamespace("ap-upload"),a=e.ref(null),t=f,b=y,q={singleFile:k.default,multipleFile:U.default,picture:R.default},n=z.Form.useInjectFormItemContext(),M=e.computed({get(){return t.value},set(o){var r;b("update:value",o),n==null||n.onFieldChange(),(r=t.onChange)==null||r.call(t,o)}}),F=g.useGlobalConfig("uiMode"),i=g.useGlobalConfig("apUpload");e.provide("theme",F.value),e.provide("value",M),e.provide("dirName",t.dirName??((p=i.value)==null?void 0:p.dirName)),e.provide("needName",t.needName??((d=i.value)==null?void 0:d.needName)??!1),e.provide("accept",t.accept??((v=i.value)==null?void 0:v.accept)??""),e.provide("maxSize",t.maxSize),e.provide("title",t.title),e.provide("subTitle",t.subTitle),e.provide("maxCount",t.maxCount),e.provide("beforeUpload",t.beforeUpload),e.provide("customRequest",t.customRequest),e.provide("getOssAccess",t.getOssAccess??((m=i.value)==null?void 0:m.getOssAccess)),e.provide("maxSizeErrorMsg",t.maxSizeErrorMsg),e.provide("maxCountErrorMsg",t.maxCountErrorMsg),e.provide("acceptErrorMsg",t.acceptErrorMsg),e.provide("onRemove",t.onRemove);const x=e.computed(()=>l.value===0),l=e.ref(0);e.provide("uploadingCount",l);function N(){c(void 0)}function c(o){var r,u;(u=(r=a==null?void 0:a.value)==null?void 0:r.setValue)==null||u.call(r,o)}return _({done:x,clear:N,setValue:c}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)())},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q[t.type]),e.mergeProps(o.$attrs,{ref_key:"uploadRef",ref:a}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),u=>({name:u,fn:e.withCtx(O=>[e.renderSlot(o.$slots,u,e.normalizeProps(e.guardReactiveProps(O||{})))])}))]),1040))],2))}});exports.default=T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface,
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Oss } from '../hooks/useOss';
|
|
2
|
+
import { actionResponse } from '@aplus-frontend/oss';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
declare function setValue(val?: (string | Record<string, any>)[]): void;
|
|
4
5
|
interface UploadFile extends File {
|
|
@@ -17,13 +18,7 @@ declare function __VLS_template(): {
|
|
|
17
18
|
pictureContext?(_: {
|
|
18
19
|
fileList: {
|
|
19
20
|
oss: {
|
|
20
|
-
pauseUpload: (() => Promise<
|
|
21
|
-
status: number;
|
|
22
|
-
previewUrl?: string;
|
|
23
|
-
saveUrl?: string;
|
|
24
|
-
originalFileName?: string;
|
|
25
|
-
message: string;
|
|
26
|
-
}>) | undefined;
|
|
21
|
+
pauseUpload: (() => Promise< actionResponse>) | undefined;
|
|
27
22
|
};
|
|
28
23
|
}[];
|
|
29
24
|
remove: typeof handleRemove;
|
|
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
|
|
|
3
3
|
import { ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
-
import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
6
|
import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
7
|
+
import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
|
|
8
8
|
import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
9
9
|
import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
|
|
10
10
|
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from '@aplus-frontend/antdv/es/menu/src/interface';
|
|
@@ -63,7 +63,7 @@ declare const ApBatchActionGroup: {
|
|
|
63
63
|
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
64
64
|
};
|
|
65
65
|
}>>, "type" | "onClick"> & {
|
|
66
|
-
type?:
|
|
66
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
67
67
|
borderLinkColor?: string;
|
|
68
68
|
minWidth?: boolean | number | string;
|
|
69
69
|
lazy?: boolean | number;
|
|
@@ -364,7 +364,7 @@ declare const ApBatchActionGroup: {
|
|
|
364
364
|
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
365
365
|
};
|
|
366
366
|
}>>, "type" | "onClick"> & {
|
|
367
|
-
type?:
|
|
367
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
368
368
|
borderLinkColor?: string;
|
|
369
369
|
minWidth?: boolean | number | string;
|
|
370
370
|
lazy?: boolean | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
@@ -23,9 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
23
23
|
}): any;
|
|
24
24
|
};
|
|
25
25
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
26
|
-
}>) => VNode
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}> & {
|
|
26
|
+
}>) => VNode & {
|
|
29
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
28
|
};
|
|
31
29
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef,
|
|
1
|
+
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
@@ -20,7 +20,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
20
20
|
props: {
|
|
21
21
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
23
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
|
|
24
24
|
data?: string | T[] | undefined;
|
|
25
25
|
prefix?: string | undefined;
|
|
26
26
|
tipTitle?: string | undefined;
|
|
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
29
29
|
separatorStyle?: CSSProperties | undefined;
|
|
30
30
|
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
31
31
|
prefixStyle?: CSSProperties | undefined;
|
|
32
|
-
rows?:
|
|
32
|
+
rows?: string | number | undefined;
|
|
33
33
|
defaultExpand?: boolean | undefined;
|
|
34
34
|
showIcon?: boolean | undefined;
|
|
35
35
|
} & PublicProps;
|
|
@@ -51,9 +51,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
51
51
|
}): any;
|
|
52
52
|
};
|
|
53
53
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
54
|
-
}>) => VNode
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}> & {
|
|
54
|
+
}>) => VNode & {
|
|
57
55
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
56
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
59
57
|
$props: {
|
|
@@ -9,9 +9,7 @@ import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigge
|
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
10
|
attrs: Partial<{}>;
|
|
11
11
|
slots: Readonly<ApLadderSlots> & ApLadderSlots;
|
|
12
|
-
refs: {
|
|
13
|
-
wrapperRef: HTMLDivElement;
|
|
14
|
-
};
|
|
12
|
+
refs: {};
|
|
15
13
|
rootEl: HTMLDivElement;
|
|
16
14
|
};
|
|
17
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -97,9 +95,7 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
|
|
|
97
95
|
labelValues: Array<ApLadderLabelValue>;
|
|
98
96
|
majorColor: string;
|
|
99
97
|
minorColor: string;
|
|
100
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
101
|
-
wrapperRef: HTMLDivElement;
|
|
102
|
-
}, HTMLDivElement>;
|
|
98
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
103
99
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
104
100
|
export default _default;
|
|
105
101
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("lodash-unified");require("../../config-provider/index.js");require("./components/SimpleMode.vue.js");require("./components/ValueGroupMode.vue.js");const i=require("./utils.js"),S=require("../../config-provider/hooks/use-namespace.js"),b=require("../../config-provider/hooks/use-global-config.js"),k=require("./components/SimpleMode.vue2.js"),_=require("./components/ValueGroupMode.vue2.js"),g=e.defineComponent({name:"ApLadder",__name:"ApLadder",props:{major:{},minor:{},majorColor:{default:""},majorStyles:{},minorColor:{default:""},minorStyles:{},layout:{default:"vertical"},tooltip:{type:Boolean,default:!0},labelValues:{default:()=>[]},labelAlign:{default:"left"},labelStyles:{},valueStyles:{},linkStyles:{},unitStyles:{},tooltipProps:{default:()=>({})},tooltipLabelStyles:{},tooltipValueStyles:{}},setup(n){const o=e.useSlots(),l=n,{b:a,m:u}=S.useNamespace("ap-ladder"),p=b.useGlobalConfig("uiMode","aplus"),c=e.computed(()=>l.labelValues===void 0||l.labelValues.length===0),m=e.computed(()=>l.labelValues.length>0),y=e.computed(()=>l.labelAlign),d=t=>i.isNull(t)?"":typeof t=="number"?t.toString():typeof t=="string"?t:"",s=v.memoize(d,i.createMemoizeKey),r=e.computed(()=>!!o.title||l.tooltip),f=t=>{t.link&&window.open(t.link,"_blank"),typeof t.handleClickLink=="function"&&t.handleClickLink()};return(t,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(a)(),`${e.unref(u)(e.unref(p))}`])},[c.value?(e.openBlock(),e.createBlock(k.default,{key:0,major:l.major,minor:l.minor,"major-styles":l.majorStyles||{},"major-color":l.majorColor||{},"minor-styles":l.minorStyles||{},"minor-color":l.minorColor||{},"tooltip-props":l.tooltipProps||{},layout:l.layout,tooltip:r.value,"convert-value":e.unref(s)},e.createSlots({_:2},[o.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"title")]),key:"0"}:void 0]),1032,["major","minor","major-styles","major-color","minor-styles","minor-color","tooltip-props","layout","tooltip","convert-value"])):m.value?(e.openBlock(),e.createBlock(_.default,{key:1,"label-values":l.labelValues||{},"label-align":y.value,"label-styles":l.labelStyles||{},"value-styles":l.valueStyles||{},"link-styles":l.linkStyles||{},"unit-styles":l.unitStyles||{},"tooltip-label-styles":l.tooltipLabelStyles||{},"tooltip-value-styles":l.tooltipValueStyles||{},"tooltip-props":l.tooltipProps||{},tooltip:r.value,"convert-value":e.unref(s),onHandleClick:f},e.createSlots({_:2},[o.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"title")]),key:"0"}:void 0]),1032,["label-values","label-align","label-styles","value-styles","link-styles","unit-styles","tooltip-label-styles","tooltip-value-styles","tooltip-props","tooltip","convert-value"])):e.createCommentVNode("",!0)],2))}});exports.default=g;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
@@ -18,19 +18,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
18
18
|
default: null;
|
|
19
19
|
};
|
|
20
20
|
majorStyles: {
|
|
21
|
-
type: PropType<
|
|
21
|
+
type: PropType<CSSProperties>;
|
|
22
22
|
default: () => {};
|
|
23
23
|
};
|
|
24
24
|
majorColorStyles: {
|
|
25
|
-
type: PropType<
|
|
25
|
+
type: PropType<CSSProperties>;
|
|
26
26
|
default: () => {};
|
|
27
27
|
};
|
|
28
28
|
minorStyles: {
|
|
29
|
-
type: PropType<
|
|
29
|
+
type: PropType<CSSProperties>;
|
|
30
30
|
default: () => {};
|
|
31
31
|
};
|
|
32
32
|
minorColorStyles: {
|
|
33
|
-
type: PropType<
|
|
33
|
+
type: PropType<CSSProperties>;
|
|
34
34
|
default: () => {};
|
|
35
35
|
};
|
|
36
36
|
tooltipProps: {
|
|
@@ -59,19 +59,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
59
59
|
default: null;
|
|
60
60
|
};
|
|
61
61
|
majorStyles: {
|
|
62
|
-
type: PropType<
|
|
62
|
+
type: PropType<CSSProperties>;
|
|
63
63
|
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
majorColorStyles: {
|
|
66
|
-
type: PropType<
|
|
66
|
+
type: PropType<CSSProperties>;
|
|
67
67
|
default: () => {};
|
|
68
68
|
};
|
|
69
69
|
minorStyles: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
73
|
minorColorStyles: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<CSSProperties>;
|
|
75
75
|
default: () => {};
|
|
76
76
|
};
|
|
77
77
|
tooltipProps: {
|
|
@@ -96,10 +96,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
96
96
|
major: string | number | Function | Record<string, any>;
|
|
97
97
|
minor: string | number | Function | Record<string, any>;
|
|
98
98
|
tooltipProps: Record<string, any>;
|
|
99
|
-
majorStyles:
|
|
100
|
-
majorColorStyles:
|
|
101
|
-
minorStyles:
|
|
102
|
-
minorColorStyles:
|
|
99
|
+
majorStyles: CSSProperties;
|
|
100
|
+
majorColorStyles: CSSProperties;
|
|
101
|
+
minorStyles: CSSProperties;
|
|
102
|
+
minorColorStyles: CSSProperties;
|
|
103
103
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
104
104
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
105
105
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const a=require("../utils.js"),s=require("../../../config-provider/hooks/use-namespace.js"),m=e.defineComponent({name:"ApLadderSimpleMode",__name:"SimpleMode",props:{major:{type:[String,Number,Function,Object],default:null},minor:{type:[String,Number,Function,Object],default:null},majorStyles:{type:Object,default:()=>({})},majorColorStyles:{type:Object,default:()=>({})},minorStyles:{type:Object,default:()=>({})},minorColorStyles:{type:Object,default:()=>({})},tooltipProps:{type:Object,default:()=>({})},layout:{type:String,default:"vertical"},tooltip:{type:Boolean,default:!1},convertValue:{type:Function,required:!0}},setup(t){const{b:o,e:l,m:n}=s.useNamespace("ap-ladder");return(r,c)=>(e.openBlock(),e.createBlock(e.unref(i.Tooltip),e.normalizeProps(e.guardReactiveProps(t.tooltipProps)),e.createSlots({default:e.withCtx(()=>[!e.unref(a.isNull)(t.major)||!e.unref(a.isNull)(t.minor)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.layout==="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o)("base"),e.unref(n)("vertical")])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("major")]),style:e.normalizeStyle([t.majorStyles,t.majorColorStyles])},e.toDisplayString(t.convertValue(t.major)),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("minor")]),style:e.normalizeStyle([t.minorStyles,t.minorColorStyles])},e.toDisplayString(t.convertValue(t.minor)),7)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o)("base"),e.unref(n)("horizontal")])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("major")]),style:e.normalizeStyle([t.majorStyles,t.majorColorStyles])},e.toDisplayString(t.convertValue(t.major)),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("minor")]),style:e.normalizeStyle([t.minorStyles,t.minorColorStyles])},e.toDisplayString(t.convertValue(t.minor)),7)],2))],64)):e.createCommentVNode("",!0)]),_:2},[r.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"title")]),key:"0"}:t.tooltip?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("tooltip"))},[e.unref(a.isNull)(t.major)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l)("tooltip-item"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("tooltip-label"))},e.toDisplayString(t.convertValue(t.major)),3)],2)),e.unref(a.isNull)(t.minor)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(l)("tooltip-item"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("tooltip-label"))},e.toDisplayString(t.convertValue(t.minor)),3)],2))],2)]),key:"1"}:void 0]),1040))}});exports.default=m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { ApLadderLabelValue } from '../interface';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
@@ -19,27 +19,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
labelStyles: {
|
|
22
|
-
type: PropType<
|
|
22
|
+
type: PropType<CSSProperties>;
|
|
23
23
|
default: () => {};
|
|
24
24
|
};
|
|
25
25
|
valueStyles: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<CSSProperties>;
|
|
27
27
|
default: () => {};
|
|
28
28
|
};
|
|
29
29
|
linkStyles: {
|
|
30
|
-
type: PropType<
|
|
30
|
+
type: PropType<CSSProperties>;
|
|
31
31
|
default: () => {};
|
|
32
32
|
};
|
|
33
33
|
unitStyles: {
|
|
34
|
-
type: PropType<
|
|
34
|
+
type: PropType<CSSProperties>;
|
|
35
35
|
default: () => {};
|
|
36
36
|
};
|
|
37
37
|
tooltipLabelStyles: {
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<CSSProperties>;
|
|
39
39
|
default: () => {};
|
|
40
40
|
};
|
|
41
41
|
tooltipValueStyles: {
|
|
42
|
-
type: PropType<
|
|
42
|
+
type: PropType<CSSProperties>;
|
|
43
43
|
default: () => {};
|
|
44
44
|
};
|
|
45
45
|
tooltipProps: {
|
|
@@ -63,27 +63,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
65
|
labelStyles: {
|
|
66
|
-
type: PropType<
|
|
66
|
+
type: PropType<CSSProperties>;
|
|
67
67
|
default: () => {};
|
|
68
68
|
};
|
|
69
69
|
valueStyles: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
73
|
linkStyles: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<CSSProperties>;
|
|
75
75
|
default: () => {};
|
|
76
76
|
};
|
|
77
77
|
unitStyles: {
|
|
78
|
-
type: PropType<
|
|
78
|
+
type: PropType<CSSProperties>;
|
|
79
79
|
default: () => {};
|
|
80
80
|
};
|
|
81
81
|
tooltipLabelStyles: {
|
|
82
|
-
type: PropType<
|
|
82
|
+
type: PropType<CSSProperties>;
|
|
83
83
|
default: () => {};
|
|
84
84
|
};
|
|
85
85
|
tooltipValueStyles: {
|
|
86
|
-
type: PropType<
|
|
86
|
+
type: PropType<CSSProperties>;
|
|
87
87
|
default: () => {};
|
|
88
88
|
};
|
|
89
89
|
tooltipProps: {
|
|
@@ -102,12 +102,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
102
102
|
labelAlign: string;
|
|
103
103
|
tooltipProps: Record<string, any>;
|
|
104
104
|
labelValues: ApLadderLabelValue[];
|
|
105
|
-
labelStyles:
|
|
106
|
-
valueStyles:
|
|
107
|
-
linkStyles:
|
|
108
|
-
unitStyles:
|
|
109
|
-
tooltipLabelStyles:
|
|
110
|
-
tooltipValueStyles:
|
|
105
|
+
labelStyles: CSSProperties;
|
|
106
|
+
valueStyles: CSSProperties;
|
|
107
|
+
linkStyles: CSSProperties;
|
|
108
|
+
unitStyles: CSSProperties;
|
|
109
|
+
tooltipLabelStyles: CSSProperties;
|
|
110
|
+
tooltipValueStyles: CSSProperties;
|
|
111
111
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
112
112
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
113
113
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const p=require("../interface.js"),k=require("../../../config-provider/hooks/use-namespace.js"),f={key:0},S=["href","onClick"],v={key:0},C={key:0},g=e.defineComponent({name:"ApLadderValueGroupMode",__name:"ValueGroupMode",props:{labelValues:{type:Array,default:()=>[]},labelAlign:{type:String,default:""},labelStyles:{type:Object,default:()=>({})},valueStyles:{type:Object,default:()=>({})},linkStyles:{type:Object,default:()=>({})},unitStyles:{type:Object,default:()=>({})},tooltipLabelStyles:{type:Object,default:()=>({})},tooltipValueStyles:{type:Object,default:()=>({})},tooltipProps:{type:Object,default:()=>({})},tooltip:{type:Boolean,default:!1}},emits:["update:valueRefs","handleClick"],setup(l,{emit:u}){const y=u,{e:r}=k.useNamespace("ap-ladder"),a=o=>e.isVNode(o)||typeof o=="function",s=o=>{const{value:n,style:t}=o;return e.isVNode(n)?e.h(n,{style:t}):typeof n=="function"?e.h(n(),{ref:e.ref,style:{...t}}):null},i=(o,n={rawValue:!0,precision:2,thousand:!0,thousandSeparator:",",currency:"CNY",percent:!1})=>{if(Object.prototype.toString.call(o)==="[object Null]"||Object.prototype.toString.call(o)==="[object Undefined]"||Object.prototype.toString.call(o)==="[object Object]"||Object.prototype.toString.call(o)==="[object Function]")return"--";if(typeof o=="number"){if(n.percent)return`${o.toFixed(n.precision)}%`;if(n.currency)return o.toLocaleString(p.locales[n.currency?n.currency:"CNY"],{style:"currency",currency:n.currency?n.currency:"CNY"});if(n.thousand){const[t,c]=o.toFixed(n.precision?n.precision:2).split(".");return`${t.replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${n.thousandSeparator?n.thousandSeparator:","}`)}.${c}`}return o.toFixed(n.precision?n.precision:2)}return o},d=o=>{y("handleClick",o)};return(o,n)=>(e.openBlock(),e.createBlock(e.unref(m.Tooltip),e.normalizeProps(e.guardReactiveProps(l.tooltipProps)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("value-group"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(t,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(e.unref(r)("value-group-item"))},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(r)("value-group-label"),l.labelAlign&&`label-align-${l.labelAlign}`]),style:e.normalizeStyle(t.labelStyles)},[e.createTextVNode(e.toDisplayString(t.label),1),t.label?(e.openBlock(),e.createElementBlock("span",f,":")):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("value-group-value"))},[a(t.value)?(e.openBlock(),e.createBlock(s,{key:0,value:t.value,style:e.normalizeStyle([t.labelColor,t.valueStyles])},null,8,["value","style"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.link?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.link,target:"_blank",class:e.normalizeClass(e.unref(r)("value-group-link")),style:e.normalizeStyle([l.linkStyles,t.linkStyles,t.linkColor?{color:t.linkColor}:void 0]),onClick:e.withModifiers(B=>d(t),["prevent"])},e.toDisplayString(i(t.value,{...t})),15,S)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",{style:e.normalizeStyle([l.valueStyles,t.valueStyles,t.valueColor?{color:t.valueColor}:void 0])},e.toDisplayString(i(t.value,{...t})),5),t.unit?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("value-group-unit")),style:e.normalizeStyle([l.unitStyles,t.unitStyles,t.unitColor?{color:t.unitColor}:void 0])},e.toDisplayString(t.unit),7)):e.createCommentVNode("",!0)],64))],64))],2)],2))),128))],2)]),_:2},[o.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"title")]),key:"0"}:l.tooltip?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("tooltip"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(t,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(e.unref(r)("tooltip-item"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r)("tooltip-label")),style:e.normalizeStyle(l.tooltipLabelStyles)},e.toDisplayString(t.label?t.label:"--")+": ",7),a(t.value)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("tooltip-value")),style:e.normalizeStyle(l.tooltipValueStyles)},[e.createVNode(s,{value:t.value,style:e.normalizeStyle([t.tooltipValueStyles])},null,8,["value","style"]),t.unit?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(t.unit),1)):e.createCommentVNode("",!0)],6)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r)("tooltip-value")),style:e.normalizeStyle(l.tooltipValueStyles)},[e.createTextVNode(e.toDisplayString(i(t.value,{...t}))+" ",1),t.unit?(e.openBlock(),e.createElementBlock("span",C,e.toDisplayString(t.unit),1)):e.createCommentVNode("",!0)],6))],2))),128))],2)]),key:"1"}:void 0]),1040))}});exports.default=g;
|
|
@@ -90,9 +90,7 @@ declare const ApLadder: {
|
|
|
90
90
|
labelValues: Array< ApLadderLabelValue>;
|
|
91
91
|
majorColor: string;
|
|
92
92
|
minorColor: string;
|
|
93
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
94
|
-
wrapperRef: HTMLDivElement;
|
|
95
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
93
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
96
94
|
P: {};
|
|
97
95
|
B: {};
|
|
98
96
|
D: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
|
|
2
|
-
import {
|
|
2
|
+
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip 需要的属性
|
|
5
5
|
*/
|
|
@@ -79,37 +79,37 @@ export interface ApLadderLabelValue {
|
|
|
79
79
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
80
80
|
* @since v0.4.7 新增
|
|
81
81
|
*/
|
|
82
|
-
labelStyles?:
|
|
82
|
+
labelStyles?: CSSProperties;
|
|
83
83
|
/**
|
|
84
84
|
* 健值对 - value样式
|
|
85
85
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
86
86
|
* @since v0.4.7 新增
|
|
87
87
|
*/
|
|
88
|
-
valueStyles?:
|
|
88
|
+
valueStyles?: CSSProperties;
|
|
89
89
|
/**
|
|
90
90
|
* 健值对 - link样式
|
|
91
91
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
92
92
|
* @since v0.4.7 新增
|
|
93
93
|
*/
|
|
94
|
-
linkStyles?:
|
|
94
|
+
linkStyles?: CSSProperties;
|
|
95
95
|
/**
|
|
96
96
|
* 健值对 - unit样式
|
|
97
97
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
98
98
|
* @since v0.4.7 新增
|
|
99
99
|
*/
|
|
100
|
-
unitStyles?:
|
|
100
|
+
unitStyles?: CSSProperties;
|
|
101
101
|
/**
|
|
102
102
|
* Tooltip - Label style
|
|
103
103
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
104
104
|
* @since v0.4.7 新增
|
|
105
105
|
*/
|
|
106
|
-
tooltipLabelStyles?:
|
|
106
|
+
tooltipLabelStyles?: CSSProperties;
|
|
107
107
|
/**
|
|
108
108
|
* Tooltip - Value style
|
|
109
109
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
110
110
|
* @since v0.4.7 新增
|
|
111
111
|
*/
|
|
112
|
-
tooltipValueStyles?:
|
|
112
|
+
tooltipValueStyles?: CSSProperties;
|
|
113
113
|
/**
|
|
114
114
|
* 帮助气泡
|
|
115
115
|
*/
|
|
@@ -123,7 +123,7 @@ export interface ApLadderLabelValue {
|
|
|
123
123
|
/**
|
|
124
124
|
* 帮助气泡 - 图标 - 样式
|
|
125
125
|
*/
|
|
126
|
-
helpMessageIconStyles?:
|
|
126
|
+
helpMessageIconStyles?: CSSProperties;
|
|
127
127
|
/**
|
|
128
128
|
* 帮助气泡 - 扩展tooltip props
|
|
129
129
|
*/
|
|
@@ -153,7 +153,7 @@ export interface ApLadderProps {
|
|
|
153
153
|
* 自定义重要信息 style
|
|
154
154
|
* @since v0.4.7 新增
|
|
155
155
|
*/
|
|
156
|
-
majorStyles?:
|
|
156
|
+
majorStyles?: CSSProperties;
|
|
157
157
|
/**
|
|
158
158
|
* 自定义次要信息颜色
|
|
159
159
|
* @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
|
|
@@ -164,7 +164,7 @@ export interface ApLadderProps {
|
|
|
164
164
|
* 自定义次要信息 style
|
|
165
165
|
* @since v0.4.7 新增
|
|
166
166
|
*/
|
|
167
|
-
minorStyles?:
|
|
167
|
+
minorStyles?: CSSProperties;
|
|
168
168
|
/**
|
|
169
169
|
* 布局方式
|
|
170
170
|
* - `vertical` 垂直布局
|
|
@@ -192,25 +192,25 @@ export interface ApLadderProps {
|
|
|
192
192
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
193
193
|
* @since v0.4.7 新增
|
|
194
194
|
*/
|
|
195
|
-
labelStyles?:
|
|
195
|
+
labelStyles?: CSSProperties;
|
|
196
196
|
/**
|
|
197
197
|
* 健值对 - value样式
|
|
198
198
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
199
199
|
* @since v0.4.7 新增
|
|
200
200
|
*/
|
|
201
|
-
valueStyles?:
|
|
201
|
+
valueStyles?: CSSProperties;
|
|
202
202
|
/**
|
|
203
203
|
* 健值对 - link样式
|
|
204
204
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
205
205
|
* @since v0.4.7 新增
|
|
206
206
|
*/
|
|
207
|
-
linkStyles?:
|
|
207
|
+
linkStyles?: CSSProperties;
|
|
208
208
|
/**
|
|
209
209
|
* 健值对 - unit样式
|
|
210
210
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
211
211
|
* @since v0.4.7 新增
|
|
212
212
|
*/
|
|
213
|
-
unitStyles?:
|
|
213
|
+
unitStyles?: CSSProperties;
|
|
214
214
|
/**
|
|
215
215
|
* 扩展 Tooltip
|
|
216
216
|
*/
|
|
@@ -220,13 +220,13 @@ export interface ApLadderProps {
|
|
|
220
220
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
221
221
|
* @since v0.4.7 新增
|
|
222
222
|
*/
|
|
223
|
-
tooltipLabelStyles?:
|
|
223
|
+
tooltipLabelStyles?: CSSProperties;
|
|
224
224
|
/**
|
|
225
225
|
* Tooltip - Value style
|
|
226
226
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
227
227
|
* @since v0.4.7 新增
|
|
228
228
|
*/
|
|
229
|
-
tooltipValueStyles?:
|
|
229
|
+
tooltipValueStyles?: CSSProperties;
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
232
|
* ApLadder Slots 类型声明
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem } from './interface';
|
|
2
|
-
import { PublicProps, ShallowUnwrapRef, VNode,
|
|
2
|
+
import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
5
5
|
attrs: any;
|
|
@@ -38,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
|
|
|
38
38
|
(event: "afterEnter", el: Element): void;
|
|
39
39
|
(event: "afterLeave", el: Element): void;
|
|
40
40
|
};
|
|
41
|
-
}>) => VNode
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}> & {
|
|
41
|
+
}>) => VNode & {
|
|
44
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
45
43
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
46
44
|
$props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onOnSelect?: ((value: T) => any) | undefined;
|
|
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
|
|
|
19
19
|
(event: "afterEnter", el: Element): void;
|
|
20
20
|
(event: "afterLeave", el: Element): void;
|
|
21
21
|
};
|
|
22
|
-
}>) => VNode
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}> & {
|
|
22
|
+
}>) => VNode & {
|
|
25
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
24
|
};
|
|
27
25
|
export default _default;
|
|
@@ -2,7 +2,11 @@ import { InjectionKey, Ref, ComputedRef } from 'vue';
|
|
|
2
2
|
export declare const defaultNamespace = "aplus";
|
|
3
3
|
export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
|
|
4
4
|
export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string | undefined>) => ComputedRef<string>;
|
|
5
|
-
export declare const useNamespace: (
|
|
5
|
+
export declare const useNamespace: (
|
|
6
|
+
/**
|
|
7
|
+
* 块 一般是指组件名
|
|
8
|
+
*/
|
|
9
|
+
block: string, namespaceOverrides?: Ref<string | undefined>) => {
|
|
6
10
|
namespace: ComputedRef<string>;
|
|
7
11
|
b: (blockSuffix?: string) => string;
|
|
8
12
|
e: (element?: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditableColumnType, EditableTableFormItemProps } from './interface';
|
|
2
2
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
import { UnwrapRefSimple } from '@vue/reactivity';
|
|
5
5
|
declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -48,9 +48,7 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
|
|
|
48
48
|
}) => void;
|
|
49
49
|
};
|
|
50
50
|
emit: {};
|
|
51
|
-
}>) => VNode
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
}> & {
|
|
51
|
+
}>) => VNode & {
|
|
54
52
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
55
53
|
};
|
|
56
54
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { EditableTableProps, EditableColumnType } from './interface';
|
|
|
2
2
|
import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
5
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
6
6
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -53,9 +53,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
53
53
|
}) => void;
|
|
54
54
|
};
|
|
55
55
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
56
|
-
}>) => VNode
|
|
57
|
-
[key: string]: any;
|
|
58
|
-
}> & {
|
|
56
|
+
}>) => VNode & {
|
|
59
57
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
60
58
|
};
|
|
61
59
|
export default _default;
|