vxe-pc-ui 1.9.21 → 1.9.22

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 (77) hide show
  1. package/es/components.js +3 -3
  2. package/es/form-design/render/use-widget-form.js +2 -2
  3. package/es/icon/style.css +1 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/tip/index.js +12 -0
  7. package/es/{tips/src/tips.js → tip/src/tip.js} +12 -12
  8. package/es/{tips → tip}/style.css +26 -26
  9. package/es/tip/style.min.css +1 -0
  10. package/es/ui/index.js +2 -2
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-tip/index.js +3 -0
  13. package/es/{vxe-tips → vxe-tip}/style.css +26 -26
  14. package/es/vxe-tip/style.min.css +1 -0
  15. package/helper/vetur/attributes.json +1 -1
  16. package/helper/vetur/tags.json +1 -1
  17. package/lib/components.js +5 -5
  18. package/lib/components.min.js +1 -1
  19. package/lib/form-design/render/use-widget-form.js +2 -2
  20. package/lib/form-design/render/use-widget-form.min.js +1 -1
  21. package/lib/icon/style/style.css +1 -1
  22. package/lib/icon/style/style.min.css +1 -1
  23. package/lib/index.umd.js +34 -30
  24. package/lib/index.umd.min.js +1 -1
  25. package/lib/style.css +1 -1
  26. package/lib/style.min.css +1 -1
  27. package/lib/tip/index.js +19 -0
  28. package/lib/tip/index.min.js +1 -0
  29. package/lib/{tips/src/tips.js → tip/src/tip.js} +12 -12
  30. package/lib/tip/src/tip.min.js +1 -0
  31. package/lib/{vxe-tips → tip}/style/style.css +26 -26
  32. package/lib/tip/style/style.min.css +1 -0
  33. package/lib/ui/index.js +2 -2
  34. package/lib/ui/index.min.js +1 -1
  35. package/lib/ui/src/log.js +1 -1
  36. package/lib/ui/src/log.min.js +1 -1
  37. package/lib/{vxe-tips → vxe-tip}/index.js +5 -5
  38. package/lib/vxe-tip/index.min.js +1 -0
  39. package/lib/{tips → vxe-tip}/style/style.css +26 -26
  40. package/lib/vxe-tip/style/style.min.css +1 -0
  41. package/package.json +1 -1
  42. package/packages/components.ts +3 -3
  43. package/packages/form-design/render/use-widget-form.ts +2 -2
  44. package/packages/tip/index.ts +17 -0
  45. package/packages/{tips/src/tips.ts → tip/src/tip.ts} +22 -22
  46. package/packages/ui/index.ts +1 -1
  47. package/styles/all.scss +1 -1
  48. package/styles/components/{tips.scss → tip.scss} +5 -5
  49. package/types/all.d.ts +3 -3
  50. package/types/components/tip.d.ts +79 -0
  51. package/types/ui/global-config.d.ts +2 -2
  52. package/es/tips/index.js +0 -10
  53. package/es/tips/style.min.css +0 -1
  54. package/es/vxe-tips/index.js +0 -3
  55. package/es/vxe-tips/style.min.css +0 -1
  56. package/lib/tips/index.js +0 -17
  57. package/lib/tips/index.min.js +0 -1
  58. package/lib/tips/src/tips.min.js +0 -1
  59. package/lib/tips/style/style.min.css +0 -1
  60. package/lib/vxe-tips/index.min.js +0 -1
  61. package/lib/vxe-tips/style/style.min.css +0 -1
  62. package/packages/tips/index.ts +0 -14
  63. package/types/components/tips.d.ts +0 -79
  64. /package/es/icon/style/{iconfont.1717772085052.ttf → iconfont.1717833319233.ttf} +0 -0
  65. /package/es/icon/style/{iconfont.1717772085052.woff → iconfont.1717833319233.woff} +0 -0
  66. /package/es/icon/style/{iconfont.1717772085052.woff2 → iconfont.1717833319233.woff2} +0 -0
  67. /package/es/{iconfont.1717772085052.ttf → iconfont.1717833319233.ttf} +0 -0
  68. /package/es/{iconfont.1717772085052.woff → iconfont.1717833319233.woff} +0 -0
  69. /package/es/{iconfont.1717772085052.woff2 → iconfont.1717833319233.woff2} +0 -0
  70. /package/lib/icon/style/{iconfont.1717772085052.ttf → iconfont.1717833319233.ttf} +0 -0
  71. /package/lib/icon/style/{iconfont.1717772085052.woff → iconfont.1717833319233.woff} +0 -0
  72. /package/lib/icon/style/{iconfont.1717772085052.woff2 → iconfont.1717833319233.woff2} +0 -0
  73. /package/lib/{iconfont.1717772085052.ttf → iconfont.1717833319233.ttf} +0 -0
  74. /package/lib/{iconfont.1717772085052.woff → iconfont.1717833319233.woff} +0 -0
  75. /package/lib/{iconfont.1717772085052.woff2 → iconfont.1717833319233.woff2} +0 -0
  76. /package/lib/{tips → tip}/style/index.js +0 -0
  77. /package/lib/{vxe-tips → vxe-tip}/style/index.js +0 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.VxeTip = exports.Tips = exports.Tip = void 0;
7
+ var _tip = _interopRequireDefault(require("./src/tip"));
8
+ var _dynamics = require("../dynamics");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ const VxeTip = exports.VxeTip = Object.assign({}, _tip.default, {
11
+ install(app) {
12
+ app.component(_tip.default.name, _tip.default);
13
+ app.component('VxeTipsComponent', _tip.default);
14
+ }
15
+ });
16
+ _dynamics.dynamicApp.component(_tip.default.name, _tip.default);
17
+ const Tips = exports.Tips = VxeTip;
18
+ const Tip = exports.Tip = VxeTip;
19
+ var _default = exports.default = VxeTip;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeTip=exports.Tips=exports.Tip=void 0;var _tip=_interopRequireDefault(require("./src/tip")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const VxeTip=exports.VxeTip=Object.assign({},_tip.default,{install(e){e.component(_tip.default.name,_tip.default),e.component("VxeTipsComponent",_tip.default)}}),Tips=(_dynamics.dynamicApp.component(_tip.default.name,_tip.default),exports.Tips=VxeTip),Tip=exports.Tip=VxeTip;var _default=exports.default=VxeTip;
@@ -7,20 +7,20 @@ exports.default = void 0;
7
7
  var _vue = require("vue");
8
8
  var _xeUtils = _interopRequireDefault(require("xe-utils"));
9
9
  var _ui = require("../../ui");
10
- var _vn = require("../..//ui/src/vn");
10
+ var _vn = require("../../ui/src/vn");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  var _default = exports.default = (0, _vue.defineComponent)({
13
- name: 'VxeTips',
13
+ name: 'VxeTip',
14
14
  props: {
15
15
  title: {
16
16
  type: [String, Number],
17
- default: () => (0, _ui.getConfig)().tips.title
17
+ default: () => (0, _ui.getConfig)().tip.title
18
18
  },
19
19
  content: [String, Number],
20
20
  status: String,
21
21
  icon: {
22
22
  type: String,
23
- default: () => (0, _ui.getConfig)().tips.icon
23
+ default: () => (0, _ui.getConfig)().tip.icon
24
24
  }
25
25
  },
26
26
  emits: [],
@@ -35,7 +35,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
35
35
  refElem
36
36
  };
37
37
  const computeMaps = {};
38
- const $xeTips = {
38
+ const $xeTip = {
39
39
  xID,
40
40
  props,
41
41
  context,
@@ -55,23 +55,23 @@ var _default = exports.default = (0, _vue.defineComponent)({
55
55
  const iconSlot = slots.icon;
56
56
  return (0, _vue.h)('div', {
57
57
  ref: refElem,
58
- class: ['vxe-tips', {
58
+ class: ['vxe-tip', {
59
59
  [`theme--${status}`]: status
60
60
  }]
61
61
  }, [iconSlot || icon ? (0, _vue.h)('div', {
62
- class: 'vxe-tips--icon'
62
+ class: 'vxe-tip--icon'
63
63
  }, iconSlot ? (0, _vn.getSlotVNs)(iconSlot({})) : [(0, _vue.h)('i', {
64
64
  class: icon
65
65
  })]) : (0, _vue.createCommentVNode)(), (0, _vue.h)('div', {
66
- class: 'vxe-tips--body'
66
+ class: 'vxe-tip--body'
67
67
  }, [titleSlot || title ? (0, _vue.h)('div', {
68
- class: 'vxe-tips--title'
68
+ class: 'vxe-tip--title'
69
69
  }, titleSlot ? (0, _vn.getSlotVNs)(titleSlot({})) : _xeUtils.default.toValueString(title)) : (0, _vue.createCommentVNode)(), (0, _vue.h)('div', {
70
- class: 'vxe-tips--content'
70
+ class: 'vxe-tip--content'
71
71
  }, defaultSlot ? (0, _vn.getSlotVNs)(defaultSlot({})) : _xeUtils.default.toValueString(content))])]);
72
72
  };
73
- $xeTips.renderVN = renderVN;
74
- return $xeTips;
73
+ $xeTip.renderVN = renderVN;
74
+ return $xeTip;
75
75
  },
76
76
  render() {
77
77
  return this.renderVN();
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_vn=require("../../ui/src/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_vue.defineComponent)({name:"VxeTip",props:{title:{type:[String,Number],default:()=>(0,_ui.getConfig)().tip.title},content:[String,Number],status:String,icon:{type:String,default:()=>(0,_ui.getConfig)().tip.icon}},emits:[],setup(o,e){const l=e["slots"];var t=_xeUtils.default.uniqueId();const a=(0,_vue.ref)();var i=(0,_vue.reactive)({});const u={refElem:a},r={};t={xID:t,props:o,context:e,reactData:i,getRefMaps:()=>u,getComputeMaps:()=>r};return t.renderVN=()=>{var{status:e,content:t,icon:i,title:u}=o,r=l.default,n=l.title,s=l.icon;return(0,_vue.h)("div",{ref:a,class:["vxe-tip",{["theme--"+e]:e}]},[s||i?(0,_vue.h)("div",{class:"vxe-tip--icon"},s?(0,_vn.getSlotVNs)(s({})):[(0,_vue.h)("i",{class:i})]):(0,_vue.createCommentVNode)(),(0,_vue.h)("div",{class:"vxe-tip--body"},[n||u?(0,_vue.h)("div",{class:"vxe-tip--title"},n?(0,_vn.getSlotVNs)(n({})):_xeUtils.default.toValueString(u)):(0,_vue.createCommentVNode)(),(0,_vue.h)("div",{class:"vxe-tip--content"},r?(0,_vn.getSlotVNs)(r({})):_xeUtils.default.toValueString(t))])])},t},render(){return this.renderVN()}});
@@ -1,4 +1,4 @@
1
- .vxe-tips {
1
+ .vxe-tip {
2
2
  position: relative;
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -7,7 +7,7 @@
7
7
  padding: var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double);
8
8
  font-size: var(--vxe-ui-font-size-default);
9
9
  }
10
- .vxe-tips::after {
10
+ .vxe-tip::after {
11
11
  content: "";
12
12
  position: absolute;
13
13
  top: 0;
@@ -17,82 +17,82 @@
17
17
  background-color: var(--vxe-ui-font-color);
18
18
  z-index: 1;
19
19
  }
20
- .vxe-tips.theme--primary {
20
+ .vxe-tip.theme--primary {
21
21
  background-color: var(--vxe-ui-font-primary-tinge-color);
22
22
  }
23
- .vxe-tips.theme--primary::after {
23
+ .vxe-tip.theme--primary::after {
24
24
  background-color: var(--vxe-ui-font-primary-color);
25
25
  }
26
- .vxe-tips.theme--primary .vxe-tips--icon {
26
+ .vxe-tip.theme--primary .vxe-tip--icon {
27
27
  color: var(--vxe-ui-font-primary-color);
28
28
  }
29
- .vxe-tips.theme--success {
29
+ .vxe-tip.theme--success {
30
30
  background-color: var(--vxe-ui-status-success-tinge-color);
31
31
  }
32
- .vxe-tips.theme--success::after {
32
+ .vxe-tip.theme--success::after {
33
33
  background-color: var(--vxe-ui-status-success-color);
34
34
  }
35
- .vxe-tips.theme--success .vxe-tips--icon {
35
+ .vxe-tip.theme--success .vxe-tip--icon {
36
36
  color: var(--vxe-ui-status-success-color);
37
37
  }
38
- .vxe-tips.theme--info {
38
+ .vxe-tip.theme--info {
39
39
  background-color: var(--vxe-ui-status-info-tinge-color);
40
40
  }
41
- .vxe-tips.theme--info::after {
41
+ .vxe-tip.theme--info::after {
42
42
  background-color: var(--vxe-ui-status-info-color);
43
43
  }
44
- .vxe-tips.theme--info .vxe-tips--icon {
44
+ .vxe-tip.theme--info .vxe-tip--icon {
45
45
  color: var(--vxe-ui-status-info-color);
46
46
  }
47
- .vxe-tips.theme--warning {
47
+ .vxe-tip.theme--warning {
48
48
  background-color: var(--vxe-ui-status-warning-tinge-color);
49
49
  }
50
- .vxe-tips.theme--warning::after {
50
+ .vxe-tip.theme--warning::after {
51
51
  background-color: var(--vxe-ui-status-warning-color);
52
52
  }
53
- .vxe-tips.theme--warning .vxe-tips--icon {
53
+ .vxe-tip.theme--warning .vxe-tip--icon {
54
54
  color: var(--vxe-ui-status-warning-color);
55
55
  }
56
- .vxe-tips.theme--danger {
56
+ .vxe-tip.theme--danger {
57
57
  background-color: var(--vxe-ui-status-danger-tinge-color);
58
58
  }
59
- .vxe-tips.theme--danger::after {
59
+ .vxe-tip.theme--danger::after {
60
60
  background-color: var(--vxe-ui-status-danger-color);
61
61
  }
62
- .vxe-tips.theme--danger .vxe-tips--icon {
62
+ .vxe-tip.theme--danger .vxe-tip--icon {
63
63
  color: var(--vxe-ui-status-danger-color);
64
64
  }
65
- .vxe-tips.theme--error {
65
+ .vxe-tip.theme--error {
66
66
  background-color: var(--vxe-ui-status-error-tinge-color);
67
67
  }
68
- .vxe-tips.theme--error::after {
68
+ .vxe-tip.theme--error::after {
69
69
  background-color: var(--vxe-ui-status-error-color);
70
70
  }
71
- .vxe-tips.theme--error .vxe-tips--icon {
71
+ .vxe-tip.theme--error .vxe-tip--icon {
72
72
  color: var(--vxe-ui-status-error-color);
73
73
  }
74
- .vxe-tips.size--medium {
74
+ .vxe-tip.size--medium {
75
75
  font-size: var(--vxe-ui-font-size-medium);
76
76
  }
77
- .vxe-tips.size--small {
77
+ .vxe-tip.size--small {
78
78
  font-size: var(--vxe-ui-font-size-small);
79
79
  }
80
- .vxe-tips.size--mini {
80
+ .vxe-tip.size--mini {
81
81
  font-size: var(--vxe-ui-font-size-mini);
82
82
  }
83
83
 
84
- .vxe-tips--icon {
84
+ .vxe-tip--icon {
85
85
  flex-shrink: 0;
86
86
  font-size: 1.2em;
87
87
  line-height: 2em;
88
88
  padding-right: var(--vxe-ui-layout-padding-half);
89
89
  }
90
90
 
91
- .vxe-tips--body {
91
+ .vxe-tip--body {
92
92
  flex-grow: 1;
93
93
  }
94
94
 
95
- .vxe-tips--title {
95
+ .vxe-tip--title {
96
96
  font-size: 1.1em;
97
97
  line-height: 2em;
98
98
  font-weight: 700;
@@ -0,0 +1 @@
1
+ .vxe-tip{position:relative;display:flex;flex-direction:row;color:var(--vxe-ui-font-color);margin-bottom:var(--vxe-ui-layout-padding-default);padding:var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double);font-size:var(--vxe-ui-font-size-default)}.vxe-tip::after{content:"";position:absolute;top:0;left:0;height:100%;width:5px;background-color:var(--vxe-ui-font-color);z-index:1}.vxe-tip.theme--primary{background-color:var(--vxe-ui-font-primary-tinge-color)}.vxe-tip.theme--primary::after{background-color:var(--vxe-ui-font-primary-color)}.vxe-tip.theme--primary .vxe-tip--icon{color:var(--vxe-ui-font-primary-color)}.vxe-tip.theme--success{background-color:var(--vxe-ui-status-success-tinge-color)}.vxe-tip.theme--success::after{background-color:var(--vxe-ui-status-success-color)}.vxe-tip.theme--success .vxe-tip--icon{color:var(--vxe-ui-status-success-color)}.vxe-tip.theme--info{background-color:var(--vxe-ui-status-info-tinge-color)}.vxe-tip.theme--info::after{background-color:var(--vxe-ui-status-info-color)}.vxe-tip.theme--info .vxe-tip--icon{color:var(--vxe-ui-status-info-color)}.vxe-tip.theme--warning{background-color:var(--vxe-ui-status-warning-tinge-color)}.vxe-tip.theme--warning::after{background-color:var(--vxe-ui-status-warning-color)}.vxe-tip.theme--warning .vxe-tip--icon{color:var(--vxe-ui-status-warning-color)}.vxe-tip.theme--danger{background-color:var(--vxe-ui-status-danger-tinge-color)}.vxe-tip.theme--danger::after{background-color:var(--vxe-ui-status-danger-color)}.vxe-tip.theme--danger .vxe-tip--icon{color:var(--vxe-ui-status-danger-color)}.vxe-tip.theme--error{background-color:var(--vxe-ui-status-error-tinge-color)}.vxe-tip.theme--error::after{background-color:var(--vxe-ui-status-error-color)}.vxe-tip.theme--error .vxe-tip--icon{color:var(--vxe-ui-status-error-color)}.vxe-tip.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-tip.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-tip.size--mini{font-size:var(--vxe-ui-font-size-mini)}.vxe-tip--icon{flex-shrink:0;font-size:1.2em;line-height:2em;padding-right:var(--vxe-ui-layout-padding-half)}.vxe-tip--body{flex-grow:1}.vxe-tip--title{font-size:1.1em;line-height:2em;font-weight:700}
package/lib/ui/index.js CHANGED
@@ -26,7 +26,7 @@ Object.keys(_core).forEach(function (key) {
26
26
  var _dynamics = require("../dynamics");
27
27
  var _utils = require("./src/utils");
28
28
  var _log = require("./src/log");
29
- _core.VxeUI.uiVersion = "1.9.21";
29
+ _core.VxeUI.uiVersion = "1.9.22";
30
30
  _core.VxeUI.tableVersion = '';
31
31
  _core.VxeUI.t = _core.VxeUI.getI18n;
32
32
  _core.VxeUI._t = _utils.getFuncText;
@@ -191,7 +191,7 @@ _core.VxeUI.globalStore = globalStore;
191
191
  tabs: {},
192
192
  textarea: {},
193
193
  toolbar: {},
194
- tips: {},
194
+ tip: {},
195
195
  tooltip: {
196
196
  // size: null,
197
197
  trigger: 'hover',
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={config:!0,setup:!0,globalStore:!0},_core=(exports.config=config,exports.globalStore=exports.default=void 0,exports.setup=setup,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_utils=require("./src/utils"),_log=require("./src/log");function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion="1.9.21",_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup;const globalStore=exports.globalStore={},iconPrefix=(_core.VxeUI.globalStore=globalStore,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{},buttonGroup:{},card:{border:!0,padding:!0},checkbox:{},checkboxGroup:{},col:{},colgroup:{},collapse:{},collapsePane:{},column:{},drawer:{position:"left",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0},form:{validConfig:{showMessage:!0,autoPos:!0},tooltipConfig:{enterable:!0},titleAsterisk:!0},formDesign:{height:400,showPc:!0},formGather:{},formItem:{},formView:{},grid:{},icon:{},image:{},imagePreview:{},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},list:{scrollY:{enabled:!0,gt:100}},loading:{},modal:{top:15,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,storageKey:"VXE_MODAL_POSITION"},optgroup:{},option:{},pager:{pageSizePlacement:"top"},passwordInput:{},print:{},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},table:{},tabs:{},textarea:{},toolbar:{},tips:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300},tree:{indent:20,radioConfig:{strict:!0}},treeSelect:{},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"]}}),"vxe-icon-");(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-down rotate180",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-down",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_PWD:iconPrefix+"eye-fill",INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",INPUT_PREV_NUM:iconPrefix+"caret-up",INPUT_NEXT_NUM:iconPrefix+"caret-down",INPUT_DATE:iconPrefix+"calendar",INPUT_SEARCH:iconPrefix+"search",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_DELETE:iconPrefix+"delete",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_DELETE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right"});var _default=exports.default=_core.VxeUI;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={config:!0,setup:!0,globalStore:!0},_core=(exports.config=config,exports.globalStore=exports.default=void 0,exports.setup=setup,require("@vxe-ui/core")),_dynamics=(Object.keys(_core).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_core[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _core[e]}})}),require("../dynamics")),_utils=require("./src/utils"),_log=require("./src/log");function config(e){return(0,_log.warnLog)("vxe.error.delFunc",["config","setConfig"]),(0,_core.setConfig)(e)}function setup(e){return(0,_log.warnLog)("vxe.error.delFunc",["setup","setConfig"]),(0,_core.setConfig)(e)}_core.VxeUI.uiVersion="1.9.22",_core.VxeUI.tableVersion="",_core.VxeUI.t=_core.VxeUI.getI18n,_core.VxeUI._t=_utils.getFuncText,_core.VxeUI.dynamicApp=_dynamics.dynamicApp,_core.VxeUI.config=config,_core.VxeUI.setup=setup;const globalStore=exports.globalStore={},iconPrefix=(_core.VxeUI.globalStore=globalStore,(0,_core.setConfig)({alert:{},anchor:{},anchorLink:{},breadcrumb:{separator:"/"},breadcrumbItem:{},button:{},buttonGroup:{},card:{border:!0,padding:!0},checkbox:{},checkboxGroup:{},col:{},colgroup:{},collapse:{},collapsePane:{},column:{},drawer:{position:"left",showHeader:!0,lockView:!0,mask:!0,showTitleOverflow:!0,showClose:!0,padding:!0},form:{validConfig:{showMessage:!0,autoPos:!0},tooltipConfig:{enterable:!0},titleAsterisk:!0},formDesign:{height:400,showPc:!0},formGather:{},formItem:{},formView:{},grid:{},icon:{},image:{},imagePreview:{},input:{startDate:new Date(1900,0,1),endDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},layoutAside:{},layoutBody:{},layoutContainer:{},layoutFooter:{},layoutHeader:{},link:{underline:!0},listDesign:{height:400,showPc:!0},list:{scrollY:{enabled:!0,gt:100}},loading:{},modal:{top:15,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,padding:!0,draggable:!0,showConfirmButton:null,storageKey:"VXE_MODAL_POSITION"},optgroup:{},option:{},pager:{pageSizePlacement:"top"},passwordInput:{},print:{},printPageBreak:{},pulldown:{},radio:{strict:!0},radioButton:{strict:!0},radioGroup:{strict:!0},row:{},select:{multiCharOverflow:8},switch:{},tabPane:{},table:{},tabs:{},textarea:{},toolbar:{},tip:{},tooltip:{trigger:"hover",theme:"dark",enterDelay:500,leaveDelay:300},tree:{indent:20,radioConfig:{strict:!0}},treeSelect:{},upload:{mode:"all",imageTypes:["jpg","jpeg","png","gif"]}}),"vxe-icon-");(0,_core.setIcon)({LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",BUTTON_DROPDOWN:iconPrefix+"arrow-down",BUTTON_LOADING:iconPrefix+"spinner roll",MENU_ITEM_EXPAND_OPEN:iconPrefix+"arrow-down rotate180",MENU_ITEM_EXPAND_CLOSE:iconPrefix+"arrow-down",SELECT_LOADED:iconPrefix+"spinner roll",SELECT_OPEN:iconPrefix+"caret-down rotate180",SELECT_CLOSE:iconPrefix+"caret-down",PAGER_HOME:iconPrefix+"home-page",PAGER_END:iconPrefix+"end-page",PAGER_JUMP_PREV:iconPrefix+"arrow-double-left",PAGER_JUMP_NEXT:iconPrefix+"arrow-double-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"ellipsis-h",RADIO_CHECKED:iconPrefix+"radio-checked-fill",RADIO_UNCHECKED:iconPrefix+"radio-unchecked",CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",INPUT_CLEAR:iconPrefix+"error-circle-fill",INPUT_PWD:iconPrefix+"eye-fill",INPUT_SHOW_PWD:iconPrefix+"eye-fill-close",INPUT_PREV_NUM:iconPrefix+"caret-up",INPUT_NEXT_NUM:iconPrefix+"caret-down",INPUT_DATE:iconPrefix+"calendar",INPUT_SEARCH:iconPrefix+"search",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"maximize",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info-circle-fill",MODAL_SUCCESS:iconPrefix+"success-circle-fill",MODAL_WARNING:iconPrefix+"warning-circle-fill",MODAL_ERROR:iconPrefix+"error-circle-fill",MODAL_QUESTION:iconPrefix+"question-circle-fill",MODAL_LOADING:iconPrefix+"spinner roll",FORM_PREFIX:iconPrefix+"question-circle-fill",FORM_SUFFIX:iconPrefix+"question-circle-fill",FORM_FOLDING:iconPrefix+"arrow-up rotate180",FORM_UNFOLDING:iconPrefix+"arrow-up",FORM_DESIGN_STYLE_SETTING:iconPrefix+"layout",FORM_DESIGN_PROPS_PC:iconPrefix+"pc",FORM_DESIGN_PROPS_MOBILE:iconPrefix+"mobile",FORM_DESIGN_WIDGET_ADD:iconPrefix+"square-plus-fill",FORM_DESIGN_WIDGET_COPY:iconPrefix+"copy",FORM_DESIGN_WIDGET_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_DELETE:iconPrefix+"delete",FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN:iconPrefix+"square-plus",FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:iconPrefix+"square-minus",LIST_DESIGN_FIELD_SETTING:iconPrefix+"custom-column",LIST_DESIGN_LIST_SETTING:iconPrefix+"menu",UPLOAD_FILE_ERROR:iconPrefix+"warning-circle-fill",UPLOAD_FILE_ADD:iconPrefix+"upload",UPLOAD_FILE_DELETE:iconPrefix+"delete",UPLOAD_IMAGE_RE_UPLOAD:iconPrefix+"repeat",UPLOAD_IMAGE_ADD:iconPrefix+"add",UPLOAD_IMAGE_DELETE:iconPrefix+"close",UPLOAD_LOADING:iconPrefix+"spinner roll vxe-loading--default-icon",UPLOAD_FILE_TYPE_DEFAULT:iconPrefix+"file",UPLOAD_FILE_TYPE_XLSX:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_XLS:iconPrefix+"file-excel",UPLOAD_FILE_TYPE_PDF:iconPrefix+"file-pdf",UPLOAD_FILE_TYPE_PNG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_GIF:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_JPEG:iconPrefix+"file-image",UPLOAD_FILE_TYPE_MD:iconPrefix+"file-markdown",UPLOAD_FILE_TYPE_PPD:iconPrefix+"file-ppt",UPLOAD_FILE_TYPE_DOCX:iconPrefix+"file-word",UPLOAD_FILE_TYPE_DOC:iconPrefix+"file-word",UPLOAD_FILE_TYPE_ZIP:iconPrefix+"file-zip",UPLOAD_FILE_TYPE_TXT:iconPrefix+"file-txt",IMAGE_PREVIEW_CLOSE:iconPrefix+"close",IMAGE_PREVIEW_PREVIOUS:iconPrefix+"arrow-left",IMAGE_PREVIEW_NEXT:iconPrefix+"arrow-right",IMAGE_PREVIEW_PCT_FULL:iconPrefix+"pct-full",IMAGE_PREVIEW_PCT_1_1:iconPrefix+"pct-1-1",IMAGE_PREVIEW_ZOOM_OUT:iconPrefix+"search-zoom-out",IMAGE_PREVIEW_ZOOM_IN:iconPrefix+"search-zoom-in",IMAGE_PREVIEW_ROTATE_LEFT:iconPrefix+"rotate-left",IMAGE_PREVIEW_ROTATE_RIGHT:iconPrefix+"rotate-right",IMAGE_PREVIEW_PRINT:iconPrefix+"print",ALERT_CLOSE:iconPrefix+"close",ALERT_INFO:iconPrefix+"info-circle-fill",ALERT_SUCCESS:iconPrefix+"success-circle-fill",ALERT_WARNING:iconPrefix+"warning-circle-fill",ALERT_ERROR:iconPrefix+"error-circle-fill",TREE_NODE_OPEN:iconPrefix+"caret-right rotate90",TREE_NODE_CLOSE:iconPrefix+"caret-right"});var _default=exports.default=_core.VxeUI;
package/lib/ui/src/log.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.warnLog = exports.errLog = void 0;
7
7
  var _core = require("@vxe-ui/core");
8
- const version = `ui v${"1.9.21"}`;
8
+ const version = `ui v${"1.9.22"}`;
9
9
  const warnLog = exports.warnLog = _core.log.create('warn', version);
10
10
  const errLog = exports.errLog = _core.log.create('error', version);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v1.9.21",warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");const version="ui v1.9.22",warnLog=exports.warnLog=_core.log.create("warn",version),errLog=exports.errLog=_core.log.create("error",version);
@@ -5,18 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {};
7
7
  exports.default = void 0;
8
- var _tips = _interopRequireWildcard(require("../tips"));
9
- Object.keys(_tips).forEach(function (key) {
8
+ var _tip = _interopRequireWildcard(require("../tip"));
9
+ Object.keys(_tip).forEach(function (key) {
10
10
  if (key === "default" || key === "__esModule") return;
11
11
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
12
- if (key in exports && exports[key] === _tips[key]) return;
12
+ if (key in exports && exports[key] === _tip[key]) return;
13
13
  Object.defineProperty(exports, key, {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _tips[key];
16
+ return _tip[key];
17
17
  }
18
18
  });
19
19
  });
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
21
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
- var _default = exports.default = _tips.default;
22
+ var _default = exports.default = _tip.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_tip=(exports.default=void 0,_interopRequireWildcard(require("../tip")));function _getRequireWildcardCache(e){var t,r;return"function"!=typeof WeakMap?null:(t=new WeakMap,r=new WeakMap,(_getRequireWildcardCache=function(e){return e?r:t})(e))}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};t=_getRequireWildcardCache(t);if(t&&t.has(e))return t.get(e);var r,o,n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e)"default"!==r&&{}.hasOwnProperty.call(e,r)&&((o=i?Object.getOwnPropertyDescriptor(e,r):null)&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]);return n.default=e,t&&t.set(e,n),n}Object.keys(_tip).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_tip[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _tip[e]}})});var _default=exports.default=_tip.default;
@@ -1,4 +1,4 @@
1
- .vxe-tips {
1
+ .vxe-tip {
2
2
  position: relative;
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -7,7 +7,7 @@
7
7
  padding: var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double);
8
8
  font-size: var(--vxe-ui-font-size-default);
9
9
  }
10
- .vxe-tips::after {
10
+ .vxe-tip::after {
11
11
  content: "";
12
12
  position: absolute;
13
13
  top: 0;
@@ -17,82 +17,82 @@
17
17
  background-color: var(--vxe-ui-font-color);
18
18
  z-index: 1;
19
19
  }
20
- .vxe-tips.theme--primary {
20
+ .vxe-tip.theme--primary {
21
21
  background-color: var(--vxe-ui-font-primary-tinge-color);
22
22
  }
23
- .vxe-tips.theme--primary::after {
23
+ .vxe-tip.theme--primary::after {
24
24
  background-color: var(--vxe-ui-font-primary-color);
25
25
  }
26
- .vxe-tips.theme--primary .vxe-tips--icon {
26
+ .vxe-tip.theme--primary .vxe-tip--icon {
27
27
  color: var(--vxe-ui-font-primary-color);
28
28
  }
29
- .vxe-tips.theme--success {
29
+ .vxe-tip.theme--success {
30
30
  background-color: var(--vxe-ui-status-success-tinge-color);
31
31
  }
32
- .vxe-tips.theme--success::after {
32
+ .vxe-tip.theme--success::after {
33
33
  background-color: var(--vxe-ui-status-success-color);
34
34
  }
35
- .vxe-tips.theme--success .vxe-tips--icon {
35
+ .vxe-tip.theme--success .vxe-tip--icon {
36
36
  color: var(--vxe-ui-status-success-color);
37
37
  }
38
- .vxe-tips.theme--info {
38
+ .vxe-tip.theme--info {
39
39
  background-color: var(--vxe-ui-status-info-tinge-color);
40
40
  }
41
- .vxe-tips.theme--info::after {
41
+ .vxe-tip.theme--info::after {
42
42
  background-color: var(--vxe-ui-status-info-color);
43
43
  }
44
- .vxe-tips.theme--info .vxe-tips--icon {
44
+ .vxe-tip.theme--info .vxe-tip--icon {
45
45
  color: var(--vxe-ui-status-info-color);
46
46
  }
47
- .vxe-tips.theme--warning {
47
+ .vxe-tip.theme--warning {
48
48
  background-color: var(--vxe-ui-status-warning-tinge-color);
49
49
  }
50
- .vxe-tips.theme--warning::after {
50
+ .vxe-tip.theme--warning::after {
51
51
  background-color: var(--vxe-ui-status-warning-color);
52
52
  }
53
- .vxe-tips.theme--warning .vxe-tips--icon {
53
+ .vxe-tip.theme--warning .vxe-tip--icon {
54
54
  color: var(--vxe-ui-status-warning-color);
55
55
  }
56
- .vxe-tips.theme--danger {
56
+ .vxe-tip.theme--danger {
57
57
  background-color: var(--vxe-ui-status-danger-tinge-color);
58
58
  }
59
- .vxe-tips.theme--danger::after {
59
+ .vxe-tip.theme--danger::after {
60
60
  background-color: var(--vxe-ui-status-danger-color);
61
61
  }
62
- .vxe-tips.theme--danger .vxe-tips--icon {
62
+ .vxe-tip.theme--danger .vxe-tip--icon {
63
63
  color: var(--vxe-ui-status-danger-color);
64
64
  }
65
- .vxe-tips.theme--error {
65
+ .vxe-tip.theme--error {
66
66
  background-color: var(--vxe-ui-status-error-tinge-color);
67
67
  }
68
- .vxe-tips.theme--error::after {
68
+ .vxe-tip.theme--error::after {
69
69
  background-color: var(--vxe-ui-status-error-color);
70
70
  }
71
- .vxe-tips.theme--error .vxe-tips--icon {
71
+ .vxe-tip.theme--error .vxe-tip--icon {
72
72
  color: var(--vxe-ui-status-error-color);
73
73
  }
74
- .vxe-tips.size--medium {
74
+ .vxe-tip.size--medium {
75
75
  font-size: var(--vxe-ui-font-size-medium);
76
76
  }
77
- .vxe-tips.size--small {
77
+ .vxe-tip.size--small {
78
78
  font-size: var(--vxe-ui-font-size-small);
79
79
  }
80
- .vxe-tips.size--mini {
80
+ .vxe-tip.size--mini {
81
81
  font-size: var(--vxe-ui-font-size-mini);
82
82
  }
83
83
 
84
- .vxe-tips--icon {
84
+ .vxe-tip--icon {
85
85
  flex-shrink: 0;
86
86
  font-size: 1.2em;
87
87
  line-height: 2em;
88
88
  padding-right: var(--vxe-ui-layout-padding-half);
89
89
  }
90
90
 
91
- .vxe-tips--body {
91
+ .vxe-tip--body {
92
92
  flex-grow: 1;
93
93
  }
94
94
 
95
- .vxe-tips--title {
95
+ .vxe-tip--title {
96
96
  font-size: 1.1em;
97
97
  line-height: 2em;
98
98
  font-weight: 700;
@@ -0,0 +1 @@
1
+ .vxe-tip{position:relative;display:flex;flex-direction:row;color:var(--vxe-ui-font-color);margin-bottom:var(--vxe-ui-layout-padding-default);padding:var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double);font-size:var(--vxe-ui-font-size-default)}.vxe-tip::after{content:"";position:absolute;top:0;left:0;height:100%;width:5px;background-color:var(--vxe-ui-font-color);z-index:1}.vxe-tip.theme--primary{background-color:var(--vxe-ui-font-primary-tinge-color)}.vxe-tip.theme--primary::after{background-color:var(--vxe-ui-font-primary-color)}.vxe-tip.theme--primary .vxe-tip--icon{color:var(--vxe-ui-font-primary-color)}.vxe-tip.theme--success{background-color:var(--vxe-ui-status-success-tinge-color)}.vxe-tip.theme--success::after{background-color:var(--vxe-ui-status-success-color)}.vxe-tip.theme--success .vxe-tip--icon{color:var(--vxe-ui-status-success-color)}.vxe-tip.theme--info{background-color:var(--vxe-ui-status-info-tinge-color)}.vxe-tip.theme--info::after{background-color:var(--vxe-ui-status-info-color)}.vxe-tip.theme--info .vxe-tip--icon{color:var(--vxe-ui-status-info-color)}.vxe-tip.theme--warning{background-color:var(--vxe-ui-status-warning-tinge-color)}.vxe-tip.theme--warning::after{background-color:var(--vxe-ui-status-warning-color)}.vxe-tip.theme--warning .vxe-tip--icon{color:var(--vxe-ui-status-warning-color)}.vxe-tip.theme--danger{background-color:var(--vxe-ui-status-danger-tinge-color)}.vxe-tip.theme--danger::after{background-color:var(--vxe-ui-status-danger-color)}.vxe-tip.theme--danger .vxe-tip--icon{color:var(--vxe-ui-status-danger-color)}.vxe-tip.theme--error{background-color:var(--vxe-ui-status-error-tinge-color)}.vxe-tip.theme--error::after{background-color:var(--vxe-ui-status-error-color)}.vxe-tip.theme--error .vxe-tip--icon{color:var(--vxe-ui-status-error-color)}.vxe-tip.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-tip.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-tip.size--mini{font-size:var(--vxe-ui-font-size-mini)}.vxe-tip--icon{flex-shrink:0;font-size:1.2em;line-height:2em;padding-right:var(--vxe-ui-layout-padding-half)}.vxe-tip--body{flex-grow:1}.vxe-tip--title{font-size:1.1em;line-height:2em;font-weight:700}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-pc-ui",
3
- "version": "1.9.21",
3
+ "version": "1.9.22",
4
4
  "description": "A vue based PC side component library",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -60,7 +60,7 @@ import VxeTabs from './tabs'
60
60
  import VxeTag from './tag'
61
61
  import VxeText from './text'
62
62
  import VxeTextarea from './textarea'
63
- import VxeTips from './tips'
63
+ import VxeTip from './tip'
64
64
  import VxeTooltip from './tooltip'
65
65
  import VxeTree from './tree'
66
66
  import VxeTreeSelect from './tree-select'
@@ -126,7 +126,7 @@ const components = [
126
126
  VxeTag,
127
127
  VxeText,
128
128
  VxeTextarea,
129
- VxeTips,
129
+ VxeTip,
130
130
  VxeTooltip,
131
131
  VxeTree,
132
132
  VxeTreeSelect,
@@ -211,7 +211,7 @@ export * from './tabs'
211
211
  export * from './tag'
212
212
  export * from './text'
213
213
  export * from './textarea'
214
- export * from './tips'
214
+ export * from './tip'
215
215
  export * from './tooltip'
216
216
  export * from './tree'
217
217
  export * from './tree-select'
@@ -3,7 +3,7 @@ import { VxeUI, getIcon, getI18n } from '@vxe-ui/core'
3
3
  import VxeFormItemComponent from '../../form/src/form-item'
4
4
  import VxeButtonComponent from '../../button/src/button'
5
5
  import VxeTextareaComponent from '../../textarea/src/textarea'
6
- import VxeTipsComponent from '../../tips/src/tips'
6
+ import VxeTipComponent from '../../tip/src/tip'
7
7
 
8
8
  import type { VxeGlobalRendererHandles } from '../../../types'
9
9
 
@@ -136,7 +136,7 @@ export function useWidgetPropDataSource (props: {
136
136
  class: 'vxe-form-design--widget-form-item-data-source-popup'
137
137
  }, [
138
138
  isSubOption
139
- ? h(VxeTipsComponent, {
139
+ ? h(VxeTipComponent, {
140
140
  status: 'primary',
141
141
  title: '',
142
142
  content: '每行对应一个选项,如果是分组,子项可以是空格或制表键开头,可从 Excel 或 WPS 中复制。'
@@ -0,0 +1,17 @@
1
+ import { App } from 'vue'
2
+ import VxeTipComponent from './src/tip'
3
+ import { dynamicApp } from '../dynamics'
4
+
5
+ export const VxeTip = Object.assign({}, VxeTipComponent, {
6
+ install (app: App) {
7
+ app.component(VxeTipComponent.name as string, VxeTipComponent)
8
+ app.component('VxeTipsComponent' as string, VxeTipComponent)
9
+ }
10
+ })
11
+
12
+ dynamicApp.component(VxeTipComponent.name as string, VxeTipComponent)
13
+
14
+ export const Tips = VxeTip
15
+ export const Tip = VxeTip
16
+
17
+ export default VxeTip
@@ -1,26 +1,26 @@
1
1
  import { defineComponent, ref, h, reactive, PropType, createCommentVNode } from 'vue'
2
2
  import XEUtils from 'xe-utils'
3
3
  import { getConfig } from '../../ui'
4
- import { getSlotVNs } from '../..//ui/src/vn'
4
+ import { getSlotVNs } from '../../ui/src/vn'
5
5
 
6
- import type { VxeTipsPropTypes, TipsReactData, VxeTipsEmits, TipsPrivateRef, VxeTipsPrivateComputed, VxeTipsConstructor, VxeTipsPrivateMethods } from '../../../types'
6
+ import type { VxeTipPropTypes, TipReactData, VxeTipEmits, TipPrivateRef, VxeTipPrivateComputed, VxeTipConstructor, VxeTipPrivateMethods } from '../../../types'
7
7
 
8
8
  export default defineComponent({
9
- name: 'VxeTips',
9
+ name: 'VxeTip',
10
10
  props: {
11
11
  title: {
12
- type: [String, Number] as PropType<VxeTipsPropTypes.Title>,
13
- default: () => getConfig().tips.title
12
+ type: [String, Number] as PropType<VxeTipPropTypes.Title>,
13
+ default: () => getConfig().tip.title
14
14
  },
15
- content: [String, Number] as PropType<VxeTipsPropTypes.Content>,
16
- status: String as PropType<VxeTipsPropTypes.Status>,
15
+ content: [String, Number] as PropType<VxeTipPropTypes.Content>,
16
+ status: String as PropType<VxeTipPropTypes.Status>,
17
17
  icon: {
18
- type: String as PropType<VxeTipsPropTypes.Icon>,
19
- default: () => getConfig().tips.icon
18
+ type: String as PropType<VxeTipPropTypes.Icon>,
19
+ default: () => getConfig().tip.icon
20
20
  }
21
21
  },
22
22
  emits: [
23
- ] as VxeTipsEmits,
23
+ ] as VxeTipEmits,
24
24
  setup (props, context) {
25
25
  const { slots } = context
26
26
 
@@ -28,17 +28,17 @@ export default defineComponent({
28
28
 
29
29
  const refElem = ref<HTMLDivElement>()
30
30
 
31
- const reactData = reactive<TipsReactData>({
31
+ const reactData = reactive<TipReactData>({
32
32
  })
33
33
 
34
- const refMaps: TipsPrivateRef = {
34
+ const refMaps: TipPrivateRef = {
35
35
  refElem
36
36
  }
37
37
 
38
- const computeMaps: VxeTipsPrivateComputed = {
38
+ const computeMaps: VxeTipPrivateComputed = {
39
39
  }
40
40
 
41
- const $xeTips = {
41
+ const $xeTip = {
42
42
  xID,
43
43
  props,
44
44
  context,
@@ -46,7 +46,7 @@ export default defineComponent({
46
46
 
47
47
  getRefMaps: () => refMaps,
48
48
  getComputeMaps: () => computeMaps
49
- } as unknown as VxeTipsConstructor & VxeTipsPrivateMethods
49
+ } as unknown as VxeTipConstructor & VxeTipPrivateMethods
50
50
 
51
51
  const renderVN = () => {
52
52
  const { status, content, icon, title } = props
@@ -55,13 +55,13 @@ export default defineComponent({
55
55
  const iconSlot = slots.icon
56
56
  return h('div', {
57
57
  ref: refElem,
58
- class: ['vxe-tips', {
58
+ class: ['vxe-tip', {
59
59
  [`theme--${status}`]: status
60
60
  }]
61
61
  }, [
62
62
  iconSlot || icon
63
63
  ? h('div', {
64
- class: 'vxe-tips--icon'
64
+ class: 'vxe-tip--icon'
65
65
  }, iconSlot
66
66
  ? getSlotVNs(iconSlot({}))
67
67
  : [
@@ -71,23 +71,23 @@ export default defineComponent({
71
71
  ])
72
72
  : createCommentVNode(),
73
73
  h('div', {
74
- class: 'vxe-tips--body'
74
+ class: 'vxe-tip--body'
75
75
  }, [
76
76
  titleSlot || title
77
77
  ? h('div', {
78
- class: 'vxe-tips--title'
78
+ class: 'vxe-tip--title'
79
79
  }, titleSlot ? getSlotVNs(titleSlot({})) : XEUtils.toValueString(title))
80
80
  : createCommentVNode(),
81
81
  h('div', {
82
- class: 'vxe-tips--content'
82
+ class: 'vxe-tip--content'
83
83
  }, defaultSlot ? getSlotVNs(defaultSlot({})) : XEUtils.toValueString(content))
84
84
  ])
85
85
  ])
86
86
  }
87
87
 
88
- $xeTips.renderVN = renderVN
88
+ $xeTip.renderVN = renderVN
89
89
 
90
- return $xeTips
90
+ return $xeTip
91
91
  },
92
92
  render () {
93
93
  return this.renderVN()
@@ -176,7 +176,7 @@ setConfig({
176
176
  tabs: {},
177
177
  textarea: {},
178
178
  toolbar: {},
179
- tips: {},
179
+ tip: {},
180
180
  tooltip: {
181
181
  // size: null,
182
182
  trigger: 'hover',