ninemoon-ui 0.0.27 → 0.1.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.
Files changed (135) hide show
  1. package/dist/assets/dialog-a1b585e9.css +9 -0
  2. package/dist/assets/index-6d2c28a9.css +1210 -0
  3. package/dist/{tabs.css → assets/tabs-d2c8965f.css} +3 -3
  4. package/dist/components/alert/alert.d.ts +3 -11
  5. package/dist/components/alert/alertcomponent.vue.d.ts +22 -11
  6. package/dist/components/badge/badge.vue.d.ts +2 -0
  7. package/dist/components/carousel/carousel.vue.d.ts +29 -3
  8. package/dist/components/{tree/tree.vue.d.ts → carousel/clickbutton.vue.d.ts} +6 -19
  9. package/dist/components/check/checkbox.vue.d.ts +24 -16
  10. package/dist/components/check/checkgroup.vue.d.ts +15 -3
  11. package/dist/components/date/datepicker.vue.d.ts +28 -6
  12. package/dist/components/date/datepickerRange.vue.d.ts +15 -4
  13. package/dist/components/form/form.vue.d.ts +7 -20
  14. package/dist/components/form/formlabel.vue.d.ts +3 -3
  15. package/dist/components/form/type.d.ts +11 -0
  16. package/dist/components/icon/add.vue.d.ts +2 -0
  17. package/dist/components/icon/alertTip.vue.d.ts +2 -0
  18. package/dist/components/icon/arrow.vue.d.ts +2 -0
  19. package/dist/components/icon/calendar.vue.d.ts +2 -0
  20. package/dist/components/icon/close.vue.d.ts +2 -0
  21. package/dist/components/icon/dateArrow.vue.d.ts +2 -0
  22. package/dist/components/icon/dateArrowplus.vue.d.ts +2 -0
  23. package/dist/components/icon/delete.vue.d.ts +2 -0
  24. package/dist/components/icon/ellipsis.vue.d.ts +2 -0
  25. package/dist/components/icon/errTip.vue.d.ts +2 -0
  26. package/dist/components/icon/eye.vue.d.ts +2 -0
  27. package/dist/components/icon/infoTip.vue.d.ts +2 -0
  28. package/dist/components/icon/minus.vue.d.ts +2 -0
  29. package/dist/components/icon/successTip.vue.d.ts +2 -0
  30. package/dist/components/icon/turnleft.vue.d.ts +2 -0
  31. package/dist/components/icon/turnright.vue.d.ts +2 -0
  32. package/dist/components/icon/warnTip.vue.d.ts +2 -0
  33. package/dist/components/input/input.vue.d.ts +13 -8
  34. package/dist/components/loadding/loadcomponent.vue.d.ts +24 -4
  35. package/dist/components/loadding/loadding.d.ts +12 -19
  36. package/dist/components/menu/menu.vue.d.ts +13 -3
  37. package/dist/components/message/message.d.ts +68 -14
  38. package/dist/components/message/messagecomponent.vue.d.ts +5 -13
  39. package/dist/components/numberInput/numberinput.vue.d.ts +3 -3
  40. package/dist/components/pagination/pagination.vue.d.ts +24 -0
  41. package/dist/components/popover/poparrow.d.ts +55 -0
  42. package/dist/components/popover/popover.vue.d.ts +10 -4
  43. package/dist/components/radio/radiobox.vue.d.ts +24 -16
  44. package/dist/components/radio/radiogroup.vue.d.ts +15 -3
  45. package/dist/components/scrollBar/movebar.vue.d.ts +2 -2
  46. package/dist/components/scrollBar/scrollBar.vue.d.ts +12 -16
  47. package/dist/components/scrollloading/scrolllead.d.ts +18 -11
  48. package/dist/components/select/select.vue.d.ts +15 -1
  49. package/dist/components/select/selectoption.vue.d.ts +18 -6
  50. package/dist/components/switch/switch.vue.d.ts +14 -14
  51. package/dist/components/table/table.vue.d.ts +20 -9
  52. package/dist/components/table/tableItem.vue.d.ts +10 -4
  53. package/dist/components/tabs/tabs.vue.d.ts +14 -1
  54. package/dist/directives/arrowKeys.d.ts +10 -0
  55. package/dist/directives/drag.d.ts +20 -0
  56. package/dist/directives/escape.d.ts +7 -0
  57. package/dist/directives/outsideclick.d.ts +14 -0
  58. package/dist/directives/watchwindow.d.ts +13 -0
  59. package/dist/directives/wheel.d.ts +12 -0
  60. package/dist/directives/whitespaceclick.d.ts +12 -0
  61. package/dist/index.d.ts +831 -401
  62. package/dist/js/arrow-ebe47bd0.js +17 -0
  63. package/dist/js/{badge/badge.js → badge-496028b6.js} +9 -16
  64. package/dist/js/calendar-5c242731.js +87 -0
  65. package/dist/js/carousel-10621aeb.js +155 -0
  66. package/dist/js/{carousel/carouselitem.js → carouselitem-89116745.js} +1 -7
  67. package/dist/js/checkbox-530025c4.js +50 -0
  68. package/dist/js/checkgroup-e4e6adbc.js +58 -0
  69. package/dist/js/dateArrowplus-8181993f.js +25 -0
  70. package/dist/js/datepicker-ef8b7019.js +362 -0
  71. package/dist/js/datepickerRange-4c400f88.js +500 -0
  72. package/dist/js/delete-e898f83c.js +19 -0
  73. package/dist/js/dialog-0127ca01.js +122 -0
  74. package/dist/js/form-6ae96387.js +79 -0
  75. package/dist/js/formlabel-9339bd1c.js +136 -0
  76. package/dist/js/image-76711716.js +300 -0
  77. package/dist/js/index-283810a0.js +6261 -0
  78. package/dist/js/index-b4e420ce.js +958 -0
  79. package/dist/js/index-e12c8d65.js +36 -0
  80. package/dist/js/input-11fe67a5.js +107 -0
  81. package/dist/js/menu-fb9b4a4f.js +86 -0
  82. package/dist/js/numberinput-00fa4429.js +119 -0
  83. package/dist/js/pagination-3bcaa109.js +203 -0
  84. package/dist/js/popover-45f75f86.js +345 -0
  85. package/dist/js/radiobox-8f11e726.js +49 -0
  86. package/dist/js/radiogroup-727923c7.js +33 -0
  87. package/dist/js/scrollBar-07906042.js +252 -0
  88. package/dist/js/select-b5bbb138.js +203 -0
  89. package/dist/js/selectoption-00c8f06d.js +57 -0
  90. package/dist/js/shapeFlag-8cf4bcf1.js +17 -0
  91. package/dist/js/switch-06ae74cc.js +50 -0
  92. package/dist/js/table-9bb52630.js +270 -0
  93. package/dist/js/{table/tableItem.js → tableItem-7d8bf2db.js} +1 -1
  94. package/dist/js/{tabs/tabs.js → tabs-9d7be734.js} +57 -59
  95. package/dist/js/{upload/upload.js → upload-16dbef22.js} +8 -23
  96. package/dist/types/shapeFlag.d.ts +13 -0
  97. package/dist/{components/utils → utils}/tool.d.ts +11 -4
  98. package/package.json +1 -1
  99. package/dist/badge.css +0 -27
  100. package/dist/carousel.css +0 -13
  101. package/dist/checkgroup.css +0 -41
  102. package/dist/datepickerRange.css +0 -79
  103. package/dist/image.css +0 -8
  104. package/dist/index.css +0 -897
  105. package/dist/index.es.js +0 -37
  106. package/dist/index.umd.js +0 -6006
  107. package/dist/js/carousel/carousel.js +0 -171
  108. package/dist/js/check/checkbox.js +0 -16
  109. package/dist/js/check/checkgroup.js +0 -69
  110. package/dist/js/date/datepicker.js +0 -366
  111. package/dist/js/date/datepickerRange.js +0 -589
  112. package/dist/js/dialog/dialog.js +0 -138
  113. package/dist/js/form/form.js +0 -87
  114. package/dist/js/form/formlabel.js +0 -167
  115. package/dist/js/getcalendar/getcalendar.js +0 -48
  116. package/dist/js/image/image.js +0 -250
  117. package/dist/js/index/index.js +0 -860
  118. package/dist/js/input/input.js +0 -90
  119. package/dist/js/menu/menu.js +0 -59
  120. package/dist/js/numberInput/numberinput.js +0 -127
  121. package/dist/js/pagination/pagination.js +0 -234
  122. package/dist/js/popover/popover.js +0 -241
  123. package/dist/js/radio/radiobox.js +0 -16
  124. package/dist/js/radio/radiogroup.js +0 -69
  125. package/dist/js/scrollBar/scrollBar.js +0 -208
  126. package/dist/js/select/select.js +0 -118
  127. package/dist/js/select/selectoption.js +0 -16
  128. package/dist/js/switch/switch.js +0 -50
  129. package/dist/js/table/table.js +0 -216
  130. package/dist/js/tree/tree.js +0 -72
  131. package/dist/js/tree/treeleaf.js +0 -116
  132. package/dist/radiogroup.css +0 -44
  133. package/dist/scrollBar.css +0 -37
  134. package/dist/select.css +0 -20
  135. /package/dist/js/{tabs/tabsPane.js → tabsPane-f024a6bf.js} +0 -0
@@ -1,50 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, normalizeClass, toDisplayString } from "vue";
2
- const _hoisted_1 = { class: "tdd-inline-block tdd-cursor-pointer tdd-select-none tdd-text-xs" };
3
- const _hoisted_2 = {
4
- key: 0,
5
- class: "tdd-z-10 tdd-absolute tdd-top-0 tdd-font-semibold tdd-text-white tdd-left-1 tdd-leading-5 tdd-rounded-tr-sm tdd-rounded-br-sm"
6
- };
7
- const _hoisted_3 = {
8
- key: 1,
9
- class: "tdd-z-10 tdd-absolute tdd-top-0 tdd-font-semibold tdd-text-white tdd-right-1 tdd-leading-5 tdd-rounded-tl-sm tdd-rounded-bl-sm"
10
- };
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- __name: "switch",
13
- props: {
14
- labelChecked: {},
15
- labelUnchecked: {},
16
- colorChecked: { default: "#25b9e9" },
17
- colorUnchecked: { default: "#666666" },
18
- modelValue: { type: Boolean, default: false }
19
- },
20
- emits: ["update:modelValue", "switchChange"],
21
- setup(__props, { emit: __emit }) {
22
- const props = __props;
23
- const emit = __emit;
24
- const togglehandle = () => {
25
- emit("update:modelValue", !props.modelValue);
26
- emit("switchChange", !props.modelValue);
27
- };
28
- return (_ctx, _cache) => {
29
- return openBlock(), createElementBlock("label", _hoisted_1, [
30
- createElementVNode("input", {
31
- type: "checkbox",
32
- class: "tdd-hidden",
33
- onChange: togglehandle
34
- }, null, 32),
35
- createElementVNode("div", {
36
- class: "tdd-relative tdd-m-0 tdd-box-border tdd-block tdd-h-5 tdd-w-10 tdd-transform tdd-select-none tdd-overflow-hidden tdd-rounded-xl tdd-outline-0 tdd-ring-2 tdd-ring-gray-300 tdd-transition",
37
- style: normalizeStyle({ backgroundColor: _ctx.modelValue ? _ctx.colorChecked : _ctx.colorUnchecked })
38
- }, [
39
- createElementVNode("div", {
40
- class: normalizeClass(["tdd-absolute tdd-top-0 tdd-left-0 tdd-z-10 tdd-block tdd-h-full tdd-w-1/2 tdd-translate-x-0 tdd-transform tdd-rounded-full tdd-bg-slate-50 tdd-transition", { "tdd-translate-x-full ": _ctx.modelValue }])
41
- }, null, 2)
42
- ], 4),
43
- _ctx.modelValue ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.labelChecked), 1)) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.labelUnchecked), 1))
44
- ]);
45
- };
46
- }
47
- });
48
- export {
49
- _sfc_main as default
50
- };
@@ -1,216 +0,0 @@
1
- import { defineComponent, computed, useSlots, ref, watch, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, createVNode, withDirectives, vShow, h, vModelCheckbox, withModifiers } from "vue";
2
- const _hoisted_1 = { class: "tdd-text-center tdd-text-word6 tdd-text-base" };
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "table",
5
- props: {
6
- data: {},
7
- whiteword: { default: "" },
8
- showHead: { type: Boolean, default: true },
9
- headclass: {},
10
- cellclass: {},
11
- tableclass: {}
12
- },
13
- emits: ["rowClick", "selectionChange"],
14
- setup(__props, { expose: __expose, emit: __emit }) {
15
- const props = __props;
16
- const hasData = computed(() => {
17
- return props.data.length > 0;
18
- });
19
- const emit = __emit;
20
- const slots = useSlots();
21
- const renderColGroup = () => {
22
- return h(
23
- "colgroup",
24
- null,
25
- slots.default().map((it, _index) => {
26
- if (typeof it.children == "string")
27
- return null;
28
- if (Array.isArray(it.children)) {
29
- return it.children.map((itt, _i) => colitemHandle(itt));
30
- } else {
31
- return colitemHandle(it);
32
- }
33
- })
34
- );
35
- };
36
- const colitemHandle = (it) => {
37
- var _a;
38
- return h("col", {
39
- width: ((_a = it.props) == null ? void 0 : _a.width) || null
40
- });
41
- };
42
- const renderHead = () => {
43
- return h(
44
- "thead",
45
- {
46
- class: normalizeClass(["tdd-text-word6", [props.headclass]])
47
- },
48
- slots.default().map((it) => {
49
- if (typeof it.children == "string")
50
- return null;
51
- if (Array.isArray(it.children)) {
52
- return it.children.map((itt) => {
53
- return headitemHandle(itt);
54
- });
55
- } else {
56
- return headitemHandle(it);
57
- }
58
- })
59
- );
60
- };
61
- const headitemHandle = (it) => {
62
- var _a;
63
- return h(
64
- "th",
65
- {
66
- class: "tdd-font-normal tdd-h-10 tdd-border-b "
67
- },
68
- it.children && it.children.head ? it.children.head() : ((_a = it.props) == null ? void 0 : _a.type) && it.props.type === "selection" ? h(
69
- "label",
70
- {
71
- class: "tdd-px-1 tdd-flex"
72
- },
73
- withDirectives(
74
- h("input", {
75
- type: "checkbox",
76
- "onUpdate:modelValue": (value) => allSelect.value = value,
77
- class: "tdd-appearance-none form-tick tdd-h-4 tdd-w-4 tdd-border tdd-border-gray-300 tdd-rounded checked:tdd-border-transparent checked:tdd-bg-red-600 tdd-text-red-600 focus:tdd-outline-none"
78
- }),
79
- [[vModelCheckbox, allSelect.value]]
80
- )
81
- ) : it.props.label
82
- );
83
- };
84
- const allSelect = computed({
85
- set(flag) {
86
- if (flag) {
87
- choosed.value = props.data.map((_i, d) => d);
88
- } else {
89
- choosed.value = [];
90
- }
91
- },
92
- get() {
93
- return hasData.value && choosed.value.length == props.data.length;
94
- }
95
- });
96
- const choosed = ref([]);
97
- const clearSelection = () => {
98
- choosed.value = [];
99
- };
100
- const allSelection = () => {
101
- let temp = [];
102
- for (let i = 0; i < props.data.length; i++) {
103
- temp.push(i);
104
- }
105
- choosed.value = temp;
106
- };
107
- watch(
108
- choosed,
109
- (newd) => {
110
- const res = props.data.filter((_i, d) => newd.includes(d));
111
- emit("selectionChange", res);
112
- },
113
- {
114
- deep: true
115
- }
116
- );
117
- const toggleAllSelection = () => {
118
- let temp = [];
119
- for (let i = 0; i < props.data.length; i++) {
120
- temp.push(i);
121
- }
122
- choosed.value = temp.filter((i) => !choosed.value.includes(i));
123
- };
124
- const toggleSelection = (arr) => {
125
- choosed.value = arr;
126
- };
127
- const renderBody = () => {
128
- return h(
129
- "tbody",
130
- {},
131
- props.data.map((row, i) => {
132
- return h(
133
- "tr",
134
- {
135
- class: "tdd-border-b hover:tdd-bg-gray-100",
136
- key: i,
137
- onClick: withModifiers(() => {
138
- emit("rowClick", { row, i });
139
- }, ["stop"])
140
- },
141
- slots.default().map((it, _j) => {
142
- if (typeof it.children == "string")
143
- return null;
144
- if (Array.isArray(it.children)) {
145
- return it.children.map((itt) => {
146
- return bodyHandle(row, itt, i);
147
- });
148
- } else {
149
- return bodyHandle(row, it, i);
150
- }
151
- })
152
- );
153
- })
154
- );
155
- };
156
- const bodyHandle = (row, it, i) => {
157
- var _a;
158
- return h(
159
- "td",
160
- {
161
- class: normalizeClass(["tdd-text-center tdd-py-2", [props.cellclass]])
162
- },
163
- ((_a = it.props) == null ? void 0 : _a.type) && it.props.type === "selection" ? h(
164
- "label",
165
- {
166
- class: "tdd-px-1 tdd-flex",
167
- for: "checkbox"
168
- },
169
- withDirectives(
170
- h("input", {
171
- type: "checkbox",
172
- value: i,
173
- "onUpdate:modelValue": (value) => {
174
- choosed.value = value;
175
- },
176
- class: "tdd-appearance-none form-tick tdd-h-4 tdd-w-4 tdd-border tdd-border-gray-300 tdd-rounded checked:tdd-border-transparent checked:tdd-bg-red-600 tdd-text-red-600 focus:tdd-outline-none "
177
- }),
178
- [[vModelCheckbox, choosed.value]]
179
- )
180
- ) : h(
181
- "div",
182
- null,
183
- it.children && it.children.default ? it.children.default({
184
- row,
185
- index: i
186
- }) : row[it.props.prop] != null ? row[it.props.prop] : props.whiteword
187
- )
188
- );
189
- };
190
- __expose({
191
- clearSelection,
192
- allSelection,
193
- toggleAllSelection,
194
- toggleSelection
195
- });
196
- return (_ctx, _cache) => {
197
- return openBlock(), createElementBlock(Fragment, null, [
198
- createElementVNode("table", {
199
- class: normalizeClass(["tdd-w-full tdd-text-sm", _ctx.tableclass])
200
- }, [
201
- createVNode(renderColGroup),
202
- withDirectives(createVNode(renderHead, null, null, 512), [
203
- [vShow, _ctx.showHead]
204
- ]),
205
- createVNode(renderBody)
206
- ], 2),
207
- withDirectives(createElementVNode("div", _hoisted_1, "暂无数据", 512), [
208
- [vShow, !hasData.value]
209
- ])
210
- ], 64);
211
- };
212
- }
213
- });
214
- export {
215
- _sfc_main as default
216
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent, defineAsyncComponent, provide, computed, watch, openBlock, createElementBlock, Fragment, renderList, createBlock, unref } from "vue";
2
- const _sfc_main = /* @__PURE__ */ defineComponent({
3
- __name: "tree",
4
- props: {
5
- data: {},
6
- defaultExpandAll: { type: Boolean, default: false },
7
- lazy: { type: Boolean, default: false },
8
- defaultCheckedKeys: {},
9
- nodeKey: {}
10
- },
11
- setup(__props, { expose: __expose }) {
12
- const Leaf = defineAsyncComponent(() => import("./treeleaf.js"));
13
- const props = __props;
14
- provide("parentlazy", props.lazy);
15
- const flattenArr = computed(() => {
16
- let data = flatten(props.data);
17
- return data;
18
- });
19
- const flatten = (list, pid) => {
20
- let result = [];
21
- for (let i = 0; i < list.length; i++) {
22
- let temp = list[i];
23
- temp.pid = pid;
24
- temp.checked = false;
25
- temp.somechecked = false;
26
- result.push(temp);
27
- if (Array.isArray(temp.children)) {
28
- result = result.concat(flatten(temp.children, temp[props.nodeKey]));
29
- }
30
- }
31
- return result;
32
- };
33
- watch(() => props.defaultCheckedKeys, (newd) => {
34
- if (newd && newd.length > 0) {
35
- flattenArr.value.map((i) => {
36
- if (newd == null ? void 0 : newd.includes(i[props.nodeKey])) {
37
- i.checked = true;
38
- } else {
39
- i.checked = false;
40
- }
41
- });
42
- } else {
43
- flattenArr.value.map((i) => {
44
- i.checked = false;
45
- });
46
- }
47
- }, { deep: true });
48
- const getCheckedKeys = (leafOnly = false) => {
49
- if (leafOnly) {
50
- return flattenArr.value.filter((i) => i.somechecked === false || i.checked === true).map((i) => i[props.nodeKey]);
51
- } else {
52
- return flattenArr.value.filter((i) => i.checked === true).map((i) => i[props.nodeKey]);
53
- }
54
- };
55
- __expose({
56
- getCheckedKeys
57
- });
58
- return (_ctx, _cache) => {
59
- return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (i) => {
60
- return openBlock(), createBlock(unref(Leaf), {
61
- item: i,
62
- deepnum: 1,
63
- key: i[_ctx.nodeKey],
64
- nodeKey: _ctx.nodeKey
65
- }, null, 8, ["item", "nodeKey"]);
66
- }), 128);
67
- };
68
- }
69
- });
70
- export {
71
- _sfc_main as default
72
- };
@@ -1,116 +0,0 @@
1
- import { defineComponent, computed, ref, inject, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, normalizeClass, withDirectives, vModelCheckbox, toDisplayString, Fragment, renderList, createBlock, vShow } from "vue";
2
- const _hoisted_1 = { class: "tdd-flow-root" };
3
- const _hoisted_2 = { class: "tdd-flex tdd-items-center" };
4
- const __default__ = {
5
- name: "Leaf"
6
- };
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- ...__default__,
9
- props: {
10
- item: {},
11
- deepnum: {},
12
- nodeKey: {}
13
- },
14
- setup(__props) {
15
- const props = __props;
16
- const marginLeft = computed(() => {
17
- return `${(props.deepnum - 1) * 16}px`;
18
- });
19
- const noshow = ref(inject("parentlazy", false));
20
- const childList = computed(() => {
21
- return props.item.children || [];
22
- });
23
- const checkedchildLen = computed(() => childList.value.filter((i) => i.checked === true).length);
24
- const somecheckchildLen = computed(() => childList.value.filter((i) => i.somechecked === true).length);
25
- const childlenChange = computed(() => childList.value.length);
26
- watch([checkedchildLen, somecheckchildLen], ([checklen, somechecklen]) => {
27
- if (checklen > 0) {
28
- if (checklen === childList.value.length) {
29
- props.item.checked = true;
30
- props.item.somechecked = false;
31
- } else {
32
- props.item.checked = false;
33
- props.item.somechecked = true;
34
- }
35
- } else if (somechecklen > 0) {
36
- props.item.checked = false;
37
- props.item.somechecked = true;
38
- } else {
39
- props.item.somechecked = false;
40
- props.item.checked = false;
41
- }
42
- });
43
- const ableExpend = computed(() => {
44
- return childList.value.length > 0 || noshow.value === true;
45
- });
46
- const expendflag = ref(false);
47
- const expendHandle = () => {
48
- noshow.value = false;
49
- if (ableExpend.value === false)
50
- return;
51
- expendflag.value = !expendflag.value;
52
- };
53
- watch(() => [props.item.checked, props.item.somechecked, childlenChange], ([checkflag, somecheckflag]) => {
54
- if (checkflag === false && somecheckflag === false || checkflag === true) {
55
- childList.value.map((i) => {
56
- i.checked = checkflag;
57
- });
58
- }
59
- }, {
60
- // immediate: true,
61
- deep: true
62
- });
63
- return (_ctx, _cache) => {
64
- const _component_Leaf = resolveComponent("Leaf");
65
- return openBlock(), createElementBlock("div", _hoisted_1, [
66
- createElementVNode("div", {
67
- class: "tdd-flex tdd-items-center",
68
- style: normalizeStyle({ marginLeft: marginLeft.value })
69
- }, [
70
- createElementVNode("div", {
71
- class: "tdd-ml-1 tdd-flex",
72
- onClick: expendHandle
73
- }, [
74
- (openBlock(), createElementBlock("svg", {
75
- class: normalizeClass([[expendflag.value ? "tdd-rotate-0" : "-tdd-rotate-90", ableExpend.value ? "tdd-visible" : " tdd-invisible"], "tdd-fill-gray-400 tdd-w-3 tdd-h-3 tdd-transition tdd-inline-block"]),
76
- xmlns: "http://www.w3.org/2000/svg",
77
- viewBox: "0 0 10 10"
78
- }, _cache[1] || (_cache[1] = [
79
- createElementVNode("polygon", { points: "1,2.5 5,7.5 9,2.5" }, null, -1)
80
- ]), 2))
81
- ]),
82
- createElementVNode("label", _hoisted_2, [
83
- withDirectives(createElementVNode("input", {
84
- type: "checkbox",
85
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.item.checked = $event),
86
- class: "tdd-appearance-none"
87
- }, null, 512), [
88
- [vModelCheckbox, _ctx.item.checked]
89
- ]),
90
- createElementVNode("div", {
91
- class: normalizeClass(["tdd-w-3 tdd-h-3 tdd-rounded-sm tdd-border tdd-border-solid tdd-mr-1", {
92
- "tdd-bg-blue-500 tdd-border-blue-600": _ctx.item.checked == true,
93
- "tdd-bg-blue-300 tdd-border-blue-400": _ctx.item.somechecked == true,
94
- "tdd-bg-white": _ctx.item.checked == false && _ctx.item.somechecked == false
95
- }])
96
- }, null, 2),
97
- createElementVNode("div", null, toDisplayString(_ctx.item.label), 1)
98
- ])
99
- ], 4),
100
- (openBlock(true), createElementBlock(Fragment, null, renderList(childList.value, (i) => {
101
- return withDirectives((openBlock(), createBlock(_component_Leaf, {
102
- item: i,
103
- deepnum: _ctx.deepnum + 1,
104
- nodeKey: _ctx.nodeKey,
105
- key: i[props.nodeKey]
106
- }, null, 8, ["item", "deepnum", "nodeKey"])), [
107
- [vShow, expendflag.value]
108
- ]);
109
- }), 128))
110
- ]);
111
- };
112
- }
113
- });
114
- export {
115
- _sfc_main as default
116
- };
@@ -1,44 +0,0 @@
1
-
2
- .radioGroup {
3
- display: inline-flex;
4
- cursor: pointer;
5
- align-items: center;
6
- border-top-width: 1px;
7
- border-bottom-width: 1px;
8
- border-right-width: 1px;
9
- padding-left: 0.5rem;
10
- padding-right: 0.5rem;
11
- padding-top: 0.25rem;
12
- padding-bottom: 0.25rem
13
- }
14
- .radioGroup:first-child {
15
- border-top-left-radius: 0.25rem;
16
- border-bottom-left-radius: 0.25rem;
17
- border-left-width: 1px
18
- }
19
- .radioGroup:last-child {
20
- border-top-right-radius: 0.25rem;
21
- border-bottom-right-radius: 0.25rem
22
- }
23
- .radioGroup .hiddeninput {
24
- height: 1rem;
25
- width: 1rem;
26
- -webkit-appearance: none;
27
- -moz-appearance: none;
28
- appearance: none;
29
- border-radius: 9999px;
30
- border-width: 1px;
31
- --tw-border-opacity: 1;
32
- border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
33
- --tw-text-opacity: 1;
34
- color: rgb(220 38 38 / var(--tw-text-opacity, 1))
35
- }
36
- .radioGroup .hiddeninput:checked {
37
- border-color: transparent;
38
- --tw-bg-opacity: 1;
39
- background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1))
40
- }
41
- .radioGroup .hiddeninput:focus {
42
- outline: 2px solid transparent;
43
- outline-offset: 2px
44
- }
@@ -1,37 +0,0 @@
1
-
2
- .pageScroll .tddScroll {
3
- height: calc(100% + 15px);
4
- }
5
- .pageScroll .thumb {
6
- height: 0;
7
- width: 0;
8
- }
9
- .pageScroll .ishor {
10
- height: 6px;
11
- left: 2px;
12
- }
13
- .pageScroll .ishor .thumb {
14
- border-radius: inherit;
15
- height: 100%;
16
- background-color: rgba(144, 146, 152, 0.3);
17
- cursor: pointer;
18
- }
19
- .pageScroll .isver {
20
- width: 6px;
21
- top: 2px;
22
- }
23
- .pageScroll .isver .thumb {
24
- border-radius: inherit;
25
- width: 100%;
26
- background-color: rgba(144, 146, 152, 0.3);
27
- cursor: pointer;
28
- }
29
- @media screen and (max-width: 767px) {
30
- .pageScroll .tddScroll {
31
- overflow-x: auto;
32
- }
33
- .pageScroll .thumb {
34
- height: 0;
35
- width: 0;
36
- }
37
- }
package/dist/select.css DELETED
@@ -1,20 +0,0 @@
1
-
2
- .selectOption {
3
- height: 100%;
4
- padding-top: 0.25rem;
5
- padding-bottom: 0.25rem
6
- }
7
- .selectOption .label {
8
- cursor: pointer;
9
- padding: 0.25rem
10
- }
11
- .selectOption .label:hover {
12
- --tw-bg-opacity: 1;
13
- background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1))
14
- }
15
- .selectOption .labelselect {
16
- --tw-bg-opacity: 1;
17
- background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
18
- --tw-text-opacity: 1;
19
- color: rgb(22 119 255 / var(--tw-text-opacity, 1))
20
- }