vxe-pc-ui 1.7.13 → 1.7.14

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.
Files changed (28) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/style.css +1 -1
  3. package/es/style.min.css +1 -1
  4. package/es/ui/index.js +13 -3
  5. package/lib/icon/style/style.css +1 -1
  6. package/lib/icon/style/style.min.css +1 -1
  7. package/lib/index.umd.js +15 -3
  8. package/lib/index.umd.min.js +1 -1
  9. package/lib/style.css +1 -1
  10. package/lib/style.min.css +1 -1
  11. package/lib/ui/index.js +17 -3
  12. package/lib/ui/index.min.js +1 -1
  13. package/package.json +1 -1
  14. package/packages/ui/index.ts +15 -2
  15. package/types/ui/index.d.ts +23 -3
  16. package/types/ui/renderer.d.ts +1 -1
  17. /package/es/icon/style/{iconfont.1716774994490.ttf → iconfont.1716777079761.ttf} +0 -0
  18. /package/es/icon/style/{iconfont.1716774994490.woff → iconfont.1716777079761.woff} +0 -0
  19. /package/es/icon/style/{iconfont.1716774994490.woff2 → iconfont.1716777079761.woff2} +0 -0
  20. /package/es/{iconfont.1716774994490.ttf → iconfont.1716777079761.ttf} +0 -0
  21. /package/es/{iconfont.1716774994490.woff → iconfont.1716777079761.woff} +0 -0
  22. /package/es/{iconfont.1716774994490.woff2 → iconfont.1716777079761.woff2} +0 -0
  23. /package/lib/icon/style/{iconfont.1716774994490.ttf → iconfont.1716777079761.ttf} +0 -0
  24. /package/lib/icon/style/{iconfont.1716774994490.woff → iconfont.1716777079761.woff} +0 -0
  25. /package/lib/icon/style/{iconfont.1716774994490.woff2 → iconfont.1716777079761.woff2} +0 -0
  26. /package/lib/{iconfont.1716774994490.ttf → iconfont.1716777079761.ttf} +0 -0
  27. /package/lib/{iconfont.1716774994490.woff → iconfont.1716777079761.woff} +0 -0
  28. /package/lib/{iconfont.1716774994490.woff2 → iconfont.1716777079761.woff2} +0 -0
package/lib/ui/index.js CHANGED
@@ -4,9 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  var _exportNames = {
7
- use: true
7
+ use: true,
8
+ config: true,
9
+ setup: true
8
10
  };
11
+ exports.config = config;
9
12
  exports.default = void 0;
13
+ exports.setup = setup;
10
14
  exports.use = use;
11
15
  var _core = require("@vxe-ui/core");
12
16
  Object.keys(_core).forEach(function (key) {
@@ -22,11 +26,11 @@ Object.keys(_core).forEach(function (key) {
22
26
  });
23
27
  var _dynamics = require("../dynamics");
24
28
  var _utils = require("./src/utils");
25
- _core.VxeUI.uiVersion = "1.7.13";
29
+ _core.VxeUI.uiVersion = "1.7.14";
26
30
  _core.VxeUI.tableVersion = '';
27
31
  _core.VxeUI.t = _core.VxeUI.getI18n;
28
32
  _core.VxeUI._t = _utils.getFuncText;
29
- _core.VxeUI.version = "1.7.13";
33
+ _core.VxeUI.version = "1.7.14";
30
34
  _core.VxeUI.dynamicApp = _dynamics.dynamicApp;
31
35
  const installedPlugins = [];
32
36
  function use(Plugin, options) {
@@ -40,6 +44,16 @@ function use(Plugin, options) {
40
44
  return _core.VxeUI;
41
45
  }
42
46
  _core.VxeUI.use = use;
47
+ function config(options) {
48
+ _core.log.warn('vxe.error.delFunc', ['config', 'setConfig']);
49
+ return (0, _core.setConfig)(options);
50
+ }
51
+ function setup(options) {
52
+ _core.log.warn('vxe.error.delFunc', ['setup', 'setConfig']);
53
+ return (0, _core.setConfig)(options);
54
+ }
55
+ _core.VxeUI.config = config;
56
+ _core.VxeUI.setup = setup;
43
57
  (0, _core.setConfig)({
44
58
  anchor: {},
45
59
  anchorLink: {},
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={use:!0},_core=(exports.default=void 0,exports.use=use,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");_core.VxeUI.uiVersion="1.7.13",_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.version="1.7.13",_core.VxeUI.dynamicApp=_dynamics.dynamicApp;const installedPlugins=[];function use(e,r){return e&&e.install&&-1===installedPlugins.indexOf(e)&&(e.install(_core.VxeUI,r),installedPlugins.push(e)),_core.VxeUI}_core.VxeUI.use=use,(0,_core.setConfig)({anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{},buttonGroup:{},checkbox:{},checkboxGroup:{},col:{},colgroup:{},collapse:{},collapsePane:{},column:{},drawer:{showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0},form:{validConfig:{showMessage:!0,autoPos:!0},tooltipConfig:{enterable:!0},titleAsterisk:!0},formDesign:{height:400,showPC:!0},formGather:{},formItem:{},grid:{},icon:{},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:{},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,draggable:!0,showConfirmButton:null,storageKey:"VXE_MODAL_POSITION"},optgroup:{},option:{},pager:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},table:{},tabs:{},textarea:{},toolbar:{},tips:{title:"Tip"},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300}});const iconPrefix="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",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",DESIGN_FORM_WIDGET_ADD:iconPrefix+"square-plus-fill",DESIGN_FORM_WIDGET_COPY:iconPrefix+"copy",DESIGN_FORM_WIDGET_DELETE:iconPrefix+"delete",DESIGN_FORM_WIDGET_OPTION_DELETE:iconPrefix+"delete",DESIGN_FORM_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",DESIGN_FORM_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus"});var _default=exports.default=_core.VxeUI;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={use:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.use=use,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");_core.VxeUI.uiVersion="1.7.14",_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.version="1.7.14",_core.VxeUI.dynamicApp=_dynamics.dynamicApp;const installedPlugins=[];function use(e,o){return e&&e.install&&-1===installedPlugins.indexOf(e)&&(e.install(_core.VxeUI,o),installedPlugins.push(e)),_core.VxeUI}function config(e){return _core.log.warn("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return _core.log.warn("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.use=use,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{},buttonGroup:{},checkbox:{},checkboxGroup:{},col:{},colgroup:{},collapse:{},collapsePane:{},column:{},drawer:{showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0},form:{validConfig:{showMessage:!0,autoPos:!0},tooltipConfig:{enterable:!0},titleAsterisk:!0},formDesign:{height:400,showPC:!0},formGather:{},formItem:{},grid:{},icon:{},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:{},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,draggable:!0,showConfirmButton:null,storageKey:"VXE_MODAL_POSITION"},optgroup:{},option:{},pager:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},table:{},tabs:{},textarea:{},toolbar:{},tips:{title:"Tip"},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300}});const iconPrefix="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",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",DESIGN_FORM_WIDGET_ADD:iconPrefix+"square-plus-fill",DESIGN_FORM_WIDGET_COPY:iconPrefix+"copy",DESIGN_FORM_WIDGET_DELETE:iconPrefix+"delete",DESIGN_FORM_WIDGET_OPTION_DELETE:iconPrefix+"delete",DESIGN_FORM_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",DESIGN_FORM_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus"});var _default=exports.default=_core.VxeUI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-pc-ui",
3
- "version": "1.7.13",
3
+ "version": "1.7.14",
4
4
  "description": "A vue based PC side component library",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -1,8 +1,8 @@
1
- import { VxeUI, setConfig, setIcon } from '@vxe-ui/core'
1
+ import { VxeUI, setConfig, setIcon, log } from '@vxe-ui/core'
2
2
  import { dynamicApp } from '../dynamics'
3
3
  import { getFuncText } from './src/utils'
4
4
 
5
- import { VxeUIPluginObject } from '../../types'
5
+ import { VxeUIPluginObject, VxeGlobalConfig } from '../../types'
6
6
 
7
7
  VxeUI.uiVersion = process.env.VUE_APP_VXE_VERSION as string
8
8
  VxeUI.tableVersion = ''
@@ -27,6 +27,19 @@ export function use (Plugin: VxeUIPluginObject, options: any[]) {
27
27
 
28
28
  VxeUI.use = use
29
29
 
30
+ export function config (options?: VxeGlobalConfig) {
31
+ log.warn('vxe.error.delFunc', ['config', 'setConfig'])
32
+ return setConfig(options)
33
+ }
34
+
35
+ export function setup (options?: VxeGlobalConfig) {
36
+ log.warn('vxe.error.delFunc', ['setup', 'setConfig'])
37
+ return setConfig(options)
38
+ }
39
+
40
+ VxeUI.config = config
41
+ VxeUI.setup = setup
42
+
30
43
  setConfig({
31
44
  anchor: {},
32
45
  anchorLink: {},
@@ -1,5 +1,5 @@
1
1
  import { App } from 'vue'
2
- import { VxeUI, VxeUIExport, getI18n } from '@vxe-ui/core'
2
+ import { VxeUI, VxeUIExport, getI18n, setConfig } from '@vxe-ui/core'
3
3
  import { ModalController } from '../components/modal'
4
4
  import { DrawerController } from '../components/drawer'
5
5
  import { VxePrintDefines } from '../components/print'
@@ -10,7 +10,17 @@ export interface VxeUIPluginObject {
10
10
  [key: string]: any
11
11
  }
12
12
 
13
- export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUI
13
+ export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUIExport
14
+ /**
15
+ * 已废弃,请使用 setConfig
16
+ * @deprecated
17
+ */
18
+ export const config: typeof setConfig
19
+ /**
20
+ * 已废弃,请使用 setConfig
21
+ * @deprecated
22
+ */
23
+ export const setup: typeof setConfig
14
24
 
15
25
  declare module '@vxe-ui/core' {
16
26
  export interface VxeUIExport {
@@ -23,7 +33,17 @@ declare module '@vxe-ui/core' {
23
33
  saveFile: VxeUploadDefines.SaveFileFunction
24
34
  readFile: VxeUploadDefines.ReadFileFunction
25
35
 
26
- use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUI
36
+ use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUIExport
37
+ /**
38
+ * 已废弃,请使用 setConfig
39
+ * @deprecated
40
+ */
41
+ config: typeof setConfig
42
+ /**
43
+ * 已废弃,请使用 setConfig
44
+ * @deprecated
45
+ */
46
+ setup: typeof setConfig
27
47
  /**
28
48
  * 请使用 getI18n
29
49
  * @deprecated
@@ -279,7 +279,7 @@ declare module '@vxe-ui/core' {
279
279
  export namespace VxeGlobalRendererHandles {
280
280
  export type RenderItemTitleOptions = VxeFormItemPropTypes.ItemRender
281
281
  export type RenderItemTitleParams = FormItemTitleRenderParams
282
- export type RenderItemContentOptions = any
282
+ export type RenderItemContentOptions = VxeFormItemPropTypes.ItemRender
283
283
  export type RenderItemContentParams = FormItemContentRenderParams
284
284
  export type ItemVisibleMethodParams = FormItemVisibleParams
285
285
  export type ItemResetMethodParams = FormItemResetParams