@aplus-frontend/ui 0.5.17 → 0.5.18
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/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.mjs +30 -30
- 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-form/ap-form.vue.d.ts +2 -1
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- 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/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/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.mjs +2 -2
- 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/modal-form/index.vue.d.ts +4 -3
- 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 +4 -3
- 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 +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +4 -4
- 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 +4 -2
- 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 +4 -2
- package/es/src/ap-table/ap-table.vue2.mjs +26 -26
- 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.mjs +40 -40
- 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-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 +7 -2
- 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 +4 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- 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 -14
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +119 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +213 -0
- package/es/src/business/ap-ladder/index.d.ts +4 -35
- package/es/src/business/ap-ladder/interface.d.ts +26 -0
- package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/es/src/business/ap-ladder/utils.d.ts +2 -0
- package/es/src/business/ap-ladder/utils.mjs +5 -0
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- 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/hooks/use-create-table-modal.mjs +1 -1
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +3 -3
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +20 -21
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +17 -17
- 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 +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- 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/mask/index.vue.mjs +10 -10
- package/es/src/mask/style/css.d.ts +0 -0
- package/es/src/mask/style/css.js +1 -0
- package/es/src/mask/style/index.d.ts +0 -0
- package/es/src/mask/style/index.js +1 -0
- package/es/src/path-map.mjs +3 -1
- 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 +4 -4
- package/es/src/text/style/css.d.ts +0 -0
- package/es/src/text/style/css.js +2 -0
- package/es/src/text/style/index.d.ts +0 -0
- package/es/src/text/style/index.js +2 -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 +3 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- 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-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 +7 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -14
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +4 -35
- package/lib/src/business/ap-ladder/interface.d.ts +26 -0
- package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/lib/src/business/ap-ladder/utils.d.ts +2 -0
- package/lib/src/business/ap-ladder/utils.js +1 -0
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/mask/style/css.cjs +1 -0
- package/lib/src/mask/style/css.d.ts +0 -0
- package/lib/src/mask/style/index.cjs +1 -0
- package/lib/src/mask/style/index.d.ts +0 -0
- 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/style/css.cjs +2 -0
- package/lib/src/text/style/css.d.ts +0 -0
- package/lib/src/text/style/index.cjs +2 -0
- package/lib/src/text/style/index.d.ts +0 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +28 -1
- package/theme/ap-ladder/ap-ladder.less +32 -1
- package/theme/index.css +28 -1
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
- package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
- package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
|
@@ -0,0 +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 k=require("../interface.js"),S=require("../utils.js"),v=require("../../../config-provider/hooks/use-namespace.js"),g={key:0},C={key:0},B=["href","onClick"],h={key:0},N=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(r,{emit:d}){const c=d,{e:l}=v.useNamespace("ap-ladder"),a=e.ref([]),y=n=>e.isVNode(n)||typeof n=="function",p=n=>{const{value:o,style:t,ref:i}=n;return e.isVNode(o)?e.h(o,{ref:i,style:{...t,display:"inline-block"}}):typeof o=="function"?e.h(o(),{ref:i,style:{...t,display:"inline-block"}}):null},s=(n,o={})=>{const t={rawValue:o.rawValue,precision:o.precision===void 0?2:o.precision,thousand:o.thousand,thousandSeparator:o.thousandSeparator||",",currency:o.currency,percent:o.percent};if(n===null||typeof n=="object"||typeof n=="function"||typeof n>"u")return"--";if(typeof n=="boolean")return n;if(S.isNull(n))return"--";if(t.rawValue)return n;if(typeof n=="number"){if(t.percent)return`${n.toFixed(t.precision)}%`;if(t.currency)return n.toLocaleString(k.locales[t.currency],{style:"currency",currency:t.currency});if(t.thousand){const[i,u]=n.toFixed(t.precision).split(".");return`${i.replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${t.thousandSeparator}`)}.${u}`}return n.toFixed(t.precision)}return n},f=n=>{c("handleClick",n)};return e.onMounted(()=>{a.value.length>0&&c("update:valueRefs",a.value)}),(n,o)=>(e.openBlock(),e.createBlock(e.unref(m.Tooltip),e.normalizeProps(e.guardReactiveProps(r.tooltipProps)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("value-group"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.labelValues,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(e.unref(l)("value-group-item"))},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l)("value-group-label"),r.labelAlign&&`label-align-${r.labelAlign}`]),style:e.normalizeStyle(t.labelStyles)},[e.createTextVNode(e.toDisplayString(t.label),1),t.label?(e.openBlock(),e.createElementBlock("span",g,":")):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("value-group-value"))},[y(t.value)?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(p,{value:t.value,style:e.normalizeStyle((t.valueColor,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(l)("value-group-link")),style:e.normalizeStyle([r.linkStyles,t.linkStyles,t.linkColor?{color:t.linkColor}:void 0]),onClick:e.withModifiers(u=>f(t),["prevent"])},e.toDisplayString(s(t.value,{...t})),15,B)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",{style:e.normalizeStyle([r.valueStyles,t.valueStyles,t.valueColor?{color:t.valueColor}:void 0])},e.toDisplayString(s(t.value,{...t})),5),t.unit?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(l)("value-group-unit")),style:e.normalizeStyle([r.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},[n.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"title")]),key:"0"}:r.tooltip?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("tooltip"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.labelValues,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(e.unref(l)("tooltip-item"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("tooltip-label")),style:e.normalizeStyle(r.tooltipLabelStyles)},e.toDisplayString(t.label),7),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("tooltip-value")),style:e.normalizeStyle(r.tooltipValueStyles)},[e.createTextVNode(e.toDisplayString(s(t.value))+" ",1),t.unit?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(t.unit),1)):e.createCommentVNode("",!0)],6)],2))),128))],2)]),key:"1"}:void 0]),1040))}});exports.default=N;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties,
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
2
|
import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
|
|
3
3
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
4
4
|
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
@@ -11,8 +11,6 @@ declare const ApLadder: {
|
|
|
11
11
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
12
12
|
layout: "vertical" | "horizontal";
|
|
13
13
|
tooltip: boolean;
|
|
14
|
-
major: string;
|
|
15
|
-
minor: string;
|
|
16
14
|
labelAlign: "left" | "right";
|
|
17
15
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
18
16
|
title: VueTypeValidableDef<any>;
|
|
@@ -89,20 +87,11 @@ declare const ApLadder: {
|
|
|
89
87
|
default: boolean;
|
|
90
88
|
};
|
|
91
89
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
90
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
92
91
|
majorColor: string;
|
|
93
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
94
92
|
minorColor: string;
|
|
95
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
96
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
97
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
98
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
99
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
100
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
101
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
102
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
103
93
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
104
94
|
wrapperRef: HTMLDivElement;
|
|
105
|
-
valueRefs: HTMLSpanElement;
|
|
106
95
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
107
96
|
P: {};
|
|
108
97
|
B: {};
|
|
@@ -113,8 +102,6 @@ declare const ApLadder: {
|
|
|
113
102
|
}, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
114
103
|
layout: "vertical" | "horizontal";
|
|
115
104
|
tooltip: boolean;
|
|
116
|
-
major: string;
|
|
117
|
-
minor: string;
|
|
118
105
|
labelAlign: "left" | "right";
|
|
119
106
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
120
107
|
title: VueTypeValidableDef<any>;
|
|
@@ -191,17 +178,9 @@ declare const ApLadder: {
|
|
|
191
178
|
default: boolean;
|
|
192
179
|
};
|
|
193
180
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
181
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
194
182
|
majorColor: string;
|
|
195
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
196
183
|
minorColor: string;
|
|
197
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
198
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
199
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
200
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
201
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
202
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
203
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
204
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
205
184
|
}>;
|
|
206
185
|
__isFragment?: never;
|
|
207
186
|
__isTeleport?: never;
|
|
@@ -209,8 +188,6 @@ declare const ApLadder: {
|
|
|
209
188
|
} & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
210
189
|
layout: "vertical" | "horizontal";
|
|
211
190
|
tooltip: boolean;
|
|
212
|
-
major: string;
|
|
213
|
-
minor: string;
|
|
214
191
|
labelAlign: "left" | "right";
|
|
215
192
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
216
193
|
title: VueTypeValidableDef<any>;
|
|
@@ -287,17 +264,9 @@ declare const ApLadder: {
|
|
|
287
264
|
default: boolean;
|
|
288
265
|
};
|
|
289
266
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
267
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
290
268
|
majorColor: string;
|
|
291
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
292
269
|
minorColor: string;
|
|
293
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
294
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
295
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
296
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
297
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
298
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
299
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
300
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
301
270
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
302
271
|
$slots: Readonly< ApLadderSlots> & ApLadderSlots;
|
|
303
272
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -252,3 +252,29 @@ export type CurrencyCode = 'CNY' | 'USD' | 'EUR' | 'GBP';
|
|
|
252
252
|
* 国际货币代码-映射-语言
|
|
253
253
|
*/
|
|
254
254
|
export declare const locales: CurrencyCodeInLocale;
|
|
255
|
+
export interface ConvertValueOptions {
|
|
256
|
+
/**
|
|
257
|
+
* 是否采用原始值
|
|
258
|
+
*/
|
|
259
|
+
rawValue?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* 精度 默认2位小数
|
|
262
|
+
*/
|
|
263
|
+
precision?: number;
|
|
264
|
+
/**
|
|
265
|
+
* 千分位展示
|
|
266
|
+
*/
|
|
267
|
+
thousand?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* 千分位分隔符
|
|
270
|
+
*/
|
|
271
|
+
thousandSeparator?: string;
|
|
272
|
+
/**
|
|
273
|
+
* 货币单位
|
|
274
|
+
*/
|
|
275
|
+
currency?: CurrencyCode;
|
|
276
|
+
/**
|
|
277
|
+
* 百分比展示
|
|
278
|
+
*/
|
|
279
|
+
percent?: boolean;
|
|
280
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export declare
|
|
3
|
-
export declare const useWatchEllipsis: (target: Ref<HTMLElement | undefined>) => Ref<boolean, boolean>;
|
|
2
|
+
export declare function useWatchEllipsis(wrapperRef: Ref<HTMLElement | undefined>): Ref<boolean, boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=e=>e==null||typeof e=="string"&&e.trim()==="",i=(e,t={})=>typeof e=="string"||typeof e=="number"?String(e)+JSON.stringify(t):"complex-value";exports.createMemoizeKey=i;exports.isNull=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem } from './interface';
|
|
2
|
-
import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
|
|
2
|
+
import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, 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,7 +38,9 @@ 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
|
|
41
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}> & {
|
|
42
44
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
45
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
44
46
|
$props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } 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,7 +19,9 @@ 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
|
|
22
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}> & {
|
|
23
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
26
|
};
|
|
25
27
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("../table-modal.vue.js");require("../../../index.js");const g=require("lodash-unified"),d=require("../../../config-provider/config-provider.js"),T=require("../table-modal.vue2.js");function y(l){let r=!0;const c=document.body,n=o.ref(),{destroyOnUnmounted:i=!0}=l,a=document.createElement("div"),v=()=>{const e=o.defineComponent({setup(){return()=>o.h(d.ConfigProvider,{...d.globalConfigCached.value},o.h(T.default,{...g.omit(l,"destroyOnUnmounted"),ref:n}))}});c.appendChild(a),o.render(o.h(e),a),r=!1},u=()=>{var e;(e=n.value)==null||e.close(),r||setTimeout(()=>{var t;o.render(null,a),(t=a.parentElement)==null||t.removeChild(a),r=!0},400)},f=async(e=[],t={})=>{var s;return n.value||v(),(s=n.value)==null?void 0:s.open(e,t)},m=()=>{var e;r||(e=n.value)==null||e.close()},p=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.submit()},b=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.reset()};return o.onUnmounted(()=>{i&&u()}),{openModal:f,closeModal:m,destroy:u,reloadApTableData:p,resetApTableData:b,getApTableInstance:()=>{var e;return(e=n.value)==null?void 0:e.getApTableInstance()},isDestroyed:r}}exports.useCreateTableModal=y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("../table-modal.vue.js");require("../../../config-provider/index.js");const g=require("lodash-unified"),d=require("../../../config-provider/config-provider.js"),T=require("../table-modal.vue2.js");function y(l){let r=!0;const c=document.body,n=o.ref(),{destroyOnUnmounted:i=!0}=l,a=document.createElement("div"),v=()=>{const e=o.defineComponent({setup(){return()=>o.h(d.ConfigProvider,{...d.globalConfigCached.value},o.h(T.default,{...g.omit(l,"destroyOnUnmounted"),ref:n}))}});c.appendChild(a),o.render(o.h(e),a),r=!1},u=()=>{var e;(e=n.value)==null||e.close(),r||setTimeout(()=>{var t;o.render(null,a),(t=a.parentElement)==null||t.removeChild(a),r=!0},400)},f=async(e=[],t={})=>{var s;return n.value||v(),(s=n.value)==null?void 0:s.open(e,t)},m=()=>{var e;r||(e=n.value)==null||e.close()},p=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.submit()},b=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.reset()};return o.onUnmounted(()=>{i&&u()}),{openModal:f,closeModal:m,destroy:u,reloadApTableData:p,resetApTableData:b,getApTableInstance:()=>{var e;return(e=n.value)==null?void 0:e.getApTableInstance()},isDestroyed:r}}exports.useCreateTableModal=y;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode, VNodeChild } from 'vue';
|
|
2
|
-
import { ApTableProps } from '../../
|
|
2
|
+
import { ApTableProps } from '../../ap-table';
|
|
3
3
|
import { ModalProps, TableProps } from '@aplus-frontend/antdv';
|
|
4
4
|
/** table-modal的props类型 */
|
|
5
5
|
export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../index.js");const r=require("../../config-provider/hooks/use-locale.js"),l=require("../../config-provider/hooks/use-global-config.js"),u=e.defineComponent({__name:"modal-title",props:{title:{type:String,required:!0},count:{type:Number,required:!0},maxCount:{type:Number,required:!0}},setup(t){const{t:n}=r.useLocale(),o=l.useGlobalConfig("uiMode","aplus");return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(a.$slots,"default",{maxCount:t.maxCount,count:t.count},()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#999999":"#8896b0",fontSize:"14px",fontWeight:"normal",marginLeft:"16px"}),class:"product-number"},[e.createTextVNode(e.toDisplayString(isFinite(t.maxCount)?e.unref(n)("ap.apTableModal.titleSuffixOne",{maxCount:t.maxCount}):"")+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixTwo"))+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#34B77C":"#0070ff"})},e.toDisplayString(t.count),5),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixThree")),1)],4)])]))}});exports.default=u;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const r=require("../../config-provider/hooks/use-locale.js"),l=require("../../config-provider/hooks/use-global-config.js"),u=e.defineComponent({__name:"modal-title",props:{title:{type:String,required:!0},count:{type:Number,required:!0},maxCount:{type:Number,required:!0}},setup(t){const{t:n}=r.useLocale(),o=l.useGlobalConfig("uiMode","aplus");return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(a.$slots,"default",{maxCount:t.maxCount,count:t.count},()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#999999":"#8896b0",fontSize:"14px",fontWeight:"normal",marginLeft:"16px"}),class:"product-number"},[e.createTextVNode(e.toDisplayString(isFinite(t.maxCount)?e.unref(n)("ap.apTableModal.titleSuffixOne",{maxCount:t.maxCount}):"")+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixTwo"))+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#34B77C":"#0070ff"})},e.toDisplayString(t.count),5),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixThree")),1)],4)])]))}});exports.default=u;
|
|
@@ -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("../../index.js")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const c=require("../../ap-title/index.js"),n=require("@aplus-frontend/antdv"),y=require("../../../config-provider/hooks/use-locale.js"),k=require("../../../config-provider/hooks/use-namespace.js"),g=e.defineComponent({__name:"index",props:{leftTitle:{type:[String,Object,Number,Boolean,null,Array],default:""},rightTitle:{},renderSelectedItem:{},selectedList:{default:()=>[]}},emits:["clear","deleteItem"],setup(d,{emit:u}){const{t:r}=y.useLocale(),o=d,a=u,m=()=>{a("clear")},p=t=>{a("deleteItem",t)},f=t=>typeof o.rightTitle=="function"?o.rightTitle(t):`${r("ap.apTableModal.selected")} (${t})`,{m:l}=k.useNamespace("ap-table-modal");return(t,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.renderSelectedItem?e.unref(l)("table-layout"):"",{"complex-layout":!!t.renderSelectedItem}])},[t.renderSelectedItem?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.leftTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l)("table-layout-left"))},[e.createVNode(e.unref(c.ApTitle),{style:{"margin-bottom":"16px"}},{prefix:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[t.leftTitle]))))]),_:1}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left-content"))},[e.renderSlot(t.$slots,"default")],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right"))},[e.createVNode(e.unref(c.ApTitle),{title:`${e.unref(r)("ap.apTableModal.selected")} (${t.selectedList.length})`},{prefix:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[f(t.selectedList.length)]))))]),suffix:e.withCtx(()=>[e.createVNode(e.unref(n.Button),{type:"link",style:{padding:"0px",height:"22px","border-width":"0px"},onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apTableModal.clear")),1)]),_:1})]),_:1},8,["title"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right-content"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selectedList,s=>{var i;return e.openBlock(),e.createBlock(e.resolveDynamicComponent((i=t.renderSelectedItem)==null?void 0:i.call(t,s,{deleteItem:p})),{key:s})}),128)),t.selectedList.length===0?(e.openBlock(),e.createBlock(e.unref(n.Empty),{key:0,image:e.unref(n.Empty).PRESENTED_IMAGE_SIMPLE,style:{"margin-top":"100px"}},null,8,["image"])):e.createCommentVNode("",!0)],2)],2)],64)):e.renderSlot(t.$slots,"default",{key:1})],2))}});exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../index.js");const y=require("lodash-unified"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const L=require("../../ap-table/index.js"),y=require("lodash-unified"),N=require("@aplus-frontend/utils");require("./modal-title.vue.js");const b=require("./interface.js");require("./table-layout/index.vue.js");const D=require("../../config-provider/hooks/use-global-config.js"),E=require("../../config-provider/hooks/use-locale.js"),G=require("./modal-title.vue2.js"),H=require("./table-layout/index.vue2.js"),U=e.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},renderHeader:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{}},emits:["finish"],setup(k,{expose:T,emit:h}){const t=k,S=h,i=e.ref(!1),x=e.ref({}),d=e.ref(null),n=e.ref([]),C=e.ref();let c=null,r=null;const _=D.useGlobalConfig("uiMode","admin"),{t:g}=E.useLocale(),B=async(a=[],o={})=>{var l,u,s;switch(n.value=[...a],i.value=!0,x.value=o==null?void 0:o.extraParams,C.value=o.apTableDataSources||((l=t.apTableProps)==null?void 0:l.dataSource),o.refreshMode||"reset"){case"reset":(u=d.value)==null||u.reset();break;case"submit":(s=d.value)==null||s.submit();break;case"none":break}return new Promise((p,f)=>{c=p,r=f})},w=()=>{i.value=!1,c=null,r==null||r(b.AsyncOpenResultError.ModalCancel),r=null},R=async a=>{a=N.transformTableParams({...a,...x.value});const o=t.api,{records:l,total:u}=await o(a);return{data:l,total:u}},M=()=>{if(n.value.length>t.maxCount){r==null||r(b.AsyncOpenResultError.ExceedMaxCount);return}if(t.getRowKey){const a=y.cloneDeep(e.unref(n)),o=a.map(t.getRowKey);S("finish",o,a),c==null||c({keys:o,rows:a})}else{r==null||r(b.AsyncOpenResultError.NotFineGetRowKey);return}i.value=!1},P=e.computed(()=>{if(!t.getRowKey)return;const a=t.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(a),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(o,l){var s,p;if(l.length>t.maxCount){v.message.warning(g("ap.apTableModal.messageMaxCount",{maxCount:t.maxCount}));return}const u=(s=d.value)==null?void 0:s.dataSource;if(o){const f=e.unref(u).filter(m=>!n.value.some(A=>a(A)===a(m)));n.value=n.value.concat(f)}else n.value=(p=n.value)==null?void 0:p.filter(f=>!u.some(m=>a(m)===a(f)))},onSelect(o,l){if(l){if(n.value.length>=t.maxCount){v.message.warning(g("ap.apTableModal.messageMaxCount",{maxCount:t.maxCount}));return}n.value.push(o)}else{const u=n.value.findIndex(s=>a(o)===a(s));n.value.splice(u,1)}},getCheckboxProps:o=>({disabled:typeof t.disabledCheckbox=="function"?t.disabledCheckbox(o,n.value):t.disabledCheckbox}),...t.rowSelection||{}}}),q=()=>t.isRenderModalTitleSuffix?e.h(G.default,{title:t.title,count:n.value.length||0,maxCount:t.maxCount},{default:t.renderModalTitleSuffix??void 0}):t.title,K=()=>d.value,I=()=>{n.value=[]},O=a=>{const o=t.getRowKey;if(!o)return;const l=n.value.findIndex(u=>o(a)===o(u));n.value.splice(l,1)};return T({open:B,close:w,getApTableInstance:K}),(a,o)=>(e.openBlock(),e.createBlock(e.unref(v.Modal),e.mergeProps({open:i.value,"onUpdate:open":o[0]||(o[0]=l=>i.value=l)},e.unref(y.omit)(t,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix","rowSelection","disabledCheckbox","tableLayoutConfig"]),{title:q(),"body-style":{maxHeight:"calc(100vh - 205px)",overflowY:"scroll"},centered:t.centered??!0,onOk:M,onCancel:w}),{default:e.withCtx(()=>[t.renderHeader?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.renderHeader),{key:0})):e.createCommentVNode("",!0),e.createVNode(H.default,e.mergeProps(t.tableLayoutConfig||{},{"selected-list":n.value,onClear:I,onDeleteItem:O}),{default:e.withCtx(()=>[e.createVNode(e.unref(L.ApTable),e.mergeProps({ref_key:"apTableRef",ref:d,scroll:{y:"100%"},style:{padding:"0px"},columns:a.columns,request:R,"row-key":a.getRowKey,"row-selection":P.value,bordered:e.unref(_)==="admin","data-source":C.value},e.unref(y.omit)(t.apTableProps,"dataSource")),null,16,["columns","row-key","row-selection","bordered","data-source"])]),_:1},16,["selected-list"])]),_:1},16,["open","title","centered"]))}});exports.default=U;
|
|
@@ -2,11 +2,7 @@ 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: (
|
|
6
|
-
/**
|
|
7
|
-
* 块 一般是指组件名
|
|
8
|
-
*/
|
|
9
|
-
block: string, namespaceOverrides?: Ref<string | undefined>) => {
|
|
5
|
+
export declare const useNamespace: (block: string, namespaceOverrides?: Ref<string | undefined>) => {
|
|
10
6
|
namespace: ComputedRef<string>;
|
|
11
7
|
b: (blockSuffix?: string) => string;
|
|
12
8
|
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 } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } 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,7 +48,9 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
|
|
|
48
48
|
}) => void;
|
|
49
49
|
};
|
|
50
50
|
emit: {};
|
|
51
|
-
}>) => VNode
|
|
51
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}> & {
|
|
52
54
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
53
55
|
};
|
|
54
56
|
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 } from 'vue';
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } 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,7 +53,9 @@ 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
|
|
56
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}> & {
|
|
57
59
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
60
|
};
|
|
59
61
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/mask/index.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/mask/index.less';
|
|
File without changes
|
package/lib/src/path-map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={ApActionItem:["ap-action","item"],ApActionItemModal:["ap-action","item-modal"],ApActionItemPopconfirm:["ap-action","item-popconfirm"],ApActionItemDropdown:["ap-action","item-dropdown"],ApActionGroup:["ap-action","group"],ApButton:["ap-button"],ApActionButton:["ap-action-button"],ApDescriptions:["ap-descriptions"],ApDownload:["ap-download"],ApField:["ap-field"],ApFieldText:["ap-field","text"],ApFieldCheckbox:["ap-field","checkbox"],ApFieldDate:["ap-field","date"],ApFieldNumber:["ap-field","number"],ApFieldRadio:["ap-field","radio"],ApFieldSwitch:["ap-field","switch"],ApFieldTextArea:["ap-field","text-area"],ApFieldDateRange:["ap-field","date-range"],ApFieldSelect:["ap-field","select"],ApFieldPassword:["ap-field","password"],ApFieldSlider:["ap-field","slider"],ApFieldSegmented:["ap-field","segmented"],ApFieldDateRate:["ap-field","rate"],ApForm:["ap-form"],ApFormItem:["ap-form","item"],ApFormItemGroup:["ap-form","item-group"],ApFormList:["ap-form","list"],ApFormSearchForm:["ap-form","search-form"],ApFormModalForm:["ap-form","modal-form"],ApFormDependency:["ap-form","dependency"],ApFormSet:["ap-form","set"],ApFormDrawerForm:["ap-form","drawer-form"],ApFormItemText:["ap-form","item-text"],ApFormItemTextArea:["ap-form","item-text-area"],ApFormItemNumber:["ap-form","item-number"],ApFormItemDate:["ap-form","item-date"],ApFormItemDateRange:["ap-form","item-date-range"],ApFormItemRadio:["ap-form","item-radio"],ApFormItemSelect:["ap-form","item-select"],ApFormItemSwitch:["ap-form","item-switch"],ApFormItemCheckbox:["ap-form","item-checkbox"],ApFormItemTextPassword:["ap-form","item-text-password"],ApFormItemTextGroup:["ap-form","item-text-group"],ApInfoLayout:["ap-info-layout"],ApList:["ap-list"],ApModal:["ap-modal"],ApDrawer:["ap-drawer"],ApTable:["ap-table"],ApTag:["ap-tag"],ApTagGroup:["ap-tag","group"],ApUpload:["ap-upload"],CheckCard:["check-card"],CheckCardGroup:["check-card","group"],ConfigProvider:["config-provider"],EditableTable:["editable-table"],EditableTableFormItem:["editable-table","form-item"],WorkOrderModal:["work-order-modal"],ApAttachment:["business","ap-attachment"],ApBatchAction:["business","ap-batch-action"],ApBatchActionGroup:["business","ap-batch-action-group"],ApButtonGroup:["business","ap-button-group"],ApCard:["business","ap-card"],ApExpandAlert:["business","ap-expand-alert"],ApExportGroup:["business","ap-export-group"],ApImage:["business","ap-image"],ApInputRadio:["business","ap-input-radio"],ApSizeInput:["business","ap-size-input"],ApLabel:["business","ap-label"],ApLabelGroup:["business","ap-label","group"],ApLadder:["business","ap-ladder"],ApSelectLayout:["business","ap-select-layout"],ApStatus:["business","ap-status"],ApStatusGroup:["business","ap-status","group"],ApTableModal:["business","ap-table-modal"],useTableModal:["business","ap-table-modal"],useTableSelectModal:["business","ap-table-modal"],ApTitle:["business","ap-title"],ApSummary:["business","ap-summary"],ScrollBar:["scroll-bar"],ScrollView:["scroll-view"],ApAppendix:["business","ap-appendix"],ApGroupSearch:["business","ap-group-search"],ApPopoverSelect:["business","ap-group-search","popover-select"],ApExtensionSelect:["business","ap-group-search","extension-select"],ApUploadSingle:["business","ap-upload-file","ap-upload-single"],BatchInputGroup:["business","batch-input-group"],ApFormControlRender:["ap-form","render"],ApFormItemRender:["ap-form","render"],Portal:["portal"],FullScreen:["full-screen"],ResizeObserver:["resize-observer"],ApGrid:["ap-grid"],EditableGrid:["ap-grid","editable"],EditableGridFormItem:["ap-grid","editable"]};exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={ApActionItem:["ap-action","item"],ApActionItemModal:["ap-action","item-modal"],ApActionItemPopconfirm:["ap-action","item-popconfirm"],ApActionItemDropdown:["ap-action","item-dropdown"],ApActionGroup:["ap-action","group"],ApButton:["ap-button"],ApActionButton:["ap-action-button"],ApDescriptions:["ap-descriptions"],ApDownload:["ap-download"],ApField:["ap-field"],ApFieldText:["ap-field","text"],ApFieldCheckbox:["ap-field","checkbox"],ApFieldDate:["ap-field","date"],ApFieldNumber:["ap-field","number"],ApFieldRadio:["ap-field","radio"],ApFieldSwitch:["ap-field","switch"],ApFieldTextArea:["ap-field","text-area"],ApFieldDateRange:["ap-field","date-range"],ApFieldSelect:["ap-field","select"],ApFieldPassword:["ap-field","password"],ApFieldSlider:["ap-field","slider"],ApFieldSegmented:["ap-field","segmented"],ApFieldDateRate:["ap-field","rate"],ApForm:["ap-form"],ApFormItem:["ap-form","item"],ApFormItemGroup:["ap-form","item-group"],ApFormList:["ap-form","list"],ApFormSearchForm:["ap-form","search-form"],ApFormModalForm:["ap-form","modal-form"],ApFormDependency:["ap-form","dependency"],ApFormSet:["ap-form","set"],ApFormDrawerForm:["ap-form","drawer-form"],ApFormItemText:["ap-form","item-text"],ApFormItemTextArea:["ap-form","item-text-area"],ApFormItemNumber:["ap-form","item-number"],ApFormItemDate:["ap-form","item-date"],ApFormItemDateRange:["ap-form","item-date-range"],ApFormItemRadio:["ap-form","item-radio"],ApFormItemSelect:["ap-form","item-select"],ApFormItemSwitch:["ap-form","item-switch"],ApFormItemCheckbox:["ap-form","item-checkbox"],ApFormItemTextPassword:["ap-form","item-text-password"],ApFormItemTextGroup:["ap-form","item-text-group"],ApInfoLayout:["ap-info-layout"],ApList:["ap-list"],ApModal:["ap-modal"],ApDrawer:["ap-drawer"],ApTable:["ap-table"],ApTag:["ap-tag"],ApTagGroup:["ap-tag","group"],ApUpload:["ap-upload"],CheckCard:["check-card"],CheckCardGroup:["check-card","group"],ConfigProvider:["config-provider"],EditableTable:["editable-table"],EditableTableFormItem:["editable-table","form-item"],WorkOrderModal:["work-order-modal"],ApAttachment:["business","ap-attachment"],ApBatchAction:["business","ap-batch-action"],ApBatchActionGroup:["business","ap-batch-action-group"],ApButtonGroup:["business","ap-button-group"],ApCard:["business","ap-card"],ApExpandAlert:["business","ap-expand-alert"],ApExportGroup:["business","ap-export-group"],ApImage:["business","ap-image"],ApInputRadio:["business","ap-input-radio"],ApSizeInput:["business","ap-size-input"],ApLabel:["business","ap-label"],ApLabelGroup:["business","ap-label","group"],ApLadder:["business","ap-ladder"],ApSelectLayout:["business","ap-select-layout"],ApStatus:["business","ap-status"],ApStatusGroup:["business","ap-status","group"],ApTableModal:["business","ap-table-modal"],useTableModal:["business","ap-table-modal"],useTableSelectModal:["business","ap-table-modal"],ApTitle:["business","ap-title"],ApSummary:["business","ap-summary"],ScrollBar:["scroll-bar"],ScrollView:["scroll-view"],ApAppendix:["business","ap-appendix"],ApGroupSearch:["business","ap-group-search"],ApPopoverSelect:["business","ap-group-search","popover-select"],ApExtensionSelect:["business","ap-group-search","extension-select"],ApUploadSingle:["business","ap-upload-file","ap-upload-single"],BatchInputGroup:["business","batch-input-group"],ApFormControlRender:["ap-form","render"],ApFormItemRender:["ap-form","render"],Portal:["portal"],FullScreen:["full-screen"],ResizeObserver:["resize-observer"],ApGrid:["ap-grid"],EditableGrid:["ap-grid","editable"],EditableGridFormItem:["ap-grid","editable"],ApText:["text"],Mask:["mask"]};exports.default=e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScrollOptions, ScrollViewProps } from './interface';
|
|
2
|
-
import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
|
|
2
|
+
import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
|
|
3
3
|
import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
|
|
4
4
|
declare function scroll(x?: number, y?: number): void;
|
|
5
5
|
declare function scrollTo({ smooth, left, top }: ScrollOptions): void;
|
|
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
106
106
|
onScroll?: ((percent: number) => void) | undefined;
|
|
107
107
|
disabled?: boolean | undefined;
|
|
108
108
|
trackSpeed?: number | undefined;
|
|
109
|
-
barColor?:
|
|
110
|
-
trackColor?:
|
|
109
|
+
barColor?: ColorType;
|
|
110
|
+
trackColor?: ColorType;
|
|
111
111
|
trackWidth?: number | undefined;
|
|
112
112
|
showTrack?: boolean | undefined;
|
|
113
113
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
118
118
|
onScroll?: ((percent: number) => void) | undefined;
|
|
119
119
|
disabled?: boolean | undefined;
|
|
120
120
|
trackSpeed?: number | undefined;
|
|
121
|
-
barColor?:
|
|
122
|
-
trackColor?:
|
|
121
|
+
barColor?: ColorType;
|
|
122
|
+
trackColor?: ColorType;
|
|
123
123
|
trackWidth?: number | undefined;
|
|
124
124
|
showTrack?: boolean | undefined;
|
|
125
125
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
export declare const Wrapper: DefineComponent<{
|
|
3
|
-
uiMode?: "admin" | "aplus" | undefined;
|
|
4
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
3
|
+
uiMode?: ("admin" | "aplus") | undefined;
|
|
4
|
+
lang?: ("en" | "zh-cn") | undefined;
|
|
5
5
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
6
|
-
uiMode?: "admin" | "aplus" | undefined;
|
|
7
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
6
|
+
uiMode?: ("admin" | "aplus") | undefined;
|
|
7
|
+
lang?: ("en" | "zh-cn") | undefined;
|
|
8
8
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { WorkOrderModalProps } from './interfaces';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
4
|
-
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../type';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
11
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
|
|
13
14
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -112,7 +113,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
112
113
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
113
114
|
readonly initialValues?: Recordable | undefined;
|
|
114
115
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
115
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
116
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
116
117
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
117
118
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
118
119
|
$attrs: {
|
package/package.json
CHANGED
|
@@ -6,6 +6,31 @@
|
|
|
6
6
|
/** Aplus端样式 */
|
|
7
7
|
/** Admin端样式 */
|
|
8
8
|
}
|
|
9
|
+
.aplus-ap-ladder__value-group-item {
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
.aplus-ap-ladder__value-group-label {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
color: #8896B0;
|
|
15
|
+
word-break: break-all;
|
|
16
|
+
min-width: 50px;
|
|
17
|
+
}
|
|
18
|
+
.aplus-ap-ladder__value-group-value {
|
|
19
|
+
color: #182948;
|
|
20
|
+
word-break: break-all;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
}
|
|
25
|
+
.aplus-ap-ladder__value-group-link {
|
|
26
|
+
cursor: pointer !important;
|
|
27
|
+
color: #0070ff !important;
|
|
28
|
+
text-decoration: none !important;
|
|
29
|
+
}
|
|
30
|
+
.aplus-ap-ladder .ellipsis-element {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
9
34
|
.aplus-ap-ladder__cross-bar {
|
|
10
35
|
display: flex;
|
|
11
36
|
align-items: center;
|
|
@@ -41,9 +66,11 @@
|
|
|
41
66
|
.aplus-ap-ladder__unit {
|
|
42
67
|
color: #182948;
|
|
43
68
|
}
|
|
44
|
-
.aplus-ap-ladder__link
|
|
69
|
+
.aplus-ap-ladder__link,
|
|
70
|
+
.aplus-ap-ladder__link a {
|
|
45
71
|
cursor: pointer;
|
|
46
72
|
color: #0070ff;
|
|
73
|
+
text-decoration: none;
|
|
47
74
|
}
|
|
48
75
|
.aplus-ap-ladder--admin .aplus-ap-ladder__major {
|
|
49
76
|
color: #333333;
|
|
@@ -6,6 +6,35 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
width: inherit;
|
|
8
8
|
font-size: 14px;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
&__value-group-item{
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__value-group-label{
|
|
16
|
+
display: inline-block;
|
|
17
|
+
color: #8896B0;
|
|
18
|
+
word-break: break-all;
|
|
19
|
+
min-width: 50px;
|
|
20
|
+
}
|
|
21
|
+
&__value-group-value{
|
|
22
|
+
color: #182948;
|
|
23
|
+
word-break: break-all;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
&__value-group-link{
|
|
29
|
+
cursor: pointer !important;
|
|
30
|
+
color: @aplus-primary-color !important;
|
|
31
|
+
text-decoration: none !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ellipsis-element{
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
9
38
|
&__cross-bar {
|
|
10
39
|
display: flex;
|
|
11
40
|
align-items: center;
|
|
@@ -45,9 +74,11 @@
|
|
|
45
74
|
&__unit {
|
|
46
75
|
color: #182948;
|
|
47
76
|
}
|
|
48
|
-
|
|
77
|
+
|
|
78
|
+
&__link,&__link a{
|
|
49
79
|
cursor: pointer;
|
|
50
80
|
color: @aplus-primary-color;
|
|
81
|
+
text-decoration: none;
|
|
51
82
|
}
|
|
52
83
|
/** Admin端样式 */
|
|
53
84
|
&--admin {
|
package/theme/index.css
CHANGED
|
@@ -594,6 +594,31 @@
|
|
|
594
594
|
/** Aplus端样式 */
|
|
595
595
|
/** Admin端样式 */
|
|
596
596
|
}
|
|
597
|
+
.aplus-ap-ladder__value-group-item {
|
|
598
|
+
display: flex;
|
|
599
|
+
}
|
|
600
|
+
.aplus-ap-ladder__value-group-label {
|
|
601
|
+
display: inline-block;
|
|
602
|
+
color: #8896B0;
|
|
603
|
+
word-break: break-all;
|
|
604
|
+
min-width: 50px;
|
|
605
|
+
}
|
|
606
|
+
.aplus-ap-ladder__value-group-value {
|
|
607
|
+
color: #182948;
|
|
608
|
+
word-break: break-all;
|
|
609
|
+
overflow: hidden;
|
|
610
|
+
text-overflow: ellipsis;
|
|
611
|
+
white-space: nowrap;
|
|
612
|
+
}
|
|
613
|
+
.aplus-ap-ladder__value-group-link {
|
|
614
|
+
cursor: pointer !important;
|
|
615
|
+
color: #0070ff !important;
|
|
616
|
+
text-decoration: none !important;
|
|
617
|
+
}
|
|
618
|
+
.aplus-ap-ladder .ellipsis-element {
|
|
619
|
+
display: flex;
|
|
620
|
+
flex-direction: column;
|
|
621
|
+
}
|
|
597
622
|
.aplus-ap-ladder__cross-bar {
|
|
598
623
|
display: flex;
|
|
599
624
|
align-items: center;
|
|
@@ -629,9 +654,11 @@
|
|
|
629
654
|
.aplus-ap-ladder__unit {
|
|
630
655
|
color: #182948;
|
|
631
656
|
}
|
|
632
|
-
.aplus-ap-ladder__link
|
|
657
|
+
.aplus-ap-ladder__link,
|
|
658
|
+
.aplus-ap-ladder__link a {
|
|
633
659
|
cursor: pointer;
|
|
634
660
|
color: #0070ff;
|
|
661
|
+
text-decoration: none;
|
|
635
662
|
}
|
|
636
663
|
.aplus-ap-ladder--admin .aplus-ap-ladder__major {
|
|
637
664
|
color: #333333;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
import { ApLadderLabelValue } from './interface';
|
|
3
|
-
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
-
lv: {
|
|
5
|
-
type: PropType<ApLadderLabelValue>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
9
|
-
lv: {
|
|
10
|
-
type: PropType<ApLadderLabelValue>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
14
|
-
export default _default;
|