@jetlinks-web/components 2.1.1 → 2.2.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.
@@ -28,6 +28,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
28
28
  "watch": "setup-const",
29
29
  "onMounted": "setup-const",
30
30
  "onBeforeUnmount": "setup-const",
31
+ "nextTick": "setup-const",
31
32
  "handleColumnFixed": "setup-maybe-ref",
32
33
  "props": "setup-reactive-const",
33
34
  "emit": "setup-const",
@@ -66,7 +67,7 @@ import ContextMenu from './components/ContextMenu';
66
67
  import { useRightMenuContext, useTableTool } from "./hooks";
67
68
  import { randomString } from "@jetlinks-web/utils";
68
69
  import { bodyProps, defaultProps } from "./props";
69
- import { ref, reactive, computed, watch, onMounted, onBeforeUnmount } from 'vue';
70
+ import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue';
70
71
  import { handleColumnFixed } from "./utils";
71
72
  const __sfc_main__ = Object.assign({
72
73
  name: 'JEditTableBody'
@@ -37,6 +37,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
37
37
  "ref": "setup-const",
38
38
  "reactive": "setup-const",
39
39
  "defineOptions": "setup-const",
40
+ "computed": "setup-const",
41
+ "watch": "setup-const",
40
42
  "bodyProps": "setup-maybe-ref",
41
43
  "defaultProps": "setup-maybe-ref",
42
44
  "findIndex": "setup-maybe-ref",
@@ -55,7 +57,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
55
57
  "fields": "setup-const",
56
58
  "fieldsErrMap": "setup-ref",
57
59
  "sortData": "setup-reactive-const",
58
- "_dataSource": "setup-maybe-ref",
60
+ "_dataSource": "setup-ref",
59
61
  "isFullscreen": "setup-maybe-ref",
60
62
  "toggle": "setup-maybe-ref",
61
63
  "rules": "setup-maybe-ref",
@@ -67,7 +69,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
67
69
  "findField": "setup-const",
68
70
  "removeFieldError": "setup-const",
69
71
  "addFieldError": "setup-const",
70
- "scrollWidth": "setup-maybe-ref",
72
+ "scrollWidth": "setup-ref",
71
73
  "onHorizontalScroll": "setup-const",
72
74
  "onResize": "setup-const",
73
75
  "onScrollDown": "setup-const",
@@ -90,7 +92,7 @@ import { tableProps } from 'ant-design-vue/lib/table';
90
92
  import Header from './header.js';
91
93
  import Body from './body.js';
92
94
  import { useFullscreen } from '@vueuse/core';
93
- import { provide, useAttrs, useSlots, ref, reactive, } from 'vue';
95
+ import { provide, useAttrs, useSlots, ref, reactive, computed, watch } from 'vue';
94
96
  import { bodyProps, defaultProps } from "./props";
95
97
  import { findIndex, get, sortBy } from 'lodash-es';
96
98
  const __sfc_main__ = Object.assign({
@@ -343,7 +345,7 @@ const __sfc_main__ = Object.assign({
343
345
  _createElementVNode("div", _hoisted_2, [
344
346
  _createElementVNode("div", {
345
347
  class: "jetlinks-edit-table-header",
346
- style: _normalizeStyle([{ "height": "50px" }, { paddingRight: _unref(scrollWidth) + 'px' }])
348
+ style: _normalizeStyle([{ "height": "50px" }, { paddingRight: scrollWidth.value + 'px' }])
347
349
  }, [
348
350
  _createVNode(Header, {
349
351
  columns: myColumns.value,
@@ -353,7 +355,7 @@ const __sfc_main__ = Object.assign({
353
355
  }, null, 8 /* PROPS */, ["columns", "style", "rowKey", "searchColumns"]),
354
356
  _createElementVNode("div", {
355
357
  class: "jetlinks-edit-table-header-scroll-hidden",
356
- style: _normalizeStyle({ width: _unref(scrollWidth) + 'px' })
358
+ style: _normalizeStyle({ width: scrollWidth.value + 'px' })
357
359
  }, null, 4 /* STYLE */)
358
360
  ], 4 /* STYLE */),
359
361
  _createElementVNode("div", {
@@ -363,7 +365,7 @@ const __sfc_main__ = Object.assign({
363
365
  _createVNode(Body, {
364
366
  ref_key: "tableBody",
365
367
  ref: tableBody,
366
- dataSource: _unref(_dataSource),
368
+ dataSource: _dataSource.value,
367
369
  columns: myColumns.value,
368
370
  cellHeight: _ctx.cellHeight,
369
371
  height: _ctx.height,
@@ -401,7 +403,7 @@ const __sfc_main__ = Object.assign({
401
403
  ], 544 /* NEED_HYDRATION, NEED_PATCH */),
402
404
  _createElementVNode("div", {
403
405
  class: "jetlinks-edit-table-horizontal-scroll-hidden",
404
- style: _normalizeStyle({ width: _unref(scrollWidth) + 'px' })
406
+ style: _normalizeStyle({ width: scrollWidth.value + 'px' })
405
407
  }, null, 4 /* STYLE */)
406
408
  ]))
407
409
  : _createCommentVNode("v-if", true)
@@ -22,6 +22,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "reactive": "setup-const",
23
23
  "watch": "setup-const",
24
24
  "defineOptions": "setup-const",
25
+ "provide": "setup-const",
25
26
  "get": "setup-maybe-ref",
26
27
  "isArray": "setup-maybe-ref",
27
28
  "useProvideFormItemContext": "setup-maybe-ref",
@@ -47,14 +48,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
47
48
  "onFieldChange": "setup-const"
48
49
  } */
49
50
  import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
50
- const _withScopeId = n => (_pushScopeId("data-v-1722999077877"), n = n(), _popScopeId(), n);
51
+ const _withScopeId = n => (_pushScopeId("data-v-1724924739516"), n = n(), _popScopeId(), n);
51
52
  const _hoisted_1 = { style: { "color": "#1d2129" } };
52
53
  const _hoisted_2 = {
53
54
  key: 0,
54
55
  class: "table-form-error-target"
55
56
  };
56
57
  const _hoisted_3 = ["id"];
57
- import { onBeforeUnmount, computed, reactive, watch, } from "vue";
58
+ import { onBeforeUnmount, computed, reactive, watch, provide } from "vue";
58
59
  import { get, isArray } from 'lodash-es';
59
60
  import { useProvideFormItemContext } from 'ant-design-vue/es/form/FormItemContext';
60
61
  import { useInjectError, useInjectForm } from "./hooks";
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
- const _withScopeId = n => (_pushScopeId("data-v-1722999078250"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1724924738720"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -0,0 +1,4 @@
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,4 @@
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }
@@ -0,0 +1,66 @@
1
+ /* Analyzed bindings: {
2
+ "value": "props",
3
+ "options": "props",
4
+ "columns": "props",
5
+ "props": "setup-reactive-const",
6
+ "emit": "setup-const",
7
+ "myValue": "setup-maybe-ref",
8
+ "styles": "setup-maybe-ref",
9
+ "onClick": "setup-const"
10
+ } */
11
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
+ const _withScopeId = n => (_pushScopeId("data-v-1724924739727"), n = n(), _popScopeId(), n);
13
+ const _hoisted_1 = ["onClick"];
14
+ const __sfc_main__ = Object.assign({
15
+ name: 'JRadioButton',
16
+ }, {
17
+ props: {
18
+ value: {
19
+ type: [String, Number],
20
+ default: undefined
21
+ },
22
+ options: {
23
+ type: Array,
24
+ default: () => []
25
+ },
26
+ columns: {
27
+ type: Number,
28
+ default: 3
29
+ }
30
+ },
31
+ emits: ['update:value'],
32
+ setup(__props, { emit: __emit }) {
33
+ const props = __props;
34
+ const emit = __emit;
35
+ const myValue = ref(props.value);
36
+ const styles = computed(() => {
37
+ return {
38
+ 'grid-template-columns': `repeat(${props.columns}, 1fr)`
39
+ };
40
+ });
41
+ const onClick = (record) => {
42
+ if (myValue.value !== record.value) {
43
+ myValue.value = record.value;
44
+ emit('update:value', record.value);
45
+ emit('select', record.value);
46
+ }
47
+ };
48
+ watch(() => props.value, () => {
49
+ myValue.value = props.value;
50
+ });
51
+ return (_ctx, _cache) => {
52
+ return (_openBlock(), _createElementBlock("div", {
53
+ class: "radio-button",
54
+ style: _normalizeStyle(_unref(styles))
55
+ }, [
56
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
57
+ return (_openBlock(), _createElementBlock("div", {
58
+ onClick: $event => (onClick(item)),
59
+ class: _normalizeClass(["radio-button-item", { 'active': _unref(myValue) === item.value }])
60
+ }, _toDisplayString(item.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1));
61
+ }), 256 /* UNKEYED_FRAGMENT */))
62
+ ], 4 /* STYLE */));
63
+ };
64
+ }
65
+ });
66
+ export default __sfc_main__;
@@ -0,0 +1,6 @@
1
+ import RadioButton from './RadioButton.js';
2
+ RadioButton.install = function (app) {
3
+ app.component(RadioButton.name, RadioButton);
4
+ return app;
5
+ };
6
+ export default RadioButton;
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1722999080365"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1724924741250"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
package/es/Search/Item.js CHANGED
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
81
- const _withScopeId = n => (_pushScopeId("data-v-1722999079745"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1724924740375"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
39
- const _withScopeId = n => (_pushScopeId("data-v-1722999079821"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1724924740471"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -1606,3 +1606,7 @@ textarea.ant-pagination-options-quick-jumper input {
1606
1606
  height: 100%;
1607
1607
  overflow-x: hidden;
1608
1608
  }
1609
+ .j-monaco-editor {
1610
+ min-height: 50px;
1611
+ height: 100%;
1612
+ }
@@ -7,3 +7,4 @@
7
7
  @import '../CardSelect/style/index.less';
8
8
  @import '../DragModal/style/index.less';
9
9
  @import "../EditTable/style/index.less";
10
+ @import "../MonacoEditor/style/index.less";
package/es/style.js CHANGED
@@ -5,4 +5,5 @@ import './ProTable/style';
5
5
  import './Search/style';
6
6
  import './CardSelect/style';
7
7
  import './DragModal/style';
8
- import './EditTable/style';
8
+ import './EditTable/style';
9
+ import './MonacoEditor/style';
@@ -28,6 +28,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
28
28
  "watch": "setup-const",
29
29
  "onMounted": "setup-const",
30
30
  "onBeforeUnmount": "setup-const",
31
+ "nextTick": "setup-const",
31
32
  "handleColumnFixed": "setup-maybe-ref",
32
33
  "props": "setup-reactive-const",
33
34
  "emit": "setup-const",
@@ -66,7 +67,7 @@ import ContextMenu from './components/ContextMenu';
66
67
  import { useRightMenuContext, useTableTool } from "./hooks";
67
68
  import { randomString } from "@jetlinks-web/utils";
68
69
  import { bodyProps, defaultProps } from "./props";
69
- import { ref, reactive, computed, watch, onMounted, onBeforeUnmount } from 'vue';
70
+ import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue';
70
71
  import { handleColumnFixed } from "./utils";
71
72
  const __sfc_main__ = Object.assign({
72
73
  name: 'JEditTableBody'
@@ -37,6 +37,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
37
37
  "ref": "setup-const",
38
38
  "reactive": "setup-const",
39
39
  "defineOptions": "setup-const",
40
+ "computed": "setup-const",
41
+ "watch": "setup-const",
40
42
  "bodyProps": "setup-maybe-ref",
41
43
  "defaultProps": "setup-maybe-ref",
42
44
  "findIndex": "setup-maybe-ref",
@@ -55,7 +57,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
55
57
  "fields": "setup-const",
56
58
  "fieldsErrMap": "setup-ref",
57
59
  "sortData": "setup-reactive-const",
58
- "_dataSource": "setup-maybe-ref",
60
+ "_dataSource": "setup-ref",
59
61
  "isFullscreen": "setup-maybe-ref",
60
62
  "toggle": "setup-maybe-ref",
61
63
  "rules": "setup-maybe-ref",
@@ -67,7 +69,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
67
69
  "findField": "setup-const",
68
70
  "removeFieldError": "setup-const",
69
71
  "addFieldError": "setup-const",
70
- "scrollWidth": "setup-maybe-ref",
72
+ "scrollWidth": "setup-ref",
71
73
  "onHorizontalScroll": "setup-const",
72
74
  "onResize": "setup-const",
73
75
  "onScrollDown": "setup-const",
@@ -90,7 +92,7 @@ import { tableProps } from 'ant-design-vue/lib/table';
90
92
  import Header from './header.js';
91
93
  import Body from './body.js';
92
94
  import { useFullscreen } from '@vueuse/core';
93
- import { provide, useAttrs, useSlots, ref, reactive, } from 'vue';
95
+ import { provide, useAttrs, useSlots, ref, reactive, computed, watch } from 'vue';
94
96
  import { bodyProps, defaultProps } from "./props";
95
97
  import { findIndex, get, sortBy } from 'lodash-es';
96
98
  const __sfc_main__ = Object.assign({
@@ -343,7 +345,7 @@ const __sfc_main__ = Object.assign({
343
345
  _createElementVNode("div", _hoisted_2, [
344
346
  _createElementVNode("div", {
345
347
  class: "jetlinks-edit-table-header",
346
- style: _normalizeStyle([{ "height": "50px" }, { paddingRight: _unref(scrollWidth) + 'px' }])
348
+ style: _normalizeStyle([{ "height": "50px" }, { paddingRight: scrollWidth.value + 'px' }])
347
349
  }, [
348
350
  _createVNode(Header, {
349
351
  columns: myColumns.value,
@@ -353,7 +355,7 @@ const __sfc_main__ = Object.assign({
353
355
  }, null, 8 /* PROPS */, ["columns", "style", "rowKey", "searchColumns"]),
354
356
  _createElementVNode("div", {
355
357
  class: "jetlinks-edit-table-header-scroll-hidden",
356
- style: _normalizeStyle({ width: _unref(scrollWidth) + 'px' })
358
+ style: _normalizeStyle({ width: scrollWidth.value + 'px' })
357
359
  }, null, 4 /* STYLE */)
358
360
  ], 4 /* STYLE */),
359
361
  _createElementVNode("div", {
@@ -363,7 +365,7 @@ const __sfc_main__ = Object.assign({
363
365
  _createVNode(Body, {
364
366
  ref_key: "tableBody",
365
367
  ref: tableBody,
366
- dataSource: _unref(_dataSource),
368
+ dataSource: _dataSource.value,
367
369
  columns: myColumns.value,
368
370
  cellHeight: _ctx.cellHeight,
369
371
  height: _ctx.height,
@@ -401,7 +403,7 @@ const __sfc_main__ = Object.assign({
401
403
  ], 544 /* NEED_HYDRATION, NEED_PATCH */),
402
404
  _createElementVNode("div", {
403
405
  class: "jetlinks-edit-table-horizontal-scroll-hidden",
404
- style: _normalizeStyle({ width: _unref(scrollWidth) + 'px' })
406
+ style: _normalizeStyle({ width: scrollWidth.value + 'px' })
405
407
  }, null, 4 /* STYLE */)
406
408
  ]))
407
409
  : _createCommentVNode("v-if", true)
@@ -22,6 +22,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "reactive": "setup-const",
23
23
  "watch": "setup-const",
24
24
  "defineOptions": "setup-const",
25
+ "provide": "setup-const",
25
26
  "get": "setup-maybe-ref",
26
27
  "isArray": "setup-maybe-ref",
27
28
  "useProvideFormItemContext": "setup-maybe-ref",
@@ -47,14 +48,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
47
48
  "onFieldChange": "setup-const"
48
49
  } */
49
50
  import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
50
- const _withScopeId = n => (_pushScopeId("data-v-1722999077850"), n = n(), _popScopeId(), n);
51
+ const _withScopeId = n => (_pushScopeId("data-v-1724924739491"), n = n(), _popScopeId(), n);
51
52
  const _hoisted_1 = { style: { "color": "#1d2129" } };
52
53
  const _hoisted_2 = {
53
54
  key: 0,
54
55
  class: "table-form-error-target"
55
56
  };
56
57
  const _hoisted_3 = ["id"];
57
- import { onBeforeUnmount, computed, reactive, watch, } from "vue";
58
+ import { onBeforeUnmount, computed, reactive, watch, provide } from "vue";
58
59
  import { get, isArray } from 'lodash-es';
59
60
  import { useProvideFormItemContext } from 'ant-design-vue/es/form/FormItemContext';
60
61
  import { useInjectError, useInjectForm } from "./hooks";
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
- const _withScopeId = n => (_pushScopeId("data-v-1722999078243"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1724924738728"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -0,0 +1,4 @@
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
@@ -0,0 +1,4 @@
1
+ .j-monaco-editor {
2
+ min-height: 50px;
3
+ height: 100%;
4
+ }
@@ -0,0 +1,66 @@
1
+ /* Analyzed bindings: {
2
+ "value": "props",
3
+ "options": "props",
4
+ "columns": "props",
5
+ "props": "setup-reactive-const",
6
+ "emit": "setup-const",
7
+ "myValue": "setup-maybe-ref",
8
+ "styles": "setup-maybe-ref",
9
+ "onClick": "setup-const"
10
+ } */
11
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
+ const _withScopeId = n => (_pushScopeId("data-v-1724924739717"), n = n(), _popScopeId(), n);
13
+ const _hoisted_1 = ["onClick"];
14
+ const __sfc_main__ = Object.assign({
15
+ name: 'JRadioButton',
16
+ }, {
17
+ props: {
18
+ value: {
19
+ type: [String, Number],
20
+ default: undefined
21
+ },
22
+ options: {
23
+ type: Array,
24
+ default: () => []
25
+ },
26
+ columns: {
27
+ type: Number,
28
+ default: 3
29
+ }
30
+ },
31
+ emits: ['update:value'],
32
+ setup(__props, { emit: __emit }) {
33
+ const props = __props;
34
+ const emit = __emit;
35
+ const myValue = ref(props.value);
36
+ const styles = computed(() => {
37
+ return {
38
+ 'grid-template-columns': `repeat(${props.columns}, 1fr)`
39
+ };
40
+ });
41
+ const onClick = (record) => {
42
+ if (myValue.value !== record.value) {
43
+ myValue.value = record.value;
44
+ emit('update:value', record.value);
45
+ emit('select', record.value);
46
+ }
47
+ };
48
+ watch(() => props.value, () => {
49
+ myValue.value = props.value;
50
+ });
51
+ return (_ctx, _cache) => {
52
+ return (_openBlock(), _createElementBlock("div", {
53
+ class: "radio-button",
54
+ style: _normalizeStyle(_unref(styles))
55
+ }, [
56
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
57
+ return (_openBlock(), _createElementBlock("div", {
58
+ onClick: $event => (onClick(item)),
59
+ class: _normalizeClass(["radio-button-item", { 'active': _unref(myValue) === item.value }])
60
+ }, _toDisplayString(item.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1));
61
+ }), 256 /* UNKEYED_FRAGMENT */))
62
+ ], 4 /* STYLE */));
63
+ };
64
+ }
65
+ });
66
+ export default __sfc_main__;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _RadioButton = _interopRequireDefault(require("./RadioButton.js"));
9
+ _RadioButton.default.install = function (app) {
10
+ app.component(_RadioButton.default.name, _RadioButton.default);
11
+ return app;
12
+ };
13
+ var _default = exports.default = _RadioButton.default;
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1722999080380"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1724924741261"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
81
- const _withScopeId = n => (_pushScopeId("data-v-1722999079674"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1724924740311"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
39
- const _withScopeId = n => (_pushScopeId("data-v-1722999079843"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1724924740452"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -3,3 +3,4 @@
3
3
  @import "../DragModal/style/index-pure.less";
4
4
  @import "../EditTable/style/index-pure.less";
5
5
  @import "../Ellipsis/style/index-pure.less";
6
+ @import "../MonacoEditor/style/index-pure.less";
@@ -1606,3 +1606,7 @@ textarea.ant-pagination-options-quick-jumper input {
1606
1606
  height: 100%;
1607
1607
  overflow-x: hidden;
1608
1608
  }
1609
+ .j-monaco-editor {
1610
+ min-height: 50px;
1611
+ height: 100%;
1612
+ }
@@ -7,3 +7,4 @@
7
7
  @import '../CardSelect/style/index.less';
8
8
  @import '../DragModal/style/index.less';
9
9
  @import "../EditTable/style/index.less";
10
+ @import "../MonacoEditor/style/index.less";
package/lib/style.js CHANGED
@@ -7,4 +7,5 @@ require("./ProTable/style");
7
7
  require("./Search/style");
8
8
  require("./CardSelect/style");
9
9
  require("./DragModal/style");
10
- require("./EditTable/style");
10
+ require("./EditTable/style");
11
+ require("./MonacoEditor/style");
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
- "keywords": [],
7
+ "keywords": [
8
+ "@jetlinks-web",
9
+ "components"
10
+ ],
8
11
  "files": [
9
12
  "lib",
10
13
  "es"
@@ -136,8 +139,8 @@
136
139
  "webpack-dev-server": "^4.0.0",
137
140
  "webpack-merge": "^5.0.0",
138
141
  "webpackbar": "^5.0.2",
139
- "@jetlinks-web/utils": "^1.0.7",
140
142
  "@jetlinks-web/constants": "^1.0.2",
143
+ "@jetlinks-web/utils": "^1.1.0",
141
144
  "@jetlinks-web/hooks": "^1.0.13"
142
145
  },
143
146
  "publishConfig": {