@tmagic/form 1.0.0-beta.2 → 1.0.0-beta.5
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/dist/style.css +0 -1
- package/dist/tmagic-form.es.js +10 -8
- package/dist/tmagic-form.es.js.map +1 -1
- package/dist/tmagic-form.umd.js +9 -7
- package/dist/tmagic-form.umd.js.map +1 -1
- package/dist/types/src/containers/Table.vue.d.ts +2 -0
- package/package.json +3 -2
- package/src/containers/Table.vue +8 -6
- package/src/theme/table.scss +0 -1
package/dist/style.css
CHANGED
package/dist/tmagic-form.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRaw, defineComponent, inject, ref, computed, resolveComponent, watchEffect, openBlock, createElementBlock, normalizeStyle, normalizeClass, createBlock, resolveDynamicComponent, Fragment, createVNode, withCtx, createElementVNode, createCommentVNode, renderList, createTextVNode, toDisplayString, withDirectives, vShow, renderSlot, onMounted, toRefs, getCurrentInstance, watch, unref, reactive, onBeforeUnmount, vModelText, onBeforeMount, resolveDirective, createSlots, provide } from 'vue';
|
|
2
2
|
import { cloneDeep, isEqual } from 'lodash-es';
|
|
3
|
-
import { CaretRight, CaretBottom, Delete, ArrowDown, ArrowUp } from '@element-plus/icons';
|
|
3
|
+
import { CaretRight, CaretBottom, Delete, ArrowDown, ArrowUp, FullScreen, Grid } from '@element-plus/icons';
|
|
4
4
|
import { ElMessage } from 'element-plus';
|
|
5
5
|
import Sortable from 'sortablejs';
|
|
6
6
|
import { asyncLoadJs, sleep, datetimeFormatter } from '@tmagic/utils';
|
|
@@ -1359,6 +1359,8 @@ const _sfc_main$l = defineComponent({
|
|
|
1359
1359
|
ArrowDown,
|
|
1360
1360
|
ArrowUp,
|
|
1361
1361
|
Delete,
|
|
1362
|
+
FullScreen,
|
|
1363
|
+
Grid,
|
|
1362
1364
|
data: computed(() => props.model[modelName.value].filter((item, index) => index >= pagecontext.value * pagesize.value && index + 1 <= (pagecontext.value + 1) * pagesize.value)),
|
|
1363
1365
|
addable: computed(() => {
|
|
1364
1366
|
if (!props.model[modelName.value].length) {
|
|
@@ -1607,7 +1609,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1607
1609
|
})) : createCommentVNode("", true),
|
|
1608
1610
|
createVNode(_component_el_table_column, {
|
|
1609
1611
|
label: "\u64CD\u4F5C",
|
|
1610
|
-
width: "
|
|
1612
|
+
width: "60",
|
|
1611
1613
|
fixed: _ctx.config.fixed === false ? void 0 : "left"
|
|
1612
1614
|
}, {
|
|
1613
1615
|
default: withCtx((scope) => [
|
|
@@ -1625,7 +1627,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1625
1627
|
_ctx.sort && _ctx.model[_ctx.modelName] && _ctx.model[_ctx.modelName].length > 1 ? (openBlock(), createBlock(_component_el_table_column, {
|
|
1626
1628
|
key: 1,
|
|
1627
1629
|
label: "\u6392\u5E8F",
|
|
1628
|
-
width: "
|
|
1630
|
+
width: "60"
|
|
1629
1631
|
}, {
|
|
1630
1632
|
default: withCtx((scope) => [
|
|
1631
1633
|
scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1 !== 0 ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
@@ -1673,7 +1675,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1673
1675
|
width: "45"
|
|
1674
1676
|
})) : createCommentVNode("", true),
|
|
1675
1677
|
createVNode(_component_el_table_column, {
|
|
1676
|
-
width: "
|
|
1678
|
+
width: "60",
|
|
1677
1679
|
label: "\u5E8F\u53F7"
|
|
1678
1680
|
}, {
|
|
1679
1681
|
default: withCtx((scope) => [
|
|
@@ -1730,7 +1732,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1730
1732
|
_hoisted_5,
|
|
1731
1733
|
_ctx.enableToggleMode && !_ctx.isFullscreen ? (openBlock(), createBlock(_component_el_button, {
|
|
1732
1734
|
key: 1,
|
|
1733
|
-
icon:
|
|
1735
|
+
icon: _ctx.Grid,
|
|
1734
1736
|
size: "small",
|
|
1735
1737
|
onClick: _ctx.toggleMode
|
|
1736
1738
|
}, {
|
|
@@ -1738,10 +1740,10 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1738
1740
|
_hoisted_6
|
|
1739
1741
|
]),
|
|
1740
1742
|
_: 1
|
|
1741
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
1743
|
+
}, 8, ["icon", "onClick"])) : createCommentVNode("", true),
|
|
1742
1744
|
_ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(_component_el_button, {
|
|
1743
1745
|
key: 2,
|
|
1744
|
-
icon:
|
|
1746
|
+
icon: _ctx.FullScreen,
|
|
1745
1747
|
size: "small",
|
|
1746
1748
|
onClick: _ctx.toggleFullscreen
|
|
1747
1749
|
}, {
|
|
@@ -1749,7 +1751,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1749
1751
|
createTextVNode(toDisplayString(_ctx.isFullscreen ? "\u9000\u51FA\u5168\u5C4F" : "\u5168\u5C4F\u7F16\u8F91"), 1)
|
|
1750
1752
|
]),
|
|
1751
1753
|
_: 1
|
|
1752
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
1754
|
+
}, 8, ["icon", "onClick"])) : createCommentVNode("", true),
|
|
1753
1755
|
_ctx.importable ? (openBlock(), createBlock(_component_el_upload, {
|
|
1754
1756
|
key: 3,
|
|
1755
1757
|
ref: "excelBtn",
|