@fangzhongya/fang-ui 0.0.98 → 0.0.99
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/dist/components/alert/src/index2.cjs +11 -11
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/audios/src/index2.cjs +54 -54
- package/dist/components/autocomplete/src/index2.cjs +11 -11
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/index.css +17 -0
- package/dist/components/box-adjust/index.scss +18 -0
- package/dist/components/box-adjust/src/data.cjs +17 -1
- package/dist/components/box-adjust/src/data.d.ts +16 -0
- package/dist/components/box-adjust/src/data.js +17 -1
- package/dist/components/box-adjust/src/index2.cjs +69 -35
- package/dist/components/box-adjust/src/index2.js +37 -3
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +11 -11
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +11 -11
- package/dist/components/cascader/src/index2.cjs +11 -11
- package/dist/components/cascader-panel/src/index2.cjs +11 -11
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +11 -11
- package/dist/components/checkbox-button/src/index2.cjs +11 -11
- package/dist/components/checkbox-group/src/index2.cjs +11 -11
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +11 -11
- package/dist/components/collapse-item/src/index2.cjs +11 -11
- package/dist/components/color-picker/src/index2.cjs +11 -11
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +11 -11
- package/dist/components/date-picker/src/index2.cjs +11 -11
- package/dist/components/date-picker/style/element.scss +1 -1
- package/dist/components/date-picker-panel/src/index2.cjs +11 -11
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +10 -10
- package/dist/components/dialog/src/index2.cjs +11 -11
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +11 -11
- package/dist/components/drawer/src/index2.cjs +11 -11
- package/dist/components/dropdown/src/index2.cjs +11 -11
- package/dist/components/dropdown-item/src/index2.cjs +11 -11
- package/dist/components/dropdown-menu/src/index2.cjs +11 -11
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +11 -11
- package/dist/components/form-item/src/index2.cjs +11 -11
- package/dist/components/forms/index.css +22 -0
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/full-screen/src/index2.cjs +11 -11
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/data.cjs +1 -1
- package/dist/components/iframe/src/data.js +1 -1
- package/dist/components/iframe/src/index2.cjs +15 -10
- package/dist/components/iframe/src/index2.js +5 -0
- package/dist/components/image/src/index2.cjs +11 -11
- package/dist/components/image-viewer/src/index2.cjs +11 -11
- package/dist/components/images/src/index2.cjs +17 -17
- package/dist/components/input/src/index2.cjs +11 -11
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +47 -47
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +11 -11
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +11 -11
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +35 -35
- package/dist/components/mention/src/index2.cjs +11 -11
- package/dist/components/menu/src/index2.cjs +11 -11
- package/dist/components/menu-item/src/index2.cjs +11 -11
- package/dist/components/menu-item-group/src/index2.cjs +11 -11
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +10 -10
- package/dist/components/option-group/src/index2.cjs +11 -11
- package/dist/components/page/index.css +22 -0
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +11 -11
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +11 -11
- package/dist/components/popover/src/index2.cjs +11 -11
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +11 -11
- package/dist/components/radio-button/src/index2.cjs +11 -11
- package/dist/components/radio-group/src/index2.cjs +11 -11
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/scrollbar/src/index2.cjs +11 -11
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +11 -11
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +41 -41
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +11 -11
- package/dist/components/sliders/src/index2.cjs +13 -13
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/sub-menu/src/index2.cjs +10 -10
- package/dist/components/switch/src/index2.cjs +11 -11
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +11 -11
- package/dist/components/table/src/index2.cjs +11 -11
- package/dist/components/table-column/src/index2.cjs +11 -11
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +36 -36
- package/dist/components/tabless/src/index2.cjs +49 -49
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +11 -11
- package/dist/components/tag/src/index2.cjs +11 -11
- package/dist/components/text/src/index2.cjs +11 -11
- package/dist/components/text/style/element.scss +1 -1
- package/dist/components/texts/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +11 -11
- package/dist/components/time-select/src/index2.cjs +11 -11
- package/dist/components/tooltip/src/index2.cjs +11 -11
- package/dist/components/transfer/src/index2.cjs +11 -11
- package/dist/components/tree/src/index2.cjs +11 -11
- package/dist/components/tree-select/src/index2.cjs +11 -11
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +11 -11
- package/dist/components/uploads/index.css +22 -0
- package/dist/components/uploads/index.scss +23 -0
- package/dist/components/uploads/src/index2.cjs +128 -138
- package/dist/components/uploads/src/index2.js +61 -71
- package/dist/components/uploads/src/util.cjs +80 -0
- package/dist/components/uploads/src/util.d.ts +10 -0
- package/dist/components/uploads/src/util.js +80 -0
- package/dist/components/uploads/src/views.cjs +4 -0
- package/dist/components/uploads/src/views.js +4 -0
- package/dist/components/uploads/src/views2.cjs +77 -0
- package/dist/components/uploads/src/views2.js +77 -0
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/videos/src/index2.cjs +97 -97
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/css/box-adjust.css +17 -0
- package/dist/css/forms.css +22 -0
- package/dist/css/index.css +39 -0
- package/dist/css/page.css +22 -0
- package/dist/css/uploads.css +22 -0
- package/dist/directives/scroll/index.cjs +6 -24
- package/dist/directives/scroll/index.js +1 -3
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/full-screen/index.cjs +5 -5
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +79 -79
- package/dist/icons/index.json +35 -35
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/catalogue.cjs +5 -5
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/delete.cjs +3 -3
- package/dist/icons/vue/document.cjs +5 -5
- package/dist/icons/vue/down.cjs +3 -3
- package/dist/icons/vue/download.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/enter.cjs +3 -3
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/mute.cjs +3 -3
- package/dist/icons/vue/pause.cjs +4 -4
- package/dist/icons/vue/play.cjs +3 -3
- package/dist/icons/vue/plus.cjs +3 -3
- package/dist/icons/vue/retreat.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/sound.cjs +4 -4
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/icons/vue/up.cjs +3 -3
- package/dist/icons/vue/views.cjs +5 -5
- package/dist/icons/vue/views.js +2 -2
- package/dist/index.css +39 -0
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +3 -3
- /package/dist/components/{alert → divider}/index.css +0 -0
- /package/dist/css/{alert.css → divider.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
require("../../../hooks/index.cjs");
|
|
6
6
|
const index$6 = require("../../table-column/index.cjs");
|
|
@@ -11,7 +11,7 @@ const index$7 = require("../../checkbox/index.cjs");
|
|
|
11
11
|
const index$2 = require("../../select-dialog/index.cjs");
|
|
12
12
|
const index = require("../../../hooks/locale/index.cjs");
|
|
13
13
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
14
|
-
const _sfc_main = /* @__PURE__ */
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: data.dataProps,
|
|
17
17
|
emits: data.dataEmits,
|
|
@@ -20,11 +20,11 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
20
20
|
const cs = index$1.useCssName("role-select");
|
|
21
21
|
const propss = __props;
|
|
22
22
|
const emit = __emit;
|
|
23
|
-
const refSelectDialog =
|
|
24
|
-
const psprops =
|
|
23
|
+
const refSelectDialog = vue.ref();
|
|
24
|
+
const psprops = vue.computed(() => {
|
|
25
25
|
return Object.assign({}, data.roleSelect, propss.props);
|
|
26
26
|
});
|
|
27
|
-
const search =
|
|
27
|
+
const search = vue.ref("");
|
|
28
28
|
function onInput() {
|
|
29
29
|
const prop = psprops.value.value;
|
|
30
30
|
if (psprops.value.lazyLoad) {
|
|
@@ -37,8 +37,8 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
const list =
|
|
41
|
-
|
|
40
|
+
const list = vue.ref([]);
|
|
41
|
+
vue.watch(
|
|
42
42
|
() => propss.modelValue,
|
|
43
43
|
() => {
|
|
44
44
|
if (propss.modelValue) {
|
|
@@ -49,8 +49,8 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
49
49
|
},
|
|
50
50
|
{ immediate: true, deep: true }
|
|
51
51
|
);
|
|
52
|
-
const nodes =
|
|
53
|
-
const listData =
|
|
52
|
+
const nodes = vue.ref({});
|
|
53
|
+
const listData = vue.ref([]);
|
|
54
54
|
function onChange(obj) {
|
|
55
55
|
const prop = psprops.value.value;
|
|
56
56
|
if (!psprops.value.multiple) {
|
|
@@ -108,10 +108,10 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
return (_ctx, _cache) => {
|
|
111
|
-
return
|
|
112
|
-
class:
|
|
111
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
112
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
113
113
|
}, [
|
|
114
|
-
|
|
114
|
+
vue.createVNode(vue.unref(index$2.SelectDialog), {
|
|
115
115
|
"get-name": getName,
|
|
116
116
|
"get-name-explain": getNameExplain,
|
|
117
117
|
disabled: propss.disabled,
|
|
@@ -127,67 +127,67 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
127
127
|
onDialog,
|
|
128
128
|
onConfirm: onDialogffirm
|
|
129
129
|
}, {
|
|
130
|
-
suffix:
|
|
131
|
-
|
|
130
|
+
suffix: vue.withCtx(() => [
|
|
131
|
+
vue.renderSlot(_ctx.$slots, "suffix")
|
|
132
132
|
]),
|
|
133
|
-
default:
|
|
134
|
-
|
|
135
|
-
class:
|
|
133
|
+
default: vue.withCtx(() => [
|
|
134
|
+
vue.createElementVNode("div", {
|
|
135
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-li"))
|
|
136
136
|
}, [
|
|
137
|
-
|
|
138
|
-
class:
|
|
137
|
+
vue.createElementVNode("div", {
|
|
138
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-li-top"))
|
|
139
139
|
}, [
|
|
140
|
-
|
|
140
|
+
vue.createVNode(vue.unref(index$3.Input), {
|
|
141
141
|
placeholder: psprops.value.searchPlaceholder,
|
|
142
142
|
clearable: "",
|
|
143
143
|
modelValue: search.value,
|
|
144
144
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
145
|
-
onKeyup:
|
|
145
|
+
onKeyup: vue.withKeys(onInput, ["enter", "native"])
|
|
146
146
|
}, null, 8, ["placeholder", "modelValue"])
|
|
147
147
|
], 2),
|
|
148
|
-
|
|
149
|
-
class:
|
|
148
|
+
vue.createElementVNode("div", {
|
|
149
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-gap"))
|
|
150
150
|
}, null, 2),
|
|
151
|
-
|
|
152
|
-
class:
|
|
151
|
+
vue.createElementVNode("div", {
|
|
152
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-li-div"), vue.unref(cs).z("dialog-li-tree")])
|
|
153
153
|
}, [
|
|
154
|
-
|
|
155
|
-
class:
|
|
154
|
+
vue.createElementVNode("div", {
|
|
155
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-div-tree")])
|
|
156
156
|
}, [
|
|
157
|
-
|
|
157
|
+
vue.createVNode(vue.unref(index$4.CheckboxGroup), {
|
|
158
158
|
modelValue: list.value,
|
|
159
159
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => list.value = $event)
|
|
160
160
|
}, {
|
|
161
|
-
default:
|
|
162
|
-
|
|
161
|
+
default: vue.withCtx(() => [
|
|
162
|
+
vue.createVNode(vue.unref(index$5.Table), {
|
|
163
163
|
data: listData.value,
|
|
164
164
|
height: "100%",
|
|
165
165
|
style: { "width": "100%" }
|
|
166
166
|
}, {
|
|
167
|
-
default:
|
|
168
|
-
|
|
167
|
+
default: vue.withCtx(() => [
|
|
168
|
+
vue.createVNode(vue.unref(index$6.TableColumn), {
|
|
169
169
|
type: "index",
|
|
170
170
|
label: "序号",
|
|
171
171
|
width: "60"
|
|
172
172
|
}),
|
|
173
|
-
|
|
173
|
+
vue.createVNode(vue.unref(index$6.TableColumn), {
|
|
174
174
|
prop: psprops.value.label,
|
|
175
175
|
label: "角色名称"
|
|
176
176
|
}, null, 8, ["prop"]),
|
|
177
|
-
|
|
177
|
+
vue.createVNode(vue.unref(index$6.TableColumn), {
|
|
178
178
|
width: "60",
|
|
179
179
|
label: "选择"
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
182
|
-
|
|
181
|
+
default: vue.withCtx(({ row }) => [
|
|
182
|
+
vue.createVNode(vue.unref(index$7.Checkbox), {
|
|
183
183
|
onChange: () => {
|
|
184
184
|
onChange(row);
|
|
185
185
|
},
|
|
186
186
|
disabled: row[psprops.value.disabled],
|
|
187
187
|
label: row[psprops.value.value]
|
|
188
188
|
}, {
|
|
189
|
-
default:
|
|
190
|
-
|
|
189
|
+
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
190
|
+
vue.createTextVNode(vue.toDisplayString(""), -1)
|
|
191
191
|
])]),
|
|
192
192
|
_: 1
|
|
193
193
|
}, 8, ["onChange", "disabled", "label"])
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/expose/index.cjs");
|
|
7
7
|
const index$2 = require("element-plus/es/components/scrollbar/index");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
12
12
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
const attrs =
|
|
14
|
-
const slots =
|
|
13
|
+
const attrs = vue.useAttrs();
|
|
14
|
+
const slots = vue.useSlots();
|
|
15
15
|
const cs = index.useCssName("scrollbar");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const elRef =
|
|
18
|
+
const elRef = vue.ref();
|
|
19
19
|
__expose(
|
|
20
20
|
index$1.useExpose(
|
|
21
21
|
{
|
|
@@ -25,16 +25,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
25
25
|
)
|
|
26
26
|
);
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
|
-
return
|
|
28
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElScrollbar), vue.mergeProps({
|
|
29
29
|
ref_key: "elRef",
|
|
30
30
|
ref: elRef,
|
|
31
|
-
class:
|
|
32
|
-
},
|
|
33
|
-
|
|
31
|
+
class: vue.unref(cs).z()
|
|
32
|
+
}, vue.unref(attrs)), vue.createSlots({ _: 2 }, [
|
|
33
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
34
34
|
return {
|
|
35
35
|
name: k,
|
|
36
|
-
fn:
|
|
37
|
-
|
|
36
|
+
fn: vue.withCtx((scope) => [
|
|
37
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
38
38
|
])
|
|
39
39
|
};
|
|
40
40
|
})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const d3Timer = require("d3-timer");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
emits: data.dataEmits,
|
|
@@ -12,13 +12,13 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
12
12
|
const cs = index.useCssName("seamless-scroll");
|
|
13
13
|
const props = __props;
|
|
14
14
|
const emit = __emit;
|
|
15
|
-
const loopCount =
|
|
15
|
+
const loopCount = vue.ref(new Array(5));
|
|
16
16
|
let ties = null;
|
|
17
17
|
let tWatch = null;
|
|
18
|
-
const refDom =
|
|
19
|
-
const refLine =
|
|
20
|
-
const refWarp =
|
|
21
|
-
let parentHeight =
|
|
18
|
+
const refDom = vue.ref();
|
|
19
|
+
const refLine = vue.ref();
|
|
20
|
+
const refWarp = vue.ref();
|
|
21
|
+
let parentHeight = vue.ref(0);
|
|
22
22
|
const createTimer = (handle, fps = 32) => new Promise((resolve, reject) => {
|
|
23
23
|
resolve(
|
|
24
24
|
d3Timer.timer(() => {
|
|
@@ -31,8 +31,8 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
33
|
const getTime = () => (/* @__PURE__ */ new Date()).getTime();
|
|
34
|
-
const val =
|
|
35
|
-
const currentFps =
|
|
34
|
+
const val = vue.ref();
|
|
35
|
+
const currentFps = vue.ref(60);
|
|
36
36
|
let animation = true;
|
|
37
37
|
let lastTime = getTime();
|
|
38
38
|
const onStop = () => animation = false;
|
|
@@ -40,9 +40,9 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
40
40
|
animation = true;
|
|
41
41
|
lastTime = getTime();
|
|
42
42
|
};
|
|
43
|
-
const hideItemsIndex =
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
const hideItemsIndex = vue.ref([]);
|
|
44
|
+
vue.onMounted(() => {
|
|
45
|
+
vue.nextTick(() => {
|
|
46
46
|
if (!refDom.value) {
|
|
47
47
|
return false;
|
|
48
48
|
}
|
|
@@ -106,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
vue.onUnmounted(() => {
|
|
110
110
|
ties == null ? void 0 : ties.stop();
|
|
111
111
|
tWatch == null ? void 0 : tWatch.stop();
|
|
112
112
|
if (refDom.value) {
|
|
@@ -118,30 +118,30 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
118
118
|
...data.dataExpose
|
|
119
119
|
});
|
|
120
120
|
return (_ctx, _cache) => {
|
|
121
|
-
return
|
|
121
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
122
122
|
ref_key: "refDom",
|
|
123
123
|
ref: refDom,
|
|
124
|
-
class:
|
|
125
|
-
style:
|
|
124
|
+
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
125
|
+
style: vue.normalizeStyle({ height: vue.unref(parentHeight) + "px" })
|
|
126
126
|
}, [
|
|
127
|
-
|
|
127
|
+
vue.createElementVNode("div", {
|
|
128
128
|
ref_key: "refWarp",
|
|
129
129
|
ref: refWarp,
|
|
130
|
-
class:
|
|
130
|
+
class: vue.normalizeClass(vue.unref(cs).z("warp"))
|
|
131
131
|
}, [
|
|
132
|
-
(
|
|
133
|
-
return
|
|
132
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(loopCount.value.length, (i) => {
|
|
133
|
+
return vue.openBlock(), vue.createBlock(vue.KeepAlive, {
|
|
134
134
|
key: "ss_" + i
|
|
135
135
|
}, [
|
|
136
|
-
!hideItemsIndex.value.includes(i) ? (
|
|
136
|
+
!hideItemsIndex.value.includes(i) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
137
137
|
key: 0,
|
|
138
138
|
ref_for: true,
|
|
139
139
|
ref_key: "refLine",
|
|
140
140
|
ref: refLine,
|
|
141
|
-
class:
|
|
141
|
+
class: vue.normalizeClass(vue.unref(cs).z("warp-line"))
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
], 2)) :
|
|
143
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
144
|
+
], 2)) : vue.createCommentVNode("", true)
|
|
145
145
|
], 1024);
|
|
146
146
|
}), 128))
|
|
147
147
|
], 2)
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/expose/index.cjs");
|
|
7
7
|
const index$2 = require("element-plus/es/components/select/index");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
12
12
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
const attrs =
|
|
14
|
-
const slots =
|
|
13
|
+
const attrs = vue.useAttrs();
|
|
14
|
+
const slots = vue.useSlots();
|
|
15
15
|
const cs = index.useCssName("select");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const elRef =
|
|
18
|
+
const elRef = vue.ref();
|
|
19
19
|
__expose(
|
|
20
20
|
index$1.useExpose(
|
|
21
21
|
{
|
|
@@ -25,16 +25,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
25
25
|
)
|
|
26
26
|
);
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
|
-
return
|
|
28
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElSelect), vue.mergeProps({
|
|
29
29
|
ref_key: "elRef",
|
|
30
30
|
ref: elRef,
|
|
31
|
-
class:
|
|
32
|
-
},
|
|
33
|
-
|
|
31
|
+
class: vue.unref(cs).z()
|
|
32
|
+
}, vue.unref(attrs)), vue.createSlots({ _: 2 }, [
|
|
33
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
34
34
|
return {
|
|
35
35
|
name: k,
|
|
36
|
-
fn:
|
|
37
|
-
|
|
36
|
+
fn: vue.withCtx((scope) => [
|
|
37
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
38
38
|
])
|
|
39
39
|
};
|
|
40
40
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
require("../../../hooks/index.cjs");
|
|
6
6
|
const index$2 = require("../../input/index.cjs");
|
|
@@ -9,7 +9,7 @@ const index$4 = require("../../button/index.cjs");
|
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
10
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
11
11
|
const _hoisted_1 = ["onClick"];
|
|
12
|
-
const _sfc_main = /* @__PURE__ */
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: data.dataProps,
|
|
15
15
|
emits: data.dataEmits,
|
|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
18
18
|
const cs = index$1.useCssName("select-dialog");
|
|
19
19
|
const props = __props;
|
|
20
20
|
const emit = __emit;
|
|
21
|
-
const value =
|
|
21
|
+
const value = vue.computed({
|
|
22
22
|
get() {
|
|
23
23
|
return props.modelValue;
|
|
24
24
|
},
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
26
26
|
emit("update:modelValue", value2);
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
const inputName =
|
|
29
|
+
const inputName = vue.computed(() => {
|
|
30
30
|
if (props.value) {
|
|
31
31
|
return props.value.map((v) => {
|
|
32
32
|
return props.setInputName ? props.setInputName(v) : props.getName(v);
|
|
@@ -35,10 +35,10 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
35
35
|
return "";
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const dialogVisible =
|
|
38
|
+
const dialogVisible = vue.ref(false);
|
|
39
39
|
function onClear() {
|
|
40
40
|
value.value = [];
|
|
41
|
-
|
|
41
|
+
vue.nextTick(() => {
|
|
42
42
|
emit("update:modelValue", value.value);
|
|
43
43
|
emit("change", value.value);
|
|
44
44
|
});
|
|
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
49
49
|
return o != key;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
vue.nextTick(() => {
|
|
53
53
|
emit("update:modelValue", value.value);
|
|
54
54
|
emit("change", value.value);
|
|
55
55
|
});
|
|
@@ -80,32 +80,32 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
80
80
|
inputName
|
|
81
81
|
});
|
|
82
82
|
return (_ctx, _cache) => {
|
|
83
|
-
return
|
|
84
|
-
class:
|
|
83
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
84
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
vue.withDirectives(vue.createVNode(vue.unref(index$2.Input), {
|
|
87
87
|
disabled: "",
|
|
88
88
|
readonly: ""
|
|
89
89
|
}, null, 512), [
|
|
90
|
-
[
|
|
90
|
+
[vue.vShow, false]
|
|
91
91
|
]),
|
|
92
|
-
|
|
92
|
+
vue.createVNode(vue.unref(index$2.Input), {
|
|
93
93
|
modelValue: inputName.value,
|
|
94
94
|
onClick,
|
|
95
|
-
placeholder: props.placeholder ||
|
|
95
|
+
placeholder: props.placeholder || vue.unref(getLocale)("form.select"),
|
|
96
96
|
disabled: props.disabled,
|
|
97
97
|
readonly: ""
|
|
98
98
|
}, {
|
|
99
|
-
suffix:
|
|
100
|
-
|
|
99
|
+
suffix: vue.withCtx(() => [
|
|
100
|
+
vue.renderSlot(_ctx.$slots, "suffix")
|
|
101
101
|
]),
|
|
102
102
|
_: 3
|
|
103
103
|
}, 8, ["modelValue", "placeholder", "disabled"]),
|
|
104
|
-
|
|
104
|
+
vue.createVNode(vue.unref(index$3.Dialogs), {
|
|
105
105
|
modelValue: dialogVisible.value,
|
|
106
106
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
107
|
-
class:
|
|
108
|
-
"custom-class":
|
|
107
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog")),
|
|
108
|
+
"custom-class": vue.unref(cs).z("dialog"),
|
|
109
109
|
title: props.title,
|
|
110
110
|
"append-to-body": props.appendToBody,
|
|
111
111
|
width: "calc(40px + " + props.width + ")",
|
|
@@ -113,103 +113,103 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
113
113
|
dialogVisible.value = false;
|
|
114
114
|
}
|
|
115
115
|
}, {
|
|
116
|
-
footer:
|
|
117
|
-
|
|
118
|
-
class:
|
|
116
|
+
footer: vue.withCtx(() => [
|
|
117
|
+
vue.createElementVNode("span", {
|
|
118
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-footer")])
|
|
119
119
|
}, [
|
|
120
|
-
|
|
120
|
+
vue.createVNode(vue.unref(index$4.Button), {
|
|
121
121
|
onClick: _cache[0] || (_cache[0] = ($event) => dialogVisible.value = false)
|
|
122
122
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
|
|
123
|
+
default: vue.withCtx(() => [
|
|
124
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("form.cancel")), 1)
|
|
125
125
|
]),
|
|
126
126
|
_: 1
|
|
127
127
|
}),
|
|
128
|
-
|
|
128
|
+
vue.createVNode(vue.unref(index$4.Button), {
|
|
129
129
|
type: "primary",
|
|
130
130
|
onClick: onDialogffirm
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
132
|
+
default: vue.withCtx(() => [
|
|
133
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("form.confirm")), 1)
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
})
|
|
137
137
|
], 2)
|
|
138
138
|
]),
|
|
139
|
-
default:
|
|
140
|
-
|
|
141
|
-
class:
|
|
139
|
+
default: vue.withCtx(() => [
|
|
140
|
+
vue.createElementVNode("div", {
|
|
141
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-list"))
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
class:
|
|
143
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default),
|
|
144
|
+
vue.createElementVNode("div", {
|
|
145
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-li")])
|
|
146
146
|
}, [
|
|
147
|
-
|
|
148
|
-
class:
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
vue.createElementVNode("div", {
|
|
148
|
+
class: vue.normalizeClass([
|
|
149
|
+
vue.unref(cs).z("dialog-li-top"),
|
|
150
|
+
vue.unref(cs).z("dialog-li-top-select")
|
|
151
151
|
])
|
|
152
152
|
}, [
|
|
153
|
-
_cache[3] || (_cache[3] =
|
|
154
|
-
|
|
153
|
+
_cache[3] || (_cache[3] = vue.createElementVNode("label", null, "已选择", -1)),
|
|
154
|
+
vue.createElementVNode("span", {
|
|
155
155
|
onClick: onClear,
|
|
156
|
-
class:
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
class: vue.normalizeClass([
|
|
157
|
+
vue.unref(cs).z("dialog-li-top"),
|
|
158
|
+
vue.unref(cs).z("dialog-li-top-clear")
|
|
159
159
|
])
|
|
160
160
|
}, [..._cache[2] || (_cache[2] = [
|
|
161
|
-
|
|
161
|
+
vue.createElementVNode("svg", {
|
|
162
162
|
viewBox: "0 0 1024 1024",
|
|
163
163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
164
164
|
"data-v-ea893728": ""
|
|
165
165
|
}, [
|
|
166
|
-
|
|
166
|
+
vue.createElementVNode("path", {
|
|
167
167
|
fill: "currentColor",
|
|
168
168
|
d: "M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"
|
|
169
169
|
})
|
|
170
170
|
], -1)
|
|
171
171
|
])], 2)
|
|
172
172
|
], 2),
|
|
173
|
-
|
|
174
|
-
class:
|
|
173
|
+
vue.createElementVNode("div", {
|
|
174
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-gap"))
|
|
175
175
|
}, null, 2),
|
|
176
|
-
|
|
177
|
-
class:
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
vue.createElementVNode("div", {
|
|
177
|
+
class: vue.normalizeClass([
|
|
178
|
+
vue.unref(cs).z("dialog-li-div"),
|
|
179
|
+
vue.unref(cs).z("dialog-li-select")
|
|
180
180
|
])
|
|
181
181
|
}, [
|
|
182
|
-
(
|
|
183
|
-
return
|
|
182
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(value.value, (item, index2) => {
|
|
183
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
184
184
|
key: index2,
|
|
185
|
-
class:
|
|
185
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-li-select-li")])
|
|
186
186
|
}, [
|
|
187
|
-
|
|
188
|
-
class:
|
|
187
|
+
vue.createElementVNode("div", {
|
|
188
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-li-top-select")])
|
|
189
189
|
}, [
|
|
190
|
-
|
|
191
|
-
class:
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
class:
|
|
190
|
+
vue.createElementVNode("span", {
|
|
191
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-li-select-li-p1")])
|
|
192
|
+
}, vue.toDisplayString(props.getName(item)), 3),
|
|
193
|
+
vue.createElementVNode("span", {
|
|
194
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-li-select-li-del")]),
|
|
195
195
|
onClick: ($event) => onDelete(item)
|
|
196
196
|
}, [..._cache[4] || (_cache[4] = [
|
|
197
|
-
|
|
197
|
+
vue.createElementVNode("svg", {
|
|
198
198
|
viewBox: "0 0 1024 1024",
|
|
199
199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
200
200
|
"data-v-ea893728": ""
|
|
201
201
|
}, [
|
|
202
|
-
|
|
202
|
+
vue.createElementVNode("path", {
|
|
203
203
|
fill: "currentColor",
|
|
204
204
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
205
205
|
})
|
|
206
206
|
], -1)
|
|
207
207
|
])], 10, _hoisted_1)
|
|
208
208
|
], 2),
|
|
209
|
-
props.getNameExplain ? (
|
|
209
|
+
props.getNameExplain ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
210
210
|
key: 0,
|
|
211
|
-
class:
|
|
212
|
-
},
|
|
211
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog-li-select-li-p2")])
|
|
212
|
+
}, vue.toDisplayString(props.getNameExplain(item)), 3)) : vue.createCommentVNode("", true)
|
|
213
213
|
], 2);
|
|
214
214
|
}), 128))
|
|
215
215
|
], 2)
|