@element-plus/nightly 0.0.20241128 → 0.0.20241129
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +907 -317
- package/dist/index.full.min.js +17 -17
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +904 -318
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/component.mjs +2 -0
- package/es/component.mjs.map +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +118 -25
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +25 -118
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +36 -95
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +95 -36
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +87 -26
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +26 -87
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +5 -3
- package/es/components/index.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +2 -1
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-tag/index.d.ts +6 -0
- package/es/components/input-tag/index.mjs +8 -0
- package/es/components/input-tag/index.mjs.map +1 -0
- package/es/components/input-tag/src/composables/index.d.ts +4 -0
- package/es/components/input-tag/src/composables/index.mjs +5 -0
- package/es/components/input-tag/src/composables/index.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-drag-tag.d.ts +15 -0
- package/es/components/input-tag/src/composables/use-drag-tag.mjs +92 -0
- package/es/components/input-tag/src/composables/use-drag-tag.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-hovering.d.ts +5 -0
- package/es/components/input-tag/src/composables/use-hovering.mjs +19 -0
- package/es/components/input-tag/src/composables/use-hovering.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-input-tag-dom.d.ts +58 -0
- package/es/components/input-tag/src/composables/use-input-tag-dom.mjs +57 -0
- package/es/components/input-tag/src/composables/use-input-tag-dom.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-input-tag.d.ts +33 -0
- package/es/components/input-tag/src/composables/use-input-tag.mjs +153 -0
- package/es/components/input-tag/src/composables/use-input-tag.mjs.map +1 -0
- package/es/components/input-tag/src/input-tag.d.ts +60 -0
- package/es/components/input-tag/src/input-tag.mjs +69 -0
- package/es/components/input-tag/src/input-tag.mjs.map +1 -0
- package/es/components/input-tag/src/input-tag.vue.d.ts +142 -0
- package/es/components/input-tag/src/input-tag2.mjs +219 -0
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -0
- package/es/components/input-tag/src/instance.d.ts +2 -0
- package/es/components/input-tag/src/instance.mjs +2 -0
- package/es/components/input-tag/src/instance.mjs.map +1 -0
- package/es/components/input-tag/style/css.d.ts +3 -0
- package/es/components/input-tag/style/css.mjs +4 -0
- package/es/components/input-tag/style/css.mjs.map +1 -0
- package/es/components/input-tag/style/index.d.ts +3 -0
- package/es/components/input-tag/style/index.mjs +4 -0
- package/es/components/input-tag/style/index.mjs.map +1 -0
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +14 -96
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +96 -14
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/notification/src/notification.d.ts +12 -6
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +5 -8
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.mjs +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +3 -0
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-calc-input-width/index.d.ts +7 -0
- package/es/hooks/use-calc-input-width/index.mjs +24 -0
- package/es/hooks/use-calc-input-width/index.mjs.map +1 -0
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.mjs +6 -3
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/component.js +98 -96
- package/lib/component.js.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +118 -26
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +26 -118
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +37 -94
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +94 -37
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +86 -26
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +26 -86
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +116 -111
- package/lib/components/index.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +2 -1
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-tag/index.d.ts +6 -0
- package/lib/components/input-tag/index.js +15 -0
- package/lib/components/input-tag/index.js.map +1 -0
- package/lib/components/input-tag/src/composables/index.d.ts +4 -0
- package/lib/components/input-tag/src/composables/index.js +16 -0
- package/lib/components/input-tag/src/composables/index.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-drag-tag.d.ts +15 -0
- package/lib/components/input-tag/src/composables/use-drag-tag.js +96 -0
- package/lib/components/input-tag/src/composables/use-drag-tag.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-hovering.d.ts +5 -0
- package/lib/components/input-tag/src/composables/use-hovering.js +23 -0
- package/lib/components/input-tag/src/composables/use-hovering.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-input-tag-dom.d.ts +58 -0
- package/lib/components/input-tag/src/composables/use-input-tag-dom.js +61 -0
- package/lib/components/input-tag/src/composables/use-input-tag-dom.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-input-tag.d.ts +33 -0
- package/lib/components/input-tag/src/composables/use-input-tag.js +157 -0
- package/lib/components/input-tag/src/composables/use-input-tag.js.map +1 -0
- package/lib/components/input-tag/src/input-tag.d.ts +60 -0
- package/lib/components/input-tag/src/input-tag.js +74 -0
- package/lib/components/input-tag/src/input-tag.js.map +1 -0
- package/lib/components/input-tag/src/input-tag.vue.d.ts +142 -0
- package/lib/components/input-tag/src/input-tag2.js +223 -0
- package/lib/components/input-tag/src/input-tag2.js.map +1 -0
- package/lib/components/input-tag/src/instance.d.ts +2 -0
- package/lib/components/input-tag/src/instance.js +3 -0
- package/lib/components/input-tag/src/instance.js.map +1 -0
- package/lib/components/input-tag/style/css.d.ts +3 -0
- package/lib/components/input-tag/style/css.js +7 -0
- package/lib/components/input-tag/style/css.js.map +1 -0
- package/lib/components/input-tag/style/index.d.ts +3 -0
- package/lib/components/input-tag/style/index.js +7 -0
- package/lib/components/input-tag/style/index.js.map +1 -0
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +15 -96
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +96 -15
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +12 -6
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notify.js +4 -7
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.js +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +3 -0
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +96 -94
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-calc-input-width/index.d.ts +7 -0
- package/lib/hooks/use-calc-input-width/index.js +28 -0
- package/lib/hooks/use-calc-input-width/index.js.map +1 -0
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.js +222 -215
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-form.css +1 -1
- package/theme-chalk/el-input-tag.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +47 -0
- package/theme-chalk/src/form.scss +2 -1
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/input-tag.scss +215 -0
- package/web-types.json +1 -1
@@ -918,6 +918,53 @@ $mention: map.merge(
|
|
918
918
|
$mention
|
919
919
|
);
|
920
920
|
|
921
|
+
// InputTag
|
922
|
+
// css3 var in packages/theme-chalk/src/input-tag.scss
|
923
|
+
$input-tag: () !default;
|
924
|
+
$input-tag: map.merge(
|
925
|
+
(
|
926
|
+
'border-color-hover': getCssVar('border-color-hover'),
|
927
|
+
'disabled-color': getCssVar('disabled-text-color'),
|
928
|
+
'disabled-border': getCssVar('disabled-border-color'),
|
929
|
+
'font-size': getCssVar('font-size-base'),
|
930
|
+
'close-hover-color': getCssVar('text-color-secondary'),
|
931
|
+
'text-color': getCssVar('text-color-regular'),
|
932
|
+
'input-focus-border-color': getCssVar('color-primary'),
|
933
|
+
'width': 100%,
|
934
|
+
),
|
935
|
+
$input-tag
|
936
|
+
);
|
937
|
+
|
938
|
+
$input-tag-padding: () !default;
|
939
|
+
$input-tag-padding: map.merge(
|
940
|
+
(
|
941
|
+
'large': 8px,
|
942
|
+
'default': 4px,
|
943
|
+
'small': 2px,
|
944
|
+
),
|
945
|
+
$input-tag-padding
|
946
|
+
);
|
947
|
+
|
948
|
+
$input-tag-inner-padding: () !default;
|
949
|
+
$input-tag-inner-padding: map.merge(
|
950
|
+
(
|
951
|
+
'large': 8px,
|
952
|
+
'default': 8px,
|
953
|
+
'small': 6px,
|
954
|
+
),
|
955
|
+
$input-tag-inner-padding
|
956
|
+
);
|
957
|
+
|
958
|
+
$input-tag-gap: () !default;
|
959
|
+
$input-tag-gap: map.merge(
|
960
|
+
(
|
961
|
+
'large': 6px,
|
962
|
+
'default': 6px,
|
963
|
+
'small': 4px,
|
964
|
+
),
|
965
|
+
$input-tag-gap
|
966
|
+
);
|
967
|
+
|
921
968
|
// Table
|
922
969
|
// css3 var in packages/theme-chalk/src/table.scss
|
923
970
|
$table: () !default;
|
@@ -210,7 +210,8 @@ $form-item-label-top-margin-bottom: map.merge(
|
|
210
210
|
@include when(error) {
|
211
211
|
.#{$namespace}-input__wrapper,
|
212
212
|
.#{$namespace}-textarea__inner,
|
213
|
-
.#{$namespace}-select__wrapper
|
213
|
+
.#{$namespace}-select__wrapper,
|
214
|
+
.#{$namespace}-input-tag__wrapper {
|
214
215
|
&,
|
215
216
|
&:hover,
|
216
217
|
&:focus,
|
@@ -0,0 +1,215 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
|
3
|
+
@use 'mixins/mixins' as *;
|
4
|
+
@use 'mixins/utils' as *;
|
5
|
+
@use 'mixins/var' as *;
|
6
|
+
@use 'common/var' as *;
|
7
|
+
|
8
|
+
@mixin mixed-input-border($color) {
|
9
|
+
box-shadow: 0 0 0 1px $color inset;
|
10
|
+
}
|
11
|
+
|
12
|
+
@include b(input-tag) {
|
13
|
+
@include set-component-css-var('input-tag', $input-tag);
|
14
|
+
@include css-var-from-global('input-tag-mini-height', 'component-size');
|
15
|
+
@include set-css-var-value(
|
16
|
+
('input-tag', 'gap'),
|
17
|
+
map.get($input-tag-gap, default)
|
18
|
+
);
|
19
|
+
@include set-css-var-value(
|
20
|
+
('input-tag', 'padding'),
|
21
|
+
map.get($input-tag-padding, default)
|
22
|
+
);
|
23
|
+
@include set-css-var-value(
|
24
|
+
('input-tag', 'inner-padding'),
|
25
|
+
map.get($input-tag-inner-padding, default)
|
26
|
+
);
|
27
|
+
@include set-css-var-value(
|
28
|
+
('input-tag', 'line-height'),
|
29
|
+
map.get($tag-height, default)
|
30
|
+
);
|
31
|
+
}
|
32
|
+
|
33
|
+
@include b(input-tag) {
|
34
|
+
display: flex;
|
35
|
+
align-items: center;
|
36
|
+
box-sizing: border-box;
|
37
|
+
cursor: pointer;
|
38
|
+
font-size: getCssVar('input-tag-font-size');
|
39
|
+
padding: getCssVar('input-tag-padding');
|
40
|
+
width: getCssVar('input-tag-width');
|
41
|
+
min-height: getCssVar('input-tag-mini-height');
|
42
|
+
line-height: getCssVar('input-tag-line-height');
|
43
|
+
border-radius: getCssVar('border-radius-base');
|
44
|
+
background-color: getCssVar('fill-color', 'blank');
|
45
|
+
transition: getCssVar('transition', 'duration');
|
46
|
+
transform: translate3d(0, 0, 0);
|
47
|
+
@include mixed-input-border(#{getCssVar('border-color')});
|
48
|
+
|
49
|
+
@include when(focused) {
|
50
|
+
@include mixed-input-border(#{getCssVar('color-primary')});
|
51
|
+
}
|
52
|
+
|
53
|
+
@include when(hovering) {
|
54
|
+
&:not(.is-focused) {
|
55
|
+
@include mixed-input-border(#{getCssVar('border-color-hover')});
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@include when(disabled) {
|
60
|
+
cursor: not-allowed;
|
61
|
+
background-color: getCssVar('fill-color', 'light');
|
62
|
+
@include mixed-input-border(#{getCssVar('input-tag-disabled-border')});
|
63
|
+
|
64
|
+
&:hover {
|
65
|
+
@include mixed-input-border(#{getCssVar('input-tag-disabled-border')});
|
66
|
+
}
|
67
|
+
|
68
|
+
&.is-focus {
|
69
|
+
@include mixed-input-border(#{getCssVar('input-focus-border-color')});
|
70
|
+
}
|
71
|
+
|
72
|
+
@include e(inner) {
|
73
|
+
@include e(input) {
|
74
|
+
cursor: not-allowed;
|
75
|
+
}
|
76
|
+
.#{$namespace}-tag {
|
77
|
+
cursor: not-allowed;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
@include e(prefix) {
|
83
|
+
display: flex;
|
84
|
+
align-items: center;
|
85
|
+
flex-shrink: 0;
|
86
|
+
padding: 0 getCssVar('input-tag-inner-padding');
|
87
|
+
color: var(
|
88
|
+
#{getCssVarName('input-icon-color')},
|
89
|
+
map.get($input, 'icon-color')
|
90
|
+
);
|
91
|
+
}
|
92
|
+
|
93
|
+
@include e(suffix) {
|
94
|
+
display: flex;
|
95
|
+
align-items: center;
|
96
|
+
flex-shrink: 0;
|
97
|
+
padding: 0 getCssVar('input-tag-inner-padding');
|
98
|
+
gap: 8px;
|
99
|
+
color: var(
|
100
|
+
#{getCssVarName('input-icon-color')},
|
101
|
+
map.get($input, 'icon-color')
|
102
|
+
);
|
103
|
+
}
|
104
|
+
|
105
|
+
@include e(inner) {
|
106
|
+
position: relative;
|
107
|
+
display: flex;
|
108
|
+
flex-wrap: wrap;
|
109
|
+
align-items: center;
|
110
|
+
flex: 1;
|
111
|
+
max-width: 100%;
|
112
|
+
min-width: 0;
|
113
|
+
gap: getCssVar('input-tag-gap');
|
114
|
+
|
115
|
+
@include when(left-space) {
|
116
|
+
margin-left: getCssVar('input-tag-inner-padding');
|
117
|
+
}
|
118
|
+
|
119
|
+
@include when(right-space) {
|
120
|
+
margin-right: getCssVar('input-tag-inner-padding');
|
121
|
+
}
|
122
|
+
|
123
|
+
@include when(draggable) {
|
124
|
+
.#{$namespace}-tag {
|
125
|
+
cursor: move;
|
126
|
+
user-select: none;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
@include e(drop-indicator) {
|
131
|
+
position: absolute;
|
132
|
+
top: 0;
|
133
|
+
width: 1px;
|
134
|
+
height: var(--el-input-tag-line-height);
|
135
|
+
background-color: getCssVar('color-primary');
|
136
|
+
}
|
137
|
+
|
138
|
+
.#{$namespace}-tag {
|
139
|
+
max-width: 100%;
|
140
|
+
cursor: pointer;
|
141
|
+
border-color: transparent;
|
142
|
+
|
143
|
+
&.#{$namespace}-tag--plain {
|
144
|
+
border-color: getCssVar('tag', 'border-color');
|
145
|
+
}
|
146
|
+
|
147
|
+
.#{$namespace}-tag__content {
|
148
|
+
min-width: 0;
|
149
|
+
line-height: normal;
|
150
|
+
overflow: hidden;
|
151
|
+
text-overflow: ellipsis;
|
152
|
+
white-space: nowrap;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
@include e(input-wrapper) {
|
158
|
+
flex: 1;
|
159
|
+
}
|
160
|
+
|
161
|
+
@include e(input) {
|
162
|
+
border: none;
|
163
|
+
outline: none;
|
164
|
+
padding: 0;
|
165
|
+
color: getCssVar('input-tag-text-color');
|
166
|
+
font-size: inherit;
|
167
|
+
font-family: inherit;
|
168
|
+
line-height: inherit;
|
169
|
+
appearance: none;
|
170
|
+
width: 100%;
|
171
|
+
background-color: transparent;
|
172
|
+
}
|
173
|
+
|
174
|
+
@include e(input-calculator) {
|
175
|
+
position: absolute;
|
176
|
+
left: 0;
|
177
|
+
top: 0;
|
178
|
+
max-width: 100%;
|
179
|
+
visibility: hidden;
|
180
|
+
white-space: pre;
|
181
|
+
overflow: hidden;
|
182
|
+
}
|
183
|
+
|
184
|
+
@each $size in (large, small) {
|
185
|
+
@include m($size) {
|
186
|
+
@include set-css-var-value(
|
187
|
+
('input-tag', 'gap'),
|
188
|
+
map.get($input-tag-gap, $size)
|
189
|
+
);
|
190
|
+
@include set-css-var-value(
|
191
|
+
('input-tag', 'padding'),
|
192
|
+
map.get($input-tag-padding, $size)
|
193
|
+
);
|
194
|
+
@include set-css-var-value(
|
195
|
+
('input-tag', 'padding-left'),
|
196
|
+
map.get($input-tag-inner-padding, $size)
|
197
|
+
);
|
198
|
+
@include set-css-var-value(
|
199
|
+
('input-tag', 'font-size'),
|
200
|
+
map.get($input-font-size, $size)
|
201
|
+
);
|
202
|
+
|
203
|
+
@if $size == small {
|
204
|
+
@include set-css-var-value(
|
205
|
+
('input-tag', 'line-height'),
|
206
|
+
map.get($tag-height, $size)
|
207
|
+
);
|
208
|
+
@include css-var-from-global(
|
209
|
+
'input-tag-mini-height',
|
210
|
+
('component-size', $size)
|
211
|
+
);
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|