初始化版本,引入智慧食堂模块,第三方模块
This commit is contained in:
commit
d22f88efd3
677 files changed
+69341
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<div>
|
||||
<text>{{ form?.props.value || form?.placeholder }}</text>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
defineProps({
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'D',
|
||||
},
|
||||
|
||||
form: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
});
|
||||
|
||||
const getValidateRule = () => {
|
||||
var checkConfig = (rule: any, value: any, callback: any) => {
|
||||
return callback();
|
||||
};
|
||||
let ruleArray = [
|
||||
{
|
||||
validator: checkConfig,
|
||||
trigger: 'blur',
|
||||
},
|
||||
];
|
||||
|
||||
return ruleArray;
|
||||
};
|
||||
defineExpose({ getValidateRule });
|
||||
</script>
|
||||
Reference in new issue
Block a user