@meethive/components 0.0.13 → 0.0.15

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 (57) hide show
  1. package/es/EditTable/Body.js +108 -24
  2. package/es/EditTable/EditTable.js +111 -35
  3. package/es/EditTable/FormItem.js +46 -18
  4. package/es/EditTable/Group.js +167 -53
  5. package/es/EditTable/Header.js +79 -21
  6. package/es/EditTable/components/ContextMenu/Menu.js +79 -29
  7. package/es/EditTable/components/Search/Search.js +132 -33
  8. package/es/EditTable/components/Search/Sort.js +91 -32
  9. package/es/FullPage/FullPage.js +23 -9
  10. package/es/Icon/Icon.js +43 -23
  11. package/es/Markdown/Markdown.js +9 -4
  12. package/es/RadioButton/RadioButton.js +31 -12
  13. package/es/Skeleton/Skeleton.js +33 -9
  14. package/es/Skeleton/components/DashBoardCard.js +40 -9
  15. package/es/Skeleton/components/DashBoardChart.js +67 -9
  16. package/es/Skeleton/components/Detail.js +75 -9
  17. package/es/Skeleton/components/Drawer.js +59 -9
  18. package/es/Skeleton/components/Item.js +17 -7
  19. package/es/Skeleton/components/List.js +27 -11
  20. package/es/Skeleton/components/ListCard.js +36 -10
  21. package/es/Skeleton/components/ListCardItem.js +71 -8
  22. package/es/Skeleton/components/ListTable.js +53 -9
  23. package/es/Skeleton/components/Page.js +40 -10
  24. package/es/Skeleton/components/Search.js +39 -8
  25. package/es/Skeleton/components/Tree.js +46 -9
  26. package/es/TimeFormat/TimeFormat.js +18 -9
  27. package/es/Title/Title.js +22 -10
  28. package/es/ValueItem/ValueItem.js +171 -43
  29. package/lib/EditTable/Body.js +108 -24
  30. package/lib/EditTable/EditTable.js +111 -35
  31. package/lib/EditTable/FormItem.js +46 -18
  32. package/lib/EditTable/Group.js +167 -53
  33. package/lib/EditTable/Header.js +79 -21
  34. package/lib/EditTable/components/ContextMenu/Menu.js +79 -29
  35. package/lib/EditTable/components/Search/Search.js +132 -33
  36. package/lib/EditTable/components/Search/Sort.js +91 -32
  37. package/lib/FullPage/FullPage.js +23 -9
  38. package/lib/Icon/Icon.js +43 -23
  39. package/lib/Markdown/Markdown.js +9 -4
  40. package/lib/RadioButton/RadioButton.js +31 -12
  41. package/lib/Skeleton/Skeleton.js +33 -9
  42. package/lib/Skeleton/components/DashBoardCard.js +40 -9
  43. package/lib/Skeleton/components/DashBoardChart.js +67 -9
  44. package/lib/Skeleton/components/Detail.js +75 -9
  45. package/lib/Skeleton/components/Drawer.js +59 -9
  46. package/lib/Skeleton/components/Item.js +17 -7
  47. package/lib/Skeleton/components/List.js +27 -11
  48. package/lib/Skeleton/components/ListCard.js +36 -10
  49. package/lib/Skeleton/components/ListCardItem.js +71 -8
  50. package/lib/Skeleton/components/ListTable.js +53 -9
  51. package/lib/Skeleton/components/Page.js +40 -10
  52. package/lib/Skeleton/components/Search.js +39 -8
  53. package/lib/Skeleton/components/Tree.js +46 -9
  54. package/lib/TimeFormat/TimeFormat.js +18 -9
  55. package/lib/Title/Title.js +22 -10
  56. package/lib/ValueItem/ValueItem.js +171 -43
  57. package/package.json +9 -9
@@ -1,26 +1,70 @@
1
- import { defineComponent, computed } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeClass as _normalizeClass } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "j-skeleton-flex"
5
+ };
6
+ const _hoisted_2 = {
7
+ class: "j-skeleton-table"
8
+ };
9
+ import { computed } from 'vue';
2
10
  import Item from './Item.js';
3
11
  import useSkeletonStyle from '../style';
4
- export default defineComponent({
5
- name: 'JSkeletonListTable',
6
- components: {
7
- Item
12
+ const __sfc_main__ = _defineComponent({
13
+ ...{
14
+ name: 'JSkeletonListTable'
8
15
  },
16
+ __name: 'ListTable',
9
17
  props: {
10
18
  active: {
11
19
  type: Boolean,
20
+ required: false,
12
21
  default: true
13
22
  },
14
23
  loading: {
15
24
  type: Boolean,
25
+ required: false,
16
26
  default: true
17
27
  }
18
28
  },
19
- setup(props) {
29
+ setup(__props) {
30
+ const props = __props;
20
31
  const prefixCls = computed(() => 'j-skeleton');
21
32
  const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
22
- return {
23
- hashId
33
+ return (_ctx, _cache) => {
34
+ return _openBlock(), _createElementBlock("div", {
35
+ class: _normalizeClass(['j-skeleton', _unref(hashId)])
36
+ }, [_createElementVNode("div", _hoisted_1, [_createVNode(Item, {
37
+ active: __props.active,
38
+ width: "100px"
39
+ }, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
40
+ active: __props.active,
41
+ width: "100px"
42
+ }, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_2, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, item => {
43
+ return _createElementVNode("div", {
44
+ key: item,
45
+ class: _normalizeClass(['j-skeleton-table-cell', {
46
+ 'j-skeleton-table-header': item === 1
47
+ }])
48
+ }, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(4, i => {
49
+ return _createElementVNode("div", {
50
+ key: i,
51
+ class: _normalizeClass({
52
+ 'j-skeleton-table-action': i === 4
53
+ })
54
+ }, [i !== 4 || item === 1 ? (_openBlock(), _createBlock(Item, {
55
+ key: 0,
56
+ active: __props.active
57
+ }, null, 8 /* PROPS */, ["active"])) : (_openBlock(), _createElementBlock(_Fragment, {
58
+ key: 1
59
+ }, _renderList(3, _i => {
60
+ return _createVNode(Item, {
61
+ key: _i,
62
+ active: __props.active
63
+ }, null, 8 /* PROPS */, ["active"]);
64
+ }), 64 /* STABLE_FRAGMENT */))], 2 /* CLASS */);
65
+ }), 64 /* STABLE_FRAGMENT */))], 2 /* CLASS */);
66
+ }), 64 /* STABLE_FRAGMENT */))])], 2 /* CLASS */);
24
67
  };
25
68
  }
26
- });
69
+ });
70
+ export default __sfc_main__;
@@ -1,27 +1,57 @@
1
- import { defineComponent } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock } from "vue";
3
+ const _hoisted_1 = {
4
+ style: {
5
+ "padding": "24px",
6
+ "background-color": "#ffffff",
7
+ "height": "100%"
8
+ }
9
+ };
2
10
  import List from './List.js';
3
11
  import Detail from './Detail.js';
4
- export default defineComponent({
5
- name: 'JSkeletonPage',
6
- components: {
7
- List,
8
- Detail
12
+ const __sfc_main__ = _defineComponent({
13
+ ...{
14
+ name: 'JSkeletonPage'
9
15
  },
16
+ __name: 'Page',
10
17
  props: {
11
18
  type: {
12
19
  type: String,
13
- default: 'list' // detail
20
+ required: false,
21
+ default: 'list'
14
22
  },
15
23
  active: {
16
24
  type: Boolean,
25
+ required: false,
17
26
  default: true
18
27
  },
19
28
  loading: {
20
29
  type: Boolean,
30
+ required: false,
21
31
  default: true
22
32
  }
23
33
  },
24
- setup(props) {
25
- return {};
34
+ setup(__props) {
35
+ const props = __props;
36
+ return (_ctx, _cache) => {
37
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [__props.type === 'list' ? (_openBlock(), _createBlock(List, {
38
+ key: 0,
39
+ loading: __props.loading,
40
+ active: ""
41
+ }, {
42
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "default")]),
43
+ _: 3 /* FORWARDED */
44
+ }, 8 /* PROPS */, ["loading"])) : __props.type === 'detail' ? (_openBlock(), _createBlock(Detail, {
45
+ key: 1,
46
+ loading: __props.loading,
47
+ active: ""
48
+ }, {
49
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "default")]),
50
+ _: 3 /* FORWARDED */
51
+ }, 8 /* PROPS */, ["loading"])) : _renderSlot(_ctx.$slots, "default", {
52
+ key: 2
53
+ })]);
54
+ };
26
55
  }
27
- });
56
+ });
57
+ export default __sfc_main__;
@@ -1,16 +1,47 @@
1
- import { defineComponent } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "j-skeleton-flex-between"
5
+ };
6
+ const _hoisted_2 = {
7
+ class: "j-skeleton-flex"
8
+ };
9
+ const _hoisted_3 = {
10
+ class: "j-skeleton-flex"
11
+ };
2
12
  import Item from './Item.js';
3
- export default defineComponent({
4
- components: {
5
- Item
6
- },
13
+ const __sfc_main__ = _defineComponent({
14
+ __name: 'Search',
7
15
  props: {
8
16
  active: {
9
17
  type: Boolean,
18
+ required: false,
10
19
  default: true
11
20
  }
12
21
  },
13
- setup(props) {
14
- return {};
22
+ setup(__props) {
23
+ const props = __props;
24
+ return (_ctx, _cache) => {
25
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", _hoisted_2, [_createVNode(Item, {
26
+ active: __props.active,
27
+ width: "120px"
28
+ }, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
29
+ active: __props.active,
30
+ width: "120px"
31
+ }, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
32
+ active: __props.active,
33
+ width: "300px"
34
+ }, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_3, [_createVNode(Item, {
35
+ active: __props.active,
36
+ width: "100px"
37
+ }, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
38
+ active: __props.active,
39
+ width: "100px"
40
+ }, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
41
+ active: __props.active,
42
+ width: "100px"
43
+ }, null, 8 /* PROPS */, ["active"])])]);
44
+ };
15
45
  }
16
- });
46
+ });
47
+ export default __sfc_main__;
@@ -1,26 +1,63 @@
1
- import { defineComponent, computed } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "j-skeleton-flex"
5
+ };
6
+ const _hoisted_2 = {
7
+ class: "j-skeleton-flex"
8
+ };
9
+ const _hoisted_3 = {
10
+ class: "j-skeleton-flex"
11
+ };
12
+ import { computed } from 'vue';
2
13
  import Item from './Item.js';
3
14
  import useSkeletonStyle from '../style';
4
- export default defineComponent({
5
- name: 'JSkeletonTree',
6
- components: {
7
- Item
15
+ const __sfc_main__ = _defineComponent({
16
+ ...{
17
+ name: 'JSkeletonTree'
8
18
  },
19
+ __name: 'Tree',
9
20
  props: {
10
21
  active: {
11
22
  type: Boolean,
23
+ required: false,
12
24
  default: true
13
25
  },
14
26
  loading: {
15
27
  type: Boolean,
28
+ required: false,
16
29
  default: true
17
30
  }
18
31
  },
19
- setup(props) {
32
+ setup(__props) {
33
+ const props = __props;
20
34
  const prefixCls = computed(() => 'j-skeleton');
21
35
  const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
22
- return {
23
- hashId
36
+ return (_ctx, _cache) => {
37
+ return !__props.loading ? _renderSlot(_ctx.$slots, "default", {
38
+ key: 0
39
+ }) : (_openBlock(), _createElementBlock("div", {
40
+ key: 1,
41
+ class: _normalizeClass(['j-skeleton', _unref(hashId)])
42
+ }, [_createElementVNode("div", _hoisted_1, [_createVNode(Item, {
43
+ active: __props.active
44
+ }, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_2, [_createVNode(Item, {
45
+ active: __props.active,
46
+ width: "100px"
47
+ }, null, 8 /* PROPS */, ["active"])]), (_openBlock(), _createElementBlock(_Fragment, null, _renderList(6, item => {
48
+ return _createElementVNode("div", {
49
+ key: item,
50
+ class: "j-skeleton-flex"
51
+ }, [_createVNode(Item, {
52
+ active: __props.active,
53
+ size: "small"
54
+ }, null, 8 /* PROPS */, ["active"])]);
55
+ }), 64 /* STABLE_FRAGMENT */)), _createElementVNode("div", _hoisted_3, [_createVNode(Item, {
56
+ active: __props.active,
57
+ size: "small",
58
+ width: "140px"
59
+ }, null, 8 /* PROPS */, ["active"])])], 2 /* CLASS */));
24
60
  };
25
61
  }
26
- });
62
+ });
63
+ export default __sfc_main__;
@@ -1,16 +1,24 @@
1
- import { defineComponent, computed } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
3
+ import { computed } from 'vue';
2
4
  import dayjs from 'dayjs';
3
- export default defineComponent({
4
- name: 'JTimeFormat',
5
+ const __sfc_main__ = _defineComponent({
6
+ ...{
7
+ name: 'JTimeFormat'
8
+ },
9
+ __name: 'TimeFormat',
5
10
  props: {
6
11
  time: {
7
- type: [String, Number, undefined]
12
+ type: [String, Number],
13
+ required: false
8
14
  },
9
15
  format: {
10
- type: String
16
+ type: String,
17
+ required: false
11
18
  }
12
19
  },
13
- setup(props) {
20
+ setup(__props) {
21
+ const props = __props;
14
22
  const handleValue = (time, format) => {
15
23
  const value = Number(time);
16
24
  const _format = format || 'YYYY-MM-DD HH:mm:ss';
@@ -25,8 +33,9 @@ export default defineComponent({
25
33
  }
26
34
  return props.time;
27
35
  });
28
- return {
29
- timeFormat
36
+ return (_ctx, _cache) => {
37
+ return _openBlock(), _createElementBlock("span", null, _toDisplayString(timeFormat.value), 1 /* TEXT */);
30
38
  };
31
39
  }
32
- });
40
+ });
41
+ export default __sfc_main__;
package/es/Title/Title.js CHANGED
@@ -1,23 +1,35 @@
1
- import { defineComponent, computed } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "j-title-content"
5
+ };
6
+ import { computed } from 'vue';
2
7
  import useTitleStyle from './style';
3
- export default defineComponent({
4
- name: 'JTitle',
8
+ const __sfc_main__ = _defineComponent({
9
+ ...{
10
+ name: 'JTitle'
11
+ },
12
+ __name: 'Title',
5
13
  props: {
6
14
  data: {
7
15
  type: String,
8
- default: ''
16
+ required: false
9
17
  },
10
18
  style: {
11
19
  type: Object,
12
- default: () => ({})
20
+ required: false
13
21
  }
14
22
  },
15
- setup(props) {
23
+ setup(__props) {
24
+ const props = __props;
16
25
  const prefixCls = computed(() => 'j-title');
17
26
  const [wrapSSR, hashId] = useTitleStyle(prefixCls);
18
- return {
19
- prefixCls,
20
- hashId
27
+ return (_ctx, _cache) => {
28
+ return _openBlock(), _createElementBlock("div", {
29
+ class: _normalizeClass(['j-title', _unref(hashId)]),
30
+ style: _normalizeStyle(__props.style)
31
+ }, [_createElementVNode("div", _hoisted_1, _toDisplayString(__props.data), 1 /* TEXT */), _renderSlot(_ctx.$slots, "extra")], 6 /* CLASS, STYLE */);
21
32
  };
22
33
  }
23
- });
34
+ });
35
+ export default __sfc_main__;
@@ -1,59 +1,87 @@
1
- import { defineComponent, ref, watch, computed } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { createCommentVNode as _createCommentVNode, unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createVNode as _createVNode, Fragment as _Fragment, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, withCtx as _withCtx } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "value-item-warp"
5
+ };
6
+ import { ref, watch, computed } from 'vue';
2
7
  import { componentsType } from './util';
3
8
  import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload } from 'ant-design-vue';
4
9
  import { omit } from 'lodash-es';
5
- export default defineComponent({
6
- name: 'JValueItem',
7
- components: {
8
- Select,
9
- DatePicker,
10
- TimePicker,
11
- Input,
12
- InputNumber,
13
- InputPassword,
14
- Upload
10
+ const __sfc_main__ = _defineComponent({
11
+ ...{
12
+ name: 'JValueItem'
15
13
  },
14
+ __name: 'ValueItem',
16
15
  props: {
17
- // 组件双向绑定的值
18
16
  modelValue: {
19
17
  type: [Number, String],
20
- default: ''
18
+ required: false
21
19
  },
22
- // 组件类型
23
20
  itemType: {
24
21
  type: String,
25
- default: 'string'
22
+ required: false
26
23
  },
27
- // 多选框
28
24
  mode: {
29
25
  type: String,
30
- default: undefined
26
+ required: false
27
+ },
28
+ placeholder: {
29
+ type: String,
30
+ required: false
31
+ },
32
+ options: {
33
+ type: Array,
34
+ required: false
35
+ },
36
+ style: {
37
+ type: null,
38
+ required: false
39
+ },
40
+ class: {
41
+ type: String,
42
+ required: false
43
+ },
44
+ valueFormat: {
45
+ type: String,
46
+ required: false
47
+ },
48
+ action: {
49
+ type: [String, Promise],
50
+ required: false
51
+ },
52
+ headers: {
53
+ type: Object,
54
+ required: false
55
+ },
56
+ disabled: {
57
+ type: Boolean,
58
+ required: false
31
59
  },
32
- placeholder: String,
33
- options: Array,
34
- style: Object,
35
- class: String,
36
- valueFormat: String,
37
- action: [String, Promise],
38
- headers: Object,
39
- disabled: Boolean,
40
60
  extraProps: {
41
61
  type: Object,
42
- default: () => ({})
62
+ required: false
43
63
  },
44
64
  handleFileChange: {
45
- type: Function
65
+ type: Function,
66
+ required: false
46
67
  }
47
68
  },
48
- emits: ['update:modelValue', 'change'],
49
- setup(props, {
50
- emit
69
+ emits: ["update:modelValue", "change"],
70
+ setup(__props, {
71
+ emit: __emit
51
72
  }) {
73
+ const props = __props;
74
+ const emit = __emit;
75
+
76
+ // 设置默认值
77
+ const modelValue = props.modelValue ?? '';
78
+ const itemType = props.itemType ?? 'string';
79
+ const extraProps = props.extraProps ?? {};
52
80
  const typeMap = new Map(Object.entries(componentsType));
53
81
  const myValue = ref(undefined);
54
82
  const objectValue = ref('');
55
83
  const bindProps = computed(() => {
56
- return Object.assign(omit(props, ['extraProps']), props.extraProps);
84
+ return Object.assign(omit(props, ['extraProps']), extraProps);
57
85
  });
58
86
  const handleItemModalSubmit = () => {
59
87
  myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
@@ -65,7 +93,7 @@ export default defineComponent({
65
93
  emit('change', e && e.target ? e.target.value : e);
66
94
  };
67
95
  const monacoCancel = () => {
68
- objectValue.value = props.modelValue;
96
+ objectValue.value = modelValue;
69
97
  };
70
98
  const handleFileChangeInternal = async info => {
71
99
  if (info.file.status === 'done') {
@@ -80,21 +108,121 @@ export default defineComponent({
80
108
  };
81
109
  watch(() => props.modelValue, () => {
82
110
  myValue.value = props.modelValue;
83
- if (props.itemType === 'object') {
111
+ if (itemType === 'object') {
84
112
  objectValue.value = props.modelValue;
85
113
  }
86
114
  }, {
87
115
  immediate: true
88
116
  });
89
- return {
90
- typeMap,
91
- myValue,
92
- objectValue,
93
- bindProps,
94
- handleItemModalSubmit,
95
- onChange,
96
- monacoCancel,
97
- handleFileChangeInternal
117
+ return (_ctx, _cache) => {
118
+ const _component_AIcon = _resolveComponent("AIcon");
119
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createCommentVNode(" select "), _unref(typeMap).get(_unref(itemType)) === 'select' ? (_openBlock(), _createBlock(_unref(Select), _mergeProps({
120
+ key: 0,
121
+ value: myValue.value,
122
+ "onUpdate:value": _cache[0] || (_cache[0] = $event => myValue.value = $event),
123
+ allowClear: ""
124
+ }, bindProps.value, {
125
+ onChange: _cache[1] || (_cache[1] = (_, options) => onChange(options))
126
+ }), null, 16 /* FULL_PROPS */, ["value"])) : _unref(typeMap).get(_unref(itemType)) === 'date' ? (_openBlock(), _createElementBlock(_Fragment, {
127
+ key: 1
128
+ }, [_createCommentVNode(" date "), _createVNode(_unref(DatePicker), _mergeProps({
129
+ value: myValue.value,
130
+ "onUpdate:value": _cache[2] || (_cache[2] = $event => myValue.value = $event),
131
+ valueFormat: __props.valueFormat || 'YYYY-MM-DD HH:mm:ss',
132
+ allowClear: "",
133
+ showTime: ""
134
+ }, bindProps.value, {
135
+ onChange: onChange
136
+ }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) : _unref(typeMap).get(_unref(itemType)) === 'time' ? (_openBlock(), _createElementBlock(_Fragment, {
137
+ key: 2
138
+ }, [_createCommentVNode(" time "), _createVNode(_unref(TimePicker), _mergeProps({
139
+ value: myValue.value,
140
+ "onUpdate:value": _cache[3] || (_cache[3] = $event => myValue.value = $event),
141
+ valueFormat: __props.valueFormat || 'HH:mm:ss',
142
+ allowClear: ""
143
+ }, bindProps.value, {
144
+ onChange: onChange
145
+ }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) : _unref(itemType) === 'int' ? (_openBlock(), _createElementBlock(_Fragment, {
146
+ key: 3
147
+ }, [_createCommentVNode(" int "), _createVNode(_unref(InputNumber), _mergeProps({
148
+ value: myValue.value,
149
+ "onUpdate:value": _cache[4] || (_cache[4] = $event => myValue.value = $event),
150
+ precision: 0,
151
+ max: 2147483647,
152
+ min: -2147483648,
153
+ style: {
154
+ width: '100%'
155
+ }
156
+ }, bindProps.value, {
157
+ onChange: onChange
158
+ }), null, 16 /* FULL_PROPS */, ["value"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) : _unref(itemType) === 'long' ? (_openBlock(), _createElementBlock(_Fragment, {
159
+ key: 4
160
+ }, [_createCommentVNode(" long "), _createVNode(_unref(InputNumber), _mergeProps({
161
+ value: myValue.value,
162
+ "onUpdate:value": _cache[5] || (_cache[5] = $event => myValue.value = $event),
163
+ max: 999999999999999,
164
+ min: -999999999999999,
165
+ precision: 0,
166
+ style: {
167
+ width: '100%'
168
+ }
169
+ }, bindProps.value, {
170
+ onChange: onChange
171
+ }), null, 16 /* FULL_PROPS */, ["value"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) : ['float', 'double'].includes(_unref(itemType)) ? (_openBlock(), _createElementBlock(_Fragment, {
172
+ key: 5
173
+ }, [_createCommentVNode(" float/double "), _createVNode(_unref(InputNumber), _mergeProps({
174
+ value: myValue.value,
175
+ "onUpdate:value": _cache[6] || (_cache[6] = $event => myValue.value = $event),
176
+ max: 999999999999999,
177
+ min: -999999999999999,
178
+ style: {
179
+ width: '100%'
180
+ }
181
+ }, bindProps.value, {
182
+ onChange: onChange
183
+ }), null, 16 /* FULL_PROPS */, ["value"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) : _unref(typeMap).get(_unref(itemType)) === 'file' ? (_openBlock(), _createElementBlock(_Fragment, {
184
+ key: 6
185
+ }, [_createCommentVNode(" file "), _createVNode(_unref(Input), _mergeProps({
186
+ value: myValue.value,
187
+ "onUpdate:value": _cache[7] || (_cache[7] = $event => myValue.value = $event),
188
+ allowClear: "",
189
+ placeholder: "请输入链接"
190
+ }, bindProps.value, {
191
+ onChange: onChange
192
+ }), {
193
+ addonAfter: _withCtx(() => [_createVNode(_unref(Upload), {
194
+ action: __props.action,
195
+ headers: __props.headers,
196
+ showUploadList: false,
197
+ name: "file",
198
+ onChange: handleFileChangeInternal
199
+ }, {
200
+ default: _withCtx(() => [_createVNode(_component_AIcon, {
201
+ type: "UploadOutlined"
202
+ })]),
203
+ _: 1 /* STABLE */
204
+ }, 8 /* PROPS */, ["action", "headers"])]),
205
+ _: 1 /* STABLE */
206
+ }, 16 /* FULL_PROPS */, ["value"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) : _unref(typeMap).get(_unref(itemType)) === 'password' ? (_openBlock(), _createElementBlock(_Fragment, {
207
+ key: 7
208
+ }, [_createCommentVNode(" password "), _createVNode(_unref(InputPassword), _mergeProps({
209
+ value: myValue.value,
210
+ "onUpdate:value": _cache[8] || (_cache[8] = $event => myValue.value = $event),
211
+ allowClear: "",
212
+ type: "password"
213
+ }, bindProps.value, {
214
+ onChange: onChange
215
+ }), null, 16 /* FULL_PROPS */, ["value"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) : (_openBlock(), _createElementBlock(_Fragment, {
216
+ key: 8
217
+ }, [_createCommentVNode(" default: input "), _createVNode(_unref(Input), _mergeProps({
218
+ value: myValue.value,
219
+ "onUpdate:value": _cache[9] || (_cache[9] = $event => myValue.value = $event),
220
+ allowClear: "",
221
+ type: "text"
222
+ }, bindProps.value, {
223
+ onChange: onChange
224
+ }), null, 16 /* FULL_PROPS */, ["value"])], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))]);
98
225
  };
99
226
  }
100
- });
227
+ });
228
+ export default __sfc_main__;