@solar-taro/ui-vant 3.4.3 → 3.5.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.
package/index9.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as x, mergeModels as F, ref as I, computed as f, useModel as ee, renderSlot as le, toDisplayString as te, createTextVNode as oe, Fragment as ae, openBlock as ne, createElementBlock as se, createCommentVNode as re, renderList as ie, unref as ue, withCtx as de, createBlock as pe, createElementVNode as ce, mergeProps as ve, resolveDirective as fe, withDirectives as me, normalizeClass as ye, createSlots as he, createVNode as be, normalizeStyle as ge } from "vue";
2
- import { SunTag as ke, SunLazyRender as Ve, SunVirtualScroll as $e, SunItem as P, SunEmpty as we, SunList as Se } from "@solar-taro/ui-sun";
1
+ import { defineComponent as ee, mergeModels as A, ref as U, computed as m, useModel as le, renderSlot as oe, toDisplayString as te, createTextVNode as ne, Fragment as ae, openBlock as se, createElementBlock as re, createCommentVNode as ie, renderList as ue, unref as de, withCtx as ce, createBlock as pe, createElementVNode as fe, mergeProps as ve, resolveDirective as me, withDirectives as ye, createVNode as he, normalizeClass as be, normalizeStyle as ge, createSlots as ke } from "vue";
2
+ import { SunTag as Ve, SunIcon as z, SunLazyRender as $e, SunVirtualList as we, SunItem as G, SunListPlaceholder as Se, SunList as Ke } from "@solar-taro/ui-sun";
3
3
  import { createReusableTemplate as Te } from "./index22.js";
4
- import { isNil as j } from "lodash-es";
4
+ import { isNil as H } from "lodash-es";
5
5
  import Be from "./index6.js";
6
- const u = le, K = te, D = oe, g = ae, n = ne, r = se, m = re, A = ie, p = ue, s = de, C = pe, y = ce, U = ve, Ke = fe, G = me, H = ye, W = he, h = be, q = ge, Ce = ["label", "placeholder", "required", "disabled"], ze = {
6
+ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r = ce, y = pe, L = fe, J = ve, ze = me, Q = ye, h = he, X = be, N = ge, O = ke, Ce = ["label", "placeholder", "required", "disabled"], Le = {
7
7
  key: 0,
8
8
  name: "input",
9
9
  class: "sun-selector-input"
10
- }, Ne = { name: "right-icon" }, Le = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], De = { name: "right-icon" }, We = ["value"], qe = { class: "sun-selector-option-label" }, Ie = /* @__PURE__ */ x({
10
+ }, Ne = { name: "right-icon" }, De = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], We = { name: "right-icon" }, qe = ["value"], Me = { class: "sun-selector-option-label" }, je = /* @__PURE__ */ ee({
11
11
  __name: "index",
12
- props: /* @__PURE__ */ F({
12
+ props: /* @__PURE__ */ A({
13
13
  type: { default: "field" },
14
14
  mode: { default: "single" },
15
15
  label: {},
@@ -29,281 +29,287 @@ const u = le, K = te, D = oe, g = ae, n = ne, r = se, m = re, A = ie, p = ue, s
29
29
  virtual: { type: [Boolean, Object] },
30
30
  refresher: { type: Boolean },
31
31
  refreshing: { type: Boolean },
32
- compareWith: { type: Function, default: (k, z) => k === z }
32
+ compareWith: { type: Function, default: (V, D) => V === D }
33
33
  }, {
34
34
  keyword: { default: "" },
35
35
  keywordModifiers: {}
36
36
  }),
37
- emits: /* @__PURE__ */ F(["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"], ["update:keyword"]),
38
- setup(k, { expose: z, emit: J }) {
39
- const [Q, E] = Te(), o = k, d = J, V = I(!1), b = I(!1), X = f(() => o.searcher || ((e, t) => e[o.labelKey].toLowerCase().includes(t))), $ = ee(k, "keyword"), N = f(() => o.options.filter(
40
- (e) => X.value(e, $.value.toLowerCase())
41
- )), w = f(() => {
37
+ emits: /* @__PURE__ */ A(["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"], ["update:keyword"]),
38
+ setup(V, { expose: D, emit: Y }) {
39
+ const [Z, R] = Te(), o = V, f = Y, $ = U(!1), k = U(!1), I = m(() => o.searcher || ((e, l) => e[o.labelKey].toLowerCase().includes(l))), w = le(V, "keyword"), i = m(() => o.options.filter(
40
+ (e) => I.value(e, w.value.toLowerCase())
41
+ )), S = m(() => {
42
42
  var e;
43
- if (c.value) {
44
- const t = o.options.find(
45
- (a) => o.compareWith(a[o.valueKey], o.modelValue)
43
+ if (v.value) {
44
+ const l = o.options.find(
45
+ (n) => o.compareWith(n[o.valueKey], o.modelValue)
46
46
  );
47
- return t ? [t] : [];
47
+ return l ? [l] : [];
48
48
  }
49
49
  return ((e = o.modelValue) != null ? e : []).map(
50
- (t) => o.options.find((a) => o.compareWith(a[o.valueKey], t))
50
+ (l) => o.options.find((n) => o.compareWith(n[o.valueKey], l))
51
51
  ).filter(Boolean);
52
- }), L = f(() => w.value.map((e) => e[o.labelKey]).join(o.delimiter)), S = f(() => !Z(o.modelValue) && o.clearable), c = f(() => o.mode === "single"), Y = f(() => {
53
- var a, l;
54
- let e, t = 47;
55
- return typeof o.virtual != "boolean" && (a = o.virtual) != null && a.itemSize && (t = (l = o.virtual) == null ? void 0 : l.itemSize), { id: e, itemSize: t };
52
+ }), W = m(() => S.value.map((e) => e[o.labelKey]).join(o.delimiter)), K = m(() => !_(o.modelValue) && o.clearable), v = m(() => o.mode === "single"), E = m(() => {
53
+ var l, n;
54
+ let e = 47;
55
+ return typeof o.virtual != "boolean" && (l = o.virtual) != null && l.itemSize && (e = (n = o.virtual) == null ? void 0 : n.itemSize), { itemSize: e };
56
56
  });
57
- function Z(e) {
58
- return j(e) ? !0 : c.value ? !1 : e.length < 1;
57
+ function _(e) {
58
+ return H(e) ? !0 : v.value ? !1 : e.length < 1;
59
59
  }
60
- function i(e) {
61
- var a;
62
- const t = e[o.valueKey];
63
- return c.value ? j(o.modelValue) ? !1 : o.compareWith(o.modelValue, t) : ((a = o.modelValue) == null ? void 0 : a.some((l) => o.compareWith(l, t))) || !1;
60
+ function d(e) {
61
+ var n;
62
+ const l = e[o.valueKey];
63
+ return v.value ? H(o.modelValue) ? !1 : o.compareWith(o.modelValue, l) : ((n = o.modelValue) == null ? void 0 : n.some((t) => o.compareWith(t, l))) || !1;
64
64
  }
65
65
  function T() {
66
- o.disabled || (V.value = !0, b.value || setTimeout(() => {
67
- b.value = !0;
66
+ o.disabled || ($.value = !0, k.value || setTimeout(() => {
67
+ k.value = !0;
68
68
  }, 300));
69
69
  }
70
- function M() {
71
- V.value = !1, d("close");
70
+ function P() {
71
+ $.value = !1, f("close");
72
72
  }
73
- function O() {
74
- var t;
75
- const e = ((t = o.modelValue) == null ? void 0 : t.map(
76
- (a) => o.options.find(
77
- (l) => o.compareWith(l[o.valueKey], a)
73
+ function F() {
74
+ var l;
75
+ const e = ((l = o.modelValue) == null ? void 0 : l.map(
76
+ (n) => o.options.find(
77
+ (t) => o.compareWith(t[o.valueKey], n)
78
78
  )
79
79
  )) || [];
80
- d("confirm", e), M();
80
+ f("confirm", e), P();
81
81
  }
82
- function R(e) {
83
- const t = e[o.valueKey];
84
- let a = o.modelValue;
85
- c.value ? (i(e) ? o.required || (d("unselect", e), a = null) : (d("select", e), a = t), M()) : i(e) ? (d("unselect", e), a = o.modelValue.filter(
86
- (l) => !o.compareWith(l, t)
87
- )) : (d("select", e), a = (o.modelValue || []).concat(
82
+ function j(e) {
83
+ const l = e[o.valueKey];
84
+ let n = o.modelValue;
85
+ v.value ? (d(e) ? o.required || (f("unselect", e), n = null) : (f("select", e), n = l), P()) : d(e) ? (f("unselect", e), n = o.modelValue.filter(
86
+ (t) => !o.compareWith(t, l)
87
+ )) : (f("select", e), n = (o.modelValue || []).concat(
88
88
  e[o.valueKey]
89
- )), d("update:modelValue", a);
89
+ )), f("update:modelValue", n);
90
90
  }
91
91
  function B() {
92
- d("clear", o.modelValue), d("update:modelValue", o.required && !c.value ? [] : null);
92
+ f("clear", o.modelValue), f("update:modelValue", o.required && !v.value ? [] : null);
93
93
  }
94
- return z({
94
+ return D({
95
95
  present: T,
96
96
  clear: B,
97
- keyword: $
98
- }), (e, t) => {
99
- const a = Ke("readonly");
100
- return n(), r(g, null, [
101
- u(e.$slots, "default", {
97
+ keyword: w
98
+ }), (e, l) => {
99
+ const n = ze("readonly");
100
+ return s(), p(b, null, [
101
+ c(e.$slots, "default", {
102
102
  present: T,
103
- label: L.value,
104
- selectedOptions: w.value
103
+ label: W.value,
104
+ selectedOptions: S.value
105
105
  }, () => [
106
- e.type === "field" ? G((n(), r("van-field", U({ key: 0 }, e.$attrs, {
106
+ e.type === "field" ? Q((s(), p("van-field", J({ key: 0 }, e.$attrs, {
107
107
  class: "sun-selector",
108
108
  label: e.label,
109
109
  placeholder: e.placeholder,
110
110
  required: e.required,
111
111
  disabled: e.disabled,
112
- onClickInput: t[1] || (t[1] = (l) => T())
112
+ onClickInput: l[1] || (l[1] = (t) => T())
113
113
  }), [
114
- w.value.length ? (n(), r("slot-view", ze, [
115
- c.value ? (n(), r(g, { key: 0 }, [
116
- D(K(L.value), 1)
117
- ], 64)) : (n(!0), r(g, { key: 1 }, A(w.value, (l) => (n(), C(p(ke), {
114
+ S.value.length ? (s(), p("slot-view", Le, [
115
+ v.value ? (s(), p(b, { key: 0 }, [
116
+ q(C(W.value), 1)
117
+ ], 64)) : (s(!0), p(b, { key: 1 }, M(S.value, (t) => (s(), y(u(Ve), {
118
118
  color: "medium",
119
119
  type: "translucent"
120
120
  }, {
121
- default: s(() => [
122
- D(K(l[e.labelKey]), 1)
121
+ default: r(() => [
122
+ q(C(t[e.labelKey]), 1)
123
123
  ]),
124
124
  _: 2
125
125
  }, 1024))), 256))
126
- ])) : m("", !0),
127
- y("slot-view", Ne, [
128
- S.value ? (n(), r("van-icon", {
126
+ ])) : g("", !0),
127
+ L("slot-view", Ne, [
128
+ K.value ? (s(), y(u(z), {
129
129
  key: 0,
130
130
  class: "sun-selector-clear-icon",
131
- name: "clear",
132
- onTap: t[0] || (t[0] = (l) => B())
133
- }, null, 32)) : m("", !0),
134
- u(e.$slots, "end")
131
+ name: "close-circle",
132
+ onTap: l[0] || (l[0] = (t) => B())
133
+ })) : g("", !0),
134
+ c(e.$slots, "end")
135
135
  ])
136
136
  ], 16, Ce)), [
137
- [a]
138
- ]) : e.type === "search" ? G((n(), r("van-search", U({ key: 1 }, e.$attrs, {
137
+ [n]
138
+ ]) : e.type === "search" ? Q((s(), p("van-search", J({ key: 1 }, e.$attrs, {
139
139
  class: "sun-selector",
140
140
  label: e.label,
141
- value: L.value,
141
+ value: W.value,
142
142
  placeholder: e.placeholder,
143
- "use-right-icon-slot": S.value,
143
+ "use-right-icon-slot": K.value,
144
144
  shape: "round",
145
145
  clearable: !1,
146
146
  disabled: e.disabled,
147
- onClickInput: t[3] || (t[3] = (l) => T())
147
+ onClickInput: l[3] || (l[3] = (t) => T())
148
148
  }), [
149
- y("slot-view", De, [
150
- S.value ? (n(), r("van-icon", {
149
+ L("slot-view", We, [
150
+ K.value ? (s(), y(u(z), {
151
151
  key: 0,
152
152
  class: "sun-selector-clear-icon",
153
- name: "clear",
154
- onTap: t[2] || (t[2] = (l) => B())
155
- }, null, 32)) : m("", !0),
156
- u(e.$slots, "end")
153
+ name: "close-circle",
154
+ onTap: l[2] || (l[2] = (t) => B())
155
+ })) : g("", !0),
156
+ c(e.$slots, "end")
157
157
  ])
158
- ], 16, Le)), [
159
- [a]
160
- ]) : m("", !0)
158
+ ], 16, De)), [
159
+ [n]
160
+ ]) : g("", !0)
161
161
  ]),
162
- h(p(Ve), { hook: "created" }, {
163
- default: s(() => [
164
- h(p(Be), {
165
- show: V.value,
166
- "onUpdate:show": t[9] || (t[9] = (l) => V.value = l),
162
+ h(u($e), { hook: "created" }, {
163
+ default: r(() => [
164
+ h(u(Be), {
165
+ show: $.value,
166
+ "onUpdate:show": l[9] || (l[9] = (t) => $.value = t),
167
167
  title: e.placeholder,
168
- "show-buttons": !c.value
169
- }, W({
170
- buttons: s(() => [
171
- u(e.$slots, "buttons", { confirm: O }, () => [
172
- c.value ? m("", !0) : (n(), r("van-button", {
168
+ "show-buttons": !v.value
169
+ }, O({
170
+ buttons: r(() => [
171
+ c(e.$slots, "buttons", { confirm: F }, () => [
172
+ v.value ? g("", !0) : (s(), p("van-button", {
173
173
  key: 0,
174
174
  type: "primary",
175
175
  round: "true",
176
176
  block: "true",
177
- onTap: t[8] || (t[8] = (l) => O())
177
+ onTap: l[8] || (l[8] = (t) => F())
178
178
  }, "确定", 32))
179
179
  ])
180
180
  ]),
181
- default: s(() => [
182
- u(e.$slots, "filter", { rendered: b.value }, () => [
183
- e.searchable ? (n(), r("van-search", {
181
+ default: r(() => [
182
+ c(e.$slots, "filter", { rendered: k.value }, () => [
183
+ e.searchable ? (s(), p("van-search", {
184
184
  key: 0,
185
185
  shape: "round",
186
186
  "input-align": "center",
187
- value: $.value,
187
+ value: w.value,
188
188
  placeholder: "输入关键字搜索",
189
- onChange: t[5] || (t[5] = (l) => $.value = l.detail.trim())
190
- }, null, 40, We)) : m("", !0)
189
+ onChange: l[5] || (l[5] = (t) => w.value = t.detail.trim())
190
+ }, null, 40, qe)) : g("", !0)
191
191
  ]),
192
- h(p(Q), null, {
193
- default: s(() => [
194
- e.virtual ? (n(), r(g, { key: 0 }, [
195
- b.value ? (n(), C(p($e), {
192
+ h(u(Z), null, {
193
+ default: r(() => [
194
+ e.virtual ? (s(), p(b, { key: 0 }, [
195
+ k.value ? (s(), y(u(we), {
196
196
  key: 0,
197
197
  class: "sun-selector-options",
198
+ options: {
199
+ estimateSize: () => E.value.itemSize,
200
+ overscan: 3,
201
+ count: i.value.length,
202
+ getItemKey: (t) => i.value[t][e.valueKey]
203
+ },
198
204
  refresher: e.refresher,
199
205
  refreshing: e.refreshing,
200
- items: N.value,
201
- "item-size": Y.value.itemSize,
202
- "item-key": e.valueKey,
203
- style: q({ height: e.height }),
204
- onRefresh: t[6] || (t[6] = (l) => d("refresh"))
206
+ items: i.value,
207
+ "item-size": E.value.itemSize,
208
+ style: N({ height: e.height }),
209
+ onRefresh: l[6] || (l[6] = (t) => f("refresh"))
205
210
  }, {
206
- default: s(({ item: l, index: v }) => [
207
- h(p(P), {
208
- class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
211
+ default: r(({ virtualItems: t }) => [
212
+ (s(!0), p(b, null, M(t, (a) => (s(), y(u(G), {
213
+ key: i.value[a.index][e.valueKey],
214
+ style: N(a.style),
215
+ class: X(["sun-selector-option", { "sun-selector-option-active": d(i.value[a.index]) }]),
209
216
  clickable: !0,
210
- onTap: (_) => R(l)
211
- }, W({
212
- start: s(() => [
213
- u(e.$slots, "option-start", {
214
- option: l,
215
- index: v,
216
- active: i(l)
217
+ onTap: (x) => j(i.value[a.index])
218
+ }, O({
219
+ start: r(() => [
220
+ c(e.$slots, "option-start", {
221
+ option: i.value[a.index],
222
+ index: a.index,
223
+ active: d(i.value[a.index])
217
224
  })
218
225
  ]),
219
- end: s(() => [
220
- u(e.$slots, "option-end", {
221
- option: l,
222
- index: v,
223
- active: i(l)
226
+ end: r(() => [
227
+ c(e.$slots, "option-end", {
228
+ option: i.value[a.index],
229
+ index: a.index,
230
+ active: d(i.value[a.index])
224
231
  })
225
232
  ]),
226
- default: s(() => [
227
- u(e.$slots, "option", {
228
- option: l,
229
- index: v,
230
- active: i(l)
233
+ default: r(() => [
234
+ c(e.$slots, "option", {
235
+ option: i.value[a.index],
236
+ index: a.index,
237
+ active: d(i.value[a.index])
231
238
  }, () => [
232
- D(K(l[e.labelKey]), 1)
239
+ q(C(i.value[a.index][e.labelKey]), 1)
233
240
  ])
234
241
  ]),
235
242
  _: 2
236
243
  }, [
237
- i(l) ? {
244
+ d(i.value[a.index]) ? {
238
245
  name: "end",
239
- fn: s(() => [
240
- t[10] || (t[10] = y("van-icon", {
246
+ fn: r(() => [
247
+ h(u(z), {
241
248
  class: "sun-selector-option-icon",
242
- name: "success"
243
- }, null, -1))
249
+ name: "checkmark"
250
+ })
244
251
  ]),
245
252
  key: "0"
246
253
  } : void 0
247
- ]), 1032, ["class", "onTap"])
254
+ ]), 1032, ["style", "class", "onTap"]))), 128))
248
255
  ]),
249
- empty: s(() => [
250
- h(p(we))
256
+ placeholder: r(() => [
257
+ h(u(Se), { loading: e.loading }, null, 8, ["loading"])
251
258
  ]),
252
259
  _: 3
253
- }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), r("view", {
260
+ }, 8, ["options", "refresher", "refreshing", "items", "item-size", "style"])) : (s(), p("view", {
254
261
  key: 1,
255
- style: q({ height: e.height })
262
+ style: N({ height: e.height })
256
263
  }, null, 4))
257
- ], 64)) : (n(), C(p(Se), {
264
+ ], 64)) : (s(), y(u(Ke), {
258
265
  key: 1,
259
266
  class: "sun-selector-options",
260
267
  refresher: e.refresher,
261
268
  refreshing: e.refreshing,
262
- data: N.value,
269
+ data: i.value,
263
270
  loading: e.loading,
264
- style: q({ height: e.height }),
265
- onRefresh: t[7] || (t[7] = (l) => d("refresh"))
271
+ style: N({ height: e.height }),
272
+ onRefresh: l[7] || (l[7] = (t) => f("refresh"))
266
273
  }, {
267
- default: s(() => [
268
- (n(!0), r(g, null, A(N.value, (l, v) => (n(), C(p(P), {
269
- key: l[e.valueKey],
270
- class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
274
+ default: r(() => [
275
+ (s(!0), p(b, null, M(i.value, (t, a) => (s(), y(u(G), {
276
+ key: t[e.valueKey],
277
+ class: X(["sun-selector-option", { "sun-selector-option-active": d(t) }]),
271
278
  clickable: !0,
272
- onTap: (_) => R(l)
273
- }, W({
274
- start: s(() => [
275
- u(e.$slots, "option-start", {
276
- option: l,
277
- index: v,
278
- active: i(l)
279
+ onTap: (x) => j(t)
280
+ }, O({
281
+ start: r(() => [
282
+ c(e.$slots, "option-start", {
283
+ option: t,
284
+ index: a,
285
+ active: d(t)
279
286
  })
280
287
  ]),
281
- end: s(() => [
282
- u(e.$slots, "option-end", {
283
- option: l,
284
- index: v,
285
- active: i(l)
288
+ end: r(() => [
289
+ c(e.$slots, "option-end", {
290
+ option: t,
291
+ index: a,
292
+ active: d(t)
286
293
  })
287
294
  ]),
288
- default: s(() => [
289
- u(e.$slots, "option", {
290
- option: l,
291
- index: v,
292
- active: i(l)
295
+ default: r(() => [
296
+ c(e.$slots, "option", {
297
+ option: t,
298
+ index: a,
299
+ active: d(t)
293
300
  }, () => [
294
- y("view", qe, K(l[e.labelKey]), 1)
301
+ L("view", Me, C(t[e.labelKey]), 1)
295
302
  ])
296
303
  ]),
297
304
  _: 2
298
305
  }, [
299
- i(l) ? {
306
+ d(t) ? {
300
307
  name: "end",
301
- fn: s(() => [
302
- t[11] || (t[11] = y("van-icon", {
308
+ fn: r(() => [
309
+ h(u(z), {
303
310
  class: "sun-selector-option-icon",
304
- slot: "right-icon",
305
- name: "success"
306
- }, null, -1))
311
+ name: "checkmark"
312
+ })
307
313
  ]),
308
314
  key: "0"
309
315
  } : void 0
@@ -314,21 +320,21 @@ const u = le, K = te, D = oe, g = ae, n = ne, r = se, m = re, A = ie, p = ue, s
314
320
  ]),
315
321
  _: 3
316
322
  }),
317
- u(e.$slots, "list", {
318
- rendered: b.value,
319
- ListTemplate: p(E)
323
+ c(e.$slots, "list", {
324
+ rendered: k.value,
325
+ ListTemplate: u(R)
320
326
  }, () => [
321
- h(p(E))
327
+ h(u(R))
322
328
  ])
323
329
  ]),
324
330
  _: 2
325
331
  }, [
326
- S.value ? {
332
+ K.value ? {
327
333
  name: "extra",
328
- fn: s(() => [
329
- y("view", {
334
+ fn: r(() => [
335
+ L("view", {
330
336
  class: "sun-selector-clear-btn",
331
- onTap: t[4] || (t[4] = (l) => B())
337
+ onTap: l[4] || (l[4] = (t) => B())
332
338
  }, "清除", 32)
333
339
  ]),
334
340
  key: "0"
@@ -342,5 +348,5 @@ const u = le, K = te, D = oe, g = ae, n = ne, r = se, m = re, A = ie, p = ue, s
342
348
  }
343
349
  });
344
350
  export {
345
- Ie as default
351
+ je as default
346
352
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "3.4.3",
3
+ "version": "3.5.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -12,6 +12,7 @@
12
12
 
13
13
  &-clear {
14
14
  &-icon {
15
+ display: inline;
15
16
  padding: 4px;
16
17
  }
17
18