@das-fed/upf-ui 6.4.0-dev.132 → 6.4.0-dev.134
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/package.json +5 -5
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +8 -2
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +8 -2
- package/packages/components/button/index.d.ts +3 -0
- package/packages/components/button/index.js +276 -283
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/src/Index.vue.d.ts +1 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/cascader/index.d.ts +9 -9
- package/packages/components/cascader/index.js +110 -100
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +1 -1
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +355 -334
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/src/Index.vue.d.ts +5 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/color-picker/index.js +42 -41
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +503 -486
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +1 -1
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/error-overlay-model/index.js +15 -15
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form/hooks/use-form-size.d.ts +3 -0
- package/packages/components/form/index.d.ts +12 -2
- package/packages/components/form/index.js +62 -69
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form/src/Index.vue.d.ts +9 -0
- package/packages/components/form/src/type.d.ts +3 -0
- package/packages/components/form/style.css +1 -1
- package/packages/components/form-item/index.js +1110 -1082
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/hooks/use-form.d.ts +13 -3
- package/packages/components/form-item/src/type.d.ts +6 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/input/index.js +399 -215
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/constants.d.ts +17 -0
- package/packages/components/input/src/hooks/use-overflow-tip.d.ts +13 -0
- package/packages/components/input/src/type.d.ts +9 -9
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +74 -66
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +76 -70
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/message/style.css +1 -1
- package/packages/components/message/style.css.gz +0 -0
- package/packages/components/radio/index.js +116 -103
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio/src/Index.vue.d.ts +5 -0
- package/packages/components/radio/style.css +1 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/select/index.js +92 -88
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.js +39 -37
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/split-panel/index.js +209 -193
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/split-panel/style.css +1 -1
- package/packages/components/split-panel/style.css.gz +0 -0
- package/packages/components/switch/index.js +45 -29
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/index.js +1944 -1932
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +12 -9
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +1 -1
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/upload/index.js +3 -2
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/upload/style.css +1 -1
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/upload/theme/index.d.ts +3 -0
- package/packages/components/form-item/src/hooks/useFormLabelWidth.d.ts +0 -6
- package/packages/components/input/index.d.ts +0 -124
- package/packages/components/input/src/index.vue.d.ts +0 -49
|
@@ -1,49 +1,65 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/switch/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { ElSwitch as
|
|
2
|
+
import { withInstall as f } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
+
import { setThemeRule as p } from "@das-fed/upf-web/packages/theme/index";
|
|
4
|
+
import { defineComponent as h, computed as n, ref as _, onMounted as w, createElementBlock as S, openBlock as v, normalizeStyle as x, createVNode as z, unref as y, mergeProps as B } from "vue";
|
|
5
|
+
import { ElSwitch as V } from "element-plus";
|
|
6
6
|
import "element-plus/es/components/switch/style/css";
|
|
7
|
-
|
|
7
|
+
import { useFormSize as b } from "@das-fed/upf-ui/packages/components/form";
|
|
8
|
+
const g = {
|
|
8
9
|
inheritAttrs: !1
|
|
9
|
-
},
|
|
10
|
-
...
|
|
10
|
+
}, D = /* @__PURE__ */ h({
|
|
11
|
+
...g,
|
|
11
12
|
__name: "Index",
|
|
12
13
|
props: {
|
|
13
14
|
modelValue: { type: [Boolean, String, Number], default: !0 },
|
|
14
15
|
size: { default: "small" }
|
|
15
16
|
},
|
|
16
|
-
setup(o, { expose:
|
|
17
|
-
const e = o, s =
|
|
18
|
-
return p(() => {
|
|
17
|
+
setup(o, { expose: a }) {
|
|
18
|
+
const e = o, s = n(() => e.modelValue), i = n(() => e.size ? e.size : "small"), c = _(null), m = () => {
|
|
19
19
|
var t, r;
|
|
20
|
-
const l = (r = (t =
|
|
20
|
+
const l = (r = (t = c.value) == null ? void 0 : t.$el) == null ? void 0 : r.querySelector(".el-switch__input");
|
|
21
21
|
l && l.setAttribute("tabindex", "-1");
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
}, u = b(), d = n(() => ({
|
|
23
|
+
"--switch-height": u.value && {
|
|
24
|
+
small: "24px",
|
|
25
|
+
default: "32px",
|
|
26
|
+
large: "40px"
|
|
27
|
+
}[u.value]
|
|
28
|
+
}));
|
|
29
|
+
return w(m), a({
|
|
30
|
+
$refSwitch: c
|
|
31
|
+
}), (l, t) => (v(), S(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
class: "das-ui-switch",
|
|
35
|
+
style: x(d.value)
|
|
36
|
+
},
|
|
37
|
+
[
|
|
38
|
+
z(y(V), B({
|
|
39
|
+
ref_key: "$refSwitch",
|
|
40
|
+
ref: c,
|
|
41
|
+
modelValue: s.value,
|
|
42
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => s.value = r)
|
|
43
|
+
}, l.$attrs, { size: i.value }), null, 16, ["modelValue", "size"])
|
|
44
|
+
],
|
|
45
|
+
4
|
|
46
|
+
/* STYLE */
|
|
47
|
+
));
|
|
32
48
|
}
|
|
33
|
-
}),
|
|
49
|
+
}), k = (o, a) => {
|
|
34
50
|
const e = o.__vccOpts || o;
|
|
35
|
-
for (const [s,
|
|
36
|
-
e[s] =
|
|
51
|
+
for (const [s, i] of a)
|
|
52
|
+
e[s] = i;
|
|
37
53
|
return e;
|
|
38
|
-
},
|
|
54
|
+
}, F = /* @__PURE__ */ k(D, [["__scopeId", "data-v-2529e92f"]]), I = {
|
|
39
55
|
"--das-ui-switch-on-color": "#5582F3",
|
|
40
56
|
"--das-ui-switch-off-color": "#B2B2B2",
|
|
41
57
|
"--das-ui-switch-on-color-disabled": "#B5CAFF",
|
|
42
58
|
"--das-ui-switch-off-color-disabled": "#D9D9D9"
|
|
43
59
|
};
|
|
44
|
-
|
|
45
|
-
const
|
|
60
|
+
p(I);
|
|
61
|
+
const q = f(F);
|
|
46
62
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
63
|
+
q as DasSwitch,
|
|
64
|
+
q as default
|
|
49
65
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-switch[data-v-
|
|
1
|
+
.das-ui-switch[data-v-2529e92f]{display:inline-flex;height:var(--switch-height);align-items:center}.das-ui-switch[data-v-2529e92f] .el-switch{--el-switch-on-color: var(--das-ui-switch-on-color);--el-switch-off-color: var(--das-ui-switch-off-color)}.das-ui-switch[data-v-2529e92f] .el-switch.is-disabled{--el-switch-on-color: var(--das-ui-switch-on-color-disabled);--el-switch-off-color: var(--das-ui-switch-off-color-disabled);opacity:1}.das-ui-switch[data-v-2529e92f] .el-switch.el-switch--small{height:16px}.das-ui-switch[data-v-2529e92f] .el-switch.el-switch--small .el-switch__core{min-width:32px}.das-ui-switch[data-v-2529e92f] .el-switch.el-switch--small .el-switch__core .el-switch__action{width:14px;height:14px;left:0}.das-ui-switch[data-v-2529e92f] .el-switch.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 14px)}.das-ui-switch[data-v-2529e92f] .el-switch.el-switch--default{height:20px}.das-ui-switch[data-v-2529e92f] .el-switch.el-switch--default .el-switch__core .el-switch__action{width:18px;height:18px;left:0}.das-ui-switch[data-v-2529e92f] .el-switch.el-switch--default.is-checked .el-switch__core .el-switch__action{left:calc(100% - 18px)}.das-ui-switch[data-v-2529e92f] .el-switch .el-switch__core .el-switch__action .el-icon{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1686210106297'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11699'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%2064c247.424%200%20448%20200.576%20448%20448%200%2093.76-28.928%20183.296-81.92%20258.304a32%2032%200%200%201-52.256-36.96A382.048%20382.048%200%200%200%20896%20512c0-212.064-171.936-384-384-384a32%2032%200%200%201%200-64z'%20p-id='11700'%20fill='%235480F0'%3e%3c/path%3e%3c/svg%3e");background-size:cover}.das-ui-switch[data-v-2529e92f] .el-switch .el-switch__core .el-switch__action .el-icon.is-loading{animation:rotating 1s linear infinite}.das-ui-switch[data-v-2529e92f] .el-switch .el-switch__core .el-switch__action .el-icon svg{display:none}
|
|
Binary file
|