vxe-pc-ui 1.7.13 → 1.7.15

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 (30) 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 +18 -14
  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 +32 -29
  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 +23 -16
  12. package/lib/ui/index.min.js +1 -1
  13. package/package.json +2 -2
  14. package/packages/ui/index.ts +18 -13
  15. package/types/components/column.d.ts +1 -0
  16. package/types/ui/global-config.d.ts +5 -0
  17. package/types/ui/index.d.ts +41 -6
  18. package/types/ui/renderer.d.ts +1 -1
  19. /package/es/icon/style/{iconfont.1716774994490.ttf → iconfont.1716787648196.ttf} +0 -0
  20. /package/es/icon/style/{iconfont.1716774994490.woff → iconfont.1716787648196.woff} +0 -0
  21. /package/es/icon/style/{iconfont.1716774994490.woff2 → iconfont.1716787648196.woff2} +0 -0
  22. /package/es/{iconfont.1716774994490.ttf → iconfont.1716787648196.ttf} +0 -0
  23. /package/es/{iconfont.1716774994490.woff → iconfont.1716787648196.woff} +0 -0
  24. /package/es/{iconfont.1716774994490.woff2 → iconfont.1716787648196.woff2} +0 -0
  25. /package/lib/icon/style/{iconfont.1716774994490.ttf → iconfont.1716787648196.ttf} +0 -0
  26. /package/lib/icon/style/{iconfont.1716774994490.woff → iconfont.1716787648196.woff} +0 -0
  27. /package/lib/icon/style/{iconfont.1716774994490.woff2 → iconfont.1716787648196.woff2} +0 -0
  28. /package/lib/{iconfont.1716774994490.ttf → iconfont.1716787648196.ttf} +0 -0
  29. /package/lib/{iconfont.1716774994490.woff → iconfont.1716787648196.woff} +0 -0
  30. /package/lib/{iconfont.1716774994490.woff2 → iconfont.1716787648196.woff2} +0 -0
package/lib/ui/index.js CHANGED
@@ -4,10 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  var _exportNames = {
7
- use: true
7
+ config: true,
8
+ setup: true,
9
+ globalStore: true
8
10
  };
9
- exports.default = void 0;
10
- exports.use = use;
11
+ exports.config = config;
12
+ exports.globalStore = exports.default = void 0;
13
+ exports.setup = setup;
11
14
  var _core = require("@vxe-ui/core");
12
15
  Object.keys(_core).forEach(function (key) {
13
16
  if (key === "default" || key === "__esModule") return;
@@ -22,24 +25,28 @@ Object.keys(_core).forEach(function (key) {
22
25
  });
23
26
  var _dynamics = require("../dynamics");
24
27
  var _utils = require("./src/utils");
25
- _core.VxeUI.uiVersion = "1.7.13";
28
+ _core.VxeUI.uiVersion = "1.7.15";
26
29
  _core.VxeUI.tableVersion = '';
27
30
  _core.VxeUI.t = _core.VxeUI.getI18n;
28
31
  _core.VxeUI._t = _utils.getFuncText;
29
- _core.VxeUI.version = "1.7.13";
32
+ _core.VxeUI.version = "1.7.15";
30
33
  _core.VxeUI.dynamicApp = _dynamics.dynamicApp;
31
- const installedPlugins = [];
32
- function use(Plugin, options) {
33
- /* eslint-disable @typescript-eslint/no-use-before-define */
34
- if (Plugin && Plugin.install) {
35
- if (installedPlugins.indexOf(Plugin) === -1) {
36
- Plugin.install(_core.VxeUI, options);
37
- installedPlugins.push(Plugin);
38
- }
39
- }
40
- return _core.VxeUI;
34
+ function config(options) {
35
+ _core.log.warn('vxe.error.delFunc', ['config', 'setConfig']);
36
+ return (0, _core.setConfig)(options);
37
+ }
38
+ function setup(options) {
39
+ _core.log.warn('vxe.error.delFunc', ['setup', 'setConfig']);
40
+ return (0, _core.setConfig)(options);
41
41
  }
42
- _core.VxeUI.use = use;
42
+ _core.VxeUI.config = config;
43
+ _core.VxeUI.setup = setup;
44
+ /**
45
+ * 已废弃
46
+ * @deprecated
47
+ */
48
+ const globalStore = exports.globalStore = {};
49
+ _core.VxeUI.globalStore = globalStore;
43
50
  (0, _core.setConfig)({
44
51
  anchor: {},
45
52
  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={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");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.uiVersion="1.7.15",_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.version="1.7.15",_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)({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}}),"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.15",
4
4
  "description": "A vue based PC side component library",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -25,7 +25,7 @@
25
25
  "style": "lib/style.css",
26
26
  "typings": "types/index.d.ts",
27
27
  "dependencies": {
28
- "@vxe-ui/core": "^0.10.1"
28
+ "@vxe-ui/core": "^0.10.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/resize-observer-browser": "^0.1.11",
@@ -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 { VxeGlobalConfig } from '../../types'
6
6
 
7
7
  VxeUI.uiVersion = process.env.VUE_APP_VXE_VERSION as string
8
8
  VxeUI.tableVersion = ''
@@ -12,20 +12,25 @@ VxeUI.version = process.env.VUE_APP_VXE_VERSION as string
12
12
 
13
13
  VxeUI.dynamicApp = dynamicApp
14
14
 
15
- const installedPlugins: VxeUIPluginObject[] = []
15
+ export function config (options?: VxeGlobalConfig) {
16
+ log.warn('vxe.error.delFunc', ['config', 'setConfig'])
17
+ return setConfig(options)
18
+ }
16
19
 
17
- export function use (Plugin: VxeUIPluginObject, options: any[]) {
18
- /* eslint-disable @typescript-eslint/no-use-before-define */
19
- if (Plugin && Plugin.install) {
20
- if (installedPlugins.indexOf(Plugin) === -1) {
21
- Plugin.install(VxeUI, options)
22
- installedPlugins.push(Plugin)
23
- }
24
- }
25
- return VxeUI
20
+ export function setup (options?: VxeGlobalConfig) {
21
+ log.warn('vxe.error.delFunc', ['setup', 'setConfig'])
22
+ return setConfig(options)
26
23
  }
27
24
 
28
- VxeUI.use = use
25
+ VxeUI.config = config
26
+ VxeUI.setup = setup
27
+
28
+ /**
29
+ * 已废弃
30
+ * @deprecated
31
+ */
32
+ export const globalStore = {}
33
+ VxeUI.globalStore = globalStore
29
34
 
30
35
  setConfig({
31
36
  anchor: {},
@@ -121,6 +121,7 @@ export namespace VxeColumnPropTypes {
121
121
  optionGroups?: any[]
122
122
  optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
123
123
  content?: string
124
+ cellType?: 'number' | 'string' | '' | null
124
125
  }
125
126
 
126
127
  export type TreeNode = boolean
@@ -122,5 +122,10 @@ declare module '@vxe-ui/core' {
122
122
  * @deprecated
123
123
  */
124
124
  validToReject?: 'obsolete'
125
+ /**
126
+ * 无效,已废弃
127
+ * @deprecated
128
+ */
129
+ v?: string
125
130
  }
126
131
  }
@@ -1,16 +1,37 @@
1
1
  import { App } from 'vue'
2
- import { VxeUI, VxeUIExport, getI18n } from '@vxe-ui/core'
2
+ import { VxeUI, 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'
6
6
  import { VxeUploadDefines } from '../components/upload'
7
7
 
8
- export interface VxeUIPluginObject {
9
- install(vxeui: VxeUIExport, ...options: any[]): void
8
+ /**
9
+ * 已废弃,请使用 setConfig
10
+ * @deprecated
11
+ */
12
+ export const config: typeof setConfig
13
+ /**
14
+ * 已废弃,请使用 setConfig
15
+ * @deprecated
16
+ */
17
+ export const setup: typeof setConfig
18
+
19
+ /**
20
+ * 已废弃
21
+ * @deprecated
22
+ */
23
+ export interface VxeGlobalStore {
10
24
  [key: string]: any
25
+ clipboard?: {
26
+ text: string
27
+ html: string
28
+ }
11
29
  }
12
-
13
- export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUI
30
+ /**
31
+ * 已废弃
32
+ * @deprecated
33
+ */
34
+ export const globalStore: VxeGlobalStore
14
35
 
15
36
  declare module '@vxe-ui/core' {
16
37
  export interface VxeUIExport {
@@ -23,7 +44,16 @@ declare module '@vxe-ui/core' {
23
44
  saveFile: VxeUploadDefines.SaveFileFunction
24
45
  readFile: VxeUploadDefines.ReadFileFunction
25
46
 
26
- use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUI
47
+ /**
48
+ * 已废弃,请使用 setConfig
49
+ * @deprecated
50
+ */
51
+ config: typeof setConfig
52
+ /**
53
+ * 已废弃,请使用 setConfig
54
+ * @deprecated
55
+ */
56
+ setup: typeof setConfig
27
57
  /**
28
58
  * 请使用 getI18n
29
59
  * @deprecated
@@ -33,6 +63,11 @@ declare module '@vxe-ui/core' {
33
63
  * @deprecated
34
64
  */
35
65
  _t(key: string, args?: any): string
66
+ /**
67
+ * 已废弃
68
+ * @deprecated
69
+ */
70
+ globalStore: VxeGlobalStore
36
71
  /**
37
72
  * @deprecated
38
73
  */
@@ -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