vxe-pc-ui 4.9.17 → 4.9.19

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 (58) 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/text/src/text.js +66 -39
  5. package/es/text/style.css +77 -4
  6. package/es/text/style.min.css +1 -1
  7. package/es/tooltip/src/tooltip.js +81 -12
  8. package/es/tooltip/style.css +8 -5
  9. package/es/tooltip/style.min.css +1 -1
  10. package/es/ui/index.js +6 -2
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-text/style.css +77 -4
  13. package/es/vxe-text/style.min.css +1 -1
  14. package/es/vxe-tooltip/style.css +8 -5
  15. package/es/vxe-tooltip/style.min.css +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/index.umd.js +167 -55
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/text/src/text.js +72 -41
  23. package/lib/text/src/text.min.js +1 -1
  24. package/lib/text/style/style.css +77 -4
  25. package/lib/text/style/style.min.css +1 -1
  26. package/lib/tooltip/src/tooltip.js +87 -11
  27. package/lib/tooltip/src/tooltip.min.js +1 -1
  28. package/lib/tooltip/style/style.css +8 -5
  29. package/lib/tooltip/style/style.min.css +1 -1
  30. package/lib/ui/index.js +6 -2
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/lib/vxe-text/style/style.css +77 -4
  35. package/lib/vxe-text/style/style.min.css +1 -1
  36. package/lib/vxe-tooltip/style/style.css +8 -5
  37. package/lib/vxe-tooltip/style/style.min.css +1 -1
  38. package/package.json +1 -1
  39. package/packages/text/src/text.ts +70 -39
  40. package/packages/tooltip/src/tooltip.ts +90 -17
  41. package/packages/ui/index.ts +5 -1
  42. package/styles/components/text.scss +21 -6
  43. package/styles/components/tooltip.scss +8 -5
  44. package/types/components/table.d.ts +10 -4
  45. package/types/components/text.d.ts +12 -5
  46. package/types/components/tooltip.d.ts +12 -0
  47. /package/es/icon/{iconfont.1757125817990.ttf → iconfont.1757242939473.ttf} +0 -0
  48. /package/es/icon/{iconfont.1757125817990.woff → iconfont.1757242939473.woff} +0 -0
  49. /package/es/icon/{iconfont.1757125817990.woff2 → iconfont.1757242939473.woff2} +0 -0
  50. /package/es/{iconfont.1757125817990.ttf → iconfont.1757242939473.ttf} +0 -0
  51. /package/es/{iconfont.1757125817990.woff → iconfont.1757242939473.woff} +0 -0
  52. /package/es/{iconfont.1757125817990.woff2 → iconfont.1757242939473.woff2} +0 -0
  53. /package/lib/icon/style/{iconfont.1757125817990.ttf → iconfont.1757242939473.ttf} +0 -0
  54. /package/lib/icon/style/{iconfont.1757125817990.woff → iconfont.1757242939473.woff} +0 -0
  55. /package/lib/icon/style/{iconfont.1757125817990.woff2 → iconfont.1757242939473.woff2} +0 -0
  56. /package/lib/{iconfont.1757125817990.ttf → iconfont.1757242939473.ttf} +0 -0
  57. /package/lib/{iconfont.1757125817990.woff → iconfont.1757242939473.woff} +0 -0
  58. /package/lib/{iconfont.1757125817990.woff2 → iconfont.1757242939473.woff2} +0 -0
@@ -23,20 +23,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
23
23
  type: Boolean,
24
24
  default: () => (0, _ui.getConfig)().text.clickToCopy
25
25
  },
26
- copyIcon: {
27
- type: String,
28
- default: () => (0, _ui.getConfig)().text.copyIcon
29
- },
30
- copyLayout: {
31
- type: String,
32
- default: () => (0, _ui.getConfig)().text.copyLayout
33
- },
26
+ copyConfig: Object,
34
27
  size: {
35
28
  type: String,
36
29
  default: () => (0, _ui.getConfig)().text.size || (0, _ui.getConfig)().size
37
30
  }
38
31
  },
39
- emits: ['click', 'prefix-click', 'suffix-click'],
32
+ emits: ['click', 'dblclick', 'prefix-click', 'suffix-click', 'copy-success', 'copy-error'],
40
33
  setup(props, context) {
41
34
  const {
42
35
  emit,
@@ -49,37 +42,61 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
49
42
  const refElem = (0, _vue.ref)();
50
43
  const refContentElem = (0, _vue.ref)();
51
44
  const reactData = (0, _vue.reactive)({});
45
+ const computeCopyOpts = (0, _vue.computed)(() => {
46
+ return Object.assign({}, (0, _ui.getConfig)().text.copyConfig, props.copyConfig);
47
+ });
52
48
  const refMaps = {
53
49
  refElem
54
50
  };
55
51
  const computeMaps = {};
56
- const clickIconEvent = () => {
52
+ const handleCopy = evnt => {
57
53
  const {
58
- content,
59
- clickToCopy
54
+ content
60
55
  } = props;
61
- if (clickToCopy) {
62
- const contentEl = refContentElem.value;
63
- const copyVal = (contentEl ? contentEl.textContent : '') || content;
64
- if (copyVal) {
65
- if (_ui.VxeUI.clipboard.copy(copyVal)) {
66
- if (_ui.VxeUI.modal) {
67
- _ui.VxeUI.modal.message({
68
- content: (0, _ui.getI18n)('vxe.text.copySuccess'),
69
- status: 'success'
70
- });
71
- }
72
- } else {
73
- if (_ui.VxeUI.modal) {
74
- _ui.VxeUI.modal.message({
75
- content: (0, _ui.getI18n)('vxe.text.copyError'),
76
- status: 'error'
77
- });
78
- }
56
+ const copyOpts = computeCopyOpts.value;
57
+ const {
58
+ showMessage
59
+ } = copyOpts;
60
+ const contentEl = refContentElem.value;
61
+ const copyVal = (contentEl ? contentEl.textContent : '') || content;
62
+ if (copyVal) {
63
+ if (_ui.VxeUI.clipboard.copy(copyVal)) {
64
+ if (showMessage && _ui.VxeUI.modal) {
65
+ _ui.VxeUI.modal.message({
66
+ content: (0, _ui.getI18n)('vxe.text.copySuccess'),
67
+ status: 'success'
68
+ });
69
+ }
70
+ dispatchEvent('copy-success', {}, evnt);
71
+ } else {
72
+ if (showMessage && _ui.VxeUI.modal) {
73
+ _ui.VxeUI.modal.message({
74
+ content: (0, _ui.getI18n)('vxe.text.copyError'),
75
+ status: 'error'
76
+ });
79
77
  }
78
+ dispatchEvent('copy-error', {}, evnt);
80
79
  }
81
80
  }
82
81
  };
82
+ const clickIconEvent = evnt => {
83
+ const {
84
+ clickToCopy
85
+ } = props;
86
+ const copyOpts = computeCopyOpts.value;
87
+ if (clickToCopy && copyOpts.trigger !== 'dblclick') {
88
+ handleCopy(evnt);
89
+ }
90
+ };
91
+ const dblclickIconEvent = evnt => {
92
+ const {
93
+ clickToCopy
94
+ } = props;
95
+ const copyOpts = computeCopyOpts.value;
96
+ if (clickToCopy && copyOpts.trigger === 'dblclick') {
97
+ handleCopy(evnt);
98
+ }
99
+ };
83
100
  const $xeText = {
84
101
  xID,
85
102
  props,
@@ -104,6 +121,14 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
104
121
  dispatchEvent('click', {}, evnt);
105
122
  }
106
123
  };
124
+ const dblclickEvent = evnt => {
125
+ const {
126
+ loading
127
+ } = props;
128
+ if (!loading) {
129
+ dispatchEvent('dblclick', {}, evnt);
130
+ }
131
+ };
107
132
  const prefixEvent = evnt => {
108
133
  const {
109
134
  loading
@@ -123,15 +148,20 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
123
148
  const textPrivateMethods = {};
124
149
  Object.assign($xeText, textMethods, textPrivateMethods);
125
150
  const renderCopyIcon = () => {
151
+ const copyOpts = computeCopyOpts.value;
126
152
  const {
127
- copyIcon
128
- } = props;
153
+ icon,
154
+ status
155
+ } = copyOpts;
129
156
  return (0, _vue.h)('span', {
130
157
  key: 'ci',
131
- class: 'vxe-text--copy-icon',
132
- onClick: clickIconEvent
158
+ class: ['vxe-text--copy-icon', {
159
+ [`theme--${status}`]: status
160
+ }],
161
+ onClick: clickIconEvent,
162
+ onDblclick: dblclickIconEvent
133
163
  }, [(0, _vue.h)('i', {
134
- class: copyIcon || (0, _ui.getIcon)().TEXT_COPY
164
+ class: icon || (0, _ui.getIcon)().TEXT_COPY
135
165
  })]);
136
166
  };
137
167
  const renderContent = () => {
@@ -141,13 +171,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
141
171
  prefixIcon,
142
172
  suffixIcon,
143
173
  clickToCopy,
144
- content,
145
- copyLayout
174
+ content
146
175
  } = props;
176
+ const copyOpts = computeCopyOpts.value;
147
177
  const defaultSlot = slots.default;
148
178
  const prefixIconSlot = slots.prefixIcon || slots['prefix-icon'] || slots.icon;
149
179
  const suffixIconSlot = slots.suffixIcon || slots['suffix-icon'];
150
- const copyToRight = copyLayout === 'right';
180
+ const copyToRight = copyOpts.layout === 'right';
151
181
  const contVNs = [];
152
182
  if (loading) {
153
183
  contVNs.push((0, _vue.h)('span', {
@@ -171,7 +201,9 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
171
201
  contVNs.push((0, _vue.h)('span', {
172
202
  key: 'ct',
173
203
  ref: refContentElem,
174
- class: 'vxe-text--content'
204
+ class: 'vxe-text--content',
205
+ onClick: clickEvent,
206
+ onDblclick: dblclickEvent
175
207
  }, defaultSlot ? defaultSlot({}) : _xeUtils.default.toValueString(content)));
176
208
  if (suffixIcon) {
177
209
  contVNs.push((0, _vue.h)('span', {
@@ -203,8 +235,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
203
235
  [`theme--${status}`]: status,
204
236
  'is--copy': clickToCopy,
205
237
  'is--loading': loading
206
- }],
207
- onClick: clickEvent
238
+ }]
208
239
  }, renderContent());
209
240
  };
210
241
  $xeText.renderVN = renderVN;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeText",props:{status:String,title:[String,Number],icon:String,prefixIcon:String,suffixIcon:String,loading:Boolean,content:[String,Number],clickToCopy:{type:Boolean,default:()=>(0,_ui.getConfig)().text.clickToCopy},copyIcon:{type:String,default:()=>(0,_ui.getConfig)().text.copyIcon},copyLayout:{type:String,default:()=>(0,_ui.getConfig)().text.copyLayout},size:{type:String,default:()=>(0,_ui.getConfig)().text.size||(0,_ui.getConfig)().size}},emits:["click","prefix-click","suffix-click"],setup(p,e){const{emit:o,slots:x}=e;var t=_xeUtils.default.uniqueId();const n=(0,_ui.useSize)(p)["computeSize"],u=(0,_vue.ref)(),f=(0,_vue.ref)();var i=(0,_vue.reactive)({});const c={refElem:u},s={},r=()=>{var{content:e,clickToCopy:t}=p;t&&(t=((t=f.value)?t.textContent:"")||e)&&(_ui.VxeUI.clipboard.copy(t)?_ui.VxeUI.modal&&_ui.VxeUI.modal.message({content:(0,_ui.getI18n)("vxe.text.copySuccess"),status:"success"}):_ui.VxeUI.modal&&_ui.VxeUI.modal.message({content:(0,_ui.getI18n)("vxe.text.copyError"),status:"error"}))},a={xID:t,props:p,context:e,reactData:i,getRefMaps:()=>c,getComputeMaps:()=>s},l=(e,t,i)=>{o(e,(0,_ui.createEvent)(i,{$text:a},t))};t={dispatchEvent:l};const _=e=>{var t=p["loading"];t||l("click",{},e)},v=e=>{var t=p["loading"];t||l("prefix-click",{},e)},g=e=>{var t=p["loading"];t||l("suffix-click",{},e)};Object.assign(a,t,{});const d=()=>{var e=p["copyIcon"];return(0,_vue.h)("span",{key:"ci",class:"vxe-text--copy-icon",onClick:r},[(0,_vue.h)("i",{class:e||(0,_ui.getIcon)().TEXT_COPY})])};return a.renderVN=()=>{var{loading:e,status:t,title:i,clickToCopy:o}=p,c=n.value;return(0,_vue.h)("span",{ref:u,title:i,class:["vxe-text",{["size--"+c]:c,["theme--"+t]:t,"is--copy":o,"is--loading":e}],onClick:_},(()=>{var{loading:e,icon:t,prefixIcon:i,suffixIcon:o,clickToCopy:c,content:n,copyLayout:u}=p,s=x.default,r=x.prefixIcon||x["prefix-icon"]||x.icon,a=x.suffixIcon||x["suffix-icon"],u="right"===u,l=[];return e?l.push((0,_vue.h)("span",{key:"lg",class:"vxe-text--loading"},[(0,_vue.h)("i",{class:(0,_ui.getIcon)().TEXT_LOADING})])):c&&!u&&l.push(d()),(i||t)&&l.push((0,_vue.h)("span",{key:"si",class:"vxe-text--prefix-icon",onClick:v},r?r({}):[(0,_vue.h)("i",{class:i||t})])),l.push((0,_vue.h)("span",{key:"ct",ref:f,class:"vxe-text--content"},s?s({}):_xeUtils.default.toValueString(n))),o&&l.push((0,_vue.h)("span",{key:"si",class:"vxe-text--suffix-icon",onClick:g},a?a({}):[(0,_vue.h)("i",{class:o})])),c&&u&&!e&&l.push(d()),l})())},a},render(){return this.renderVN()}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeText",props:{status:String,title:[String,Number],icon:String,prefixIcon:String,suffixIcon:String,loading:Boolean,content:[String,Number],clickToCopy:{type:Boolean,default:()=>(0,_ui.getConfig)().text.clickToCopy},copyConfig:Object,size:{type:String,default:()=>(0,_ui.getConfig)().text.size||(0,_ui.getConfig)().size}},emits:["click","dblclick","prefix-click","suffix-click","copy-success","copy-error"],setup(p,e){const{emit:c,slots:x}=e;var t=_xeUtils.default.uniqueId();const s=(0,_ui.useSize)(p)["computeSize"],u=(0,_vue.ref)(),v=(0,_vue.ref)();var i=(0,_vue.reactive)({});const f=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().text.copyConfig,p.copyConfig)),o={refElem:u},n={},r=e=>{var t=p["content"],i=f.value["showMessage"],c=v.value,c=(c?c.textContent:"")||t;c&&(_ui.VxeUI.clipboard.copy(c)?(i&&_ui.VxeUI.modal&&_ui.VxeUI.modal.message({content:(0,_ui.getI18n)("vxe.text.copySuccess"),status:"success"}),_("copy-success",{},e)):(i&&_ui.VxeUI.modal&&_ui.VxeUI.modal.message({content:(0,_ui.getI18n)("vxe.text.copyError"),status:"error"}),_("copy-error",{},e)))},l=e=>{var t=p["clickToCopy"],i=f.value;t&&"dblclick"!==i.trigger&&r(e)},a=e=>{var t=p["clickToCopy"],i=f.value;t&&"dblclick"===i.trigger&&r(e)},g={xID:t,props:p,context:e,reactData:i,getRefMaps:()=>o,getComputeMaps:()=>n},_=(e,t,i)=>{c(e,(0,_ui.createEvent)(i,{$text:g},t))};t={dispatchEvent:_};const d=e=>{var t=p["loading"];t||_("click",{},e)},k=e=>{var t=p["loading"];t||_("dblclick",{},e)},y=e=>{var t=p["loading"];t||_("prefix-click",{},e)},h=e=>{var t=p["loading"];t||_("suffix-click",{},e)};Object.assign(g,t,{});const m=()=>{var{icon:e,status:t}=f.value;return(0,_vue.h)("span",{key:"ci",class:["vxe-text--copy-icon",{["theme--"+t]:t}],onClick:l,onDblclick:a},[(0,_vue.h)("i",{class:e||(0,_ui.getIcon)().TEXT_COPY})])};return g.renderVN=()=>{var{loading:e,status:t,title:i,clickToCopy:c}=p,o=s.value;return(0,_vue.h)("span",{ref:u,title:i,class:["vxe-text",{["size--"+o]:o,["theme--"+t]:t,"is--copy":c,"is--loading":e}]},(()=>{var{loading:e,icon:t,prefixIcon:i,suffixIcon:c,clickToCopy:o,content:s}=p,u=f.value,n=x.default,r=x.prefixIcon||x["prefix-icon"]||x.icon,l=x.suffixIcon||x["suffix-icon"],u="right"===u.layout,a=[];return e?a.push((0,_vue.h)("span",{key:"lg",class:"vxe-text--loading"},[(0,_vue.h)("i",{class:(0,_ui.getIcon)().TEXT_LOADING})])):o&&!u&&a.push(m()),(i||t)&&a.push((0,_vue.h)("span",{key:"si",class:"vxe-text--prefix-icon",onClick:y},r?r({}):[(0,_vue.h)("i",{class:i||t})])),a.push((0,_vue.h)("span",{key:"ct",ref:v,class:"vxe-text--content",onClick:d,onDblclick:k},n?n({}):_xeUtils.default.toValueString(s))),c&&a.push((0,_vue.h)("span",{key:"si",class:"vxe-text--suffix-icon",onClick:h},l?l({}):[(0,_vue.h)("i",{class:c})])),o&&u&&!e&&a.push(m()),a})())},g},render(){return this.renderVN()}});
@@ -20,18 +20,91 @@
20
20
  .vxe-text.theme--error {
21
21
  color: var(--vxe-ui-status-error-color);
22
22
  }
23
- .vxe-text.is--copy > .vxe-text--copy-icon {
23
+
24
+ .vxe-text--copy-icon {
24
25
  cursor: pointer;
25
26
  }
26
- .vxe-text.is--copy > .vxe-text--copy-icon:focus {
27
+ .vxe-text--copy-icon:focus {
27
28
  color: var(--vxe-ui-font-darken-color);
28
29
  }
29
- .vxe-text.is--copy > .vxe-text--copy-icon:hover {
30
+ .vxe-text--copy-icon:hover {
31
+ color: var(--vxe-ui-font-primary-lighten-color);
32
+ }
33
+ .vxe-text--copy-icon:active {
34
+ color: var(--vxe-ui-font-primary-darken-color);
35
+ }
36
+ .vxe-text--copy-icon.theme--primary {
37
+ color: var(--vxe-ui-font-primary-color);
38
+ }
39
+ .vxe-text--copy-icon.theme--primary:focus {
40
+ color: var(--vxe-ui-font-primary-darken-color);
41
+ }
42
+ .vxe-text--copy-icon.theme--primary:hover {
30
43
  color: var(--vxe-ui-font-primary-lighten-color);
31
44
  }
32
- .vxe-text.is--copy > .vxe-text--copy-icon:active {
45
+ .vxe-text--copy-icon.theme--primary:active {
33
46
  color: var(--vxe-ui-font-primary-darken-color);
34
47
  }
48
+ .vxe-text--copy-icon.theme--success {
49
+ color: var(--vxe-ui-status-success-color);
50
+ }
51
+ .vxe-text--copy-icon.theme--success:focus {
52
+ color: var(--vxe-ui-status-success-darken-color);
53
+ }
54
+ .vxe-text--copy-icon.theme--success:hover {
55
+ color: var(--vxe-ui-status-success-lighten-color);
56
+ }
57
+ .vxe-text--copy-icon.theme--success:active {
58
+ color: var(--vxe-ui-status-success-darken-color);
59
+ }
60
+ .vxe-text--copy-icon.theme--info {
61
+ color: var(--vxe-ui-status-info-color);
62
+ }
63
+ .vxe-text--copy-icon.theme--info:focus {
64
+ color: var(--vxe-ui-status-info-darken-color);
65
+ }
66
+ .vxe-text--copy-icon.theme--info:hover {
67
+ color: var(--vxe-ui-status-info-lighten-color);
68
+ }
69
+ .vxe-text--copy-icon.theme--info:active {
70
+ color: var(--vxe-ui-status-info-darken-color);
71
+ }
72
+ .vxe-text--copy-icon.theme--warning {
73
+ color: var(--vxe-ui-status-warning-color);
74
+ }
75
+ .vxe-text--copy-icon.theme--warning:focus {
76
+ color: var(--vxe-ui-status-warning-darken-color);
77
+ }
78
+ .vxe-text--copy-icon.theme--warning:hover {
79
+ color: var(--vxe-ui-status-warning-lighten-color);
80
+ }
81
+ .vxe-text--copy-icon.theme--warning:active {
82
+ color: var(--vxe-ui-status-warning-darken-color);
83
+ }
84
+ .vxe-text--copy-icon.theme--danger {
85
+ color: var(--vxe-ui-status-danger-color);
86
+ }
87
+ .vxe-text--copy-icon.theme--danger:focus {
88
+ color: var(--vxe-ui-status-danger-darken-color);
89
+ }
90
+ .vxe-text--copy-icon.theme--danger:hover {
91
+ color: var(--vxe-ui-status-danger-lighten-color);
92
+ }
93
+ .vxe-text--copy-icon.theme--danger:active {
94
+ color: var(--vxe-ui-status-danger-darken-color);
95
+ }
96
+ .vxe-text--copy-icon.theme--error {
97
+ color: var(--vxe-ui-status-error-color);
98
+ }
99
+ .vxe-text--copy-icon.theme--error:focus {
100
+ color: var(--vxe-ui-status-error-darken-color);
101
+ }
102
+ .vxe-text--copy-icon.theme--error:hover {
103
+ color: var(--vxe-ui-status-error-lighten-color);
104
+ }
105
+ .vxe-text--copy-icon.theme--error:active {
106
+ color: var(--vxe-ui-status-error-darken-color);
107
+ }
35
108
 
36
109
  .vxe-text--loading,
37
110
  .vxe-text--prefix-icon,
@@ -1 +1 @@
1
- .vxe-text{position:relative;color:var(--vxe-ui-font-color)}.vxe-text.theme--primary{color:var(--vxe-ui-font-primary-color)}.vxe-text.theme--success{color:var(--vxe-ui-status-success-color)}.vxe-text.theme--info{color:var(--vxe-ui-status-info-color)}.vxe-text.theme--warning{color:var(--vxe-ui-status-warning-color)}.vxe-text.theme--danger{color:var(--vxe-ui-status-danger-color)}.vxe-text.theme--error{color:var(--vxe-ui-status-error-color)}.vxe-text.is--copy>.vxe-text--copy-icon{cursor:pointer}.vxe-text.is--copy>.vxe-text--copy-icon:focus{color:var(--vxe-ui-font-darken-color)}.vxe-text.is--copy>.vxe-text--copy-icon:hover{color:var(--vxe-ui-font-primary-lighten-color)}.vxe-text.is--copy>.vxe-text--copy-icon:active{color:var(--vxe-ui-font-primary-darken-color)}.vxe-text--copy-icon,.vxe-text--loading,.vxe-text--prefix-icon,.vxe-text--suffix-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-text>span{padding-right:.1em}.vxe-text>span:last-child{padding-right:0}.vxe-text.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-text.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-text.size--mini{font-size:var(--vxe-ui-font-size-mini)}
1
+ .vxe-text{position:relative;color:var(--vxe-ui-font-color)}.vxe-text.theme--primary{color:var(--vxe-ui-font-primary-color)}.vxe-text.theme--success{color:var(--vxe-ui-status-success-color)}.vxe-text.theme--info{color:var(--vxe-ui-status-info-color)}.vxe-text.theme--warning{color:var(--vxe-ui-status-warning-color)}.vxe-text.theme--danger{color:var(--vxe-ui-status-danger-color)}.vxe-text.theme--error{color:var(--vxe-ui-status-error-color)}.vxe-text--copy-icon{cursor:pointer}.vxe-text--copy-icon:focus{color:var(--vxe-ui-font-darken-color)}.vxe-text--copy-icon:hover{color:var(--vxe-ui-font-primary-lighten-color)}.vxe-text--copy-icon:active{color:var(--vxe-ui-font-primary-darken-color)}.vxe-text--copy-icon.theme--primary{color:var(--vxe-ui-font-primary-color)}.vxe-text--copy-icon.theme--primary:focus{color:var(--vxe-ui-font-primary-darken-color)}.vxe-text--copy-icon.theme--primary:hover{color:var(--vxe-ui-font-primary-lighten-color)}.vxe-text--copy-icon.theme--primary:active{color:var(--vxe-ui-font-primary-darken-color)}.vxe-text--copy-icon.theme--success{color:var(--vxe-ui-status-success-color)}.vxe-text--copy-icon.theme--success:focus{color:var(--vxe-ui-status-success-darken-color)}.vxe-text--copy-icon.theme--success:hover{color:var(--vxe-ui-status-success-lighten-color)}.vxe-text--copy-icon.theme--success:active{color:var(--vxe-ui-status-success-darken-color)}.vxe-text--copy-icon.theme--info{color:var(--vxe-ui-status-info-color)}.vxe-text--copy-icon.theme--info:focus{color:var(--vxe-ui-status-info-darken-color)}.vxe-text--copy-icon.theme--info:hover{color:var(--vxe-ui-status-info-lighten-color)}.vxe-text--copy-icon.theme--info:active{color:var(--vxe-ui-status-info-darken-color)}.vxe-text--copy-icon.theme--warning{color:var(--vxe-ui-status-warning-color)}.vxe-text--copy-icon.theme--warning:focus{color:var(--vxe-ui-status-warning-darken-color)}.vxe-text--copy-icon.theme--warning:hover{color:var(--vxe-ui-status-warning-lighten-color)}.vxe-text--copy-icon.theme--warning:active{color:var(--vxe-ui-status-warning-darken-color)}.vxe-text--copy-icon.theme--danger{color:var(--vxe-ui-status-danger-color)}.vxe-text--copy-icon.theme--danger:focus{color:var(--vxe-ui-status-danger-darken-color)}.vxe-text--copy-icon.theme--danger:hover{color:var(--vxe-ui-status-danger-lighten-color)}.vxe-text--copy-icon.theme--danger:active{color:var(--vxe-ui-status-danger-darken-color)}.vxe-text--copy-icon.theme--error{color:var(--vxe-ui-status-error-color)}.vxe-text--copy-icon.theme--error:focus{color:var(--vxe-ui-status-error-darken-color)}.vxe-text--copy-icon.theme--error:hover{color:var(--vxe-ui-status-error-lighten-color)}.vxe-text--copy-icon.theme--error:active{color:var(--vxe-ui-status-error-darken-color)}.vxe-text--copy-icon,.vxe-text--loading,.vxe-text--prefix-icon,.vxe-text--suffix-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-text>span{padding-right:.1em}.vxe-text>span:last-child{padding-right:0}.vxe-text.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-text.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-text.size--mini{font-size:var(--vxe-ui-font-size-mini)}
@@ -36,6 +36,30 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
36
36
  useHTML: Boolean,
37
37
  zIndex: [String, Number],
38
38
  popupClassName: [String, Function],
39
+ width: {
40
+ type: [String, Number],
41
+ default: () => (0, _ui.getConfig)().tooltip.Width
42
+ },
43
+ height: {
44
+ type: [String, Number],
45
+ default: () => (0, _ui.getConfig)().tooltip.height
46
+ },
47
+ minWidth: {
48
+ type: [String, Number],
49
+ default: () => (0, _ui.getConfig)().tooltip.minWidth
50
+ },
51
+ minHeight: {
52
+ type: [String, Number],
53
+ default: () => (0, _ui.getConfig)().tooltip.minHeight
54
+ },
55
+ maxWidth: {
56
+ type: [String, Number],
57
+ default: () => (0, _ui.getConfig)().tooltip.maxWidth
58
+ },
59
+ maxHeight: {
60
+ type: [String, Number],
61
+ default: () => (0, _ui.getConfig)().tooltip.maxHeight
62
+ },
39
63
  isArrow: {
40
64
  type: Boolean,
41
65
  default: () => (0, _ui.getConfig)().tooltip.isArrow
@@ -79,6 +103,37 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
79
103
  });
80
104
  const internalData = {};
81
105
  const refElem = (0, _vue.ref)();
106
+ const contentWrapperfElem = (0, _vue.ref)();
107
+ const computeWrapperStyle = (0, _vue.computed)(() => {
108
+ const {
109
+ width,
110
+ height,
111
+ minHeight,
112
+ minWidth,
113
+ maxHeight,
114
+ maxWidth
115
+ } = props;
116
+ const stys = {};
117
+ if (width) {
118
+ stys.width = (0, _dom.toCssUnit)(width);
119
+ }
120
+ if (height) {
121
+ stys.height = (0, _dom.toCssUnit)(height);
122
+ }
123
+ if (minWidth) {
124
+ stys.minWidth = (0, _dom.toCssUnit)(minWidth);
125
+ }
126
+ if (minHeight) {
127
+ stys.minHeight = (0, _dom.toCssUnit)(minHeight);
128
+ }
129
+ if (maxWidth) {
130
+ stys.maxWidth = (0, _dom.toCssUnit)(maxWidth);
131
+ }
132
+ if (maxHeight) {
133
+ stys.maxHeight = (0, _dom.toCssUnit)(maxHeight);
134
+ }
135
+ return stys;
136
+ });
82
137
  const refMaps = {
83
138
  refElem
84
139
  };
@@ -107,6 +162,9 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
107
162
  left
108
163
  } = (0, _dom.getAbsolutePos)(tipTarget);
109
164
  const el = refElem.value;
165
+ if (!el) {
166
+ return;
167
+ }
110
168
  const marginSize = 6;
111
169
  const offsetHeight = el.offsetHeight;
112
170
  const offsetWidth = el.offsetWidth;
@@ -301,6 +359,9 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
301
359
  reactData.tipActive = !!active;
302
360
  }
303
361
  };
362
+ const wheelEvent = evnt => {
363
+ evnt.stopPropagation();
364
+ };
304
365
  Object.assign($xeTooltip, tooltipMethods);
305
366
  const renderContent = () => {
306
367
  const {
@@ -309,24 +370,29 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
309
370
  const {
310
371
  tipContent
311
372
  } = reactData;
373
+ const wrapperStyle = computeWrapperStyle.value;
312
374
  const contentSlot = slots.content;
375
+ const contVNs = [];
313
376
  if (contentSlot) {
314
- return (0, _vue.h)('div', {
315
- key: 1,
316
- class: 'vxe-tooltip--content'
317
- }, (0, _vn.getSlotVNs)(contentSlot({})));
318
- }
319
- if (useHTML) {
320
- return (0, _vue.h)('div', {
377
+ contVNs.push((0, _vue.h)('div', {
378
+ key: 1
379
+ }, (0, _vn.getSlotVNs)(contentSlot({}))));
380
+ } else if (useHTML) {
381
+ contVNs.push((0, _vue.h)('div', {
321
382
  key: 2,
322
- class: 'vxe-tooltip--content',
323
383
  innerHTML: tipContent
324
- });
384
+ }));
385
+ } else {
386
+ contVNs.push((0, _vue.h)('span', {
387
+ key: 3
388
+ }, `${tipContent}`));
325
389
  }
326
390
  return (0, _vue.h)('div', {
327
391
  key: 3,
328
- class: 'vxe-tooltip--content'
329
- }, `${tipContent}`);
392
+ ref: contentWrapperfElem,
393
+ class: 'vxe-tooltip--content',
394
+ style: wrapperStyle
395
+ }, contVNs);
330
396
  };
331
397
  const renderVN = () => {
332
398
  const {
@@ -384,6 +450,12 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
384
450
  reactData.isUpdate = false;
385
451
  });
386
452
  (0, _vue.onMounted)(() => {
453
+ const contentWrapperfEl = contentWrapperfElem.value;
454
+ if (contentWrapperfEl) {
455
+ contentWrapperfEl.addEventListener('wheel', wheelEvent, {
456
+ passive: false
457
+ });
458
+ }
387
459
  (0, _vue.nextTick)(() => {
388
460
  const {
389
461
  trigger,
@@ -432,6 +504,10 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
432
504
  target.onmouseleave = null;
433
505
  target.onclick = null;
434
506
  }
507
+ const contentWrapperfEl = contentWrapperfElem.value;
508
+ if (contentWrapperfEl) {
509
+ contentWrapperfEl.removeEventListener('wheel', wheelEvent);
510
+ }
435
511
  if (wrapperElem) {
436
512
  const parentNode = wrapperElem.parentNode;
437
513
  if (parentNode) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_utils=require("../../ui/src/utils"),_dom=require("../../ui/src/dom"),_vn=require("../../ui/src/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeTooltip",props:{modelValue:Boolean,size:{type:String,default:()=>(0,_ui.getConfig)().tooltip.size||(0,_ui.getConfig)().size},selector:String,trigger:{type:String,default:()=>(0,_ui.getConfig)().tooltip.trigger||"hover"},theme:{type:String,default:()=>(0,_ui.getConfig)().tooltip.theme||"dark"},content:{type:[String,Number],default:null},useHTML:Boolean,zIndex:[String,Number],popupClassName:[String,Function],isArrow:{type:Boolean,default:()=>(0,_ui.getConfig)().tooltip.isArrow},enterable:{type:Boolean,default:()=>(0,_ui.getConfig)().tooltip.enterable},enterDelay:{type:Number,default:()=>(0,_ui.getConfig)().tooltip.enterDelay},leaveDelay:{type:Number,default:()=>(0,_ui.getConfig)().tooltip.leaveDelay}},emits:["update:modelValue"],setup(p,e){const{slots:c,emit:r}=e;var t=_xeUtils.default.uniqueId();const v=(0,_ui.useSize)(p)["computeSize"],d=(0,_vue.reactive)({target:null,isUpdate:!1,visible:!1,tipContent:"",tipActive:!1,tipTarget:null,tipZindex:0,tipStore:{style:{},placement:"",arrowStyle:{}}}),o={},f=(0,_vue.ref)(),i={refElem:f},g={xID:t,props:p,context:e,reactData:d,internalData:o,getRefMaps:()=>i};let l={};const n=()=>{var{tipTarget:i,tipStore:r}=d;if(i){var{scrollTop:l,scrollLeft:o,visibleWidth:n}=(0,_dom.getDomNode)(),{top:a,left:u}=(0,_dom.getAbsolutePos)(i),s=f.value,p=s.offsetHeight,s=s.offsetWidth;let e=u,t=a-p-6;(e=Math.max(6,u+Math.floor((i.offsetWidth-s)/2)))+s+6>o+n&&(e=o+n-s-6),a-p<l+6&&(r.placement="bottom",t=a+i.offsetHeight+6),r.style.top=t+"px",r.style.left=e+"px",r.arrowStyle.left=u-e+i.offsetWidth/2+"px"}},a=e=>{e!==d.visible&&(d.visible=e,d.isUpdate=!0,r("update:modelValue",e))},u=()=>{d.tipZindex<(0,_utils.getLastZIndex)()&&(d.tipZindex=(0,_utils.nextZIndex)())},s=()=>{d.visible?l.close():S(d.target||C(),p.content)},_=()=>{S(d.target||C(),p.content)},m=()=>{var{trigger:e,enterable:t,leaveDelay:i}=p;d.tipActive=!1,t&&"hover"===e?setTimeout(()=>{d.tipActive||l.close()},i):l.close()},x=()=>{d.tipActive=!0},y=()=>{var{trigger:e,enterable:t,leaveDelay:i}=p;d.tipActive=!1,t&&"hover"===e&&setTimeout(()=>{d.tipActive||l.close()},i)},h=()=>{var e=d["tipStore"],t=f.value;return t&&!t.parentNode&&document.body.appendChild(t),a(!0),u(),e.placement="top",e.style={width:"auto",left:0,top:0,zIndex:p.zIndex||d.tipZindex},e.arrowStyle={left:"50%"},l.updatePlacement()},b=()=>{o.showDelayTip=_xeUtils.default.debounce(()=>{d.tipActive&&h()},p.enterDelay,{leading:!1,trailing:!0})},S=(e,t)=>{var i=c.content;if((i||""!==t&&!_xeUtils.default.eqNull(t))&&e){var i=o["showDelayTip"],{trigger:r,enterDelay:l}=p;if(d.tipActive=!0,d.tipTarget=e,d.tipContent=t,!l||"hover"!==r)return h();i&&i()}return(0,_vue.nextTick)()},C=()=>{var e=p["selector"];if(e){if(_xeUtils.default.isElement(e))return e;if(_xeUtils.default.isString(e))return document.querySelector(e)}return null};l={dispatchEvent(e,t,i){r(e,(0,_ui.createEvent)(i,{$tooltip:g},t))},open(e,t){return S(e||d.target||C(),t)},close(){return d.tipTarget=null,d.tipActive=!1,Object.assign(d.tipStore,{style:{},placement:"",arrowStyle:null}),a(!1),(0,_vue.nextTick)()},toVisible(e,t){return S(e,t)},updatePlacement(){return(0,_vue.nextTick)().then(()=>{var e=d["tipTarget"],t=f.value;if(e&&t)return n(),(0,_vue.nextTick)().then(()=>{n()})})},isActived(){return d.tipActive},setActived(e){d.tipActive=!!e}},Object.assign(g,l);return(0,_vue.watch)(()=>p.enterDelay,()=>{b()}),(0,_vue.watch)(()=>p.content,e=>{d.tipContent=e}),(0,_vue.watch)(()=>p.modelValue,e=>{d.isUpdate||(e?S(d.target||C(),p.content):l.close()),d.isUpdate=!1}),(0,_vue.onMounted)(()=>{(0,_vue.nextTick)(()=>{var e,{trigger:t,content:i}=p;const r=f.value;if(r){const l=r.parentNode;l&&(d.tipContent=i,d.tipZindex=(0,_utils.nextZIndex)(),_xeUtils.default.arrayEach(r.children,(e,t)=>{1<t&&(l.insertBefore(e,r),d.target||(d.target=e))}),l.removeChild(r),e=d["target"],e&&("hover"===t?(e.onmouseenter=_,e.onmouseleave=m):"click"===t&&(e.onclick=s)),p.modelValue)&&S(e||C(),i)}})}),(0,_vue.onBeforeUnmount)(()=>{var e=d["target"],t=f.value;e&&(e.onmouseenter=null,e.onmouseleave=null,e.onclick=null),t&&(e=t.parentNode)&&e.removeChild(t)}),b(),g.renderVN=()=>{var{popupClassName:e,theme:t,isArrow:i,enterable:r}=p,{tipActive:l,visible:o,tipStore:n}=d,a=c.default,u=v.value;let s;return r&&(s={onMouseenter:x,onMouseleave:y}),(0,_vue.h)("div",Object.assign({ref:f,class:["vxe-tooltip--wrapper","theme--"+t,e?_xeUtils.default.isFunction(e)?e({$tooltip:g}):e:"",{["size--"+u]:u,["placement--"+n.placement]:n.placement,"is--enterable":r,"is--visible":o,"is--arrow":i,"is--active":l}],style:n.style},s),[(t=p.useHTML,e=d.tipContent,(u=c.content)?(0,_vue.h)("div",{key:1,class:"vxe-tooltip--content"},(0,_vn.getSlotVNs)(u({}))):t?(0,_vue.h)("div",{key:2,class:"vxe-tooltip--content",innerHTML:e}):(0,_vue.h)("div",{key:3,class:"vxe-tooltip--content"},""+e)),(0,_vue.h)("div",{class:"vxe-tooltip--arrow",style:n.arrowStyle}),...a?(0,_vn.getSlotVNs)(a({})):[]])},g},render(){return this.renderVN()}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_utils=require("../../ui/src/utils"),_dom=require("../../ui/src/dom"),_vn=require("../../ui/src/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeTooltip",props:{modelValue:Boolean,size:{type:String,default:()=>(0,_ui.getConfig)().tooltip.size||(0,_ui.getConfig)().size},selector:String,trigger:{type:String,default:()=>(0,_ui.getConfig)().tooltip.trigger||"hover"},theme:{type:String,default:()=>(0,_ui.getConfig)().tooltip.theme||"dark"},content:{type:[String,Number],default:null},useHTML:Boolean,zIndex:[String,Number],popupClassName:[String,Function],width:{type:[String,Number],default:()=>(0,_ui.getConfig)().tooltip.Width},height:{type:[String,Number],default:()=>(0,_ui.getConfig)().tooltip.height},minWidth:{type:[String,Number],default:()=>(0,_ui.getConfig)().tooltip.minWidth},minHeight:{type:[String,Number],default:()=>(0,_ui.getConfig)().tooltip.minHeight},maxWidth:{type:[String,Number],default:()=>(0,_ui.getConfig)().tooltip.maxWidth},maxHeight:{type:[String,Number],default:()=>(0,_ui.getConfig)().tooltip.maxHeight},isArrow:{type:Boolean,default:()=>(0,_ui.getConfig)().tooltip.isArrow},enterable:{type:Boolean,default:()=>(0,_ui.getConfig)().tooltip.enterable},enterDelay:{type:Number,default:()=>(0,_ui.getConfig)().tooltip.enterDelay},leaveDelay:{type:Number,default:()=>(0,_ui.getConfig)().tooltip.leaveDelay}},emits:["update:modelValue"],setup(p,e){const{slots:d,emit:r}=e;var t=_xeUtils.default.uniqueId();const v=(0,_ui.useSize)(p)["computeSize"],g=(0,_vue.reactive)({target:null,isUpdate:!1,visible:!1,tipContent:"",tipActive:!1,tipTarget:null,tipZindex:0,tipStore:{style:{},placement:"",arrowStyle:{}}}),n={},c=(0,_vue.ref)(),m=(0,_vue.ref)(),f=(0,_vue.computed)(()=>{var{width:e,height:t,minHeight:i,minWidth:r,maxHeight:o,maxWidth:n}=p,l={};return e&&(l.width=(0,_dom.toCssUnit)(e)),t&&(l.height=(0,_dom.toCssUnit)(t)),r&&(l.minWidth=(0,_dom.toCssUnit)(r)),i&&(l.minHeight=(0,_dom.toCssUnit)(i)),n&&(l.maxWidth=(0,_dom.toCssUnit)(n)),o&&(l.maxHeight=(0,_dom.toCssUnit)(o)),l}),i={refElem:c},_={xID:t,props:p,context:e,reactData:g,internalData:n,getRefMaps:()=>i};let o={};const l=()=>{var{tipTarget:i,tipStore:r}=g;if(i){var{scrollTop:o,scrollLeft:n,visibleWidth:l}=(0,_dom.getDomNode)(),{top:a,left:u}=(0,_dom.getAbsolutePos)(i),s=c.value;if(s){var p=s.offsetHeight,s=s.offsetWidth;let e=u,t=a-p-6;(e=Math.max(6,u+Math.floor((i.offsetWidth-s)/2)))+s+6>n+l&&(e=n+l-s-6),a-p<o+6&&(r.placement="bottom",t=a+i.offsetHeight+6),r.style.top=t+"px",r.style.left=e+"px",r.arrowStyle.left=u-e+i.offsetWidth/2+"px"}}},a=e=>{e!==g.visible&&(g.visible=e,g.isUpdate=!0,r("update:modelValue",e))},u=()=>{g.tipZindex<(0,_utils.getLastZIndex)()&&(g.tipZindex=(0,_utils.nextZIndex)())},s=()=>{g.visible?o.close():w(g.target||N(),p.content)},h=()=>{w(g.target||N(),p.content)},x=()=>{var{trigger:e,enterable:t,leaveDelay:i}=p;g.tipActive=!1,t&&"hover"===e?setTimeout(()=>{g.tipActive||o.close()},i):o.close()},y=()=>{g.tipActive=!0},b=()=>{var{trigger:e,enterable:t,leaveDelay:i}=p;g.tipActive=!1,t&&"hover"===e&&setTimeout(()=>{g.tipActive||o.close()},i)},C=()=>{var e=g["tipStore"],t=c.value;return t&&!t.parentNode&&document.body.appendChild(t),a(!0),u(),e.placement="top",e.style={width:"auto",left:0,top:0,zIndex:p.zIndex||g.tipZindex},e.arrowStyle={left:"50%"},o.updatePlacement()},S=()=>{n.showDelayTip=_xeUtils.default.debounce(()=>{g.tipActive&&C()},p.enterDelay,{leading:!1,trailing:!0})},w=(e,t)=>{var i=d.content;if((i||""!==t&&!_xeUtils.default.eqNull(t))&&e){var i=n["showDelayTip"],{trigger:r,enterDelay:o}=p;if(g.tipActive=!0,g.tipTarget=e,g.tipContent=t,!o||"hover"!==r)return C();i&&i()}return(0,_vue.nextTick)()},N=()=>{var e=p["selector"];if(e){if(_xeUtils.default.isElement(e))return e;if(_xeUtils.default.isString(e))return document.querySelector(e)}return null},T=(o={dispatchEvent(e,t,i){r(e,(0,_ui.createEvent)(i,{$tooltip:_},t))},open(e,t){return w(e||g.target||N(),t)},close(){return g.tipTarget=null,g.tipActive=!1,Object.assign(g.tipStore,{style:{},placement:"",arrowStyle:null}),a(!1),(0,_vue.nextTick)()},toVisible(e,t){return w(e,t)},updatePlacement(){return(0,_vue.nextTick)().then(()=>{var e=g["tipTarget"],t=c.value;if(e&&t)return l(),(0,_vue.nextTick)().then(()=>{l()})})},isActived(){return g.tipActive},setActived(e){g.tipActive=!!e}},e=>{e.stopPropagation()});Object.assign(_,o);return(0,_vue.watch)(()=>p.enterDelay,()=>{S()}),(0,_vue.watch)(()=>p.content,e=>{g.tipContent=e}),(0,_vue.watch)(()=>p.modelValue,e=>{g.isUpdate||(e?w(g.target||N(),p.content):o.close()),g.isUpdate=!1}),(0,_vue.onMounted)(()=>{var e=m.value;e&&e.addEventListener("wheel",T,{passive:!1}),(0,_vue.nextTick)(()=>{var e,{trigger:t,content:i}=p;const r=c.value;if(r){const o=r.parentNode;o&&(g.tipContent=i,g.tipZindex=(0,_utils.nextZIndex)(),_xeUtils.default.arrayEach(r.children,(e,t)=>{1<t&&(o.insertBefore(e,r),g.target||(g.target=e))}),o.removeChild(r),e=g["target"],e&&("hover"===t?(e.onmouseenter=h,e.onmouseleave=x):"click"===t&&(e.onclick=s)),p.modelValue)&&w(e||N(),i)}})}),(0,_vue.onBeforeUnmount)(()=>{var e=g["target"],t=c.value,e=(e&&(e.onmouseenter=null,e.onmouseleave=null,e.onclick=null),m.value);e&&e.removeEventListener("wheel",T),t&&(e=t.parentNode)&&e.removeChild(t)}),S(),_.renderVN=()=>{var{popupClassName:e,theme:t,isArrow:i,enterable:r}=p,{tipActive:o,visible:n,tipStore:l}=g,a=d.default,u=v.value;let s;return r&&(s={onMouseenter:y,onMouseleave:b}),(0,_vue.h)("div",Object.assign({ref:c,class:["vxe-tooltip--wrapper","theme--"+t,e?_xeUtils.default.isFunction(e)?e({$tooltip:_}):e:"",{["size--"+u]:u,["placement--"+l.placement]:l.placement,"is--enterable":r,"is--visible":n,"is--arrow":i,"is--active":o}],style:l.style},s),[(t=p.useHTML,e=g.tipContent,u=f.value,r=d.content,(n=[]).push(r?(0,_vue.h)("div",{key:1},(0,_vn.getSlotVNs)(r({}))):t?(0,_vue.h)("div",{key:2,innerHTML:e}):(0,_vue.h)("span",{key:3},""+e)),(0,_vue.h)("div",{key:3,ref:m,class:"vxe-tooltip--content",style:u},n)),(0,_vue.h)("div",{class:"vxe-tooltip--arrow",style:l.arrowStyle}),...a?(0,_vn.getSlotVNs)(a({})):[]])},_},render(){return this.renderVN()}});
@@ -4,9 +4,7 @@
4
4
  top: -100%;
5
5
  left: -100%;
6
6
  font-size: 12px;
7
- max-width: 600px;
8
7
  border-radius: var(--vxe-ui-base-border-radius);
9
- padding: 8px 12px;
10
8
  white-space: normal;
11
9
  word-break: break-word;
12
10
  box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
@@ -17,7 +15,7 @@
17
15
  pointer-events: none;
18
16
  }
19
17
  .vxe-tooltip--wrapper.is--visible {
20
- display: block;
18
+ display: inline-block;
21
19
  }
22
20
  .vxe-tooltip--wrapper.is--arrow .vxe-tooltip--arrow {
23
21
  display: block;
@@ -31,7 +29,12 @@
31
29
  background-color: transparent;
32
30
  }
33
31
  .vxe-tooltip--wrapper .vxe-tooltip--content {
32
+ padding: 8px 12px;
33
+ max-width: 600px;
34
+ max-height: 800px;
34
35
  white-space: pre-line;
36
+ border-radius: var(--vxe-ui-base-border-radius);
37
+ overflow: auto;
35
38
  }
36
39
  .vxe-tooltip--wrapper .vxe-tooltip--arrow {
37
40
  display: none;
@@ -63,10 +66,10 @@
63
66
  top: -6px;
64
67
  }
65
68
  .vxe-tooltip--wrapper.placement--bottom .vxe-tooltip--arrow {
66
- top: -12px;
69
+ top: -11px;
67
70
  }
68
71
  .vxe-tooltip--wrapper.placement--bottom .vxe-tooltip--arrow:before {
69
- top: -4px;
72
+ top: -3px;
70
73
  }
71
74
 
72
75
  .vxe-tooltip--wrapper.theme--light {
@@ -1 +1 @@
1
- .vxe-tooltip--wrapper{display:none;position:absolute;top:-100%;left:-100%;font-size:12px;max-width:600px;border-radius:var(--vxe-ui-base-border-radius);padding:8px 12px;white-space:normal;word-break:break-word;box-shadow:2px 2px 4px -2px rgba(0,0,0,.2);color:var(--vxe-ui-font-color);font-family:var(--vxe-ui-font-family)}.vxe-tooltip--wrapper:not(.is--enterable){pointer-events:none}.vxe-tooltip--wrapper.is--visible{display:block}.vxe-tooltip--wrapper.is--arrow .vxe-tooltip--arrow{display:block}.vxe-tooltip--wrapper.is--enterable:after{content:"";position:absolute;left:0;width:100%;height:6px;background-color:transparent}.vxe-tooltip--wrapper .vxe-tooltip--content{white-space:pre-line}.vxe-tooltip--wrapper .vxe-tooltip--arrow{display:none;position:absolute;border-color:transparent;border-width:6px;border-style:solid;left:50%;transform:translateX(-6px)}.vxe-tooltip--wrapper .vxe-tooltip--arrow:before{content:"";position:absolute;border-color:transparent;border-width:5px;border-style:solid;left:-5px}.vxe-tooltip--wrapper.placement--top.is--enterable:after{bottom:-6px}.vxe-tooltip--wrapper.placement--top .vxe-tooltip--arrow{bottom:-11px}.vxe-tooltip--wrapper.placement--top .vxe-tooltip--arrow:before{top:-7px}.vxe-tooltip--wrapper.placement--bottom.is--enterable:after{top:-6px}.vxe-tooltip--wrapper.placement--bottom .vxe-tooltip--arrow{top:-12px}.vxe-tooltip--wrapper.placement--bottom .vxe-tooltip--arrow:before{top:-4px}.vxe-tooltip--wrapper.theme--light{background-color:var(--vxe-ui-layout-background-color);border:1px solid var(--vxe-ui-input-border-color)}.vxe-tooltip--wrapper.theme--light.placement--top .vxe-tooltip--arrow{border-top-color:var(--vxe-ui-input-border-color)}.vxe-tooltip--wrapper.theme--light.placement--top .vxe-tooltip--arrow:before{border-top-color:var(--vxe-ui-layout-background-color)}.vxe-tooltip--wrapper.theme--light.placement--bottom .vxe-tooltip--arrow{border-bottom-color:var(--vxe-ui-input-border-color)}.vxe-tooltip--wrapper.theme--light.placement--bottom .vxe-tooltip--arrow:before{border-bottom-color:var(--vxe-ui-layout-background-color)}.vxe-tooltip--wrapper.theme--dark{background:var(--vxe-ui-tooltip-dark-background-color);color:var(--vxe-ui-tooltip-dark-color)}.vxe-tooltip--wrapper.theme--dark.placement--top .vxe-tooltip--arrow{border-top-color:var(--vxe-ui-tooltip-dark-background-color)}.vxe-tooltip--wrapper.theme--dark.placement--top .vxe-tooltip--arrow:before{border-top-color:var(--vxe-ui-tooltip-dark-background-color)}.vxe-tooltip--wrapper.theme--dark.placement--bottom .vxe-tooltip--arrow{border-bottom-color:var(--vxe-ui-tooltip-dark-background-color)}.vxe-tooltip--wrapper.theme--dark.placement--bottom .vxe-tooltip--arrow:before{border-bottom-color:var(--vxe-ui-tooltip-dark-background-color)}
1
+ .vxe-tooltip--wrapper{display:none;position:absolute;top:-100%;left:-100%;font-size:12px;border-radius:var(--vxe-ui-base-border-radius);white-space:normal;word-break:break-word;box-shadow:2px 2px 4px -2px rgba(0,0,0,.2);color:var(--vxe-ui-font-color);font-family:var(--vxe-ui-font-family)}.vxe-tooltip--wrapper:not(.is--enterable){pointer-events:none}.vxe-tooltip--wrapper.is--visible{display:inline-block}.vxe-tooltip--wrapper.is--arrow .vxe-tooltip--arrow{display:block}.vxe-tooltip--wrapper.is--enterable:after{content:"";position:absolute;left:0;width:100%;height:6px;background-color:transparent}.vxe-tooltip--wrapper .vxe-tooltip--content{padding:8px 12px;max-width:600px;max-height:800px;white-space:pre-line;border-radius:var(--vxe-ui-base-border-radius);overflow:auto}.vxe-tooltip--wrapper .vxe-tooltip--arrow{display:none;position:absolute;border-color:transparent;border-width:6px;border-style:solid;left:50%;transform:translateX(-6px)}.vxe-tooltip--wrapper .vxe-tooltip--arrow:before{content:"";position:absolute;border-color:transparent;border-width:5px;border-style:solid;left:-5px}.vxe-tooltip--wrapper.placement--top.is--enterable:after{bottom:-6px}.vxe-tooltip--wrapper.placement--top .vxe-tooltip--arrow{bottom:-11px}.vxe-tooltip--wrapper.placement--top .vxe-tooltip--arrow:before{top:-7px}.vxe-tooltip--wrapper.placement--bottom.is--enterable:after{top:-6px}.vxe-tooltip--wrapper.placement--bottom .vxe-tooltip--arrow{top:-11px}.vxe-tooltip--wrapper.placement--bottom .vxe-tooltip--arrow:before{top:-3px}.vxe-tooltip--wrapper.theme--light{background-color:var(--vxe-ui-layout-background-color);border:1px solid var(--vxe-ui-input-border-color)}.vxe-tooltip--wrapper.theme--light.placement--top .vxe-tooltip--arrow{border-top-color:var(--vxe-ui-input-border-color)}.vxe-tooltip--wrapper.theme--light.placement--top .vxe-tooltip--arrow:before{border-top-color:var(--vxe-ui-layout-background-color)}.vxe-tooltip--wrapper.theme--light.placement--bottom .vxe-tooltip--arrow{border-bottom-color:var(--vxe-ui-input-border-color)}.vxe-tooltip--wrapper.theme--light.placement--bottom .vxe-tooltip--arrow:before{border-bottom-color:var(--vxe-ui-layout-background-color)}.vxe-tooltip--wrapper.theme--dark{background:var(--vxe-ui-tooltip-dark-background-color);color:var(--vxe-ui-tooltip-dark-color)}.vxe-tooltip--wrapper.theme--dark.placement--top .vxe-tooltip--arrow{border-top-color:var(--vxe-ui-tooltip-dark-background-color)}.vxe-tooltip--wrapper.theme--dark.placement--top .vxe-tooltip--arrow:before{border-top-color:var(--vxe-ui-tooltip-dark-background-color)}.vxe-tooltip--wrapper.theme--dark.placement--bottom .vxe-tooltip--arrow{border-bottom-color:var(--vxe-ui-tooltip-dark-background-color)}.vxe-tooltip--wrapper.theme--dark.placement--bottom .vxe-tooltip--arrow:before{border-bottom-color:var(--vxe-ui-tooltip-dark-background-color)}
package/lib/ui/index.js CHANGED
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
26
26
  });
27
27
  var _dynamics = require("../dynamics");
28
28
  var _log = require("./src/log");
29
- const version = exports.version = "4.9.17";
29
+ const version = exports.version = "4.9.19";
30
30
  _core.VxeUI.uiVersion = version;
31
31
  _core.VxeUI.dynamicApp = _dynamics.dynamicApp;
32
32
  function config(options) {
@@ -364,7 +364,11 @@ _core.VxeUI.setup = setup;
364
364
  textEllipsis: {
365
365
  underline: true
366
366
  },
367
- text: {},
367
+ text: {
368
+ copyConfig: {
369
+ showMessage: true
370
+ }
371
+ },
368
372
  textarea: {
369
373
  resize: 'none'
370
374
  },
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,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")),_log=require("./src/log");const version=exports.version="4.9.17";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=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0}},buttonGroup:{},calendar:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1},card:{border:!0,padding:!0},carousel:{height:200,loop:!0,interval:5e3},carouselItem:{},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:null,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"]},image:{showPreview:!0,showPrintButton:!0,maskClosable:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},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},listView:{},list:{virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,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,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},split:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0}},splitPane:{},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tabs:{},tag:{},textEllipsis:{underline:!0},text:{},textarea:{resize:"none"},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},tree:{indent:20,minHeight:60,radioConfig:{strict:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{autoClose:!0,virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});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",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",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",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_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",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",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",DRAWER_CLOSE:iconPrefix+"close",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_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",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",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE: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",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",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",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right"});var _default=exports.default=_core.VxeUI;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={version:!0,config:!0,setup:!0},_core=(exports.config=config,exports.default=void 0,exports.setup=setup,exports.version=void 0,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")),_log=require("./src/log");const version=exports.version="4.9.19";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=version,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},avatar:{},badge:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{trigger:"hover",prefixTooltip:{enterable:!0},suffixTooltip:{enterable:!0}},buttonGroup:{},calendar:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1},card:{border:!0,padding:!0},carousel:{height:200,loop:!0,interval:5e3},carouselItem:{},checkbox:{},checkboxButton:{},checkboxGroup:{},col:{},collapse:{padding:!0,expandConfig:{showIcon:!0}},collapsePane:{},countdown:{},colorPicker:{type:"rgb",clearable:!0,showAlpha:!0,clickToCopy:!0,showColorExtractor:!0,showQuick:!0},datePanel:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1},datePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,autoClose:!0,showClearButton:null,showConfirmButton:null},dateRangePicker:{shortcutConfig:{align:"left",mode:"text",autoClose:!0},startDay:1,selectDay:1,separator:" ~ ",autoClose:!0,showClearButton:null,showConfirmButton:null},drawer:{position:"right",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0,cancelClosable:!0,confirmClosable:!0},empty:{},form:{validConfig:{showMessage:!0,autoPos:!0,theme:"beautify"},tooltipConfig:{enterable:!0},titleAsterisk:!0,titleOverflow:!1,padding:!0},formDesign:{height:400,showHeader:!0,showPc:!0},formGather:{},formGroup:{},formItem:{},formView:{},icon:{},iconPicker:{icons:["home","company","comment","setting","send","envelope","envelope-open","bell","search","print","pc","goods","chart-line","edit","delete","save","folder","microphone","flag","link","location","sunny","rmb","usd","user","add-user","add-users","star","unlock","time","text","feedback","calendar","association-form","cloud-download","cloud-upload","file","subtable","chart-bar-x","chart-bar-y","chart-line","chart-pie","chart-radar"]},image:{showPreview:!0,showPrintButton:!0,maskClosable:!0},imageGroup:{showPreview:!0,showPrintButton:!0},imagePreview:{showPrintButton:!0},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},listView:{},list:{virtualYConfig:{enabled:!0,gt:100}},loading:{showIcon:!0,showText:!0},menu:{},modal:{top:16,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,cancelClosable:!0,confirmClosable:!0,zoomConfig:{minimizeMaxSize:10,minimizeVerticalOffset:{top:-24,left:0},minimizeHorizontalOffset:{top:0,left:32}},storageKey:"VXE_MODAL_POSITION"},noticeBar:{},numberInput:{digits:2,autoFill:!0,controlConfig:{enabled:!0,layout:"right",showButton:!0,isWheel:!0,isArrow:!0}},optgroup:{},option:{},pager:{pageSizePlacement:"top"},print:{pageStyle:{}},passwordInput:{controls:!0},printPageBreak:{},pulldown:{destroyOnClose:!0},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},rate:{},result:{},row:{},select:{multiCharOverflow:8,remoteConfig:{enabled:!0,autoLoad:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},split:{resize:!0,itemConfig:{minWidth:40,minHeight:40},resizeConfig:{showTip:!0}},splitPane:{},slider:{max:100,min:0},steps:{},switch:{},tabPane:{},tableSelect:{gridConfig:{showOverflow:!0,showHeaderOverflow:!0,showFooterOverflow:!0,rowConfig:{isHover:!0},virtualXConfig:{enabled:!0,gt:0},virtualYConfig:{enabled:!0,gt:0}}},tabs:{},tag:{},textEllipsis:{underline:!0},text:{copyConfig:{showMessage:!0}},textarea:{resize:"none"},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300,isArrow:!0},tree:{indent:20,minHeight:60,radioConfig:{strict:!0},virtualYConfig:{enabled:!0,gt:50,oSize:2}},treeSelect:{autoClose:!0,virtualYConfig:{enabled:!0,gt:0,oSize:2},treeConfig:{maxHeight:300,radioConfig:{},checkboxConfig:{},filterConfig:{autoExpandAll:!0}}},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"],showList:!0,showUploadButton:!0,showButtonText:!0,showRemoveButton:!0,showButtonIcon:!0,showPreview:!0,dragToUpload:!0,showLimitSize:!0,showLimitCount:!0,autoSubmit:!0,maxSimultaneousUploads:5},watermark:{rotate:-30,gap:[100,100]},table:{},colgroup:{},column:{},toolbar:{},grid:{},gantt:{}});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",BUTTON_TOOLTIP_ICON:iconPrefix+"question-circle-fill",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",SELECT_ADD_OPTION:iconPrefix+"add",ICON_PICKER_OPEN:iconPrefix+"caret-down rotate180",ICON_PICKER_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",RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_SEARCH:iconPrefix+"search",INPUT_PLUS_NUM:iconPrefix+"caret-up",INPUT_MINUS_NUM:iconPrefix+"caret-down",NUMBER_INPUT_MINUS_NUM:iconPrefix+"minus",NUMBER_INPUT_PLUS_NUM:iconPrefix+"add",DATE_PICKER_DATE:iconPrefix+"calendar",PASSWORD_INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",PASSWORD_INPUT_HIDE_PWD:iconPrefix+"eye-fill",MODAL_ZOOM_MIN:iconPrefix+"minus",MODAL_ZOOM_REVERT:iconPrefix+"recover",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",DRAWER_CLOSE:iconPrefix+"close",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_PROPS_ADD:iconPrefix+"add",FORM_DESIGN_PROPS_EDIT:iconPrefix+"edit",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_SWAP_LR:iconPrefix+"swap",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",LIST_DESIGN_LIST_SETTING_SEARCH_DELETE:iconPrefix+"delete",LIST_DESIGN_LIST_SETTING_ACTIVE_DELETE:iconPrefix+"delete",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_REMOVE:iconPrefix+"delete",UPLOAD_FILE_DOWNLOAD:iconPrefix+"download",UPLOAD_IMAGE_UPLOAD:iconPrefix+"upload",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_REMOVE: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",IMAGE_PREVIEW_DOWNLOAD:iconPrefix+"download",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",TREE_NODE_LOADED:iconPrefix+"spinner roll",TREE_SELECT_LOADED:iconPrefix+"spinner roll",TREE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TREE_SELECT_CLOSE:iconPrefix+"caret-down",TABLE_SELECT_LOADED:iconPrefix+"spinner roll",TABLE_SELECT_OPEN:iconPrefix+"caret-down rotate180",TABLE_SELECT_CLOSE:iconPrefix+"caret-down",TABS_TAB_BUTTON_TOP:iconPrefix+"arrow-up",TABS_TAB_BUTTON_BOTTOM:iconPrefix+"arrow-down",TABS_TAB_BUTTON_LEFT:iconPrefix+"arrow-left",TABS_TAB_BUTTON_RIGHT:iconPrefix+"arrow-right",TABS_TAB_CLOSE:iconPrefix+"close",TABS_TAB_REFRESH:iconPrefix+"refresh",TABS_TAB_REFRESH_LOADING:iconPrefix+"refresh roll",TEXT_COPY:iconPrefix+"copy",TEXT_LOADING:iconPrefix+"spinner roll",CAROUSEL_HORIZONTAL_PREVIOUS:iconPrefix+"arrow-left",CAROUSEL_HORIZONTAL_NEXT:iconPrefix+"arrow-right",CAROUSEL_VERTICAL_PREVIOUS:iconPrefix+"arrow-up",CAROUSEL_VERTICAL_NEXT:iconPrefix+"arrow-down",COLLAPSE_OPEN:iconPrefix+"arrow-right rotate90",COLLAPSE_CLOSE:iconPrefix+"arrow-right",EMPTY_DEFAULT:iconPrefix+"empty",RESULT_INFO:iconPrefix+"info-circle-fill",RESULT_SUCCESS:iconPrefix+"success-circle-fill",RESULT_WARNING:iconPrefix+"warning-circle-fill",RESULT_ERROR:iconPrefix+"error-circle-fill",RESULT_QUESTION:iconPrefix+"question-circle-fill",RESULT_LOADING:iconPrefix+"spinner roll",RATE_CHECKED:iconPrefix+"star-fill",RATE_UNCHECKED:iconPrefix+"star",COLOR_PICKER_COLOR_COPY:iconPrefix+"copy",COLOR_PICKER_EYE_DROPPER:iconPrefix+"dropper",COLOR_PICKER_TPTY_OPEN:iconPrefix+"arrow-down rotate180",COLOR_PICKER_TPTY_CLOSE:iconPrefix+"arrow-down",SPLIT_TOP_ACTION:iconPrefix+"arrow-up",SPLIT_BOTTOM_ACTION:iconPrefix+"arrow-down",SPLIT_LEFT_ACTION:iconPrefix+"arrow-left",SPLIT_RIGHT_ACTION:iconPrefix+"arrow-right"});var _default=exports.default=_core.VxeUI;