@vunk/plus 1.1.1 → 1.1.3

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.
@@ -1,7 +1,7 @@
1
- import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
2
- import { defineComponent, ref, onMounted, nextTick, watchEffect, openBlock, createElementBlock } from 'vue';
3
- import { editor } from 'monaco-editor';
4
1
  import { watchPausable } from '@vueuse/core';
2
+ import { editor } from 'monaco-editor';
3
+ import { defineComponent, ref, onMounted, nextTick, watchEffect, openBlock, createElementBlock } from 'vue';
4
+ import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
5
5
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
6
 
7
7
  const props = {
@@ -1,4 +1,4 @@
1
- import { Ref } from 'vue';
1
+ import type { Ref } from 'vue';
2
2
  import { editor as mEditor } from 'monaco-editor';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  modelValue: {
@@ -0,0 +1,8 @@
1
+ .vk-tables-v1-checkbox.is-readonly .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{
2
+ background-color: var(--el-color-primary);
3
+
4
+ --el-checkbox-disabled-checked-icon-color: var(--el-color-white);
5
+ }
6
+ .vk-tables-v1-checkbox.is-readonly .n-radio.n-radio--disabled .n-radio__dot--checked::before{
7
+ background-color: var(--el-color-primary);
8
+ }
@@ -1,4 +1,5 @@
1
1
  import VkTablesV1Checkbox from './src/index.vue';
2
+ export * as _VkTablesV1CheckboxCtx from './src/ctx';
2
3
  export * as __VkTablesV1Checkbox from './src/types';
3
4
  export { VkTablesV1Checkbox, };
4
5
  export default VkTablesV1Checkbox;
@@ -3,6 +3,7 @@ import { _VkTabelsV1Ctx, VkTablesV1 } from '@vunk/plus/components/tables-v1';
3
3
  import { VkCheckRecordLogicProvider, VkCheckRecordLogic } from '@vunk/core';
4
4
  import { noop } from '@vunk/shared/function';
5
5
  import { ElCheckbox } from 'element-plus';
6
+ import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
6
7
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
7
8
 
8
9
  /* eslint-disable @typescript-eslint/restrict-template-expressions */
@@ -3950,12 +3951,36 @@ const props = {
3950
3951
  checkTrigger: {
3951
3952
  type: String,
3952
3953
  default: "check"
3954
+ },
3955
+ /**
3956
+ * 同 TableV1 disabled, 用于控制分页组件是否禁用
3957
+ */
3958
+ paginationDisabled: {
3959
+ type: Boolean,
3960
+ default: false
3961
+ },
3962
+ /**
3963
+ * 是否只读
3964
+ */
3965
+ readonly: {
3966
+ type: Boolean,
3967
+ default: false
3953
3968
  }
3954
3969
  };
3970
+ const createBindProps = bindPropsFactory(props);
3955
3971
  const emits = {
3956
3972
  ..._VkTabelsV1Ctx.emits,
3957
3973
  "update:modelValue": (val) => Array.isArray(val)
3958
3974
  };
3975
+ const createOnEmits = onEmitsFactory(emits);
3976
+
3977
+ var ctx = /*#__PURE__*/Object.freeze({
3978
+ __proto__: null,
3979
+ createBindProps: createBindProps,
3980
+ createOnEmits: createOnEmits,
3981
+ emits: emits,
3982
+ props: props
3983
+ });
3959
3984
 
3960
3985
  const radioThemeOverrides = {
3961
3986
  dotColorActive: "var(--el-color-primary)",
@@ -3975,8 +4000,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
3975
4000
  setup(props2, {
3976
4001
  emit
3977
4002
  }) {
3978
- const coreProps = _VkTabelsV1Ctx.createBindProps(props2, ["columns"]);
4003
+ const coreProps = _VkTabelsV1Ctx.createBindProps(props2, ["columns", "disabled"]);
3979
4004
  const coreEmits = _VkTabelsV1Ctx.createOnEmits(emit, ["row-click"]);
4005
+ const theDisabled = computed(() => props2.disabled || props2.readonly);
3980
4006
  const getCurrentPageCheckInfo = () => {
3981
4007
  const oidField = props2.oidField;
3982
4008
  const allCheckedId = props2.modelValue.map(d => d[oidField]);
@@ -4028,19 +4054,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
4028
4054
  toggle,
4029
4055
  isActive
4030
4056
  }) => {
4031
- const onChange = props2.multiple ? toggle : () => singleChange(e.row);
4032
- if (!props2.disabled) {
4033
- changeEvents[e.row[props2.oidField]] = onChange;
4034
- }
4035
- const handleCheck = props2.checkTrigger === "check" ? onChange : noop;
4057
+ const onChange = theDisabled.value ? noop : props2.multiple ? toggle : () => singleChange(e.row);
4058
+ changeEvents[e.row[props2.oidField]] = onChange;
4059
+ const checkHandler = () => {
4060
+ if (props2.checkTrigger === "check") {
4061
+ onChange();
4062
+ }
4063
+ };
4036
4064
  return props2.multiple ? createVNode(ElCheckbox, {
4037
- "disabled": props2.disabled,
4065
+ "disabled": theDisabled.value,
4038
4066
  "modelValue": isActive,
4039
- "onChange": handleCheck
4067
+ "onChange": checkHandler
4040
4068
  }, null) : createVNode(NRadio, {
4041
- "disabled": props2.disabled,
4069
+ "disabled": theDisabled.value,
4042
4070
  "checked": isActive,
4043
- "onUpdate:checked": handleCheck,
4071
+ "onUpdate:checked": checkHandler,
4044
4072
  "theme-overrides": radioThemeOverrides
4045
4073
  }, null);
4046
4074
  }
@@ -4052,7 +4080,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
4052
4080
  uncheckedNodes
4053
4081
  } = getCurrentPageCheckInfo();
4054
4082
  return createVNode(ElCheckbox, {
4055
- "disabled": props2.disabled,
4083
+ "disabled": theDisabled.value,
4056
4084
  "indeterminate": checkedNodes.length > 0 && checkedNodes.length < props2.data.length,
4057
4085
  "modelValue": checkedNodes.length && checkedNodes.length === props2.data.length,
4058
4086
  "onUpdate:modelValue": checked => headerCheckboxChange(checked, uncheckedNodes)
@@ -4095,8 +4123,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
4095
4123
  _ctx.selectionHidden ? { hidden: true } : _ctx.checkboxCol,
4096
4124
  ..._ctx.columns
4097
4125
  ],
4126
+ class: ["vk-tables-v1-checkbox", {
4127
+ "is-readonly": _ctx.readonly
4128
+ }],
4129
+ disabled: _ctx.paginationDisabled,
4098
4130
  onRowClick: _ctx.handleRowClick
4099
- }, toHandlers(_ctx.coreEmits)), null, 16, ["columns", "onRowClick"])
4131
+ }, toHandlers(_ctx.coreEmits)), null, 16, ["columns", "class", "disabled", "onRowClick"])
4100
4132
  ]),
4101
4133
  _: 1
4102
4134
  /* STABLE */
@@ -4112,4 +4144,4 @@ VkTablesV1Checkbox.install = (app) => {
4112
4144
  app.component(VkTablesV1Checkbox.name || "VkTablesV1Checkbox", VkTablesV1Checkbox);
4113
4145
  };
4114
4146
 
4115
- export { VkTablesV1Checkbox, types as __VkTablesV1Checkbox, VkTablesV1Checkbox as default };
4147
+ export { VkTablesV1Checkbox, ctx as _VkTablesV1CheckboxCtx, types as __VkTablesV1Checkbox, VkTablesV1Checkbox as default };
@@ -45,6 +45,20 @@ export declare const props: {
45
45
  type: PropType<"check" | "rowClick">;
46
46
  default: string;
47
47
  };
48
+ /**
49
+ * 同 TableV1 disabled, 用于控制分页组件是否禁用
50
+ */
51
+ paginationDisabled: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ /**
56
+ * 是否只读
57
+ */
58
+ readonly: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
48
62
  border: {
49
63
  type: BooleanConstructor;
50
64
  default: boolean;
@@ -197,17 +211,14 @@ export declare const props: {
197
211
  default: string;
198
212
  };
199
213
  label: StringConstructor;
200
- className: StringConstructor; /**
201
- * 必须保证主键唯一且生效,选择逻辑才生效
202
- *
203
- */
214
+ className: StringConstructor;
204
215
  labelClassName: StringConstructor;
205
216
  property: StringConstructor;
206
217
  prop: StringConstructor;
207
218
  minWidth: {
208
219
  type: (StringConstructor | NumberConstructor)[];
209
220
  /**
210
- * 隐藏选择列
221
+ * 允许多个
211
222
  */
212
223
  default: string;
213
224
  };
@@ -250,6 +261,7 @@ export declare const props: {
250
261
  validator: (val: ("ascending" | "descending")[]) => boolean;
251
262
  };
252
263
  };
264
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"load", keyof T2> | Extract<"fixed", keyof T2> | Extract<"small", keyof T2> | Extract<"data", keyof T2> | Extract<"filters", keyof T2> | Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"index", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"disabled", keyof T2> | Extract<"teleported", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"width", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2> | Extract<"rowKey", keyof T2> | Extract<"summaryMethod", keyof T2> | Extract<"rowClassName", keyof T2> | Extract<"rowStyle", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"cellStyle", keyof T2> | Extract<"headerRowClassName", keyof T2> | Extract<"headerRowStyle", keyof T2> | Extract<"headerCellClassName", keyof T2> | Extract<"headerCellStyle", keyof T2> | Extract<"expandRowKeys", keyof T2> | Extract<"defaultSort", keyof T2> | Extract<"tooltipOptions", keyof T2> | Extract<"spanMethod", keyof T2> | Extract<"treeProps", keyof T2> | Extract<"height", keyof T2> | Extract<"maxHeight", keyof T2> | Extract<"fit", keyof T2> | Extract<"stripe", keyof T2> | Extract<"border", keyof T2> | Extract<"showHeader", keyof T2> | Extract<"showSummary", keyof T2> | Extract<"sumText", keyof T2> | Extract<"highlightCurrentRow", keyof T2> | Extract<"currentRowKey", keyof T2> | Extract<"emptyText", keyof T2> | Extract<"defaultExpandAll", keyof T2> | Extract<"tooltipEffect", keyof T2> | Extract<"selectOnIndeterminate", keyof T2> | Extract<"indent", keyof T2> | Extract<"lazy", keyof T2> | Extract<"tableLayout", keyof T2> | Extract<"scrollbarAlwaysOn", keyof T2> | Extract<"flexible", keyof T2> | Extract<"appendFilterPanelTo", keyof T2> | Extract<"scrollbarTabindex", keyof T2> | Extract<"pageSize", keyof T2> | Extract<"defaultPageSize", keyof T2> | Extract<"total", keyof T2> | Extract<"pageCount", keyof T2> | Extract<"pagerCount", keyof T2> | Extract<"currentPage", keyof T2> | Extract<"defaultCurrentPage", keyof T2> | Extract<"layout", keyof T2> | Extract<"pageSizes", keyof T2> | Extract<"prevText", keyof T2> | Extract<"prevIcon", keyof T2> | Extract<"nextText", keyof T2> | Extract<"nextIcon", keyof T2> | Extract<"background", keyof T2> | Extract<"hideOnSinglePage", keyof T2> | Extract<"columns", keyof T2> | Extract<"tableClass", keyof T2> | Extract<"tableStyle", keyof T2> | Extract<"start", keyof T2> | Extract<"modules", keyof T2> | Extract<"elRef", keyof T2> | Extract<"oidField", keyof T2> | Extract<"multiple", keyof T2> | Extract<"selectionHidden", keyof T2> | Extract<"checkTrigger", keyof T2> | Extract<"paginationDisabled", keyof T2> | Extract<"readonly", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"load", keyof T2>, KE> | Exclude<Extract<"fixed", keyof T2>, KE> | Exclude<Extract<"small", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"filters", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"index", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"renderHeader", keyof T2>, KE> | Exclude<Extract<"sortMethod", keyof T2>, KE> | Exclude<Extract<"sortBy", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"selectable", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"filteredValue", keyof T2>, KE> | Exclude<Extract<"sortOrders", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"labelClassName", keyof T2>, KE> | Exclude<Extract<"property", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"minWidth", keyof T2>, KE> | Exclude<Extract<"sortable", keyof T2>, KE> | Exclude<Extract<"resizable", keyof T2>, KE> | Exclude<Extract<"columnKey", keyof T2>, KE> | Exclude<Extract<"align", keyof T2>, KE> | Exclude<Extract<"headerAlign", keyof T2>, KE> | Exclude<Extract<"showOverflowTooltip", keyof T2>, KE> | Exclude<Extract<"reserveSelection", keyof T2>, KE> | Exclude<Extract<"filterPlacement", keyof T2>, KE> | Exclude<Extract<"filterMultiple", keyof T2>, KE> | Exclude<Extract<"showTooltipWhenOverflow", keyof T2>, KE> | Exclude<Extract<"rowKey", keyof T2>, KE> | Exclude<Extract<"summaryMethod", keyof T2>, KE> | Exclude<Extract<"rowClassName", keyof T2>, KE> | Exclude<Extract<"rowStyle", keyof T2>, KE> | Exclude<Extract<"cellClassName", keyof T2>, KE> | Exclude<Extract<"cellStyle", keyof T2>, KE> | Exclude<Extract<"headerRowClassName", keyof T2>, KE> | Exclude<Extract<"headerRowStyle", keyof T2>, KE> | Exclude<Extract<"headerCellClassName", keyof T2>, KE> | Exclude<Extract<"headerCellStyle", keyof T2>, KE> | Exclude<Extract<"expandRowKeys", keyof T2>, KE> | Exclude<Extract<"defaultSort", keyof T2>, KE> | Exclude<Extract<"tooltipOptions", keyof T2>, KE> | Exclude<Extract<"spanMethod", keyof T2>, KE> | Exclude<Extract<"treeProps", keyof T2>, KE> | Exclude<Extract<"height", keyof T2>, KE> | Exclude<Extract<"maxHeight", keyof T2>, KE> | Exclude<Extract<"fit", keyof T2>, KE> | Exclude<Extract<"stripe", keyof T2>, KE> | Exclude<Extract<"border", keyof T2>, KE> | Exclude<Extract<"showHeader", keyof T2>, KE> | Exclude<Extract<"showSummary", keyof T2>, KE> | Exclude<Extract<"sumText", keyof T2>, KE> | Exclude<Extract<"highlightCurrentRow", keyof T2>, KE> | Exclude<Extract<"currentRowKey", keyof T2>, KE> | Exclude<Extract<"emptyText", keyof T2>, KE> | Exclude<Extract<"defaultExpandAll", keyof T2>, KE> | Exclude<Extract<"tooltipEffect", keyof T2>, KE> | Exclude<Extract<"selectOnIndeterminate", keyof T2>, KE> | Exclude<Extract<"indent", keyof T2>, KE> | Exclude<Extract<"lazy", keyof T2>, KE> | Exclude<Extract<"tableLayout", keyof T2>, KE> | Exclude<Extract<"scrollbarAlwaysOn", keyof T2>, KE> | Exclude<Extract<"flexible", keyof T2>, KE> | Exclude<Extract<"appendFilterPanelTo", keyof T2>, KE> | Exclude<Extract<"scrollbarTabindex", keyof T2>, KE> | Exclude<Extract<"pageSize", keyof T2>, KE> | Exclude<Extract<"defaultPageSize", keyof T2>, KE> | Exclude<Extract<"total", keyof T2>, KE> | Exclude<Extract<"pageCount", keyof T2>, KE> | Exclude<Extract<"pagerCount", keyof T2>, KE> | Exclude<Extract<"currentPage", keyof T2>, KE> | Exclude<Extract<"defaultCurrentPage", keyof T2>, KE> | Exclude<Extract<"layout", keyof T2>, KE> | Exclude<Extract<"pageSizes", keyof T2>, KE> | Exclude<Extract<"prevText", keyof T2>, KE> | Exclude<Extract<"prevIcon", keyof T2>, KE> | Exclude<Extract<"nextText", keyof T2>, KE> | Exclude<Extract<"nextIcon", keyof T2>, KE> | Exclude<Extract<"background", keyof T2>, KE> | Exclude<Extract<"hideOnSinglePage", keyof T2>, KE> | Exclude<Extract<"columns", keyof T2>, KE> | Exclude<Extract<"tableClass", keyof T2>, KE> | Exclude<Extract<"tableStyle", keyof T2>, KE> | Exclude<Extract<"start", keyof T2>, KE> | Exclude<Extract<"modules", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"oidField", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"selectionHidden", keyof T2>, KE> | Exclude<Extract<"checkTrigger", keyof T2>, KE> | Exclude<Extract<"paginationDisabled", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> : Extract<"load", keyof T2> | Extract<"fixed", keyof T2> | Extract<"small", keyof T2> | Extract<"data", keyof T2> | Extract<"filters", keyof T2> | Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"index", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"disabled", keyof T2> | Extract<"teleported", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"width", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2> | Extract<"rowKey", keyof T2> | Extract<"summaryMethod", keyof T2> | Extract<"rowClassName", keyof T2> | Extract<"rowStyle", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"cellStyle", keyof T2> | Extract<"headerRowClassName", keyof T2> | Extract<"headerRowStyle", keyof T2> | Extract<"headerCellClassName", keyof T2> | Extract<"headerCellStyle", keyof T2> | Extract<"expandRowKeys", keyof T2> | Extract<"defaultSort", keyof T2> | Extract<"tooltipOptions", keyof T2> | Extract<"spanMethod", keyof T2> | Extract<"treeProps", keyof T2> | Extract<"height", keyof T2> | Extract<"maxHeight", keyof T2> | Extract<"fit", keyof T2> | Extract<"stripe", keyof T2> | Extract<"border", keyof T2> | Extract<"showHeader", keyof T2> | Extract<"showSummary", keyof T2> | Extract<"sumText", keyof T2> | Extract<"highlightCurrentRow", keyof T2> | Extract<"currentRowKey", keyof T2> | Extract<"emptyText", keyof T2> | Extract<"defaultExpandAll", keyof T2> | Extract<"tooltipEffect", keyof T2> | Extract<"selectOnIndeterminate", keyof T2> | Extract<"indent", keyof T2> | Extract<"lazy", keyof T2> | Extract<"tableLayout", keyof T2> | Extract<"scrollbarAlwaysOn", keyof T2> | Extract<"flexible", keyof T2> | Extract<"appendFilterPanelTo", keyof T2> | Extract<"scrollbarTabindex", keyof T2> | Extract<"pageSize", keyof T2> | Extract<"defaultPageSize", keyof T2> | Extract<"total", keyof T2> | Extract<"pageCount", keyof T2> | Extract<"pagerCount", keyof T2> | Extract<"currentPage", keyof T2> | Extract<"defaultCurrentPage", keyof T2> | Extract<"layout", keyof T2> | Extract<"pageSizes", keyof T2> | Extract<"prevText", keyof T2> | Extract<"prevIcon", keyof T2> | Extract<"nextText", keyof T2> | Extract<"nextIcon", keyof T2> | Extract<"background", keyof T2> | Extract<"hideOnSinglePage", keyof T2> | Extract<"columns", keyof T2> | Extract<"tableClass", keyof T2> | Extract<"tableStyle", keyof T2> | Extract<"start", keyof T2> | Extract<"modules", keyof T2> | Extract<"elRef", keyof T2> | Extract<"oidField", keyof T2> | Extract<"multiple", keyof T2> | Extract<"selectionHidden", keyof T2> | Extract<"checkTrigger", keyof T2> | Extract<"paginationDisabled", keyof T2> | Extract<"readonly", keyof T2>]: { [k in Extract<"load", keyof T2> | Extract<"fixed", keyof T2> | Extract<"small", keyof T2> | Extract<"data", keyof T2> | Extract<"filters", keyof T2> | Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"index", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"disabled", keyof T2> | Extract<"teleported", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"width", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2> | Extract<"rowKey", keyof T2> | Extract<"summaryMethod", keyof T2> | Extract<"rowClassName", keyof T2> | Extract<"rowStyle", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"cellStyle", keyof T2> | Extract<"headerRowClassName", keyof T2> | Extract<"headerRowStyle", keyof T2> | Extract<"headerCellClassName", keyof T2> | Extract<"headerCellStyle", keyof T2> | Extract<"expandRowKeys", keyof T2> | Extract<"defaultSort", keyof T2> | Extract<"tooltipOptions", keyof T2> | Extract<"spanMethod", keyof T2> | Extract<"treeProps", keyof T2> | Extract<"height", keyof T2> | Extract<"maxHeight", keyof T2> | Extract<"fit", keyof T2> | Extract<"stripe", keyof T2> | Extract<"border", keyof T2> | Extract<"showHeader", keyof T2> | Extract<"showSummary", keyof T2> | Extract<"sumText", keyof T2> | Extract<"highlightCurrentRow", keyof T2> | Extract<"currentRowKey", keyof T2> | Extract<"emptyText", keyof T2> | Extract<"defaultExpandAll", keyof T2> | Extract<"tooltipEffect", keyof T2> | Extract<"selectOnIndeterminate", keyof T2> | Extract<"indent", keyof T2> | Extract<"lazy", keyof T2> | Extract<"tableLayout", keyof T2> | Extract<"scrollbarAlwaysOn", keyof T2> | Extract<"flexible", keyof T2> | Extract<"appendFilterPanelTo", keyof T2> | Extract<"scrollbarTabindex", keyof T2> | Extract<"pageSize", keyof T2> | Extract<"defaultPageSize", keyof T2> | Extract<"total", keyof T2> | Extract<"pageCount", keyof T2> | Extract<"pagerCount", keyof T2> | Extract<"currentPage", keyof T2> | Extract<"defaultCurrentPage", keyof T2> | Extract<"layout", keyof T2> | Extract<"pageSizes", keyof T2> | Extract<"prevText", keyof T2> | Extract<"prevIcon", keyof T2> | Extract<"nextText", keyof T2> | Extract<"nextIcon", keyof T2> | Extract<"background", keyof T2> | Extract<"hideOnSinglePage", keyof T2> | Extract<"columns", keyof T2> | Extract<"tableClass", keyof T2> | Extract<"tableStyle", keyof T2> | Extract<"start", keyof T2> | Extract<"modules", keyof T2> | Extract<"elRef", keyof T2> | Extract<"oidField", keyof T2> | Extract<"multiple", keyof T2> | Extract<"selectionHidden", keyof T2> | Extract<"checkTrigger", keyof T2> | Extract<"paginationDisabled", keyof T2> | Extract<"readonly", keyof T2>]: T2[k]; }[P]; }>;
253
265
  export declare const emits: {
254
266
  'update:modelValue': (val: any[]) => boolean;
255
267
  'update:start': (val: number) => boolean;
@@ -279,3 +291,32 @@ export declare const emits: {
279
291
  'prev-click': (val: number) => boolean;
280
292
  'next-click': (val: number) => boolean;
281
293
  };
294
+ export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change" | "scroll" | "select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend" | "update:start" | "update:current-page" | "update:page-size" | "size-change" | "prev-click" | "next-click")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"scroll", KE> | Exclude<"select", KE> | Exclude<"select-all", KE> | Exclude<"expand-change", KE> | Exclude<"current-change", KE> | Exclude<"selection-change", KE> | Exclude<"cell-mouse-enter", KE> | Exclude<"cell-mouse-leave", KE> | Exclude<"cell-contextmenu", KE> | Exclude<"cell-click", KE> | Exclude<"cell-dblclick", KE> | Exclude<"row-click", KE> | Exclude<"row-contextmenu", KE> | Exclude<"row-dblclick", KE> | Exclude<"header-click", KE> | Exclude<"header-contextmenu", KE> | Exclude<"sort-change", KE> | Exclude<"filter-change", KE> | Exclude<"header-dragend", KE> | Exclude<"update:start", KE> | Exclude<"update:current-page", KE> | Exclude<"update:page-size", KE> | Exclude<"size-change", KE> | Exclude<"prev-click", KE> | Exclude<"next-click", KE> : "update:modelValue" | "change" | "scroll" | "select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend" | "update:start" | "update:current-page" | "update:page-size" | "size-change" | "prev-click" | "next-click"]: {
295
+ 'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
296
+ 'update:start': (...e: import("@vunk/core").RestParameters<T2>) => void;
297
+ select: (...e: import("@vunk/core").RestParameters<T2>) => void;
298
+ 'select-all': (...e: import("@vunk/core").RestParameters<T2>) => void;
299
+ 'selection-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
300
+ 'cell-mouse-enter': (...e: import("@vunk/core").RestParameters<T2>) => void;
301
+ 'cell-mouse-leave': (...e: import("@vunk/core").RestParameters<T2>) => void;
302
+ 'cell-contextmenu': (...e: import("@vunk/core").RestParameters<T2>) => void;
303
+ 'cell-click': (...e: import("@vunk/core").RestParameters<T2>) => void;
304
+ 'cell-dblclick': (...e: import("@vunk/core").RestParameters<T2>) => void;
305
+ 'row-click': (...e: import("@vunk/core").RestParameters<T2>) => void;
306
+ 'row-contextmenu': (...e: import("@vunk/core").RestParameters<T2>) => void;
307
+ 'row-dblclick': (...e: import("@vunk/core").RestParameters<T2>) => void;
308
+ 'header-click': (...e: import("@vunk/core").RestParameters<T2>) => void;
309
+ 'header-contextmenu': (...e: import("@vunk/core").RestParameters<T2>) => void;
310
+ 'sort-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
311
+ 'filter-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
312
+ 'current-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
313
+ 'header-dragend': (...e: import("@vunk/core").RestParameters<T2>) => void;
314
+ 'expand-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
315
+ scroll: (...e: import("@vunk/core").RestParameters<T2>) => void;
316
+ 'update:current-page': (...e: import("@vunk/core").RestParameters<T2>) => void;
317
+ 'update:page-size': (...e: import("@vunk/core").RestParameters<T2>) => void;
318
+ 'size-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
319
+ change: (...e: import("@vunk/core").RestParameters<T2>) => void;
320
+ 'prev-click': (...e: import("@vunk/core").RestParameters<T2>) => void;
321
+ 'next-click': (...e: import("@vunk/core").RestParameters<T2>) => void;
322
+ }[P]; };
@@ -24,6 +24,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
24
24
  type: import("vue").PropType<"check" | "rowClick">;
25
25
  default: string;
26
26
  };
27
+ paginationDisabled: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ readonly: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
27
35
  border: {
28
36
  type: BooleanConstructor;
29
37
  default: boolean;
@@ -233,7 +241,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
233
241
  size: import("element-plus").ButtonType<StringConstructor, "" | "small" | "default" | "large", never>;
234
242
  index: number | ((index: number) => number);
235
243
  popperClass: string;
236
- disabled: boolean;
237
244
  teleported: import("element-plus").ButtonType<BooleanConstructor, unknown, unknown>;
238
245
  renderHeader: (data: {
239
246
  column: import("element-plus").TableColumnCtx<any>;
@@ -417,6 +424,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
417
424
  type: import("vue").PropType<"check" | "rowClick">;
418
425
  default: string;
419
426
  };
427
+ paginationDisabled: {
428
+ type: BooleanConstructor;
429
+ default: boolean;
430
+ };
431
+ readonly: {
432
+ type: BooleanConstructor;
433
+ default: boolean;
434
+ };
420
435
  border: {
421
436
  type: BooleanConstructor;
422
437
  default: boolean;
@@ -699,6 +714,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
699
714
  multiple: boolean;
700
715
  selectionHidden: boolean;
701
716
  checkTrigger: "check" | "rowClick";
717
+ paginationDisabled: boolean;
718
+ readonly: boolean;
702
719
  }, {}, {
703
720
  VkCheckRecordLogicProvider: import("vue").DefineComponent<{
704
721
  modelValue: {
@@ -0,0 +1,18 @@
1
+ export declare const useElBreakpoints: () => {
2
+ breakpoints: Record<"sm" | "md" | "lg" | "xl", import("vue").Ref<boolean, boolean>> & {
3
+ greaterOrEqual: (k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">) => import("vue").Ref<boolean, boolean>;
4
+ smallerOrEqual: (k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">) => import("vue").Ref<boolean, boolean>;
5
+ greater(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): import("vue").Ref<boolean, boolean>;
6
+ smaller(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): import("vue").Ref<boolean, boolean>;
7
+ between(a: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">, b: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): import("vue").Ref<boolean, boolean>;
8
+ isGreater(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
9
+ isGreaterOrEqual(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
10
+ isSmaller(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
11
+ isSmallerOrEqual(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
12
+ isInBetween(a: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">, b: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
13
+ current: () => import("vue").ComputedRef<string[]>;
14
+ active(): import("vue").ComputedRef<string>;
15
+ };
16
+ isMobile: import("vue").Ref<boolean, boolean>;
17
+ isDesktop: import("vue").Ref<boolean, boolean>;
18
+ };
@@ -0,0 +1,19 @@
1
+ import { useBreakpoints } from '@vueuse/core';
2
+
3
+ const useElBreakpoints = () => {
4
+ const breakpoints = useBreakpoints({
5
+ sm: 768,
6
+ md: 992,
7
+ lg: 1200,
8
+ xl: 1920
9
+ });
10
+ const isMobile = breakpoints.smaller("lg");
11
+ const isDesktop = breakpoints.greaterOrEqual("lg");
12
+ return {
13
+ breakpoints,
14
+ isMobile,
15
+ isDesktop
16
+ };
17
+ };
18
+
19
+ export { useElBreakpoints };
@@ -1,18 +0,0 @@
1
- export declare const useElBreakpoints: () => {
2
- breakpoints: Record<"sm" | "md" | "lg" | "xl", import("vue").Ref<boolean, boolean>> & {
3
- greaterOrEqual: (k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">) => import("vue").Ref<boolean, boolean>;
4
- smallerOrEqual: (k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">) => import("vue").Ref<boolean, boolean>;
5
- greater(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): import("vue").Ref<boolean, boolean>;
6
- smaller(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): import("vue").Ref<boolean, boolean>;
7
- between(a: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">, b: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): import("vue").Ref<boolean, boolean>;
8
- isGreater(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
9
- isGreaterOrEqual(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
10
- isSmaller(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
11
- isSmallerOrEqual(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
12
- isInBetween(a: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">, b: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
13
- current: () => import("vue").ComputedRef<string[]>;
14
- active(): import("vue").ComputedRef<string>;
15
- };
16
- isMobile: import("vue").Ref<boolean, boolean>;
17
- isDesktop: import("vue").Ref<boolean, boolean>;
18
- };
@@ -1,19 +1 @@
1
- import { useBreakpoints } from '@vueuse/core';
2
1
 
3
- const useElBreakpoints = () => {
4
- const breakpoints = useBreakpoints({
5
- sm: 768,
6
- md: 992,
7
- lg: 1200,
8
- xl: 1920
9
- });
10
- const isMobile = breakpoints.smaller("lg");
11
- const isDesktop = breakpoints.greaterOrEqual("lg");
12
- return {
13
- breakpoints,
14
- isMobile,
15
- isDesktop
16
- };
17
- };
18
-
19
- export { useElBreakpoints };
package/index.css CHANGED
@@ -16,6 +16,15 @@
16
16
  justify-content: center;
17
17
  }
18
18
 
19
+ .vk-tables-v1-checkbox.is-readonly .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{
20
+ background-color: var(--el-color-primary);
21
+
22
+ --el-checkbox-disabled-checked-icon-color: var(--el-color-white);
23
+ }
24
+ .vk-tables-v1-checkbox.is-readonly .n-radio.n-radio--disabled .n-radio__dot--checked::before{
25
+ background-color: var(--el-color-primary);
26
+ }
27
+
19
28
  .vk-typing-markdown.is-typing .is-last::after{
20
29
  animation: blink 0.7s infinite;
21
30
  content: '|';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/plus",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -31,6 +31,10 @@
31
31
  "import": "./composables/index.mjs",
32
32
  "types": "./composables/index.d.ts"
33
33
  },
34
+ "./composables/el-breakpoints": {
35
+ "import": "./composables/el-breakpoints/index.mjs",
36
+ "types": "./composables/el-breakpoints/index.d.ts"
37
+ },
34
38
  "./components/vditor": {
35
39
  "import": "./components/vditor/index.mjs",
36
40
  "types": "./components/vditor/index.d.ts"
@@ -76,6 +80,9 @@
76
80
  "./components/typing-markdown/index.css": {
77
81
  "import": "./components/typing-markdown/index.css"
78
82
  },
83
+ "./components/tables-v1-checkbox/index.css": {
84
+ "import": "./components/tables-v1-checkbox/index.css"
85
+ },
79
86
  "./components/tables-v1/index.css": {
80
87
  "import": "./components/tables-v1/index.css"
81
88
  },