vxe-pc-ui 4.8.10 → 4.8.12
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.
- package/es/components.js +0 -3
- package/es/form/src/form-config-item.js +1 -0
- package/es/form/src/form-group.js +1 -0
- package/es/form/src/form-item.js +1 -0
- package/es/form/src/form.js +66 -9
- package/es/form/src/render.js +5 -5
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +3 -3
- package/es/ui/src/dom.js +9 -0
- package/es/ui/src/log.js +1 -1
- package/lib/components.js +1 -13
- package/lib/components.min.js +1 -1
- package/lib/form/src/form-config-item.js +1 -0
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-group.js +1 -0
- package/lib/form/src/form-group.min.js +1 -1
- package/lib/form/src/form-item.js +1 -0
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +74 -8
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +6 -3
- package/lib/form/src/render.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +101 -104
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +3 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +10 -0
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/components.ts +0 -3
- package/packages/form/src/form-config-item.ts +1 -0
- package/packages/form/src/form-group.ts +1 -0
- package/packages/form/src/form-item.ts +1 -0
- package/packages/form/src/form.ts +69 -10
- package/packages/form/src/render.ts +11 -11
- package/packages/ui/index.ts +3 -2
- package/packages/ui/src/dom.ts +10 -0
- package/styles/all.scss +0 -1
- package/types/all.d.ts +6 -2
- package/types/components/form.d.ts +11 -2
- package/types/components/table.d.ts +5 -0
- package/types/ui/global-config.d.ts +20 -10
- package/es/gantt/index.js +0 -12
- package/es/gantt/src/gantt.js +0 -61
- package/es/gantt/style.css +0 -0
- package/es/gantt/style.min.css +0 -0
- package/es/vxe-gantt/index.js +0 -3
- package/es/vxe-gantt/style.css +0 -0
- package/es/vxe-gantt/style.min.css +0 -0
- package/lib/gantt/index.js +0 -19
- package/lib/gantt/index.min.js +0 -1
- package/lib/gantt/src/gantt.js +0 -72
- package/lib/gantt/src/gantt.min.js +0 -1
- package/lib/gantt/style/index.js +0 -1
- package/lib/gantt/style/style.css +0 -0
- package/lib/gantt/style/style.min.css +0 -0
- package/lib/vxe-gantt/index.js +0 -22
- package/lib/vxe-gantt/index.min.js +0 -1
- package/lib/vxe-gantt/style/index.js +0 -1
- package/lib/vxe-gantt/style/style.css +0 -0
- package/lib/vxe-gantt/style/style.min.css +0 -0
- package/packages/gantt/index.ts +0 -16
- package/packages/gantt/src/gantt.ts +0 -87
- package/styles/components/gantt.scss +0 -0
- /package/es/icon/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/es/icon/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/es/icon/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
- /package/es/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/es/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/es/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/lib/icon/style/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
- /package/lib/{iconfont.1754474084337.ttf → iconfont.1754641145942.ttf} +0 -0
- /package/lib/{iconfont.1754474084337.woff → iconfont.1754641145942.woff} +0 -0
- /package/lib/{iconfont.1754474084337.woff2 → iconfont.1754641145942.woff2} +0 -0
|
@@ -26,12 +26,9 @@ import { VxeDateRangePickerProps } from '../components/date-range-picker'
|
|
|
26
26
|
import { VxeDrawerProps } from '../components/drawer'
|
|
27
27
|
import { VxeEmptyProps } from '../components/empty'
|
|
28
28
|
import { VxeFormProps } from '../components/form'
|
|
29
|
-
import { VxeFormDesignProps } from '../components/form-design'
|
|
30
29
|
import { VxeFormGatherProps } from '../components/form-gather'
|
|
31
30
|
import { VxeFormGroupProps } from '../components/form-group'
|
|
32
31
|
import { VxeFormItemProps } from '../components/form-item'
|
|
33
|
-
import { VxeFormViewProps } from '../components/form-view'
|
|
34
|
-
import { VxeGanttProps } from '../components/gantt'
|
|
35
32
|
import { VxeIconProps } from '../components/icon'
|
|
36
33
|
import { VxeIconPickerProps } from '../components/icon-picker'
|
|
37
34
|
import { VxeImageProps } from '../components/image'
|
|
@@ -44,8 +41,6 @@ import { VxeLayoutContainerProps } from '../components/layout-container'
|
|
|
44
41
|
import { VxeLayoutFooterProps } from '../components/layout-footer'
|
|
45
42
|
import { VxeLayoutHeaderProps } from '../components/layout-header'
|
|
46
43
|
import { VxeLinkProps } from '../components/link'
|
|
47
|
-
import { VxeListDesignProps } from '../components/list-design'
|
|
48
|
-
import { VxeListViewProps } from '../components/list-view'
|
|
49
44
|
import { VxeListProps } from '../components/list'
|
|
50
45
|
import { VxeLoadingProps } from '../components/loading'
|
|
51
46
|
import { VxeMenuProps } from '../components/menu'
|
|
@@ -92,6 +87,17 @@ import { VxeColgroupProps } from '../components/colgroup'
|
|
|
92
87
|
import { VxeGridProps } from '../components/grid'
|
|
93
88
|
import { VxeToolbarProps } from '../components/toolbar'
|
|
94
89
|
|
|
90
|
+
// Vxe Design
|
|
91
|
+
import { VxeFormDesignProps } from '../components/form-design'
|
|
92
|
+
import { VxeFormViewProps } from '../components/form-view'
|
|
93
|
+
import { VxeListDesignProps } from '../components/list-design'
|
|
94
|
+
import { VxeListViewProps } from '../components/list-view'
|
|
95
|
+
import { VxeFlowDesignProps } from '../components/flow-design'
|
|
96
|
+
import { VxeFlowViewProps } from '../components/flow-view'
|
|
97
|
+
|
|
98
|
+
// Vxe Gantt
|
|
99
|
+
import { VxeGanttProps } from '../components/gantt'
|
|
100
|
+
|
|
95
101
|
declare module '@vxe-ui/core' {
|
|
96
102
|
export interface VxeGlobalConfig {
|
|
97
103
|
alert?: VxeAlertProps
|
|
@@ -121,12 +127,9 @@ declare module '@vxe-ui/core' {
|
|
|
121
127
|
drawer?: VxeDrawerProps
|
|
122
128
|
empty?: VxeEmptyProps
|
|
123
129
|
form?: VxeFormProps
|
|
124
|
-
formDesign?: VxeFormDesignProps
|
|
125
130
|
formGather?: VxeFormGatherProps
|
|
126
131
|
formGroup?: VxeFormGroupProps
|
|
127
132
|
formItem?: VxeFormItemProps
|
|
128
|
-
formView?: VxeFormViewProps
|
|
129
|
-
gantt?: VxeGanttProps
|
|
130
133
|
icon?: VxeIconProps
|
|
131
134
|
iconPicker?: VxeIconPickerProps
|
|
132
135
|
image?: VxeImageProps
|
|
@@ -139,8 +142,6 @@ declare module '@vxe-ui/core' {
|
|
|
139
142
|
layoutFooter?: VxeLayoutFooterProps
|
|
140
143
|
layoutHeader?: VxeLayoutHeaderProps
|
|
141
144
|
link?: VxeLinkProps
|
|
142
|
-
listDesign?: VxeListDesignProps
|
|
143
|
-
listView?: VxeListViewProps
|
|
144
145
|
list?: VxeListProps
|
|
145
146
|
loading?: VxeLoadingProps
|
|
146
147
|
menu?: VxeMenuProps
|
|
@@ -186,6 +187,15 @@ declare module '@vxe-ui/core' {
|
|
|
186
187
|
grid?: VxeGridProps
|
|
187
188
|
toolbar?: VxeToolbarProps
|
|
188
189
|
|
|
190
|
+
formDesign?: VxeFormDesignProps
|
|
191
|
+
formView?: VxeFormViewProps
|
|
192
|
+
listDesign?: VxeListDesignProps
|
|
193
|
+
listView?: VxeListViewProps
|
|
194
|
+
flowDesign?: VxeFlowDesignProps
|
|
195
|
+
flowView?: VxeFlowViewProps
|
|
196
|
+
|
|
197
|
+
gantt?: VxeGanttProps
|
|
198
|
+
|
|
189
199
|
/**
|
|
190
200
|
* 无效,已废弃
|
|
191
201
|
* @deprecated
|
package/es/gantt/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VxeUI } from '@vxe-ui/core';
|
|
2
|
-
import VxeGanttComponent from './src/gantt';
|
|
3
|
-
import { dynamicApp } from '../dynamics';
|
|
4
|
-
export const VxeGantt = Object.assign({}, VxeGanttComponent, {
|
|
5
|
-
install(app) {
|
|
6
|
-
app.component(VxeGanttComponent.name, VxeGanttComponent);
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
dynamicApp.use(VxeGantt);
|
|
10
|
-
VxeUI.component(VxeGanttComponent);
|
|
11
|
-
export const Gantt = VxeGantt;
|
|
12
|
-
export default VxeGantt;
|
package/es/gantt/src/gantt.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ref, h, reactive, onUnmounted } from 'vue';
|
|
2
|
-
import { defineVxeComponent } from '../../ui/src/comp';
|
|
3
|
-
import { getConfig, createEvent } from '../../ui';
|
|
4
|
-
import XEUtils from 'xe-utils';
|
|
5
|
-
function createInternalData() {
|
|
6
|
-
return {};
|
|
7
|
-
}
|
|
8
|
-
export default defineVxeComponent({
|
|
9
|
-
name: 'VxeGantt',
|
|
10
|
-
props: {
|
|
11
|
-
size: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: () => getConfig().gantt.size || getConfig().size
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
emits: [],
|
|
17
|
-
setup(props, context) {
|
|
18
|
-
const { emit } = context;
|
|
19
|
-
const xID = XEUtils.uniqueId();
|
|
20
|
-
const refElem = ref();
|
|
21
|
-
const refTable = ref();
|
|
22
|
-
const reactData = reactive({});
|
|
23
|
-
const internalData = createInternalData();
|
|
24
|
-
const refMaps = {
|
|
25
|
-
refElem,
|
|
26
|
-
refTable
|
|
27
|
-
};
|
|
28
|
-
const computeMaps = {};
|
|
29
|
-
const $xeGantt = {
|
|
30
|
-
xID,
|
|
31
|
-
props,
|
|
32
|
-
context,
|
|
33
|
-
reactData,
|
|
34
|
-
internalData,
|
|
35
|
-
getRefMaps: () => refMaps,
|
|
36
|
-
getComputeMaps: () => computeMaps
|
|
37
|
-
};
|
|
38
|
-
const dispatchEvent = (type, params, evnt) => {
|
|
39
|
-
emit(type, createEvent(evnt, { $gantt: $xeGantt }, params));
|
|
40
|
-
};
|
|
41
|
-
const ganttMethods = {
|
|
42
|
-
dispatchEvent
|
|
43
|
-
};
|
|
44
|
-
const ganttPrivateMethods = {};
|
|
45
|
-
Object.assign($xeGantt, ganttMethods, ganttPrivateMethods);
|
|
46
|
-
const renderVN = () => {
|
|
47
|
-
return h('div', {
|
|
48
|
-
ref: refElem,
|
|
49
|
-
class: 'vxe-gantt'
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
onUnmounted(() => {
|
|
53
|
-
XEUtils.assign(internalData, createInternalData());
|
|
54
|
-
});
|
|
55
|
-
$xeGantt.renderVN = renderVN;
|
|
56
|
-
return $xeGantt;
|
|
57
|
-
},
|
|
58
|
-
render() {
|
|
59
|
-
return this.renderVN();
|
|
60
|
-
}
|
|
61
|
-
});
|
package/es/gantt/style.css
DELETED
|
File without changes
|
package/es/gantt/style.min.css
DELETED
|
File without changes
|
package/es/vxe-gantt/index.js
DELETED
package/es/vxe-gantt/style.css
DELETED
|
File without changes
|
|
File without changes
|
package/lib/gantt/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.VxeGantt = exports.Gantt = void 0;
|
|
7
|
-
var _core = require("@vxe-ui/core");
|
|
8
|
-
var _gantt = _interopRequireDefault(require("./src/gantt"));
|
|
9
|
-
var _dynamics = require("../dynamics");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
const VxeGantt = exports.VxeGantt = Object.assign({}, _gantt.default, {
|
|
12
|
-
install(app) {
|
|
13
|
-
app.component(_gantt.default.name, _gantt.default);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
_dynamics.dynamicApp.use(VxeGantt);
|
|
17
|
-
_core.VxeUI.component(_gantt.default);
|
|
18
|
-
const Gantt = exports.Gantt = VxeGantt;
|
|
19
|
-
var _default = exports.default = VxeGantt;
|
package/lib/gantt/index.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeGantt=exports.Gantt=void 0;var _core=require("@vxe-ui/core"),_gantt=_interopRequireDefault(require("./src/gantt")),_dynamics=require("../dynamics");function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}const VxeGantt=exports.VxeGantt=Object.assign({},_gantt.default,{install(t){t.component(_gantt.default.name,_gantt.default)}}),Gantt=(_dynamics.dynamicApp.use(VxeGantt),_core.VxeUI.component(_gantt.default),exports.Gantt=VxeGantt);var _default=exports.default=VxeGantt;
|
package/lib/gantt/src/gantt.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _vue = require("vue");
|
|
8
|
-
var _comp = require("../../ui/src/comp");
|
|
9
|
-
var _ui = require("../../ui");
|
|
10
|
-
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function createInternalData() {
|
|
13
|
-
return {};
|
|
14
|
-
}
|
|
15
|
-
var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
16
|
-
name: 'VxeGantt',
|
|
17
|
-
props: {
|
|
18
|
-
size: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: () => (0, _ui.getConfig)().gantt.size || (0, _ui.getConfig)().size
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
emits: [],
|
|
24
|
-
setup(props, context) {
|
|
25
|
-
const {
|
|
26
|
-
emit
|
|
27
|
-
} = context;
|
|
28
|
-
const xID = _xeUtils.default.uniqueId();
|
|
29
|
-
const refElem = (0, _vue.ref)();
|
|
30
|
-
const refTable = (0, _vue.ref)();
|
|
31
|
-
const reactData = (0, _vue.reactive)({});
|
|
32
|
-
const internalData = createInternalData();
|
|
33
|
-
const refMaps = {
|
|
34
|
-
refElem,
|
|
35
|
-
refTable
|
|
36
|
-
};
|
|
37
|
-
const computeMaps = {};
|
|
38
|
-
const $xeGantt = {
|
|
39
|
-
xID,
|
|
40
|
-
props,
|
|
41
|
-
context,
|
|
42
|
-
reactData,
|
|
43
|
-
internalData,
|
|
44
|
-
getRefMaps: () => refMaps,
|
|
45
|
-
getComputeMaps: () => computeMaps
|
|
46
|
-
};
|
|
47
|
-
const dispatchEvent = (type, params, evnt) => {
|
|
48
|
-
emit(type, (0, _ui.createEvent)(evnt, {
|
|
49
|
-
$gantt: $xeGantt
|
|
50
|
-
}, params));
|
|
51
|
-
};
|
|
52
|
-
const ganttMethods = {
|
|
53
|
-
dispatchEvent
|
|
54
|
-
};
|
|
55
|
-
const ganttPrivateMethods = {};
|
|
56
|
-
Object.assign($xeGantt, ganttMethods, ganttPrivateMethods);
|
|
57
|
-
const renderVN = () => {
|
|
58
|
-
return (0, _vue.h)('div', {
|
|
59
|
-
ref: refElem,
|
|
60
|
-
class: 'vxe-gantt'
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
(0, _vue.onUnmounted)(() => {
|
|
64
|
-
_xeUtils.default.assign(internalData, createInternalData());
|
|
65
|
-
});
|
|
66
|
-
$xeGantt.renderVN = renderVN;
|
|
67
|
-
return $xeGantt;
|
|
68
|
-
},
|
|
69
|
-
render() {
|
|
70
|
-
return this.renderVN();
|
|
71
|
-
}
|
|
72
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_ui=require("../../ui"),_xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createInternalData(){return{}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeGantt",props:{size:{type:String,default:()=>(0,_ui.getConfig)().gantt.size||(0,_ui.getConfig)().size}},emits:[],setup(e,t){const a=t["emit"];var r=_xeUtils.default.uniqueId();const n=(0,_vue.ref)();var u=(0,_vue.ref)(),i=(0,_vue.reactive)({});const s=createInternalData(),o={refElem:n,refTable:u},l={},_={xID:r,props:e,context:t,reactData:i,internalData:s,getRefMaps:()=>o,getComputeMaps:()=>l};Object.assign(_,{dispatchEvent:(e,t,r)=>{a(e,(0,_ui.createEvent)(r,{$gantt:_},t))}},{});return(0,_vue.onUnmounted)(()=>{_xeUtils.default.assign(s,createInternalData())}),_.renderVN=()=>(0,_vue.h)("div",{ref:n,class:"vxe-gantt"}),_},render(){return this.renderVN()}});
|
package/lib/gantt/style/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('./style.css')
|
|
File without changes
|
|
File without changes
|
package/lib/vxe-gantt/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {};
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _gantt = _interopRequireWildcard(require("../gantt"));
|
|
9
|
-
Object.keys(_gantt).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
12
|
-
if (key in exports && exports[key] === _gantt[key]) return;
|
|
13
|
-
Object.defineProperty(exports, key, {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _gantt[key];
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
});
|
|
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
|
-
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 = _gantt.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_gantt=(exports.default=void 0,_interopRequireWildcard(require("../gantt")));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,n,a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e)"default"!==r&&{}.hasOwnProperty.call(e,r)&&((n=o?Object.getOwnPropertyDescriptor(e,r):null)&&(n.get||n.set)?Object.defineProperty(a,r,n):a[r]=e[r]);return a.default=e,t&&t.set(e,a),a}Object.keys(_gantt).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_gantt[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _gantt[e]}})});var _default=exports.default=_gantt.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('./style.css')
|
|
File without changes
|
|
File without changes
|
package/packages/gantt/index.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
-
import VxeGanttComponent from './src/gantt'
|
|
4
|
-
import { dynamicApp } from '../dynamics'
|
|
5
|
-
|
|
6
|
-
export const VxeGantt = Object.assign({}, VxeGanttComponent, {
|
|
7
|
-
install (app: App) {
|
|
8
|
-
app.component(VxeGanttComponent.name as string, VxeGanttComponent)
|
|
9
|
-
}
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
dynamicApp.use(VxeGantt)
|
|
13
|
-
VxeUI.component(VxeGanttComponent)
|
|
14
|
-
|
|
15
|
-
export const Gantt = VxeGantt
|
|
16
|
-
export default VxeGantt
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { ref, h, reactive, PropType, onUnmounted } from 'vue'
|
|
2
|
-
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
|
-
import { getConfig, createEvent } from '../../ui'
|
|
4
|
-
import XEUtils from 'xe-utils'
|
|
5
|
-
|
|
6
|
-
import type { GanttReactData, VxeGanttEmits, VxeGanttPropTypes, GanttPrivateRef, GanttInternalData, ValueOf, GanttMethods, GanttPrivateMethods, VxeGanttPrivateComputed, VxeGanttConstructor, VxeGanttPrivateMethods } from '../../../types'
|
|
7
|
-
import type { VxeTableInstance } from '../../../types/components/table'
|
|
8
|
-
|
|
9
|
-
function createInternalData (): GanttInternalData {
|
|
10
|
-
return {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default defineVxeComponent({
|
|
15
|
-
name: 'VxeGantt',
|
|
16
|
-
props: {
|
|
17
|
-
size: {
|
|
18
|
-
type: String as PropType<VxeGanttPropTypes.Size>,
|
|
19
|
-
default: () => getConfig().gantt.size || getConfig().size
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: [
|
|
23
|
-
] as VxeGanttEmits,
|
|
24
|
-
setup (props, context) {
|
|
25
|
-
const { emit } = context
|
|
26
|
-
|
|
27
|
-
const xID = XEUtils.uniqueId()
|
|
28
|
-
|
|
29
|
-
const refElem = ref<HTMLDivElement>()
|
|
30
|
-
const refTable = ref<VxeTableInstance>()
|
|
31
|
-
|
|
32
|
-
const reactData = reactive<GanttReactData>({
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
const internalData = createInternalData()
|
|
36
|
-
|
|
37
|
-
const refMaps: GanttPrivateRef = {
|
|
38
|
-
refElem,
|
|
39
|
-
refTable
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const computeMaps: VxeGanttPrivateComputed = {
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const $xeGantt = {
|
|
46
|
-
xID,
|
|
47
|
-
props,
|
|
48
|
-
context,
|
|
49
|
-
reactData,
|
|
50
|
-
internalData,
|
|
51
|
-
|
|
52
|
-
getRefMaps: () => refMaps,
|
|
53
|
-
getComputeMaps: () => computeMaps
|
|
54
|
-
} as unknown as VxeGanttConstructor & VxeGanttPrivateMethods
|
|
55
|
-
|
|
56
|
-
const dispatchEvent = (type: ValueOf<VxeGanttEmits>, params: Record<string, any>, evnt: Event | null) => {
|
|
57
|
-
emit(type, createEvent(evnt, { $gantt: $xeGantt }, params))
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const ganttMethods: GanttMethods = {
|
|
61
|
-
dispatchEvent
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const ganttPrivateMethods: GanttPrivateMethods = {
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
Object.assign($xeGantt, ganttMethods, ganttPrivateMethods)
|
|
68
|
-
|
|
69
|
-
const renderVN = () => {
|
|
70
|
-
return h('div', {
|
|
71
|
-
ref: refElem,
|
|
72
|
-
class: 'vxe-gantt'
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
onUnmounted(() => {
|
|
77
|
-
XEUtils.assign(internalData, createInternalData())
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
$xeGantt.renderVN = renderVN
|
|
81
|
-
|
|
82
|
-
return $xeGantt
|
|
83
|
-
},
|
|
84
|
-
render () {
|
|
85
|
-
return this.renderVN()
|
|
86
|
-
}
|
|
87
|
-
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|