@mythpe/quasar-ui-qui 0.2.2 → 0.2.3
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
CHANGED
|
@@ -48,6 +48,7 @@ interface P {
|
|
|
48
48
|
colProps?: Props['colProps'];
|
|
49
49
|
viewMode?: Props['viewMode'];
|
|
50
50
|
fieldOptions?: Props['fieldOptions'];
|
|
51
|
+
hideBottomSpace?: boolean;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
const props = withDefaults(defineProps<P>(), {
|
|
@@ -80,8 +81,9 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
80
81
|
required: undefined,
|
|
81
82
|
rowProps: undefined,
|
|
82
83
|
colProps: undefined,
|
|
83
|
-
viewMode:
|
|
84
|
-
fieldOptions: undefined
|
|
84
|
+
viewMode: !1,
|
|
85
|
+
fieldOptions: undefined,
|
|
86
|
+
hideBottomSpace: !0
|
|
85
87
|
})
|
|
86
88
|
defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
87
89
|
const helper = useBindInput<P>(() => props, 'toggle', () => ({ choose: !0 }))
|
|
@@ -160,6 +162,7 @@ defineOptions({
|
|
|
160
162
|
/>
|
|
161
163
|
<MCol v-bind="colProps">
|
|
162
164
|
<q-field
|
|
165
|
+
:hide-bottom-space="hideBottomSpace"
|
|
163
166
|
v-bind="{
|
|
164
167
|
error: !!errorMessage,
|
|
165
168
|
errorMessage,
|
|
@@ -169,7 +172,8 @@ defineOptions({
|
|
|
169
172
|
...$attrs,
|
|
170
173
|
borderless: !0,
|
|
171
174
|
outlined: !1,
|
|
172
|
-
|
|
175
|
+
// dense2: theme.dense !== undefined ? theme.dense : getProp('dense')
|
|
176
|
+
dense: !0
|
|
173
177
|
}"
|
|
174
178
|
>
|
|
175
179
|
<q-toggle
|
|
@@ -182,7 +186,8 @@ defineOptions({
|
|
|
182
186
|
...pluginOptions.toggle,
|
|
183
187
|
...theme,
|
|
184
188
|
...$attrs,
|
|
185
|
-
dense: theme.dense !== undefined ? theme.dense : getProp('dense'),
|
|
189
|
+
// dense: theme.dense !== undefined ? theme.dense : getProp('dense'),
|
|
190
|
+
dense: !0,
|
|
186
191
|
checkedIcon: getProp('checkedIcon'),
|
|
187
192
|
uncheckedIcon: getProp('uncheckedIcon'),
|
|
188
193
|
color: !!errorMessage ? 'negative' : getProp('color'),
|
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ThemeContext } from './theme'
|
|
2
2
|
import type { MythComponentsProps } from './plugin-props-option'
|
|
3
|
-
import type { HelpersStubSchema } from './api-helpers'
|
|
4
|
-
import type { AxiosInstance } from 'axios'
|
|
5
3
|
import type { ApiContext, MythApi } from './myth-api'
|
|
6
4
|
|
|
7
|
-
export interface InstallOptions2 {
|
|
8
|
-
asyncComponents?: boolean | undefined;
|
|
9
|
-
theme?: Theme;
|
|
10
|
-
size?: ThemeSize;
|
|
11
|
-
rounded?: ThemeRounded;
|
|
12
|
-
shadow?: ThemeShadow;
|
|
13
|
-
fluid?: ThemeFluid;
|
|
14
|
-
rules?: string[];
|
|
15
|
-
btnLoading?: ButtonLoadingOptions;
|
|
16
|
-
props?: MythComponentsProps;
|
|
17
|
-
themeInput?: ThemeInput;
|
|
18
|
-
themeBtn?: ThemeBtn;
|
|
19
|
-
baseUrl?: string;
|
|
20
|
-
api?: HelpersStubSchema;
|
|
21
|
-
mAxios?: AxiosInstance;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
5
|
export interface InstallOptions extends MythApi {
|
|
25
6
|
api: ApiContext;
|
|
26
7
|
asyncComponents?: boolean;
|