mooho-base-admin-plus 2.0.12 → 2.0.13
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
|
@@ -327,7 +327,20 @@
|
|
|
327
327
|
</Col>
|
|
328
328
|
<Col v-bind="grid8">
|
|
329
329
|
<FormItem label="默认值" key="defaultValue" prop="defaultValue">
|
|
330
|
-
<Input type="text" v-model="data.defaultValue" maxlength="200" />
|
|
330
|
+
<Input type="text" v-model="data.defaultValue" maxlength="200" style="width: 150px" />
|
|
331
|
+
<Dropdown style="margin-left: 8px" @on-click="selectDefault">
|
|
332
|
+
<Button type="primary" size="small">
|
|
333
|
+
<Icon type="ios-arrow-down" />
|
|
334
|
+
</Button>
|
|
335
|
+
<template #list>
|
|
336
|
+
<DropdownMenu>
|
|
337
|
+
<DropdownItem name="today">当前日期</DropdownItem>
|
|
338
|
+
<DropdownItem name="today(yyyy-MM-dd)">格式化当前日期</DropdownItem>
|
|
339
|
+
<DropdownItem name="currentUser">当前用户ID</DropdownItem>
|
|
340
|
+
<DropdownItem name="currentUserName">当前用户姓名</DropdownItem>
|
|
341
|
+
</DropdownMenu>
|
|
342
|
+
</template>
|
|
343
|
+
</Dropdown>
|
|
331
344
|
</FormItem>
|
|
332
345
|
</Col>
|
|
333
346
|
<Col v-bind="grid8">
|
|
@@ -917,6 +930,10 @@
|
|
|
917
930
|
'type.code': '[' + this.data.dictTypeCode + ']',
|
|
918
931
|
isDisabled: '[false]'
|
|
919
932
|
});
|
|
933
|
+
},
|
|
934
|
+
// 选择默认值
|
|
935
|
+
async selectDefault(name) {
|
|
936
|
+
this.data.defaultValue = '{' + name + '}';
|
|
920
937
|
}
|
|
921
938
|
}
|
|
922
939
|
};
|
|
@@ -215,7 +215,20 @@
|
|
|
215
215
|
</Col>
|
|
216
216
|
<Col v-bind="grid8">
|
|
217
217
|
<FormItem label="默认值" key="defaultValue" prop="defaultValue">
|
|
218
|
-
<Input type="text" v-model="data.defaultValue" maxlength="200" />
|
|
218
|
+
<Input type="text" v-model="data.defaultValue" maxlength="200" style="width: 150px" />
|
|
219
|
+
<Dropdown style="margin-left: 8px" @on-click="selectDefault">
|
|
220
|
+
<Button type="primary" size="small">
|
|
221
|
+
<Icon type="ios-arrow-down" />
|
|
222
|
+
</Button>
|
|
223
|
+
<template #list>
|
|
224
|
+
<DropdownMenu>
|
|
225
|
+
<DropdownItem name="today">当前日期</DropdownItem>
|
|
226
|
+
<DropdownItem name="today(yyyy-MM-dd)">格式化当前日期</DropdownItem>
|
|
227
|
+
<DropdownItem name="currentUser">当前用户ID</DropdownItem>
|
|
228
|
+
<DropdownItem name="currentUserName">当前用户姓名</DropdownItem>
|
|
229
|
+
</DropdownMenu>
|
|
230
|
+
</template>
|
|
231
|
+
</Dropdown>
|
|
219
232
|
</FormItem>
|
|
220
233
|
</Col>
|
|
221
234
|
<Col v-bind="grid8">
|
|
@@ -701,6 +714,10 @@
|
|
|
701
714
|
'type.code': '[' + this.data.dictTypeCode + ']',
|
|
702
715
|
isDisabled: '[false]'
|
|
703
716
|
});
|
|
717
|
+
},
|
|
718
|
+
// 选择默认值
|
|
719
|
+
async selectDefault(name) {
|
|
720
|
+
this.data.defaultValue = '{' + name + '}';
|
|
704
721
|
}
|
|
705
722
|
}
|
|
706
723
|
};
|