vxe-pc-ui 4.20.32 → 4.20.34

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 (92) hide show
  1. package/dist/all.esm.js +788 -584
  2. package/dist/all.esm.min.js +3 -3
  3. package/dist/style.css +127 -2
  4. package/dist/style.mini.css +1 -1
  5. package/es/dynamics/index.d.ts +1 -0
  6. package/es/icon/style.css +1 -1
  7. package/es/icon/style.mini.css +1 -1
  8. package/es/modal/index.d.ts +38 -0
  9. package/es/modal/src/modal.d.ts +9 -0
  10. package/es/modal/src/modal.js +66 -44
  11. package/es/select/src/option.js +2 -1
  12. package/es/select/src/select.js +25 -20
  13. package/es/style.css +127 -2
  14. package/es/style.mini.css +1 -1
  15. package/es/timeline/index.d.ts +92 -0
  16. package/es/timeline/src/timeline-info.d.ts +6 -0
  17. package/es/timeline/src/timeline-info.js +19 -0
  18. package/es/timeline/src/timeline-item.d.ts +11 -8
  19. package/es/timeline/src/timeline-item.js +33 -45
  20. package/es/timeline/src/timeline.d.ts +22 -0
  21. package/es/timeline/src/timeline.js +182 -48
  22. package/es/timeline/src/util.d.ts +7 -0
  23. package/es/timeline/src/util.js +41 -0
  24. package/es/timeline/style.css +122 -0
  25. package/es/timeline/style.mini.css +1 -0
  26. package/es/timeline-item/index.d.ts +42 -34
  27. package/es/ui/index.js +1 -1
  28. package/es/ui/src/log.js +1 -1
  29. package/es/vxe-icon/style.css +1 -1
  30. package/es/vxe-icon/style.mini.css +1 -1
  31. package/es/vxe-timeline/style.css +122 -0
  32. package/es/vxe-timeline/style.mini.css +1 -0
  33. package/lib/icon/style/style.css +1 -1
  34. package/lib/icon/style/style.mini.css +1 -1
  35. package/lib/index.umd.js +976 -771
  36. package/lib/index.umd.min.js +3 -3
  37. package/lib/modal/src/modal.js +66 -44
  38. package/lib/select/src/option.js +2 -1
  39. package/lib/select/src/select.js +25 -20
  40. package/lib/style.css +127 -2
  41. package/lib/style.mini.css +1 -1
  42. package/lib/timeline/src/timeline-info.js +48 -0
  43. package/lib/timeline/src/timeline-item.js +32 -54
  44. package/lib/timeline/src/timeline.js +181 -47
  45. package/lib/timeline/src/util.js +71 -0
  46. package/lib/timeline/style/style.css +122 -0
  47. package/lib/timeline/style/style.mini.css +1 -0
  48. package/lib/ui/index.js +1 -1
  49. package/lib/ui/src/log.js +1 -1
  50. package/lib/vxe-icon/style/style.css +1 -1
  51. package/lib/vxe-icon/style/style.mini.css +1 -1
  52. package/lib/vxe-timeline/style/style.css +122 -0
  53. package/lib/vxe-timeline/style/style.mini.css +1 -0
  54. package/package.json +10 -3
  55. package/packages/modal/src/modal.ts +90 -47
  56. package/packages/select/src/option.ts +3 -1
  57. package/packages/select/src/select.ts +25 -20
  58. package/packages/slider/src/slider.ts +1 -16
  59. package/packages/timeline/src/timeline-info.ts +17 -0
  60. package/packages/timeline/src/timeline-item.ts +25 -50
  61. package/packages/timeline/src/timeline.ts +154 -15
  62. package/packages/timeline/src/util.ts +41 -0
  63. package/styles/components/timeline.scss +133 -0
  64. package/styles/theme/dark.scss +2 -1
  65. package/styles/theme/light.scss +1 -0
  66. package/styles/variable.scss +2 -1
  67. package/types/components/modal.d.ts +2 -0
  68. package/types/components/optgroup.d.ts +0 -1
  69. package/types/components/option.d.ts +0 -1
  70. package/types/components/timeline-item.d.ts +21 -17
  71. package/types/components/timeline.d.ts +41 -8
  72. /package/dist/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
  73. /package/dist/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
  74. /package/dist/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
  75. /package/es/icon/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
  76. /package/es/icon/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
  77. /package/es/icon/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
  78. /package/es/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
  79. /package/es/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
  80. /package/es/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
  81. /package/es/vxe-icon/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
  82. /package/es/vxe-icon/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
  83. /package/es/vxe-icon/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
  84. /package/lib/icon/style/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
  85. /package/lib/icon/style/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
  86. /package/lib/icon/style/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
  87. /package/lib/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
  88. /package/lib/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
  89. /package/lib/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
  90. /package/lib/vxe-icon/style/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
  91. /package/lib/vxe-icon/style/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
  92. /package/lib/vxe-icon/style/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
31
+ var timeline_info_exports = {};
32
+ __export(timeline_info_exports, {
33
+ TimelineItemInfo: () => TimelineItemInfo
34
+ });
35
+ module.exports = __toCommonJS(timeline_info_exports);
36
+ var import_xe_utils = __toESM(require("xe-utils"));
37
+ class TimelineItemInfo {
38
+ constructor($xeTimeline, _vm) {
39
+ __publicField(this, "id", import_xe_utils.default.uniqueId("timeline_item_"));
40
+ Object.assign(this, {
41
+ title: _vm.title,
42
+ content: _vm.content
43
+ });
44
+ }
45
+ update(name, value) {
46
+ this[name] = value;
47
+ }
48
+ }
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
  var timeline_item_exports = {};
30
20
  __export(timeline_item_exports, {
@@ -33,48 +23,36 @@ __export(timeline_item_exports, {
33
23
  module.exports = __toCommonJS(timeline_item_exports);
34
24
  var import_vue = require("vue");
35
25
  var import_comp = require("../../ui/src/comp");
36
- var import_xe_utils = __toESM(require("xe-utils"));
37
- var import_core = require("@vxe-ui/core");
38
- const { createEvent } = import_core.VxeUI;
39
- var timeline_item_default = (0, import_comp.defineVxeComponent)({
40
- name: "VxeTimelineItem",
41
- props: {},
42
- emits: [],
43
- setup(props, context) {
44
- const { emit } = context;
45
- const xID = import_xe_utils.default.uniqueId();
46
- const refElem = (0, import_vue.ref)();
47
- const reactData = (0, import_vue.reactive)({});
48
- const refMaps = {
49
- refElem
50
- };
51
- const computeMaps = {};
52
- const $xeTimelineItem = {
53
- xID,
54
- props,
55
- context,
56
- reactData,
57
- getRefMaps: () => refMaps,
58
- getComputeMaps: () => computeMaps
59
- };
60
- const dispatchEvent = (type, params, evnt) => {
61
- emit(type, createEvent(evnt, { $timelineItem: $xeTimelineItem }, params));
62
- };
63
- const tagMethods = {
64
- dispatchEvent
65
- };
66
- const tagPrivateMethods = {};
67
- Object.assign($xeTimelineItem, tagMethods, tagPrivateMethods);
68
- const renderVN = () => {
69
- return (0, import_vue.h)("div", {
70
- ref: refElem,
71
- class: "vxe-timeline-item"
26
+ var import_util = require("./util");
27
+ var timeline_item_default = (
28
+ /* define-vxe-component start */
29
+ (0, import_comp.defineVxeComponent)({
30
+ name: "VxeTimelineItem",
31
+ props: {
32
+ title: [String, Number],
33
+ content: [String, Number]
34
+ },
35
+ setup(props, context) {
36
+ const { slots } = context;
37
+ const refElem = (0, import_vue.ref)();
38
+ const $xeTimeline = (0, import_vue.inject)("$xeTimeline", {});
39
+ const itemConfig = (0, import_util.createTimelineItem)($xeTimeline, props);
40
+ itemConfig.slots = slots;
41
+ (0, import_util.watchTimelineItem)(props, itemConfig);
42
+ (0, import_vue.onMounted)(() => {
43
+ const el = refElem.value;
44
+ if (el) {
45
+ (0, import_util.assembleTimelineItem)($xeTimeline, el, itemConfig);
46
+ }
72
47
  });
73
- };
74
- $xeTimelineItem.renderVN = renderVN;
75
- return $xeTimelineItem;
76
- },
77
- render() {
78
- return this.renderVN();
79
- }
80
- });
48
+ (0, import_vue.onUnmounted)(() => {
49
+ (0, import_util.destroyTimelineItem)($xeTimeline, itemConfig);
50
+ });
51
+ return () => {
52
+ return (0, import_vue.h)("div", {
53
+ ref: refElem
54
+ });
55
+ };
56
+ }
57
+ })
58
+ );
@@ -35,51 +35,185 @@ var import_vue = require("vue");
35
35
  var import_comp = require("../../ui/src/comp");
36
36
  var import_xe_utils = __toESM(require("xe-utils"));
37
37
  var import_core = require("@vxe-ui/core");
38
- const { getConfig, createEvent } = import_core.VxeUI;
39
- var timeline_default = (0, import_comp.defineVxeComponent)({
40
- name: "VxeTimeline",
41
- props: {
42
- size: {
43
- type: String,
44
- default: () => getConfig().timeline.size || getConfig().size
45
- }
46
- },
47
- emits: [],
48
- setup(props, context) {
49
- const { emit } = context;
50
- const xID = import_xe_utils.default.uniqueId();
51
- const refElem = (0, import_vue.ref)();
52
- const reactData = (0, import_vue.reactive)({});
53
- const refMaps = {
54
- refElem
55
- };
56
- const computeMaps = {};
57
- const $xeTimeline = {
58
- xID,
59
- props,
60
- context,
61
- reactData,
62
- getRefMaps: () => refMaps,
63
- getComputeMaps: () => computeMaps
64
- };
65
- const dispatchEvent = (type, params, evnt) => {
66
- emit(type, createEvent(evnt, { $timeline: $xeTimeline }, params));
67
- };
68
- const tagMethods = {
69
- dispatchEvent
70
- };
71
- const tagPrivateMethods = {};
72
- Object.assign($xeTimeline, tagMethods, tagPrivateMethods);
73
- const renderVN = () => {
74
- return (0, import_vue.h)("div", {
75
- ref: refElem,
76
- class: "vxe-timeline"
38
+ var import_utils = require("../../ui/src/utils");
39
+ const { getConfig, useFns, createEvent } = import_core.VxeUI;
40
+ function createInternalData() {
41
+ return {
42
+ fullData: []
43
+ };
44
+ }
45
+ function createReactData() {
46
+ return {
47
+ itemList: [],
48
+ staticItems: [],
49
+ isOptConf: false
50
+ };
51
+ }
52
+ var timeline_default = (
53
+ /* define-vxe-component start */
54
+ (0, import_comp.defineVxeComponent)({
55
+ name: "VxeTimeline",
56
+ props: {
57
+ size: {
58
+ type: String,
59
+ default: () => getConfig().timeline.size || getConfig().size
60
+ },
61
+ options: Array,
62
+ reverse: {
63
+ type: Boolean,
64
+ default: () => getConfig().timeline.reverse
65
+ },
66
+ vertical: {
67
+ type: Boolean,
68
+ default: () => getConfig().timeline.vertical
69
+ },
70
+ optionProps: Object
71
+ },
72
+ emits: [],
73
+ setup(props, context) {
74
+ const { slots, emit } = context;
75
+ const xID = import_xe_utils.default.uniqueId();
76
+ const { computeSize } = useFns.useSize(props);
77
+ const refElem = (0, import_vue.ref)();
78
+ const reactData = (0, import_vue.reactive)(createReactData());
79
+ const internalData = createInternalData();
80
+ const refMaps = {
81
+ refElem
82
+ };
83
+ const computeMaps = {};
84
+ const $xeTimeline = {
85
+ xID,
86
+ props,
87
+ context,
88
+ reactData,
89
+ internalData,
90
+ getRefMaps: () => refMaps,
91
+ getComputeMaps: () => computeMaps
92
+ };
93
+ const computePropsOpts = (0, import_vue.computed)(() => {
94
+ return Object.assign({}, getConfig().timeline.optionProps, props.optionProps);
77
95
  });
78
- };
79
- $xeTimeline.renderVN = renderVN;
80
- return $xeTimeline;
81
- },
82
- render() {
83
- return this.renderVN();
84
- }
85
- });
96
+ const computeTitleField = (0, import_vue.computed)(() => {
97
+ const propsOpts = computePropsOpts.value;
98
+ return propsOpts.title || "title";
99
+ });
100
+ const computeContentField = (0, import_vue.computed)(() => {
101
+ const propsOpts = computePropsOpts.value;
102
+ return propsOpts.content || "content";
103
+ });
104
+ const dispatchEvent = (type, params, evnt) => {
105
+ emit(type, createEvent(evnt, { $timeline: $xeTimeline }, params));
106
+ };
107
+ const loadData = (opts, isOptConf) => {
108
+ reactData.isOptConf = isOptConf;
109
+ internalData.fullData = opts || [];
110
+ updateItems();
111
+ };
112
+ const updateItems = () => {
113
+ const { reverse } = props;
114
+ const { fullData } = internalData;
115
+ reactData.itemList = reverse ? fullData.slice(0).reverse() : fullData.slice(0);
116
+ };
117
+ const timelineMethods = {
118
+ dispatchEvent
119
+ };
120
+ const timelinePrivateMethods = {};
121
+ Object.assign($xeTimeline, timelineMethods, timelinePrivateMethods);
122
+ const renderItem = (item, index) => {
123
+ const { itemList, isOptConf } = reactData;
124
+ const titleField = computeTitleField.value;
125
+ const contentField = computeContentField.value;
126
+ const titleVal = (0, import_utils.getText)(isOptConf ? item[titleField] : item.title);
127
+ const contentVal = (0, import_utils.getText)(isOptConf ? item[contentField] : item.content);
128
+ const titleSlot = slots.title;
129
+ const contentSlot = slots.content;
130
+ return (0, import_vue.h)(
131
+ "div",
132
+ {
133
+ key: index,
134
+ class: ["vxe-timeline--item", {
135
+ "is--last": index === itemList.length - 1
136
+ }]
137
+ },
138
+ [
139
+ (0, import_vue.h)("div", {
140
+ class: "vxe-timeline--item-line"
141
+ }),
142
+ (0, import_vue.h)("div", {
143
+ class: "vxe-timeline--item-node"
144
+ }),
145
+ (0, import_vue.h)("div", {
146
+ class: "vxe-timeline--item-wrapper"
147
+ }, [
148
+ (0, import_vue.h)("div", {
149
+ class: "vxe-timeline--item-title"
150
+ }, titleSlot ? titleSlot({ item }) : titleVal),
151
+ (0, import_vue.h)("div", {
152
+ class: "vxe-timeline--item-content"
153
+ }, contentSlot ? contentSlot({ item }) : contentVal)
154
+ ])
155
+ ]
156
+ );
157
+ };
158
+ const renderVN = () => {
159
+ const { vertical } = props;
160
+ const { itemList } = reactData;
161
+ const vSize = computeSize.value;
162
+ const defaultSlot = slots.default;
163
+ return (0, import_vue.h)(
164
+ "div",
165
+ {
166
+ ref: refElem,
167
+ class: ["vxe-timeline", {
168
+ [`size--${vSize}`]: vSize,
169
+ "is--vertical": vertical,
170
+ "is--horizontal": !vertical
171
+ }]
172
+ },
173
+ [
174
+ (0, import_vue.h)("div", {
175
+ class: "vxe-timeline--slots"
176
+ }, defaultSlot ? defaultSlot({}) : []),
177
+ (0, import_vue.h)("div", {
178
+ class: "vxe-timeline--body"
179
+ }, itemList.map((item, index) => renderItem(item, index)))
180
+ ]
181
+ );
182
+ };
183
+ (0, import_vue.watch)(() => reactData.staticItems, (val) => {
184
+ loadData(val, false);
185
+ });
186
+ const refOptsFlag = (0, import_vue.ref)(0);
187
+ (0, import_vue.watch)(() => props.options, () => {
188
+ refOptsFlag.value++;
189
+ });
190
+ (0, import_vue.watch)(() => props.options ? props.options.length : -1, () => {
191
+ refOptsFlag.value++;
192
+ });
193
+ (0, import_vue.watch)(refOptsFlag, () => {
194
+ loadData(props.options || [], true);
195
+ });
196
+ (0, import_vue.watch)(() => props.reverse, () => {
197
+ updateItems();
198
+ });
199
+ (0, import_vue.onMounted)(() => {
200
+ const { staticItems } = reactData;
201
+ if (staticItems.length) {
202
+ loadData(staticItems, false);
203
+ } else {
204
+ loadData(props.options || [], true);
205
+ }
206
+ });
207
+ (0, import_vue.onBeforeUnmount)(() => {
208
+ import_xe_utils.default.assign(reactData, createReactData());
209
+ import_xe_utils.default.assign(internalData, createInternalData());
210
+ });
211
+ (0, import_vue.provide)("$xeTimeline", $xeTimeline);
212
+ $xeTimeline.renderVN = renderVN;
213
+ return $xeTimeline;
214
+ },
215
+ render() {
216
+ return this.renderVN();
217
+ }
218
+ })
219
+ );
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var util_exports = {};
30
+ __export(util_exports, {
31
+ assembleTimelineItem: () => assembleTimelineItem,
32
+ createTimelineItem: () => createTimelineItem,
33
+ destroyTimelineItem: () => destroyTimelineItem,
34
+ isTimelineItem: () => isTimelineItem,
35
+ watchTimelineItem: () => watchTimelineItem
36
+ });
37
+ module.exports = __toCommonJS(util_exports);
38
+ var import_vue = require("vue");
39
+ var import_xe_utils = __toESM(require("xe-utils"));
40
+ var import_timeline_info = require("./timeline-info");
41
+ function isTimelineItem(item) {
42
+ return item instanceof import_timeline_info.TimelineItemInfo;
43
+ }
44
+ function createTimelineItem($xeTimeline, _vm) {
45
+ return isTimelineItem(_vm) ? _vm : new import_timeline_info.TimelineItemInfo($xeTimeline, _vm);
46
+ }
47
+ function watchTimelineItem(props, itemInfo) {
48
+ Object.keys(props).forEach((name) => {
49
+ (0, import_vue.watch)(() => props[name], (value) => {
50
+ itemInfo.update(name, value);
51
+ });
52
+ });
53
+ }
54
+ function assembleTimelineItem($xeTimeline, el, itemInfo) {
55
+ const { reactData } = $xeTimeline;
56
+ const { staticItems } = reactData;
57
+ const parentElem = el.parentNode;
58
+ if (parentElem && staticItems) {
59
+ staticItems.splice(import_xe_utils.default.arrayIndexOf(parentElem.children, el), 0, itemInfo);
60
+ reactData.staticItems = staticItems.slice(0);
61
+ }
62
+ }
63
+ function destroyTimelineItem($xeTimeline, itemInfo) {
64
+ const { reactData } = $xeTimeline;
65
+ const { staticItems } = reactData;
66
+ const index = import_xe_utils.default.findIndexOf(staticItems, (item) => item.id === itemInfo.id);
67
+ if (index > -1) {
68
+ staticItems.splice(index, 1);
69
+ }
70
+ reactData.staticItems = staticItems.slice(0);
71
+ }
@@ -0,0 +1,122 @@
1
+ .vxe-timeline {
2
+ --vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-default);
3
+ --vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-default);
4
+ }
5
+ .vxe-timeline.size--xlarge {
6
+ --vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-xlarge);
7
+ --vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-xlarge);
8
+ }
9
+ .vxe-timeline.size--large {
10
+ --vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-large);
11
+ --vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-large);
12
+ }
13
+ .vxe-timeline.size--medium {
14
+ --vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-medium);
15
+ --vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-medium);
16
+ }
17
+ .vxe-timeline.size--small {
18
+ --vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-small);
19
+ --vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-small);
20
+ }
21
+ .vxe-timeline.size--mini {
22
+ --vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-mini);
23
+ --vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-mini);
24
+ }
25
+
26
+ .vxe-timeline {
27
+ display: flex;
28
+ flex-direction: column;
29
+ padding: var(--vxe-ui-timeline-current-padding) 0;
30
+ font-size: var(--vxe-ui-timeline-current-font-size);
31
+ color: var(--vxe-ui-font-color);
32
+ }
33
+ .vxe-timeline .vxe-timeline--body {
34
+ display: flex;
35
+ flex-direction: column;
36
+ }
37
+ .vxe-timeline .vxe-timeline--item {
38
+ position: relative;
39
+ display: flex;
40
+ padding-bottom: 1.25em;
41
+ }
42
+ .vxe-timeline .vxe-timeline--item:last-child {
43
+ padding-bottom: 0;
44
+ }
45
+ .vxe-timeline .vxe-timeline--item.is--last .vxe-timeline--item-line {
46
+ display: none;
47
+ }
48
+ .vxe-timeline .vxe-timeline--item-line {
49
+ position: absolute;
50
+ left: 0.4375em;
51
+ top: 1.125em;
52
+ bottom: 0;
53
+ width: 0.125em;
54
+ background-color: var(--vxe-ui-base-border-color);
55
+ }
56
+ .vxe-timeline .vxe-timeline--item-node {
57
+ position: relative;
58
+ z-index: 1;
59
+ flex-shrink: 0;
60
+ width: 1em;
61
+ height: 1em;
62
+ margin-top: 0.25em;
63
+ margin-right: 0.75em;
64
+ border: 0.125em solid var(--vxe-ui-font-primary-color);
65
+ border-radius: 50%;
66
+ background-color: var(--vxe-ui-layout-background-color);
67
+ box-sizing: border-box;
68
+ }
69
+ .vxe-timeline .vxe-timeline--item-wrapper {
70
+ flex: 1;
71
+ min-width: 0;
72
+ padding-top: 0.0625em;
73
+ }
74
+ .vxe-timeline .vxe-timeline--item-title {
75
+ font-weight: 600;
76
+ line-height: 1.4;
77
+ color: var(--vxe-ui-font-color);
78
+ }
79
+ .vxe-timeline .vxe-timeline--item-content {
80
+ margin-top: 0.25em;
81
+ line-height: 1.5;
82
+ color: var(--vxe-ui-font-lighten-color);
83
+ word-break: break-word;
84
+ }
85
+ .vxe-timeline.is--horizontal .vxe-timeline--body {
86
+ flex-direction: row;
87
+ align-items: flex-start;
88
+ }
89
+ .vxe-timeline.is--horizontal .vxe-timeline--item {
90
+ flex: 1;
91
+ flex-direction: column;
92
+ align-items: center;
93
+ padding-bottom: 0;
94
+ padding-right: 1.25em;
95
+ text-align: center;
96
+ }
97
+ .vxe-timeline.is--horizontal .vxe-timeline--item:last-child {
98
+ padding-right: 0;
99
+ }
100
+ .vxe-timeline.is--horizontal .vxe-timeline--item-line {
101
+ left: 50%;
102
+ top: 0.4375em;
103
+ right: -50%;
104
+ bottom: auto;
105
+ width: 100%;
106
+ height: 0.125em;
107
+ }
108
+ .vxe-timeline.is--horizontal .vxe-timeline--item-node {
109
+ margin-top: 0;
110
+ margin-right: 0;
111
+ margin-bottom: 0.5em;
112
+ }
113
+ .vxe-timeline.is--horizontal .vxe-timeline--item-wrapper {
114
+ padding-top: 0;
115
+ }
116
+ .vxe-timeline.is--horizontal .vxe-timeline--item-content {
117
+ margin-top: 0.125em;
118
+ }
119
+
120
+ .vxe-timeline--slots {
121
+ display: none;
122
+ }
@@ -0,0 +1 @@
1
+ .vxe-timeline{--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-default);--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-default)}.vxe-timeline.size--xlarge{--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-xlarge);--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-xlarge)}.vxe-timeline.size--large{--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-large);--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-large)}.vxe-timeline.size--medium{--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-medium);--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-medium)}.vxe-timeline.size--small{--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-small);--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-small)}.vxe-timeline.size--mini{--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-mini);--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-mini)}.vxe-timeline{display:flex;flex-direction:column;padding:var(--vxe-ui-timeline-current-padding) 0;font-size:var(--vxe-ui-timeline-current-font-size);color:var(--vxe-ui-font-color)}.vxe-timeline .vxe-timeline--body{display:flex;flex-direction:column}.vxe-timeline .vxe-timeline--item{position:relative;display:flex;padding-bottom:1.25em}.vxe-timeline .vxe-timeline--item:last-child{padding-bottom:0}.vxe-timeline .vxe-timeline--item.is--last .vxe-timeline--item-line{display:none}.vxe-timeline .vxe-timeline--item-line{position:absolute;left:.4375em;top:1.125em;bottom:0;width:.125em;background-color:var(--vxe-ui-base-border-color)}.vxe-timeline .vxe-timeline--item-node{position:relative;z-index:1;flex-shrink:0;width:1em;height:1em;margin-top:.25em;margin-right:.75em;border:.125em solid var(--vxe-ui-font-primary-color);border-radius:50%;background-color:var(--vxe-ui-layout-background-color);box-sizing:border-box}.vxe-timeline .vxe-timeline--item-wrapper{flex:1;min-width:0;padding-top:.0625em}.vxe-timeline .vxe-timeline--item-title{font-weight:600;line-height:1.4;color:var(--vxe-ui-font-color)}.vxe-timeline .vxe-timeline--item-content{margin-top:.25em;line-height:1.5;color:var(--vxe-ui-font-lighten-color);word-break:break-word}.vxe-timeline.is--horizontal .vxe-timeline--body{flex-direction:row;align-items:flex-start}.vxe-timeline.is--horizontal .vxe-timeline--item{flex:1;flex-direction:column;align-items:center;padding-bottom:0;padding-right:1.25em;text-align:center}.vxe-timeline.is--horizontal .vxe-timeline--item:last-child{padding-right:0}.vxe-timeline.is--horizontal .vxe-timeline--item-line{inset:.4375em -50% auto 50%;width:100%;height:.125em}.vxe-timeline.is--horizontal .vxe-timeline--item-node{margin-top:0;margin-right:0;margin-bottom:.5em}.vxe-timeline.is--horizontal .vxe-timeline--item-wrapper{padding-top:0}.vxe-timeline.is--horizontal .vxe-timeline--item-content{margin-top:.125em}.vxe-timeline--slots{display:none}
package/lib/ui/index.js CHANGED
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(ui_exports);
27
27
  var import_core = require("@vxe-ui/core");
28
28
  var import_dynamics = require("../dynamics");
29
29
  var import_log = require("./src/log");
30
- const version = "4.20.32";
30
+ const version = "4.20.34";
31
31
  import_core.VxeUI.uiVersion = version;
32
32
  import_core.VxeUI.dynamicApp = import_dynamics.dynamicApp;
33
33
  function config(options) {
package/lib/ui/src/log.js CHANGED
@@ -25,7 +25,7 @@ __export(log_exports, {
25
25
  module.exports = __toCommonJS(log_exports);
26
26
  var import_core = require("@vxe-ui/core");
27
27
  const { log } = import_core.VxeUI;
28
- const uiVersion = `ui v${"4.20.32"}`;
28
+ const uiVersion = `ui v${"4.20.34"}`;
29
29
  function createComponentLog(name) {
30
30
  const tableVersion = import_core.VxeUI.tableVersion ? `table v${import_core.VxeUI.tableVersion}` : "";
31
31
  const ganttVersion = import_core.VxeUI.ganttVersion ? `gantt v${import_core.VxeUI.ganttVersion}` : "";