vxe-pc-ui 0.2.0 → 0.4.0
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/anchor/index.js +2 -0
- package/es/anchor/src/anchor.js +18 -18
- package/es/anchor-link/index.js +2 -0
- package/es/breadcrumb/index.js +2 -0
- package/es/breadcrumb/src/breadcrumb.js +2 -2
- package/es/breadcrumb-item/index.js +2 -0
- package/es/button/index.js +2 -0
- package/es/button/src/button-group.js +2 -5
- package/es/button-group/index.js +2 -0
- package/es/checkbox/src/checkbox.js +8 -8
- package/es/checkbox/src/group.js +6 -6
- package/es/checkbox-group/index.js +1 -1
- package/es/col/index.js +2 -0
- package/es/components.js +3 -0
- package/es/form/index.js +2 -0
- package/es/form/src/form-config-item.js +3 -8
- package/es/form/src/form-item.js +3 -8
- package/es/form/src/form.js +5 -8
- package/es/form/src/render.js +2 -10
- package/es/form-design/index.js +2 -0
- package/es/form-gather/index.js +2 -0
- package/es/form-item/index.js +2 -0
- package/es/icon/index.js +2 -0
- package/es/input/index.js +1 -1
- package/es/input/style.css +5 -5
- package/es/input/style.min.css +1 -1
- package/es/layout-aside/index.js +2 -0
- package/es/layout-body/index.js +2 -0
- package/es/layout-container/index.js +2 -0
- package/es/layout-footer/index.js +2 -0
- package/es/layout-header/index.js +2 -0
- package/es/list/index.js +10 -0
- package/es/list/src/list.js +340 -0
- package/es/list/style.css +26 -0
- package/es/list/style.min.css +1 -0
- package/es/list-design/index.js +2 -0
- package/es/loading/index.js +2 -0
- package/es/modal/index.js +1 -1
- package/es/modal/src/modal.js +2 -5
- package/es/modal/style.css +1 -1
- package/es/modal/style.min.css +1 -1
- package/es/optgroup/index.js +1 -1
- package/es/option/index.js +1 -1
- package/es/pager/index.js +1 -1
- package/es/pager/src/pager.js +4 -4
- package/es/pager/style.css +2 -2
- package/es/pager/style.min.css +1 -1
- package/es/pulldown/index.js +1 -1
- package/es/pulldown/style.css +2 -2
- package/es/pulldown/style.min.css +1 -1
- package/es/radio/index.js +1 -1
- package/es/radio-button/index.js +1 -1
- package/es/radio-group/index.js +1 -1
- package/es/row/index.js +2 -0
- package/es/select/index.js +1 -1
- package/es/select/style.css +2 -2
- package/es/select/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/style.css +1 -1
- package/es/switch/style.min.css +1 -1
- package/es/tab-pane/index.js +2 -0
- package/es/tabs/index.js +2 -0
- package/es/tabs/src/tabs.js +50 -19
- package/es/tabs/style.css +49 -34
- package/es/tabs/style.min.css +1 -1
- package/es/textarea/index.js +1 -1
- package/es/textarea/style.css +2 -2
- package/es/textarea/style.min.css +1 -1
- package/es/tooltip/index.js +2 -0
- package/es/tooltip/src/tooltip.js +2 -7
- package/es/ui/src/core.js +1 -1
- package/es/ui/src/globalStore.js +64 -66
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/resize.js +81 -0
- package/es/ui/src/store.js +8 -1
- package/es/vxe-input/style.css +5 -5
- package/es/vxe-input/style.min.css +1 -1
- package/es/vxe-list/index.js +3 -0
- package/es/vxe-list/style.css +26 -0
- package/es/vxe-list/style.min.css +1 -0
- package/es/vxe-modal/style.css +1 -1
- package/es/vxe-modal/style.min.css +1 -1
- package/es/vxe-pager/style.css +2 -2
- package/es/vxe-pager/style.min.css +1 -1
- package/es/vxe-pulldown/style.css +2 -2
- package/es/vxe-pulldown/style.min.css +1 -1
- package/es/vxe-select/style.css +2 -2
- package/es/vxe-select/style.min.css +1 -1
- package/es/vxe-switch/style.css +1 -1
- package/es/vxe-switch/style.min.css +1 -1
- package/es/vxe-tabs/style.css +49 -34
- package/es/vxe-tabs/style.min.css +1 -1
- package/es/vxe-textarea/style.css +2 -2
- package/es/vxe-textarea/style.min.css +1 -1
- package/lib/anchor/index.js +2 -0
- package/lib/anchor/index.min.js +1 -1
- package/lib/anchor/src/anchor.js +18 -18
- package/lib/anchor/src/anchor.min.js +1 -1
- package/lib/anchor-link/index.js +2 -0
- package/lib/anchor-link/index.min.js +1 -1
- package/lib/breadcrumb/index.js +2 -0
- package/lib/breadcrumb/index.min.js +1 -1
- package/lib/breadcrumb/src/breadcrumb.js +2 -2
- package/lib/breadcrumb/src/breadcrumb.min.js +1 -1
- package/lib/breadcrumb-item/index.js +2 -0
- package/lib/breadcrumb-item/index.min.js +1 -1
- package/lib/button/index.js +2 -0
- package/lib/button/index.min.js +1 -1
- package/lib/button/src/button-group.js +5 -7
- package/lib/button/src/button-group.min.js +1 -1
- package/lib/button-group/index.js +2 -0
- package/lib/button-group/index.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +8 -8
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +6 -6
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox-group/index.js +1 -1
- package/lib/checkbox-group/index.min.js +1 -1
- package/lib/col/index.js +2 -0
- package/lib/col/index.min.js +1 -1
- package/lib/components.js +13 -1
- package/lib/components.min.js +1 -1
- package/lib/form/index.js +2 -0
- package/lib/form/index.min.js +1 -1
- package/lib/form/src/form-config-item.js +3 -4
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +3 -4
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +7 -8
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +4 -8
- package/lib/form/src/render.min.js +1 -1
- package/lib/form-design/index.js +2 -0
- package/lib/form-design/index.min.js +1 -1
- package/lib/form-gather/index.js +2 -0
- package/lib/form-gather/index.min.js +1 -1
- package/lib/form-item/index.js +2 -0
- package/lib/form-item/index.min.js +1 -1
- package/lib/icon/index.js +2 -0
- package/lib/icon/index.min.js +1 -1
- package/lib/index.umd.js +737 -167
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/index.min.js +1 -1
- package/lib/input/style/style.css +5 -5
- package/lib/input/style/style.min.css +1 -1
- package/lib/layout-aside/index.js +2 -0
- package/lib/layout-aside/index.min.js +1 -1
- package/lib/layout-body/index.js +2 -0
- package/lib/layout-body/index.min.js +1 -1
- package/lib/layout-container/index.js +2 -0
- package/lib/layout-container/index.min.js +1 -1
- package/lib/layout-footer/index.js +2 -0
- package/lib/layout-footer/index.min.js +1 -1
- package/lib/layout-header/index.js +2 -0
- package/lib/layout-header/index.min.js +1 -1
- package/lib/list/index.js +17 -0
- package/lib/list/index.min.js +1 -0
- package/lib/list/src/list.js +397 -0
- package/lib/list/src/list.min.js +1 -0
- package/lib/list/style/index.js +1 -0
- package/lib/list/style/style.css +26 -0
- package/lib/list/style/style.min.css +1 -0
- package/lib/list-design/index.js +2 -0
- package/lib/list-design/index.min.js +1 -1
- package/lib/loading/index.js +2 -0
- package/lib/loading/index.min.js +1 -1
- package/lib/modal/index.js +1 -5
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +3 -4
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +1 -1
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +1 -1
- package/lib/optgroup/index.min.js +1 -1
- package/lib/option/index.js +1 -1
- package/lib/option/index.min.js +1 -1
- package/lib/pager/index.js +1 -1
- package/lib/pager/index.min.js +1 -1
- package/lib/pager/src/pager.js +6 -7
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +2 -2
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.js +1 -1
- package/lib/pulldown/index.min.js +1 -1
- package/lib/pulldown/style/style.css +2 -2
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/index.min.js +1 -1
- package/lib/radio-button/index.js +1 -1
- package/lib/radio-button/index.min.js +1 -1
- package/lib/radio-group/index.js +1 -1
- package/lib/radio-group/index.min.js +1 -1
- package/lib/row/index.js +2 -0
- package/lib/row/index.min.js +1 -1
- package/lib/select/index.js +1 -1
- package/lib/select/index.min.js +1 -1
- package/lib/select/style/style.css +2 -2
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +1 -1
- package/lib/switch/index.min.js +1 -1
- package/lib/switch/style/style.css +1 -1
- package/lib/switch/style/style.min.css +1 -1
- package/lib/tab-pane/index.js +2 -0
- package/lib/tab-pane/index.min.js +1 -1
- package/lib/tabs/index.js +2 -0
- package/lib/tabs/index.min.js +1 -1
- package/lib/tabs/src/tabs.js +50 -12
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tabs/style/style.css +49 -34
- package/lib/tabs/style/style.min.css +1 -1
- package/lib/textarea/index.js +1 -1
- package/lib/textarea/index.min.js +1 -1
- package/lib/textarea/style/style.css +2 -2
- package/lib/textarea/style/style.min.css +1 -1
- package/lib/tooltip/index.js +2 -0
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +3 -4
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/ui/src/core.js +1 -1
- package/lib/ui/src/core.min.js +1 -1
- package/lib/ui/src/globalStore.js +63 -65
- package/lib/ui/src/globalStore.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/resize.js +96 -0
- package/lib/ui/src/resize.min.js +1 -0
- package/lib/ui/src/store.js +8 -1
- package/lib/ui/src/store.min.js +1 -1
- package/lib/vxe-input/style/style.css +5 -5
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-list/index.js +22 -0
- package/lib/vxe-list/index.min.js +1 -0
- package/lib/vxe-list/style/index.js +1 -0
- package/lib/vxe-list/style/style.css +26 -0
- package/lib/vxe-list/style/style.min.css +1 -0
- package/lib/vxe-modal/style/style.css +1 -1
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-pager/style/style.css +2 -2
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-pulldown/style/style.css +2 -2
- package/lib/vxe-pulldown/style/style.min.css +1 -1
- package/lib/vxe-select/style/style.css +2 -2
- package/lib/vxe-select/style/style.min.css +1 -1
- package/lib/vxe-switch/style/style.css +1 -1
- package/lib/vxe-switch/style/style.min.css +1 -1
- package/lib/vxe-tabs/style/style.css +49 -34
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/lib/vxe-textarea/style/style.css +2 -2
- package/lib/vxe-textarea/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/anchor/index.ts +3 -0
- package/packages/anchor/src/anchor.ts +23 -23
- package/packages/anchor-link/index.ts +3 -0
- package/packages/breadcrumb/index.ts +3 -0
- package/packages/breadcrumb/src/breadcrumb.ts +2 -2
- package/packages/breadcrumb-item/index.ts +3 -0
- package/packages/button/index.ts +3 -0
- package/packages/button-group/index.ts +3 -0
- package/packages/checkbox/index.ts +2 -2
- package/packages/checkbox/src/checkbox.ts +8 -8
- package/packages/checkbox/src/group.ts +6 -6
- package/packages/checkbox-group/index.ts +3 -4
- package/packages/col/index.ts +3 -0
- package/packages/components.ts +3 -0
- package/packages/form/index.ts +3 -0
- package/packages/form/src/form.ts +4 -4
- package/packages/form-design/index.ts +3 -0
- package/packages/form-gather/index.ts +3 -0
- package/packages/form-item/index.ts +3 -0
- package/packages/icon/index.ts +3 -0
- package/packages/input/index.ts +3 -4
- package/packages/layout-aside/index.ts +3 -0
- package/packages/layout-body/index.ts +3 -0
- package/packages/layout-container/index.ts +3 -0
- package/packages/layout-footer/index.ts +3 -0
- package/packages/layout-header/index.ts +3 -0
- package/packages/list/index.ts +14 -0
- package/packages/list/src/list.ts +372 -0
- package/packages/list-design/index.ts +3 -0
- package/packages/loading/index.ts +3 -0
- package/packages/optgroup/index.ts +3 -4
- package/packages/option/index.ts +3 -4
- package/packages/pager/index.ts +3 -4
- package/packages/pager/src/pager.ts +3 -3
- package/packages/pulldown/index.ts +3 -4
- package/packages/radio/index.ts +3 -4
- package/packages/radio-button/index.ts +3 -4
- package/packages/radio-group/index.ts +2 -3
- package/packages/row/index.ts +3 -0
- package/packages/select/index.ts +3 -4
- package/packages/switch/index.ts +1 -2
- package/packages/tab-pane/index.ts +3 -0
- package/packages/tabs/index.ts +3 -0
- package/packages/tabs/src/tabs.ts +49 -19
- package/packages/textarea/index.ts +3 -4
- package/packages/tooltip/index.ts +3 -0
- package/packages/ui/src/globalStore.ts +63 -65
- package/packages/ui/src/resize.ts +85 -0
- package/styles/all.scss +1 -0
- package/styles/components/input.scss +5 -5
- package/styles/components/list.scss +1 -1
- package/styles/components/modal.scss +1 -1
- package/styles/components/pager.scss +2 -2
- package/styles/components/pulldown.scss +2 -2
- package/styles/components/select.scss +2 -2
- package/styles/components/switch.scss +1 -1
- package/styles/components/tabs.scss +44 -34
- package/styles/components/textarea.scss +2 -2
- package/types/all.d.ts +1 -0
- package/types/components/list.d.ts +166 -0
- package/types/components/tab-pane.d.ts +1 -1
- package/types/components/tabs.d.ts +2 -2
- package/types/ui/global-config.d.ts +67 -25
package/es/anchor/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeAnchorComponent from './src/anchor';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeAnchor = Object.assign({}, VxeAnchorComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeAnchorComponent.name, VxeAnchorComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeAnchorComponent.name, VxeAnchorComponent);
|
|
7
9
|
export const Anchor = VxeAnchor;
|
|
8
10
|
export default VxeAnchor;
|
package/es/anchor/src/anchor.js
CHANGED
|
@@ -129,24 +129,6 @@ export default defineComponent({
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
Object.assign($xeAnchor, anchorMethods, anchorPrivateMethods);
|
|
132
|
-
watch(() => props.modelValue, (val) => {
|
|
133
|
-
reactData.activeHref = val;
|
|
134
|
-
});
|
|
135
|
-
watch(() => reactData.activeHref, () => {
|
|
136
|
-
updateMarkerPos();
|
|
137
|
-
});
|
|
138
|
-
watch(() => props.container, () => {
|
|
139
|
-
removeContainerElemScroll();
|
|
140
|
-
updateContainerElem();
|
|
141
|
-
});
|
|
142
|
-
onMounted(() => {
|
|
143
|
-
nextTick(() => {
|
|
144
|
-
updateContainerElem();
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
onBeforeUnmount(() => {
|
|
148
|
-
removeContainerElemScroll();
|
|
149
|
-
});
|
|
150
132
|
const renderSubItems = (options) => {
|
|
151
133
|
const itemVNs = [];
|
|
152
134
|
if (options) {
|
|
@@ -192,6 +174,24 @@ export default defineComponent({
|
|
|
192
174
|
: createCommentVNode()
|
|
193
175
|
]);
|
|
194
176
|
};
|
|
177
|
+
watch(() => props.modelValue, (val) => {
|
|
178
|
+
reactData.activeHref = val;
|
|
179
|
+
});
|
|
180
|
+
watch(() => reactData.activeHref, () => {
|
|
181
|
+
updateMarkerPos();
|
|
182
|
+
});
|
|
183
|
+
watch(() => props.container, () => {
|
|
184
|
+
removeContainerElemScroll();
|
|
185
|
+
updateContainerElem();
|
|
186
|
+
});
|
|
187
|
+
onMounted(() => {
|
|
188
|
+
nextTick(() => {
|
|
189
|
+
updateContainerElem();
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
onBeforeUnmount(() => {
|
|
193
|
+
removeContainerElemScroll();
|
|
194
|
+
});
|
|
195
195
|
$xeAnchor.renderVN = renderVN;
|
|
196
196
|
provide('$xeAnchor', $xeAnchor);
|
|
197
197
|
return $xeAnchor;
|
package/es/anchor-link/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeAnchorLinkComponent from '../anchor/src/anchor-link';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeAnchorLink = Object.assign({}, VxeAnchorLinkComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeAnchorLinkComponent.name, VxeAnchorLinkComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeAnchorLinkComponent.name, VxeAnchorLinkComponent);
|
|
7
9
|
export const AnchorLink = VxeAnchorLink;
|
|
8
10
|
export default VxeAnchorLink;
|
package/es/breadcrumb/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeBreadcrumbComponent from './src/breadcrumb';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeBreadcrumb = Object.assign({}, VxeBreadcrumbComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeBreadcrumbComponent.name, VxeBreadcrumbComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeBreadcrumbComponent.name, VxeBreadcrumbComponent);
|
|
7
9
|
export const Breadcrumb = VxeBreadcrumb;
|
|
8
10
|
export default VxeBreadcrumb;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, ref, h, reactive, provide } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import globalConfigStore from '../../ui/src/globalStore';
|
|
3
3
|
import XEUtils from 'xe-utils';
|
|
4
4
|
export default defineComponent({
|
|
5
5
|
name: 'VxeBreadcrumb',
|
|
6
6
|
props: {
|
|
7
7
|
separator: {
|
|
8
8
|
type: String,
|
|
9
|
-
default: () =>
|
|
9
|
+
default: () => globalConfigStore.breadcrumb.separator
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
emits: [],
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeBreadcrumbItemComponent from './src/breadcrumb-item';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeBreadcrumbItem = Object.assign({}, VxeBreadcrumbItemComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeBreadcrumbItemComponent.name, VxeBreadcrumbItemComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeBreadcrumbItemComponent.name, VxeBreadcrumbItemComponent);
|
|
7
9
|
export const BreadcrumbItem = VxeBreadcrumbItem;
|
|
8
10
|
export default VxeBreadcrumbItem;
|
package/es/button/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeButtonComponent from './src/button';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeButton = Object.assign({}, VxeButtonComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeButtonComponent.name, VxeButtonComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeButtonComponent.name, VxeButtonComponent);
|
|
7
9
|
export const Button = VxeButton;
|
|
8
10
|
export default VxeButton;
|
|
@@ -39,7 +39,7 @@ export default defineComponent({
|
|
|
39
39
|
const { options } = props;
|
|
40
40
|
const { name } = params;
|
|
41
41
|
const option = options ? options.find(item => item.name === name) : null;
|
|
42
|
-
buttonGroupMethods.dispatchEvent('click', {
|
|
42
|
+
buttonGroupMethods.dispatchEvent('click', Object.assign(Object.assign({}, params), { option }), evnt);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
Object.assign($xeButtonGroup, buttonGroupMethods, buttonGroupPrivateMethods);
|
|
@@ -52,10 +52,7 @@ export default defineComponent({
|
|
|
52
52
|
? defaultSlot({})
|
|
53
53
|
: (options
|
|
54
54
|
? options.map((item, index) => {
|
|
55
|
-
return h(VxeButtonComponent, {
|
|
56
|
-
key: index,
|
|
57
|
-
...item
|
|
58
|
-
});
|
|
55
|
+
return h(VxeButtonComponent, Object.assign({ key: index }, item));
|
|
59
56
|
})
|
|
60
57
|
: []));
|
|
61
58
|
};
|
package/es/button-group/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeButtonGroupComponent from '../button/src/button-group';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeButtonGroup = Object.assign({}, VxeButtonGroupComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeButtonGroupComponent.name, VxeButtonGroupComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeButtonGroupComponent.name, VxeButtonGroupComponent);
|
|
7
9
|
export const ButtonGroup = VxeButtonGroup;
|
|
8
10
|
export default VxeButtonGroup;
|
|
@@ -32,10 +32,10 @@ export default defineComponent({
|
|
|
32
32
|
};
|
|
33
33
|
let checkboxMethods = {};
|
|
34
34
|
const computeSize = useSize(props);
|
|
35
|
-
const $
|
|
35
|
+
const $xeCheckboxGroup = inject('$xeCheckboxGroup', null);
|
|
36
36
|
const computeIsChecked = computed(() => {
|
|
37
|
-
if ($
|
|
38
|
-
return XEUtils.includes($
|
|
37
|
+
if ($xeCheckboxGroup) {
|
|
38
|
+
return XEUtils.includes($xeCheckboxGroup.props.modelValue, props.label);
|
|
39
39
|
}
|
|
40
40
|
return props.modelValue === props.checkedValue;
|
|
41
41
|
});
|
|
@@ -43,9 +43,9 @@ export default defineComponent({
|
|
|
43
43
|
if (props.disabled) {
|
|
44
44
|
return true;
|
|
45
45
|
}
|
|
46
|
-
if ($
|
|
47
|
-
const { props: groupProps } = $
|
|
48
|
-
const { computeIsMaximize } = $
|
|
46
|
+
if ($xeCheckboxGroup) {
|
|
47
|
+
const { props: groupProps } = $xeCheckboxGroup;
|
|
48
|
+
const { computeIsMaximize } = $xeCheckboxGroup.getComputeMaps();
|
|
49
49
|
const isMaximize = computeIsMaximize.value;
|
|
50
50
|
const isChecked = computeIsChecked.value;
|
|
51
51
|
return groupProps.disabled || (isMaximize && !isChecked);
|
|
@@ -59,8 +59,8 @@ export default defineComponent({
|
|
|
59
59
|
const checked = evnt.target.checked;
|
|
60
60
|
const value = checked ? checkedValue : uncheckedValue;
|
|
61
61
|
const params = { checked, value, label: props.label };
|
|
62
|
-
if ($
|
|
63
|
-
$
|
|
62
|
+
if ($xeCheckboxGroup) {
|
|
63
|
+
$xeCheckboxGroup.handleChecked(params, evnt);
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
66
|
emit('update:modelValue', value);
|
package/es/checkbox/src/group.js
CHANGED
|
@@ -47,7 +47,7 @@ export default defineComponent({
|
|
|
47
47
|
const computeMaps = {
|
|
48
48
|
computeIsMaximize
|
|
49
49
|
};
|
|
50
|
-
const $
|
|
50
|
+
const $xeCheckboxGroup = {
|
|
51
51
|
xID,
|
|
52
52
|
props,
|
|
53
53
|
context,
|
|
@@ -56,7 +56,7 @@ export default defineComponent({
|
|
|
56
56
|
useSize(props);
|
|
57
57
|
const checkboxGroupMethods = {
|
|
58
58
|
dispatchEvent(type, params, evnt) {
|
|
59
|
-
emit(type, Object.assign({ $checkboxGroup: $
|
|
59
|
+
emit(type, Object.assign({ $checkboxGroup: $xeCheckboxGroup, $event: evnt }, params));
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
const checkboxGroupPrivateMethods = {
|
|
@@ -73,14 +73,14 @@ export default defineComponent({
|
|
|
73
73
|
checklist.splice(checkIndex, 1);
|
|
74
74
|
}
|
|
75
75
|
emit('update:modelValue', checklist);
|
|
76
|
-
$
|
|
76
|
+
$xeCheckboxGroup.dispatchEvent('change', Object.assign({ checklist }, params), evnt);
|
|
77
77
|
// 自动更新校验状态
|
|
78
78
|
if ($xeform && formItemInfo) {
|
|
79
79
|
$xeform.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checklist);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
-
Object.assign($
|
|
83
|
+
Object.assign($xeCheckboxGroup, checkboxGroupMethods, checkboxGroupPrivateMethods);
|
|
84
84
|
const renderVN = () => {
|
|
85
85
|
const { options } = props;
|
|
86
86
|
const defaultSlot = slots.default;
|
|
@@ -101,8 +101,8 @@ export default defineComponent({
|
|
|
101
101
|
})
|
|
102
102
|
: []));
|
|
103
103
|
};
|
|
104
|
-
$
|
|
105
|
-
provide('$
|
|
104
|
+
$xeCheckboxGroup.renderVN = renderVN;
|
|
105
|
+
provide('$xeCheckboxGroup', $xeCheckboxGroup);
|
|
106
106
|
return renderVN;
|
|
107
107
|
}
|
|
108
108
|
});
|
|
@@ -5,6 +5,6 @@ export const VxeCheckboxGroup = Object.assign(VxeCheckboxGroupComponent, {
|
|
|
5
5
|
app.component(VxeCheckboxGroupComponent.name, VxeCheckboxGroupComponent);
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
|
-
export const CheckboxGroup = VxeCheckboxGroup;
|
|
9
8
|
dynamicApp.component(VxeCheckboxGroupComponent.name, VxeCheckboxGroupComponent);
|
|
9
|
+
export const CheckboxGroup = VxeCheckboxGroup;
|
|
10
10
|
export default VxeCheckboxGroup;
|
package/es/col/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeColComponent from '../row/src/col';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeCol = Object.assign({}, VxeColComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeColComponent.name, VxeColComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeColComponent.name, VxeColComponent);
|
|
7
9
|
export const Col = VxeCol;
|
|
8
10
|
export default VxeCol;
|
package/es/components.js
CHANGED
|
@@ -21,6 +21,7 @@ import VxeLayoutContainer from './layout-container';
|
|
|
21
21
|
import VxeLayoutFooter from './layout-footer';
|
|
22
22
|
import VxeLayoutHeader from './layout-header';
|
|
23
23
|
import VxeListDesign from './list-design';
|
|
24
|
+
import VxeList from './list';
|
|
24
25
|
import VxeLoading from './loading';
|
|
25
26
|
import VxeModal from './modal';
|
|
26
27
|
import VxeOptgroup from './optgroup';
|
|
@@ -64,6 +65,7 @@ const components = [
|
|
|
64
65
|
VxeLayoutFooter,
|
|
65
66
|
VxeLayoutHeader,
|
|
66
67
|
VxeListDesign,
|
|
68
|
+
VxeList,
|
|
67
69
|
VxeLoading,
|
|
68
70
|
VxeModal,
|
|
69
71
|
VxeOptgroup,
|
|
@@ -108,6 +110,7 @@ export * from './layout-container';
|
|
|
108
110
|
export * from './layout-footer';
|
|
109
111
|
export * from './layout-header';
|
|
110
112
|
export * from './list-design';
|
|
113
|
+
export * from './list';
|
|
111
114
|
export * from './loading';
|
|
112
115
|
export * from './modal';
|
|
113
116
|
export * from './optgroup';
|
package/es/form/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeFormComponent from './src/form';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
export const VxeForm = Object.assign(VxeFormComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeFormComponent.name, VxeFormComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeFormComponent.name, VxeFormComponent);
|
|
7
9
|
export const Form = VxeForm;
|
|
8
10
|
export default VxeForm;
|
|
@@ -136,22 +136,17 @@ const VxeFormConfigItem = defineComponent({
|
|
|
136
136
|
class: 'vxe-form--item-inner'
|
|
137
137
|
}, [
|
|
138
138
|
(showTitle !== false) && (title || titleSlot)
|
|
139
|
-
? h('div', {
|
|
140
|
-
class: [
|
|
139
|
+
? h('div', Object.assign({ class: [
|
|
141
140
|
'vxe-form--item-title',
|
|
142
141
|
titleAlign ? `align--${titleAlign}` : '',
|
|
143
142
|
hasEllipsis ? 'is--ellipsis' : '',
|
|
144
143
|
itemTitleClassName ? (XEUtils.isFunction(itemTitleClassName) ? itemTitleClassName(params) : itemTitleClassName) : '',
|
|
145
144
|
titleClassName ? (XEUtils.isFunction(titleClassName) ? titleClassName(params) : titleClassName) : ''
|
|
146
|
-
],
|
|
147
|
-
style: Object.assign({}, XEUtils.isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, XEUtils.isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth
|
|
145
|
+
], style: Object.assign({}, XEUtils.isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, XEUtils.isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth
|
|
148
146
|
? {
|
|
149
147
|
width: isNaN(titleWidth) ? titleWidth : `${titleWidth}px`
|
|
150
148
|
}
|
|
151
|
-
: null),
|
|
152
|
-
title: ovTitle ? getFuncText(title) : null,
|
|
153
|
-
...ons
|
|
154
|
-
}, renderTitle($xeform, item))
|
|
149
|
+
: null), title: ovTitle ? getFuncText(title) : null }, ons), renderTitle($xeform, item))
|
|
155
150
|
: null,
|
|
156
151
|
h('div', {
|
|
157
152
|
class: [
|
package/es/form/src/form-item.js
CHANGED
|
@@ -177,22 +177,17 @@ export default defineComponent({
|
|
|
177
177
|
class: 'vxe-form--item-inner'
|
|
178
178
|
}, [
|
|
179
179
|
(showTitle !== false) && (title || titleSlot)
|
|
180
|
-
? h('div', {
|
|
181
|
-
class: [
|
|
180
|
+
? h('div', Object.assign({ class: [
|
|
182
181
|
'vxe-form--item-title',
|
|
183
182
|
titleAlign ? `align--${titleAlign}` : '',
|
|
184
183
|
hasEllipsis ? 'is--ellipsis' : '',
|
|
185
184
|
itemTitleClassName ? (XEUtils.isFunction(itemTitleClassName) ? itemTitleClassName(params) : itemTitleClassName) : '',
|
|
186
185
|
titleClassName ? (XEUtils.isFunction(titleClassName) ? titleClassName(params) : titleClassName) : ''
|
|
187
|
-
],
|
|
188
|
-
style: Object.assign({}, XEUtils.isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, XEUtils.isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth
|
|
186
|
+
], style: Object.assign({}, XEUtils.isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, XEUtils.isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth
|
|
189
187
|
? {
|
|
190
188
|
width: isNaN(titleWidth) ? titleWidth : `${titleWidth}px`
|
|
191
189
|
}
|
|
192
|
-
: null),
|
|
193
|
-
title: ovTitle ? getFuncText(title) : null,
|
|
194
|
-
...ons
|
|
195
|
-
}, renderTitle($xeform, item))
|
|
190
|
+
: null), title: ovTitle ? getFuncText(title) : null }, ons), renderTitle($xeform, item))
|
|
196
191
|
: null,
|
|
197
192
|
h('div', {
|
|
198
193
|
class: [
|
package/es/form/src/form.js
CHANGED
|
@@ -8,7 +8,7 @@ import { errLog, warnLog } from '../../ui/src/log';
|
|
|
8
8
|
import { scrollToView } from '../../ui/src/dom';
|
|
9
9
|
import { createItem, handleFieldOrItem, isHiddenItem, isActivetem } from './util';
|
|
10
10
|
import { useSize } from '../../hooks/size';
|
|
11
|
-
import VxeTooltipComponent from '../../tooltip';
|
|
11
|
+
import VxeTooltipComponent from '../../tooltip/src/tooltip';
|
|
12
12
|
import VxeFormConfigItem from './form-config-item';
|
|
13
13
|
import VxeLoading from '../../loading/index';
|
|
14
14
|
import { getSlotVNs } from '../../ui/src/vn';
|
|
@@ -113,7 +113,7 @@ export default defineComponent({
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
provide('xeFormItemInfo', null);
|
|
116
|
-
const $
|
|
116
|
+
const $xeGrid = inject('$xeGrid', null);
|
|
117
117
|
const refElem = ref();
|
|
118
118
|
const refTooltip = ref();
|
|
119
119
|
let formMethods = {};
|
|
@@ -136,7 +136,7 @@ export default defineComponent({
|
|
|
136
136
|
props,
|
|
137
137
|
context,
|
|
138
138
|
reactData,
|
|
139
|
-
xegrid: $
|
|
139
|
+
xegrid: $xeGrid,
|
|
140
140
|
getRefMaps: () => refMaps,
|
|
141
141
|
getComputeMaps: () => computeMaps
|
|
142
142
|
};
|
|
@@ -554,7 +554,7 @@ export default defineComponent({
|
|
|
554
554
|
};
|
|
555
555
|
formMethods = {
|
|
556
556
|
dispatchEvent(type, params, evnt) {
|
|
557
|
-
emit(type, Object.assign({ $form: $xeform, $grid: $
|
|
557
|
+
emit(type, Object.assign({ $form: $xeform, $grid: $xeGrid, $event: evnt }, params));
|
|
558
558
|
},
|
|
559
559
|
reset,
|
|
560
560
|
validate,
|
|
@@ -647,10 +647,7 @@ export default defineComponent({
|
|
|
647
647
|
/**
|
|
648
648
|
* 工具提示
|
|
649
649
|
*/
|
|
650
|
-
h(VxeTooltipComponent, {
|
|
651
|
-
ref: refTooltip,
|
|
652
|
-
...tooltipOpts
|
|
653
|
-
})
|
|
650
|
+
h(VxeTooltipComponent, Object.assign({ ref: refTooltip }, tooltipOpts))
|
|
654
651
|
]);
|
|
655
652
|
};
|
|
656
653
|
$xeform.renderVN = renderVN;
|
package/es/form/src/render.js
CHANGED
|
@@ -34,11 +34,7 @@ export function renderTitle($xeform, item) {
|
|
|
34
34
|
const titVNs = [];
|
|
35
35
|
if (titlePrefix) {
|
|
36
36
|
titVNs.push((titlePrefix.content || titlePrefix.message)
|
|
37
|
-
? h(VxeTooltipComponent, {
|
|
38
|
-
...tooltipOpts,
|
|
39
|
-
...titlePrefix,
|
|
40
|
-
content: getFuncText(titlePrefix.content || titlePrefix.message)
|
|
41
|
-
}, {
|
|
37
|
+
? h(VxeTooltipComponent, Object.assign(Object.assign(Object.assign({}, tooltipOpts), titlePrefix), { content: getFuncText(titlePrefix.content || titlePrefix.message) }), {
|
|
42
38
|
default: () => renderPrefixIcon(titlePrefix)
|
|
43
39
|
})
|
|
44
40
|
: renderPrefixIcon(titlePrefix));
|
|
@@ -52,11 +48,7 @@ export function renderTitle($xeform, item) {
|
|
|
52
48
|
const fixVNs = [];
|
|
53
49
|
if (titleSuffix) {
|
|
54
50
|
fixVNs.push((titleSuffix.content || titleSuffix.message)
|
|
55
|
-
? h(VxeTooltipComponent, {
|
|
56
|
-
...tooltipOpts,
|
|
57
|
-
...titleSuffix,
|
|
58
|
-
content: getFuncText(titleSuffix.content || titleSuffix.message)
|
|
59
|
-
}, {
|
|
51
|
+
? h(VxeTooltipComponent, Object.assign(Object.assign(Object.assign({}, tooltipOpts), titleSuffix), { content: getFuncText(titleSuffix.content || titleSuffix.message) }), {
|
|
60
52
|
default: () => renderSuffixIcon(titleSuffix)
|
|
61
53
|
})
|
|
62
54
|
: renderSuffixIcon(titleSuffix));
|
package/es/form-design/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeFormDesignComponent from './src/form-design';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeFormDesign = Object.assign({}, VxeFormDesignComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeFormDesignComponent.name, VxeFormDesignComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeFormDesignComponent.name, VxeFormDesignComponent);
|
|
7
9
|
export const FormDesign = VxeFormDesign;
|
|
8
10
|
export default VxeFormDesign;
|
package/es/form-gather/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeFormGatherComponent from '../form/src/form-gather';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
export const VxeFormGather = Object.assign(VxeFormGatherComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeFormGatherComponent.name, VxeFormGatherComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeFormGatherComponent.name, VxeFormGatherComponent);
|
|
7
9
|
export const FormGather = VxeFormGather;
|
|
8
10
|
export default VxeFormGather;
|
package/es/form-item/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeFormItemComponent from '../form/src/form-item';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
export const VxeFormItem = Object.assign(VxeFormItemComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeFormItemComponent.name, VxeFormItemComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeFormItemComponent.name, VxeFormItemComponent);
|
|
7
9
|
export const FormItem = VxeFormItem;
|
|
8
10
|
export default VxeFormItem;
|
package/es/icon/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import VxeIconComponent from './src/icon';
|
|
2
|
+
import { dynamicApp } from '../dynamics';
|
|
2
3
|
const VxeIcon = Object.assign({}, VxeIconComponent, {
|
|
3
4
|
install(app) {
|
|
4
5
|
app.component(VxeIconComponent.name, VxeIconComponent);
|
|
5
6
|
}
|
|
6
7
|
});
|
|
8
|
+
dynamicApp.component(VxeIconComponent.name, VxeIconComponent);
|
|
7
9
|
export const Icon = VxeIcon;
|
|
8
10
|
export default VxeIcon;
|
package/es/input/index.js
CHANGED
|
@@ -5,6 +5,6 @@ export const VxeInput = Object.assign(VxeInputConstructor, {
|
|
|
5
5
|
app.component(VxeInputConstructor.name, VxeInputConstructor);
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
|
-
export const Input = VxeInput;
|
|
9
8
|
dynamicApp.component(VxeInputConstructor.name, VxeInputConstructor);
|
|
9
|
+
export const Input = VxeInput;
|
|
10
10
|
export default VxeInput;
|
package/es/input/style.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
font-family: inherit;
|
|
9
9
|
line-height: inherit;
|
|
10
10
|
padding: 0 0.6em;
|
|
11
|
-
color: var(--vxe-font-color);
|
|
11
|
+
color: var(--vxe-ui-font-color);
|
|
12
12
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
13
13
|
background-color: var(--vxe-ui-input-background-color);
|
|
14
14
|
box-shadow: none;
|
|
@@ -137,14 +137,14 @@
|
|
|
137
137
|
display: inline;
|
|
138
138
|
}
|
|
139
139
|
.vxe-input:not(.is--disabled) .vxe-input--suffix:hover .vxe-input--clear-icon {
|
|
140
|
-
color: var(--vxe-font-color);
|
|
140
|
+
color: var(--vxe-ui-font-color);
|
|
141
141
|
}
|
|
142
142
|
.vxe-input:not(.is--disabled) .vxe-input--suffix:active .vxe-input--clear-icon {
|
|
143
143
|
color: var(--vxe-primary-color);
|
|
144
144
|
}
|
|
145
145
|
.vxe-input:not(.is--disabled) .vxe-input--extra-suffix:hover .vxe-input--search-suffix,
|
|
146
146
|
.vxe-input:not(.is--disabled) .vxe-input--extra-suffix:hover .vxe-input--password-suffix {
|
|
147
|
-
color: var(--vxe-font-color);
|
|
147
|
+
color: var(--vxe-ui-font-color);
|
|
148
148
|
}
|
|
149
149
|
.vxe-input:not(.is--disabled) .vxe-input--extra-suffix:active .vxe-input--search-suffix,
|
|
150
150
|
.vxe-input:not(.is--disabled) .vxe-input--extra-suffix:active .vxe-input--password-suffix {
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
.vxe-input:not(.is--disabled) .vxe-input--number-prev:hover,
|
|
154
154
|
.vxe-input:not(.is--disabled) .vxe-input--number-next:hover {
|
|
155
|
-
color: var(--vxe-font-color);
|
|
155
|
+
color: var(--vxe-ui-font-color);
|
|
156
156
|
}
|
|
157
157
|
.vxe-input:not(.is--disabled) .vxe-input--number-prev:active,
|
|
158
158
|
.vxe-input:not(.is--disabled) .vxe-input--number-next:active {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
position: absolute;
|
|
221
221
|
left: 0;
|
|
222
222
|
padding: 4px 0;
|
|
223
|
-
color: var(--vxe-font-color);
|
|
223
|
+
color: var(--vxe-ui-font-color);
|
|
224
224
|
font-size: var(--vxe-font-size);
|
|
225
225
|
text-align: left;
|
|
226
226
|
}
|