@fangzhongya/fang-ui 0.0.34 → 0.0.36

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.
@@ -2,7 +2,8 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const index$2 = require("../../../directives/expose/index.cjs");
5
- const elementPlus = require("element-plus");
5
+ const ElCascader = require("element-plus/es/components/calendar/index");
6
+ const ElTreeSelect = require("element-plus/es/components/tree-select/index");
6
7
  const index = require("../../../hooks/cssname/index.cjs");
7
8
  const index$1 = require("../../../hooks/inherit/index.cjs");
8
9
  const data = require("./data.cjs");
@@ -31,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
32
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
32
33
  class: vue.unref(cs).z()
33
34
  }, vue.unref(attrs).root), [
34
- props.isTree ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTreeSelect), vue.mergeProps({
35
+ props.isTree ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ElTreeSelect), vue.mergeProps({
35
36
  key: 0,
36
37
  modelValue: vue.unref(value),
37
38
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
@@ -42,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
42
43
  "show-checkbox": vue.unref(multiple)
43
44
  }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])), [
44
45
  [vue.unref(index$2.default), {}]
45
- ]) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCascader), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
46
+ ]) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ElCascader), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
46
47
  class: vue.unref(cs).z("cascader"),
47
48
  "show-all-levels": false,
48
49
  modelValue: vue.unref(value),
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, useAttrs, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, isRef } from "vue";
2
2
  import vExpose from "../../../directives/expose/index.js";
3
- import { ElTreeSelect, ElCascader } from "element-plus";
3
+ import ElCascader from "element-plus/es/components/calendar/index";
4
+ import ElTreeSelect from "element-plus/es/components/tree-select/index";
4
5
  import { useCssName } from "../../../hooks/cssname/index.js";
5
6
  import { useInherit } from "../../../hooks/inherit/index.js";
6
7
  import { dataEmits, dataProps, dataHandle } from "./data.js";
@@ -0,0 +1,4 @@
1
+ @use 'element-plus/theme-chalk/src/calendar.scss' as *;
2
+ @use 'element-plus/theme-chalk/src/tree-select.scss' as *;
3
+
4
+ @use '../index.scss' as *;
@@ -15,6 +15,5 @@
15
15
  .dates dates-date {
16
16
  height: 100%;
17
17
  width: 100%;
18
- --el-date-editor-width: 100%;
19
18
  box-sizing: border-box;
20
19
  }
@@ -2,10 +2,9 @@
2
2
 
3
3
  $dates: 'dates';
4
4
  @include b($dates) {
5
- #{z($dates, 'date')} {
5
+ .#{z($dates, 'date')} {
6
6
  height: 100%;
7
7
  width: 100%;
8
- --#{e()}date-editor-width: 100%;
9
8
  box-sizing: border-box;
10
9
  }
11
10
  }
@@ -64,6 +64,7 @@
64
64
  @use './edit/index.scss' as *;
65
65
  @use './input-array/index.scss' as *;
66
66
  @use './input-num/index.scss' as *;
67
+ @use './input-select/index.scss' as *;
67
68
  @use './inputs/index.scss' as *;
68
69
  @use './selects/index.scss' as *;
69
70
  @use './switchs/index.scss' as *;
@@ -6,6 +6,7 @@
6
6
  @use './color-picker/style/index2.scss' as *;
7
7
  @use './config-provider/style/index2.scss' as *;
8
8
  @use './alert/style/index2.scss' as *;
9
+ @use './drawer/style/index.scss' as *;
9
10
  @use './popconfirm/style/index2.scss' as *;
10
11
  @use './popover/style/index2.scss' as *;
11
12
  @use './tooltip/style/index2.scss' as *;
@@ -41,11 +42,33 @@
41
42
  @use './forms-item/style/index2.scss' as *;
42
43
  @use './forms-items/style/index2.scss' as *;
43
44
  @use './forms/style/index2.scss' as *;
45
+ @use './box-adjust/style/index.scss' as *;
46
+ @use './box-local/style/index.scss' as *;
47
+ @use './box-mask/style/index.scss' as *;
48
+ @use './box-title/style/index.scss' as *;
49
+ @use './box/style/index.scss' as *;
50
+ @use './popup/style/index.scss' as *;
51
+ @use './right-key/style/index.scss' as *;
52
+ @use './seamless-scroll/style/index.scss' as *;
53
+ @use './window/style/index.scss' as *;
54
+ @use './global-config/style/index.scss' as *;
55
+ @use './icon/style/index.scss' as *;
56
+ @use './lists/style/index.scss' as *;
44
57
  @use './menus/style/index2.scss' as *;
45
58
  @use './page/style/index2.scss' as *;
59
+ @use './array/style/index.scss' as *;
46
60
  @use './buttons/style/index2.scss' as *;
61
+ @use './cascaders/style/index2.scss' as *;
47
62
  @use './checks/style/index2.scss' as *;
48
63
  @use './dates/style/index2.scss' as *;
64
+ @use './edit/style/index.scss' as *;
65
+ @use './input-array/style/index2.scss' as *;
66
+ @use './input-num/style/index2.scss' as *;
67
+ @use './input-select/style/index2.scss' as *;
68
+ @use './inputs/style/index2.scss' as *;
69
+ @use './selects/style/index2.scss' as *;
70
+ @use './switchs/style/index2.scss' as *;
71
+ @use './text/style/index.scss' as *;
49
72
  @use './paging/style/index2.scss' as *;
50
73
  @use './tables/style/index2.scss' as *;
51
74
  @use './tablesp/style/index2.scss' as *;
@@ -0,0 +1,4 @@
1
+ @use 'element-plus/theme-chalk/src/input-number.scss' as *;
2
+ @use 'element-plus/theme-chalk/src/input.scss' as *;
3
+
4
+ @use '../index.scss' as *;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$2 = require("../../../directives/expose/index.cjs");
5
- const elementPlus = require("element-plus");
4
+ const index$3 = require("../../../directives/expose/index.cjs");
5
+ const index$2 = require("element-plus/es/components/input-number/index");
6
6
  const data = require("./data.cjs");
7
7
  const index$1 = require("../../../hooks/cssname/index.cjs");
8
8
  const index = require("../../../hooks/inherit/index.cjs");
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36
36
  ref: refEl,
37
37
  class: vue.unref(cs).z()
38
38
  }, vue.unref(attrs).root), [
39
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElInputNumber), vue.mergeProps({
39
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.ElInputNumber), vue.mergeProps({
40
40
  class: vue.unref(cs).z("input"),
41
41
  modelValue: value.value,
42
42
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
52
52
  };
53
53
  })
54
54
  ]), 1040, ["class", "modelValue", "placeholder"])), [
55
- [vue.unref(index$2.default), {}]
55
+ [vue.unref(index$3.default), {}]
56
56
  ])
57
57
  ], 16);
58
58
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useAttrs, useSlots, ref, computed, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, createSlots, renderList, withCtx, renderSlot } from "vue";
2
2
  import vExpose from "../../../directives/expose/index.js";
3
- import { ElInputNumber } from "element-plus";
3
+ import { ElInputNumber } from "element-plus/es/components/input-number/index";
4
4
  import { dataEmits, dataProps } from "./data.js";
5
5
  import { useCssName } from "../../../hooks/cssname/index.js";
6
6
  import { useInherit } from "../../../hooks/inherit/index.js";
@@ -0,0 +1,3 @@
1
+ @use 'element-plus/theme-chalk/src/input-number.scss' as *;
2
+
3
+ @use '../index.scss' as *;
@@ -0,0 +1,66 @@
1
+ @use '../css/common.scss' as *;
2
+
3
+ $input-select: 'input-select';
4
+ @include b($input-select) {
5
+ &-select-icon {
6
+ margin-left: 8px;
7
+ display: inline-flex;
8
+ pointer-events: all;
9
+ align-items: center;
10
+ justify-content: center;
11
+ cursor: pointer;
12
+ transform: rotate(0);
13
+ transition: transform 0.3s;
14
+ &.is-reverse {
15
+ transform: rotate(-180deg);
16
+ }
17
+ svg {
18
+ width: 1rem;
19
+ height: 1rem;
20
+ }
21
+ }
22
+ &.is-disabled {
23
+ .#{$input-selects}-select-icon {
24
+ cursor: not-allowed;
25
+ }
26
+ }
27
+ &-popper {
28
+ padding: 6px 0 !important;
29
+ .#{$input-selects}-select {
30
+ max-height: 274px;
31
+ height: 100%;
32
+ overflow-y: auto;
33
+ .#{$input-selects}-select-ul {
34
+ list-style: none;
35
+ margin: 6px 0;
36
+ padding: 0;
37
+ box-sizing: border-box;
38
+ }
39
+ .#{$input-selects}-select-li {
40
+ padding: 0 32px 0 20px;
41
+ position: relative;
42
+ white-space: nowrap;
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ color: #606266;
46
+ height: 34px;
47
+ line-height: 34px;
48
+ box-sizing: border-box;
49
+ cursor: pointer;
50
+ &.hover,
51
+ &:hover {
52
+ background-color: #f5f7fa;
53
+ }
54
+ &.selected {
55
+ color: var(--bv-color-primary);
56
+ font-weight: 700;
57
+ }
58
+ &.is-disabled {
59
+ background-color: #ffffff;
60
+ color: #a8abb2;
61
+ cursor: not-allowed;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,4 @@
1
+ @use 'element-plus/theme-chalk/src/popover.scss' as *;
2
+ @use 'element-plus/theme-chalk/src/input.scss' as *;
3
+
4
+ @use '../index.scss' as *;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$2 = require("../../../directives/expose/index.cjs");
5
- const elementPlus = require("element-plus");
4
+ const index$3 = require("../../../directives/expose/index.cjs");
5
+ const index$2 = require("element-plus/es/components/input/index");
6
6
  const data = require("./data.cjs");
7
7
  const index$1 = require("../../../hooks/cssname/index.cjs");
8
8
  const index = require("../../../hooks/inherit/index.cjs");
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
57
  ref: refEl,
58
58
  class: vue.unref(cs).z()
59
59
  }, vue.unref(attrs).root), [
60
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElInput), vue.mergeProps({
60
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.ElInput), vue.mergeProps({
61
61
  class: vue.unref(cs).z("input"),
62
62
  modelValue: value.value,
63
63
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
71
71
  };
72
72
  })
73
73
  ]), 1040, ["class", "modelValue", "placeholder"])), [
74
- [vue.unref(index$2.default), {}]
74
+ [vue.unref(index$3.default), {}]
75
75
  ])
76
76
  ], 16);
77
77
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useAttrs, useSlots, ref, computed, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, createSlots, renderList, withCtx, renderSlot } from "vue";
2
2
  import vExpose from "../../../directives/expose/index.js";
3
- import { ElInput } from "element-plus";
3
+ import { ElInput } from "element-plus/es/components/input/index";
4
4
  import { dataEmits, dataProps } from "./data.js";
5
5
  import { useCssName } from "../../../hooks/cssname/index.js";
6
6
  import { useInherit } from "../../../hooks/inherit/index.js";
@@ -0,0 +1,3 @@
1
+ @use 'element-plus/theme-chalk/src/input.scss' as *;
2
+
3
+ @use '../index.scss' as *;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$2 = require("../../../directives/expose/index.cjs");
5
- const elementPlus = require("element-plus");
4
+ const index$3 = require("../../../directives/expose/index.cjs");
5
+ const index$2 = require("element-plus/es/components/select/index");
6
6
  const index = require("../../../hooks/inherit/index.cjs");
7
7
  const use = require("../../common/use.cjs");
8
8
  const index$1 = require("../../../hooks/cssname/index.cjs");
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38
38
  }, vue.unref(attrs).root, {
39
39
  class: vue.unref(cs).z()
40
40
  }), [
41
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelect), vue.mergeProps({
41
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.ElSelect), vue.mergeProps({
42
42
  class: vue.unref(cs).z("select"),
43
43
  modelValue: vue.unref(value),
44
44
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
48
48
  }), {
49
49
  default: vue.withCtx(() => [
50
50
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.options, (item) => {
51
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElOption), {
51
+ return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElOption), {
52
52
  label: vue.unref(use.useVueValue)(item, props.label),
53
53
  value: vue.unref(use.useVueValue)(item, props.prop),
54
54
  disabled: item?.disabled
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
57
  ]),
58
58
  _: 1
59
59
  }, 16, ["class", "modelValue", "multiple", "placeholder"])), [
60
- [vue.unref(index$2.default), {}]
60
+ [vue.unref(index$3.default), {}]
61
61
  ])
62
62
  ], 16);
63
63
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, useAttrs, computed, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, isRef, withCtx, Fragment, renderList } from "vue";
2
2
  import vExpose from "../../../directives/expose/index.js";
3
- import { ElSelect, ElOption } from "element-plus";
3
+ import { ElSelect, ElOption } from "element-plus/es/components/select/index";
4
4
  import { useInherit } from "../../../hooks/inherit/index.js";
5
5
  import { useVueValue } from "../../common/use.js";
6
6
  import { useCssName } from "../../../hooks/cssname/index.js";
@@ -0,0 +1,3 @@
1
+ @use 'element-plus/theme-chalk/src/select.scss' as *;
2
+
3
+ @use '../index.scss' as *;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$2 = require("../../../directives/expose/index.cjs");
5
- const elementPlus = require("element-plus");
4
+ const index$3 = require("../../../directives/expose/index.cjs");
5
+ const index$2 = require("element-plus/es/components/switch/index");
6
6
  const index$1 = require("../../../hooks/inherit/index.cjs");
7
7
  const use = require("../../common/use.cjs");
8
8
  const index = require("../../../hooks/cssname/index.cjs");
@@ -68,12 +68,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
68
68
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
69
69
  class: vue.unref(cs).z()
70
70
  }, vue.unref(attrs).root), [
71
- vue.withDirectives(vue.createVNode(vue.unref(elementPlus.ElSwitch), vue.mergeProps({
71
+ vue.withDirectives(vue.createVNode(vue.unref(index$2.ElSwitch), vue.mergeProps({
72
72
  class: vue.unref(cs).z("switch"),
73
73
  modelValue: value.value,
74
74
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
75
75
  }, { ...binds.value, ...vue.unref(attrs).assem }), null, 16, ["class", "modelValue"]), [
76
- [vue.unref(index$2.default), {}]
76
+ [vue.unref(index$3.default), {}]
77
77
  ])
78
78
  ], 16);
79
79
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useAttrs, ref, watch, computed, createElementBlock, openBlock, mergeProps, unref, withDirectives, createVNode } from "vue";
2
2
  import vExpose from "../../../directives/expose/index.js";
3
- import { ElSwitch } from "element-plus";
3
+ import { ElSwitch } from "element-plus/es/components/switch/index";
4
4
  import { useInherit } from "../../../hooks/inherit/index.js";
5
5
  import { useVueValue } from "../../common/use.js";
6
6
  import { useCssName } from "../../../hooks/cssname/index.js";
@@ -0,0 +1,3 @@
1
+ @use 'element-plus/theme-chalk/src/switch.scss' as *;
2
+
3
+ @use '../index.scss' as *;
@@ -5,7 +5,7 @@ const data = require("./data.cjs");
5
5
  const index$1 = require("../../../hooks/cssname/index.cjs");
6
6
  const index$2 = require("../../../hooks/locale/index.cjs");
7
7
  const index = require("../../../hooks/inherit/index.cjs");
8
- const index$3 = require("element-plus/es/components/tree-select/index");
8
+ const ElTreeSelect = require("element-plus/es/components/tree-select/index");
9
9
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
10
  __name: "index",
11
11
  props: data.dataProps,
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
24
24
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
25
25
  class: vue.unref(cs).z()
26
26
  }, vue.unref(attrs).root), [
27
- vue.createVNode(vue.unref(index$3.ElTreeSelect), vue.mergeProps(vue.unref(attrs).assem, {
27
+ vue.createVNode(vue.unref(ElTreeSelect.ElTreeSelect), vue.mergeProps(vue.unref(attrs).assem, {
28
28
  ref_key: "refEl",
29
29
  ref: refEl
30
30
  }), vue.createSlots({ _: 2 }, [
package/dist/index.css CHANGED
@@ -666,7 +666,6 @@
666
666
  .dates dates-date {
667
667
  height: 100%;
668
668
  width: 100%;
669
- --el-date-editor-width: 100%;
670
669
  box-sizing: border-box;
671
670
  }
672
671
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.0.34",
4
+ "version": "0.0.36",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -27,7 +27,7 @@
27
27
  "@fangzhongya/utils": "0.0.25"
28
28
  },
29
29
  "devDependencies": {
30
- "@fangzhongya/create": "0.2.29",
30
+ "@fangzhongya/create": "0.2.30",
31
31
  "@types/node": "^24.1.0",
32
32
  "@vitejs/plugin-vue": "^6.0.1",
33
33
  "@vue/shared": "3.5.18",
@@ -50,12 +50,12 @@
50
50
  "vuedraggable": "4.1.0",
51
51
  "vxe-table": "4.14.8",
52
52
  "@fang-ui/components": "0.0.1-0",
53
- "@fang-ui/hooks": "0.0.1-0",
54
- "@fang-ui/theme": "0.0.1-0",
55
- "@fang-ui/types": "0.0.1-0",
56
53
  "@fang-ui/directives": "0.0.1-0",
54
+ "@fang-ui/hooks": "0.0.1-0",
57
55
  "@fang-ui/icons": "0.0.1-0",
58
56
  "@fang-ui/locale": "0.0.1-0",
57
+ "@fang-ui/theme": "0.0.1-0",
58
+ "@fang-ui/types": "0.0.1-0",
59
59
  "@fang-ui/utils": "0.0.1-0"
60
60
  },
61
61
  "main": "./dist/index.cjs",