Skip to content

Commit e96813d

Browse files
committed
颜色选项补充
1 parent 41b2f82 commit e96813d

File tree

3 files changed

+53
-5
lines changed

3 files changed

+53
-5
lines changed

src/components/dataBlockInner/coordArrInputs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ onMounted(() => {
130130
border-bottom-left-radius: 5px;
131131
border-bottom-right-radius: 5px;
132132
}
133-
.sortable-chosen .coordarr-drag {
133+
.sortable-chosen > .coordarr-drag {
134134
background: var(--c-border);
135135
z-index: 999;
136136
}

src/components/dataBlockInner/optInputs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ function handleCoordInput(
4646
gap: 10px;
4747
}
4848
.input-box.opt-input span {
49-
font-size: 18px;
49+
font-size: 16px;
5050
margin: auto 5px;
5151
flex-shrink: 0;
5252
}
5353
.input-box.opt-input input {
5454
min-width: 3em;
55-
padding: 6px 0;
56-
font-size: 18px;
55+
padding: 5px 0;
56+
font-size: 17px;
5757
flex-shrink: 1;
5858
}
5959
</style>

src/consts.ts

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const fnTypeArr = [
108108
value: "color",
109109
type: "text",
110110
label: "颜色",
111-
placeholder:'RGB / HEX / name'
111+
placeholder: "RGB / HEX / name",
112112
},
113113
],
114114
},
@@ -125,6 +125,14 @@ export const fnTypeArr = [
125125
folded: true,
126126
},
127127
],
128+
optInput: [
129+
{
130+
value: "color",
131+
type: "text",
132+
label: "颜色",
133+
placeholder: "RGB / HEX / name",
134+
},
135+
],
128136
},
129137
{
130138
value: "parametric",
@@ -152,6 +160,14 @@ export const fnTypeArr = [
152160
folded: true,
153161
},
154162
],
163+
optInput: [
164+
{
165+
value: "color",
166+
type: "text",
167+
label: "颜色",
168+
placeholder: "RGB / HEX / name",
169+
},
170+
],
155171
},
156172
{
157173
value: "polar",
@@ -178,6 +194,14 @@ export const fnTypeArr = [
178194
folded: true,
179195
},
180196
],
197+
optInput: [
198+
{
199+
value: "color",
200+
type: "text",
201+
label: "颜色",
202+
placeholder: "RGB / HEX / name",
203+
},
204+
],
181205
},
182206
{
183207
value: "points",
@@ -198,6 +222,14 @@ export const fnTypeArr = [
198222
folded: true,
199223
},
200224
],
225+
optInput: [
226+
{
227+
value: "color",
228+
type: "text",
229+
label: "颜色",
230+
placeholder: "RGB / HEX / name",
231+
},
232+
],
201233
},
202234
{
203235
value: "vector",
@@ -220,6 +252,14 @@ export const fnTypeArr = [
220252
optional: true,
221253
},
222254
],
255+
optInput: [
256+
{
257+
value: "color",
258+
type: "text",
259+
label: "颜色",
260+
placeholder: "RGB / HEX / name",
261+
},
262+
],
223263
notAllowedInInterval: true,
224264
},
225265
{
@@ -243,6 +283,14 @@ export const fnTypeArr = [
243283
defaultVal: [0, 0],
244284
},
245285
],
286+
optInput: [
287+
{
288+
value: "color",
289+
type: "text",
290+
label: "颜色",
291+
placeholder: "RGB / HEX / name",
292+
},
293+
],
246294
},
247295
] as const satisfies FnType[];
248296

0 commit comments

Comments
 (0)