vxe-pc-ui 1.9.20 → 1.9.21
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/icon/style.css +1 -1
- package/es/pager/src/pager.js +7 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +9 -8
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +10 -4
- package/lib/index.umd.min.js +1 -1
- package/lib/pager/src/pager.js +7 -2
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/pager/src/pager.ts +7 -2
- package/packages/ui/index.ts +1 -0
- package/types/components/pager.d.ts +3 -0
- package/types/components/select.d.ts +1 -1
- /package/es/icon/style/{iconfont.1717760426658.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/es/icon/style/{iconfont.1717760426658.woff → iconfont.1717772085052.woff} +0 -0
- /package/es/icon/style/{iconfont.1717760426658.woff2 → iconfont.1717772085052.woff2} +0 -0
- /package/es/{iconfont.1717760426658.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/es/{iconfont.1717760426658.woff → iconfont.1717772085052.woff} +0 -0
- /package/es/{iconfont.1717760426658.woff2 → iconfont.1717772085052.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1717760426658.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1717760426658.woff → iconfont.1717772085052.woff} +0 -0
- /package/lib/icon/style/{iconfont.1717760426658.woff2 → iconfont.1717772085052.woff2} +0 -0
- /package/lib/{iconfont.1717760426658.ttf → iconfont.1717772085052.ttf} +0 -0
- /package/lib/{iconfont.1717760426658.woff → iconfont.1717772085052.woff} +0 -0
- /package/lib/{iconfont.1717760426658.woff2 → iconfont.1717772085052.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
|
|
|
26
26
|
var _dynamics = require("../dynamics");
|
|
27
27
|
var _utils = require("./src/utils");
|
|
28
28
|
var _log = require("./src/log");
|
|
29
|
-
_core.VxeUI.uiVersion = "1.9.
|
|
29
|
+
_core.VxeUI.uiVersion = "1.9.21";
|
|
30
30
|
_core.VxeUI.tableVersion = '';
|
|
31
31
|
_core.VxeUI.t = _core.VxeUI.getI18n;
|
|
32
32
|
_core.VxeUI._t = _utils.getFuncText;
|
|
@@ -159,6 +159,7 @@ _core.VxeUI.globalStore = globalStore;
|
|
|
159
159
|
optgroup: {},
|
|
160
160
|
option: {},
|
|
161
161
|
pager: {
|
|
162
|
+
pageSizePlacement: 'top'
|
|
162
163
|
// size: null,
|
|
163
164
|
// autoHidden: false,
|
|
164
165
|
// perfect: true,
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={config:!0,setup:!0,globalStore:!0},_core=(exports.config=config,exports.globalStore=exports.default=void 0,exports.setup=setup,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_utils=require("./src/utils"),_log=require("./src/log");function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion="1.9.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={config:!0,setup:!0,globalStore:!0},_core=(exports.config=config,exports.globalStore=exports.default=void 0,exports.setup=setup,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_utils=require("./src/utils"),_log=require("./src/log");function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion="1.9.21",_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup;const globalStore=exports.globalStore={},iconPrefix=(_core.VxeUI.globalStore=globalStore,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{},buttonGroup:{},card:{border:!0,padding:!0},checkbox:{},checkboxGroup:{},col:{},colgroup:{},collapse:{},collapsePane:{},column:{},drawer:{position:"left",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0},form:{validConfig:{showMessage:!0,autoPos:!0},tooltipConfig:{enterable:!0},titleAsterisk:!0},formDesign:{height:400,showPc:!0},formGather:{},formItem:{},formView:{},grid:{},icon:{},image:{},imagePreview:{},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},list:{scrollY:{enabled:!0,gt:100}},loading:{},modal:{top:15,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,storageKey:"VXE_MODAL_POSITION"},optgroup:{},option:{},pager:{pageSizePlacement:"top"},passwordInput:{},print:{},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},table:{},tabs:{},textarea:{},toolbar:{},tips:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300},tree:{indent:20,radioConfig:{strict:!0}},treeSelect:{},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"]}}),"vxe-icon-");(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-down rotate180",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-down",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_PWD:iconPrefix+"eye-fill",INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",INPUT_PREV_NUM:iconPrefix+"caret-up",INPUT_NEXT_NUM:iconPrefix+"caret-down",INPUT_DATE:iconPrefix+"calendar",INPUT_SEARCH:iconPrefix+"search",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_DELETE:iconPrefix+"delete",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_DELETE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right"});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
|
-
const version = `ui v${"1.9.
|
|
8
|
+
const version = `ui v${"1.9.21"}`;
|
|
9
9
|
const warnLog = exports.warnLog = _core.log.create('warn', version);
|
|
10
10
|
const errLog = exports.errLog = _core.log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v1.9.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v1.9.21",warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
|
package/package.json
CHANGED
|
@@ -36,6 +36,10 @@ export default defineComponent({
|
|
|
36
36
|
autoHidden: { type: Boolean as PropType<VxePagerPropTypes.AutoHidden>, default: () => getConfig().pager.autoHidden },
|
|
37
37
|
transfer: { type: Boolean as PropType<VxePagerPropTypes.Transfer>, default: () => getConfig().pager.transfer },
|
|
38
38
|
className: [String, Function] as PropType<VxePagerPropTypes.ClassName>,
|
|
39
|
+
pageSizePlacement: {
|
|
40
|
+
type: String as PropType<VxePagerPropTypes.PageSizePlacement>,
|
|
41
|
+
default: () => getConfig().pager.pageSizePlacement
|
|
42
|
+
},
|
|
39
43
|
// 自定义图标
|
|
40
44
|
iconPrevPage: String as PropType<VxePagerPropTypes.IconPrevPage>,
|
|
41
45
|
iconJumpPrev: String as PropType<VxePagerPropTypes.IconJumpPrev>,
|
|
@@ -290,9 +294,10 @@ export default defineComponent({
|
|
|
290
294
|
|
|
291
295
|
// 下一页
|
|
292
296
|
const renderNextPage = () => {
|
|
297
|
+
const pageCount = computePageCount.value
|
|
293
298
|
return h('button', {
|
|
294
299
|
class: ['vxe-pager--next-btn', {
|
|
295
|
-
'is--disabled': props.currentPage
|
|
300
|
+
'is--disabled': props.currentPage >= pageCount
|
|
296
301
|
}],
|
|
297
302
|
type: 'button',
|
|
298
303
|
title: getI18n('vxe.pager.nextPageTitle'),
|
|
@@ -390,7 +395,7 @@ export default defineComponent({
|
|
|
390
395
|
return h(VxeSelectComponent, {
|
|
391
396
|
class: 'vxe-pager--sizes',
|
|
392
397
|
modelValue: props.pageSize,
|
|
393
|
-
placement:
|
|
398
|
+
placement: props.pageSizePlacement,
|
|
394
399
|
transfer: props.transfer,
|
|
395
400
|
options: sizeList,
|
|
396
401
|
onChange: pageSizeEvent
|
package/packages/ui/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref, ComponentPublicInstance, DefineComponent } from 'vue'
|
|
2
2
|
import { defineVxeComponent, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, ValueOf } from '@vxe-ui/core'
|
|
3
|
+
import { VxeSelectPropTypes } from './select'
|
|
3
4
|
|
|
4
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
6
|
|
|
@@ -45,6 +46,7 @@ export namespace VxePagerPropTypes {
|
|
|
45
46
|
export type ClassName = string | ((params: {
|
|
46
47
|
$pager: VxePagerConstructor
|
|
47
48
|
}) => string)
|
|
49
|
+
export type PageSizePlacement = VxeSelectPropTypes.Placement
|
|
48
50
|
export type IconPrevPage = string
|
|
49
51
|
export type IconJumpPrev = string
|
|
50
52
|
export type IconJumpNext = string
|
|
@@ -106,6 +108,7 @@ export type VxePagerProps = {
|
|
|
106
108
|
autoHidden?: VxePagerPropTypes.AutoHidden
|
|
107
109
|
transfer?: VxePagerPropTypes.Transfer
|
|
108
110
|
className?: VxePagerPropTypes.ClassName
|
|
111
|
+
pageSizePlacement?: VxePagerPropTypes.PageSizePlacement
|
|
109
112
|
/**
|
|
110
113
|
* 自定义图标
|
|
111
114
|
*/
|
|
@@ -36,7 +36,7 @@ export namespace VxeSelectPropTypes {
|
|
|
36
36
|
export type Multiple = boolean
|
|
37
37
|
export type MultiCharOverflow = number | string
|
|
38
38
|
export type PrefixIcon = string
|
|
39
|
-
export type Placement =
|
|
39
|
+
export type Placement = 'top' | 'bottom'
|
|
40
40
|
export type Options = VxeSelectDefines.SelectOptions[]
|
|
41
41
|
export type OptionProps = {
|
|
42
42
|
value?: string
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|